Download node_modules/@tiptap/react/src/Editor.ts from sitcod3/modul-s: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tiptap/react/src/Editor.ts
- Command line
-
hf download hf://spaces/sitcod3/modul-s@c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/@tiptap/react/src/Editor.ts
-
curl -L -o Editor.ts https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tiptap/react/src/Editor.ts
561 Bytes
| import type { Editor } from '@tiptap/core' | |
| import type { ReactPortal } from 'react' | |
| import type { ReactRenderer } from './ReactRenderer.js' | |
| export type EditorWithContentComponent = Editor & { | |
| contentComponent?: ContentComponent | null | |
| isEditorContentInitialized?: boolean | |
| } | |
| export type ContentComponent = { | |
| setRenderer(id: string, renderer: ReactRenderer): void | |
| removeRenderer(id: string): void | |
| subscribe: (callback: () => void) => () => void | |
| getSnapshot: () => Record<string, ReactPortal> | |
| getServerSnapshot: () => Record<string, ReactPortal> | |
| } | |