X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e6e1017c531add5a7a5cbd4e24dc38fce4da0ea0..43caf8b8c9321dd0f79f78ac0f820783e710c5cc:/redakcja/static/js/button_scripts.js?ds=inline diff --git a/redakcja/static/js/button_scripts.js b/redakcja/static/js/button_scripts.js index ef2b794d..6e729157 100644 --- a/redakcja/static/js/button_scripts.js +++ b/redakcja/static/js/button_scripts.js @@ -48,6 +48,11 @@ function ScriptletCenter() { this.scriptlets = {}; + this.scriptlets['insert_text'] = function(context, params, text, move_forward, move_up, done) + { + done(params.text, move_forward, move_up); + }.bind(this); + this.scriptlets['insert_tag'] = function(context, params, text, move_forward, move_up, done) { var padding_top = ''; @@ -355,4 +360,4 @@ var scriptletCenter; $(function() { scriptletCenter = new ScriptletCenter(); -}); \ No newline at end of file +});