Skip to content

Vizel API / core/src / Editor

Interface: Editor

Defined in: node_modules/.pnpm/@tiptap+core@3.27.1_@tiptap+pm@3.27.1/node_modules/@tiptap/core/dist/index.d.ts:3644

Extends

  • EventEmitter<EditorEvents>

Properties

markdown

ts
markdown: object;

Defined in: packages/core/src/markdown/augment.ts:27

parse()

ts
parse(md): JSONContent;

Parse a Markdown string into a Tiptap JSON document.

Parameters
ParameterType
mdstring
Returns

JSONContent

Methods

getMarkdown()

Call Signature

ts
getMarkdown(): string;

Defined in: packages/core/src/markdown/augment.ts:22

Serialize the current document to a Markdown string.

Returns

string

Call Signature

ts
getMarkdown(): string;

Defined in: packages/core/dist/markdown/augment.d.ts:5

Serialize the current document to a Markdown string.

Returns

string

Released under the MIT License.