You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
});
The text was updated successfully, but these errors were encountered:
Hi tried many ways to import for sveltekit but options won't work
The text was updated successfully, but these errors were encountered: