const wrapper = document.createElement('div');
elem.parentNode.insertBefore(wrapper, elem);
const wrapper = document.createElement('div');
elem.parentNode.insertBefore(wrapper, elem);
* @returns {SimpleEditorInterface}
*/
export function wysiwygView(cmContainer, shadowRoot, content, language) {
* @returns {SimpleEditorInterface}
*/
export function wysiwygView(cmContainer, shadowRoot, content, language) {
editor.setMode(modeSuggestion, content);
elem.style.display = 'none';
editor.setMode(modeSuggestion, content);
elem.style.display = 'none';
const editor = new SimpleEditorInterface(ev);
editor.setMode(mode, content);
textArea.style.display = 'none';
const editor = new SimpleEditorInterface(ev);
editor.setMode(mode, content);
textArea.style.display = 'none';
window.$events.emitPublic(elem, 'editor-markdown-cm6::pre-init', {editorViewConfig: config});
// Create editor view, hide original input
window.$events.emitPublic(elem, 'editor-markdown-cm6::pre-init', {editorViewConfig: config});
// Create editor view, hide original input
(new SimpleEditorInterface(ev)).setMode('markdown', '');
elem.style.display = 'none';
(new SimpleEditorInterface(ev)).setMode('markdown', '');
elem.style.display = 'none';