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.

this.app.destroy();

disable #

Makes the editor disabled.

this.app.disable();

enable #

Enables the editor if it was disabled.

this.app.enable();

readonly #

Makes the editor readonly.

this.app.readonly();

editable #

Makes the editor editable (disabled readonly mode).

this.app.editable();

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