Fixed cursor positioning bug.
git-svn-id: http://svn.automattic.com/wordpress/trunk@599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
49208f7551
commit
28cad83a06
|
@ -279,7 +279,7 @@ function edInsertTag(myField, i) {
|
||||||
+ myField.value.substring(endPos, myField.value.length);
|
+ myField.value.substring(endPos, myField.value.length);
|
||||||
cursorPos = endPos
|
cursorPos = endPos
|
||||||
+ edButtons[i].tagStart.length
|
+ edButtons[i].tagStart.length
|
||||||
+ edButtons[i].length;
|
+ edButtons[i].tagEnd.length;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!edCheckOpenTags(i) || edButtons[i].tagEnd == '') {
|
if (!edCheckOpenTags(i) || edButtons[i].tagEnd == '') {
|
||||||
|
|
Loading…
Reference in New Issue