Documentation / API Reference

App

$win #

Access to the Dom of window object.

let height = this.app.$win.height();

$doc #

Access to the Dom of document object.

let 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.

let name = this.app.element.attr('name');

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();

destroy #

Destroys an instance of the running editor.

app.destroy();

broadcast #

Arguments
name StringEvent name
arguments (optional) Object Arguments object

Broadcasts the event.

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