Fixes #955, enables surrounding text with complex symbols
[redakcja.git] / redakcja / static / js / button_scripts.js
index 949365a..c97a231 100644 (file)
@@ -108,7 +108,6 @@ function ScriptletCenter()
         if (cursor_inside) {
             move_forward -= params.tag.length + 3;
             move_up += params.padding_bottom || 0;
-            alert(move_forward + ' ' + move_up)
         }
 
         done(output, move_forward, move_up);
@@ -268,7 +267,7 @@ function ScriptletCenter()
                 if (params.tag == 'akap' && chunks[i].match(/^---/))
                     tag = 'akap_dialog';
                 else tag = params.tag;
-                tagger(context, {tag: tag}, chunks[i], 0, insert_done);
+                tagger(context, {tag: tag}, chunks[i], 0, 0, insert_done);
                 text += padding;
             }
         }