Documentation / API Reference

Source

is #

Checks if the editor in the source mode.

let is = this.app.source.is();

toggle #

Toggles the source view of the edtior.

this.app.source.toggle();

open #

Shows the source of the edtior.

this.app.source.open();

close #

Hides the source of the edtior.

this.app.source.close();

getElement #

Access to the Dom of the textarea element which show the source mode.


let $source = this.app.source.getElement();
let code = $source.val();