Documentation

Insertion

insertBreakline

Inserts the br tag at the caret.

this.app.insertion.insertBreakline();

insertHtml

  • html String

Inserts html at the caret.

this.app.insertion.insertHtml('<span>HTML</span>');

insertChar

Arguments
html String

Inserts html char at the caret.

this.app.insertion.insertChar('&nbsp;');

insertNode

Arguments
element Node, Element, Dom

Inserts the node at caret.

var node = document.createElement('img');
node.src = 'image-url';
this.app.insertion.insertNode(node);