Access to the Dom of window object.
let height = this.app.$win.height();
Access to the Dom of document object.
let height = this.app.$doc.height();
Access to the Dom of the page body.
this.app.$body.append(something);
Access to the Dom of the source textarea element.
let name = this.app.element.attr('name');
Arguments:
Object
Starts the editor, after stopping with the this.app.stop
method.
this.app.start();
this.app.start(settings);
Stops the editor.
this.app.stop();
Destroys an instance of the running editor.
this.app.destroy();
Makes the editor disabled.
this.app.disable();
Enables the editor if it was disabled.
this.app.enable();
Makes the editor readonly.
this.app.readonly();
Makes the editor editable (disabled readonly mode).
this.app.editable();
Arguments:
String
Object
Broadcasts the event.
this.app.broadcast('myplugin.eventname');
this.app.broadcast('myplugin.eventname', { arg1: val1, arg2: val2 });