$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');

container #

Access to the editor containers.

this.app.container.$main.append(something);
this.app.container.$editor .append(something);
this.app.container.$source .append(something);
this.app.container.$statusbar.append(something);

start #

Arguments
settings (optional) ObjectOptions 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 #

Arguments
name StringName 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 #

Arguments
command StringName 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 #

Arguments
name StringEvent name

Broadcasts the event.

this.app.api.broadcast('myplugin.eventname');
this.app.api.broadcast('myplugin.eventname', { arg1: val1, arg2: val2 });