Skip to content

Commit 5ecf4db

Browse files
DeepSkyFirevolio
authored andcommitted
Fixed ‘myField isn‘t defined’ if editor not null.
1 parent d971748 commit 5ecf4db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $(function () {
5454
var cursorPos = startPos;
5555
editor.value = editor.value.substring(0, startPos)
5656
+ tag
57-
+ editor.value.substring(endPos, myField.value.length);
57+
+ editor.value.substring(endPos, editor.textLength);
5858
cursorPos += tag.length;
5959
editor.focus();
6060
editor.selectionStart = cursorPos;

0 commit comments

Comments
 (0)