Documentation
App
$win
Access to the Dom of window object.
var height = this.app.$win.height();
$doc
Access to the Dom of document object.
var height = this.app.$doc.height();
$body
Access to the Dom of the page body.
this.app.$body.append(something);
$element
Access to the Dom of the source textarea element.
var name = this.app.$element.attr('name');
start
settings (optional) | Object | Options object |
Starts the editor, after stopping with the this.app.stop
method.
this.app.start();
this.app.start(settings);
stop
Stops the editor.
this.app.stop();
destroy
Destroys an instance of the running editor.
app.destroy();
disable
Makes the editor disabled.
this.app.disable();
enable
Makes the editor enabled.
this.app.enable();
broadcast
name | String | Event name |
arguments (optional) | Object | Arguments object |
Broadcasts the event.
this.app.broadcast('myplugin.eventname');
this.app.broadcast('myplugin.eventname', { arg1: val1, arg2: val2 });
dkjgvo65776inru43654