Skip to content

Commit c609330

Browse files
committed
fix: broken textarea mode when document.designMode is "on"
1 parent 122acc9 commit c609330

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/content/editor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,8 @@ const Editor = Module("editor", {
681681
["<C-t>"], "Edit text field in Vi mode",
682682
function () {
683683
let edtr = Editor.getEditor();
684-
edtr.setSelectionRange(edtr.selectionStart - 1, edtr.selectionStart - 1);
684+
if (edtr.setSelectionRange)
685+
edtr.setSelectionRange(edtr.selectionStart - 1, edtr.selectionStart - 1);
685686
liberator.mode = modes.TEXTAREA;
686687
});
687688

0 commit comments

Comments
 (0)