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 target element for the editor.
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();
create
name | String | Name of class |
Creates an instance of a class or service.
var service = this.app.create('someservice');
var instance = this.app.create('someclass', arg1, arg2);
api
command | String | Name of the module and its method |
Calls the method of the specified module.
this.app.api('module.method');
this.app.api('module.method', arg1, arg2);
broadcast
name | String | Event name |
Broadcasts the event.
this.app.api.broadcast('myplugin.eventname');
this.app.api.broadcast('myplugin.eventname', { arg1: val1, arg2: val2 });
dkjgvo65776inru43654