X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/7b7f19b8680ed7653359bede5833d2cffc11ef8c..13cfbc6feb4c291d5e2121f5705f74d0f5c9dfb6:/src/editor/plugins/core/core.js
diff --git a/src/editor/plugins/core/core.js b/src/editor/plugins/core/core.js
index bc41e00..c56c5db 100644
--- a/src/editor/plugins/core/core.js
+++ b/src/editor/plugins/core/core.js
@@ -317,6 +317,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;
}
};
@@ -535,7 +542,7 @@ var createLinkFromSelection = function(callback, params) {
prePasteHandler: function(text) {
return params.fragment.document.getLinkForUrl(text);
}.bind(this),
- description: 'attachment library'
+ description: '' + gettext('attachment library') + ''
}
]
}),