From: Radek Czajka Date: Mon, 6 Sep 2010 12:39:34 +0000 (+0200) Subject: insert tag fix X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/52f92df8dabe27a83c1f97fea0cea73f81e7227d?ds=inline insert tag fix --- diff --git a/redakcja/static/js/button_scripts.js b/redakcja/static/js/button_scripts.js index 06bc7c5b..a7c54603 100644 --- a/redakcja/static/js/button_scripts.js +++ b/redakcja/static/js/button_scripts.js @@ -95,7 +95,7 @@ function ScriptletCenter() } if (move_cursor) { - move_forward += params.tag.length+2; + move_forward -= params.tag.length+3; } done(output, move_forward); @@ -227,7 +227,8 @@ function ScriptletCenter() text = text + buf + '\n' + ebuf; } else { - move_forward += params.tag.length + 2; + text = "" + move_forward -= "".length; } done(text, move_forward);