Fixed ‘myField isn‘t defined’ if editor not null.

This commit is contained in:
DeepSkyFire 2020-03-16 23:10:21 +09:00 committed by volio
parent d971748407
commit 5ecf4db02d

View File

@ -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;