mirror of
https://github.com/MoePlayer/DPlayer-Typecho.git
synced 2024-12-21 20:30:35 +08:00
Fixed ‘myField isn‘t defined’ if editor not null.
This commit is contained in:
parent
d971748407
commit
5ecf4db02d
@ -54,7 +54,7 @@ $(function () {
|
||||
var cursorPos = startPos;
|
||||
editor.value = editor.value.substring(0, startPos)
|
||||
+ tag
|
||||
+ editor.value.substring(endPos, myField.value.length);
|
||||
+ editor.value.substring(endPos, editor.textLength);
|
||||
cursorPos += tag.length;
|
||||
editor.focus();
|
||||
editor.selectionStart = cursorPos;
|
||||
|
Loading…
Reference in New Issue
Block a user