diff --git a/app/assets/javascripts/views/editor/editor_view.ts b/app/assets/javascripts/views/editor/editor_view.ts index 9d8904f9a..0482a7a6a 100644 --- a/app/assets/javascripts/views/editor/editor_view.ts +++ b/app/assets/javascripts/views/editor/editor_view.ts @@ -1033,8 +1033,8 @@ class EditorViewCtrl extends PureViewCtrl implements EditorViewScope { if (key === WebPrefKey.EditorSpellcheck) { /** Allows textarea to reload */ + await this.setEditorState({ textareaUnloading: true }); await this.setEditorState({ textareaUnloading: false }); - this.setEditorState({ textareaUnloading: true }); this.reloadFont(); } else if (key === WebPrefKey.EditorResizersEnabled && this.state[key] === true) { this.$timeout(() => {