0.0.12 • Published 5 months ago
@kerebron/extension-basic-editor v0.0.12
Kerebron basic editor extension
Set of basic editor extensions, marks and nodes
Features:
- bold, italic, image, hr...
- basic keymap
- cursors: drop and gap
- history
Usage:
import { ExtensionBasicEditor } from '@kerebron/extension-basic-editor';
this.editor = new CoreEditor({
element: htmlElement,
extensions: [
new ExtensionBasicEditor(),
],
});
this.editor.setDocument('# TEST \n\n1. aaa\n2. bbb', 'text/x-markdown');
const markdown = this.editor.getDocument('text/x-markdown');