Skip to content

Commit db8c01b

Browse files
committed
fix #4668, fix #4719, #7693 -- use browser spellcheck for latex in all cases
1 parent 8127133 commit db8c01b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/packages/frontend/file-associations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ file_associations["noext-dockerfile"] = {
202202
file_associations["tex"] = {
203203
editor: "latex",
204204
icon: "tex-file",
205-
opts: { mode: "stex2", indent_unit: 2, tab_size: 2 },
205+
opts: { mode: "stex2", indent_unit: 2, tab_size: 2, spellcheck: true },
206206
name: "LaTeX",
207207
exclude_from_compute_server: true,
208208
};

src/packages/frontend/frame-editors/latex-editor/actions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ export class Actions extends BaseActions<LatexEditorState> {
140140
this._init_syncstring_value();
141141
this.init_ext_path(); // must come after syncstring init
142142
this.init_latexmk();
143-
this._init_spellcheck();
143+
// This breaks browser spellcheck.
144+
// this._init_spellcheck();
144145
this.init_config();
145146
if (!this.knitr) {
146147
this.output_directory = this.output_directory_path();

src/packages/frontend/frame-editors/latex-editor/editor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { CodemirrorEditor } from "../code-editor/codemirror-editor";
1414
import { createEditor } from "../frame-tree/editor";
1515
import { EditorDescription } from "../frame-tree/types";
1616
import { TableOfContents } from "../markdown-editor/table-of-contents";
17-
import { SETTINGS_SPEC } from "../settings/editor";
17+
//import { SETTINGS_SPEC } from "../settings/editor";
1818
import { terminal } from "../terminal-editor/editor";
1919
import { time_travel } from "../time-travel-editor/editor";
2020
import { Build } from "./build";
@@ -188,7 +188,7 @@ const EDITOR_SPEC = {
188188
latex_table_of_contents,
189189
word_count,
190190
terminal,
191-
settings: SETTINGS_SPEC,
191+
//settings: SETTINGS_SPEC,
192192
time_travel,
193193
// See https://github.com/sagemathinc/cocalc/issues/5114
194194
...(!IS_IPAD && !IS_IOS ? { pdf_embed } : undefined),

0 commit comments

Comments
 (0)