Update editor, workspace, Git services, appearance, and project guides
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
import ContextMenu from "$lib/layout/ContextMenu.svelte";
|
||||
import type { MenuItem } from "$lib/layout/menuTypes";
|
||||
import { writerContextItems } from "./writerMenu";
|
||||
import { useSpellingMenu } from "./spellingMenu";
|
||||
|
||||
type Props = {
|
||||
buffer: OpenBuffer;
|
||||
@@ -132,9 +133,10 @@
|
||||
],
|
||||
content: html,
|
||||
editorProps: {
|
||||
attributes: { class: "reading writer-doc" },
|
||||
attributes: { class: "reading writer-doc", spellcheck: "true" },
|
||||
handleDOMEvents: {
|
||||
contextmenu: (pmView, event) => {
|
||||
if (useSpellingMenu(event, pmView.state.selection.empty)) { menu = null; return false; }
|
||||
event.preventDefault();
|
||||
if (!editor) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user