X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..2ad3a0ff948fcd754043b251e4767808babb25d2:/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)