X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/55a7fd3acdadc4777e2680b9bf64f96c509c6dac..0061ce72a4ef53ac99f75a4f3aa51d5c18a27b5e:/src/editor/plugins/core/core.js diff --git a/src/editor/plugins/core/core.js b/src/editor/plugins/core/core.js index 6dce4ef..8ac4f63 100644 --- a/src/editor/plugins/core/core.js +++ b/src/editor/plugins/core/core.js @@ -315,6 +315,13 @@ plugin.documentExtension.documentNode.transformations = { } }); return toret; + }, + insertNewNode: function () { + var node = this; + var newElement = this.document.createDocumentNode({tagName: 'div', attrs: {class: 'p'}}); + node.after(newElement); + newElement.append({text: ''}); + return newElement; } };