X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..cf5dddce80a2b4fe4d5f8c87cc709050c0efb36e:/src/redakcja/static/js/button_scripts.js?ds=sidebyside diff --git a/src/redakcja/static/js/button_scripts.js b/src/redakcja/static/js/button_scripts.js index 37f37a7d..60a80dda 100644 --- a/src/redakcja/static/js/button_scripts.js +++ b/src/redakcja/static/js/button_scripts.js @@ -331,7 +331,7 @@ ScriptletCenter.prototype.callInteractive = function(opts) { ScriptletCenter.prototype.XMLEditorSelectedText = function(editor) { - return editor.selection(); + return editor.getSelection(); }; ScriptletCenter.prototype.XMLEditorReplaceSelectedText = function(editor, replacement)