-
- Markdown Editor Playground
- {VERSION}
-
-
-
- isEmpty: {String(mdEditor.isEmpty())}
-
- }
- >
- {
- mdEditor.clear();
- mdEditor.focus();
- }}
- />
- {
- mdEditor.append('> append');
- mdEditor.focus();
- }}
- />
- {
- mdEditor.prepend('> prepend');
- mdEditor.focus();
- }}
- />
- {
- mdEditor.replace('> replace');
- mdEditor.focus();
- }}
- />
- {
- mdEditor.moveCursor('start');
- mdEditor.focus();
- }}
- />
- {
- mdEditor.moveCursor('end');
- mdEditor.focus();
- }}
- />
- {
- mdEditor.moveCursor({line: 115});
- mdEditor.focus();
- }}
- />
-
- {mdEditor.currentMode === 'markup' && (
- {
- if (typeof line !== 'number' || Number.isNaN(line)) return;
- mdEditor.moveCursor({line});
- mdEditor.focus();
- }}
- />
- )}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {editorMode === 'wysiwyg' &&
{mdRaw}
}
-
-
+