MCPcopy Create free account
hub / github.com/editablejs/editable / CodeBlockEditor

Interface CodeBlockEditor

packages/plugins/codeblock/src/plugin/editor.ts:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6export type InsertCodeBlockOptions = Partial<Omit<CodeBlock, 'type' | 'children'>>
7
8export interface CodeBlockEditor extends Editor {
9 insertCodeBlock: (options?: InsertCodeBlockOptions) => void
10
11 updateCodeBlock: (element: CodeBlock, options: InsertCodeBlockOptions) => void
12
13 getCodeMirrorExtensions: (id: string) => any[]
14}
15
16export const CodeBlockEditor = {
17 isCodeBlockEditor: (editor: Editor): editor is CodeBlockEditor => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…