0.2.6 • Published 7 years ago
inpladitor v0.2.6
Inpladitor
An in place editor for meteor
Installing using atmosphere
meteor add mahmost:inpladitorInstalling using npm
meteor npm install inpladitor --saveBasic usage
Required npm setup
If installed using npm :
- You need to put this in server side code
import Inpladitor from "inpladitor";- And put this in client side code (in template files where you the editor event is found)
window.Inpladitor = require("inpladitor/handler");
import "inpladitor/css/style.css";Editor Event
A basic event to make all text node in a template editable is :
Template.someName.event({
'click *' : function (e, t) {
Inpladitor.handler(e, t);
}
});License
MIT