fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
insert tag fix
[redakcja.git]
/
redakcja
/
static
/
js
/
button_scripts.js
diff --git
a/redakcja/static/js/button_scripts.js
b/redakcja/static/js/button_scripts.js
index
06bc7c5
..
a7c5460
100644
(file)
--- a/
redakcja/static/js/button_scripts.js
+++ b/
redakcja/static/js/button_scripts.js
@@
-95,7
+95,7
@@
function ScriptletCenter()
}
if (move_cursor) {
}
if (move_cursor) {
- move_forward
+= params.tag.length+2
;
+ move_forward
-= params.tag.length+3
;
}
done(output, move_forward);
}
done(output, move_forward);
@@
-227,7
+227,8
@@
function ScriptletCenter()
text = text + buf + '\n</strofa>' + ebuf;
}
else {
text = text + buf + '\n</strofa>' + ebuf;
}
else {
- move_forward += params.tag.length + 2;
+ text = "<strofa></strofa>"
+ move_forward -= "</strofa>".length;
}
done(text, move_forward);
}
done(text, move_forward);