X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/e6993e4bfe0e5fd38ccf554da489b5af3625c2fb..232e5bd6f1b93f27e227a291b7913867e7d76be7:/src/editor/plugins/core/templates.js diff --git a/src/editor/plugins/core/templates.js b/src/editor/plugins/core/templates.js index 69e30f9..7d6d74f 100644 --- a/src/editor/plugins/core/templates.js +++ b/src/editor/plugins/core/templates.js @@ -38,7 +38,7 @@ var insertTemplateAction = { return { allowed: true, description: description, - execute: function(params) { + execute: function(callback, params) { var node = params.fragment.node.getNearestElementNode(); node.document.transaction(function() { var toAdd = node.document.createDocumentNode(params.template.content); @@ -46,7 +46,8 @@ var insertTemplateAction = { }, { metadata: { description: description - } + }, + success: callback }); } };