Files
docmost/apps/client/src/features/editor/atoms/editor-atoms.ts
T
Philip Okugbe 3cb954db69 fix: editor improvements (#583)
* delete unused component

* return page prosemirror content

* prefetch pages

* use prosemirro json content on editor

* cache page query with id and slug as key

* Show notice on collaboration disconnection

* enable scroll while typing

* enable immediatelyRender

* avoid image break in PDF print

* Comment editor rendering props
2025-01-16 12:48:35 +00:00

9 lines
244 B
TypeScript

import { atom } from "jotai";
import { Editor } from "@tiptap/core";
export const pageEditorAtom = atom<Editor | null>(null);
export const titleEditorAtom = atom<Editor | null>(null);
export const yjsConnectionStatusAtom = atom<string>("");