Hi tried many ways to import for sveltekit but options won't work
import MediumEditor from 'medium-editor'
const MediumEditor = () => import("./../../../node_modules/medium-editor/dist/js/medium-editor.min.js").then(delayModuleLoad)
const delayModuleLoad = module =>
new Promise(res =>
setTimeout(() => res(module), Math.random() * 2000, console.log(999)),
);
console.log(MediumEditor())
var editor
MediumEditor.activeButtonClass = 'medium-editor-button-active'
MediumEditor.placeholder = [{
/* This example includes the default options for placeholder,
if nothing is passed this is what it used */
text: 222,
}
]
var editor = new MediumEditor('.editable', {
anchorPreview: false
});
Hi tried many ways to import for sveltekit but options won't work