X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..e977f7187b10b1bc0a30794cd585c6b840568996:/src/redakcja/static/js/button_scripts.js 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)