jodit icon indicating copy to clipboard operation
jodit copied to clipboard

Use with svelte

Open Spaceman2019 opened this issue 2 years ago • 3 comments

Hi, I want to use jodit with svelte. Does anyone have an example or is there a wrapper.

Spaceman2019 avatar Feb 22 '23 10:02 Spaceman2019

Try this one https://www.npmjs.com/package/jodit-svelte

xdan avatar Feb 22 '23 17:02 xdan

I now switch to svelte 4 and use sveltekit. Also I use the package above. When I integrate jodit, then I got the following error:

Error when evaluating SSR module ContentViewer.svelte: failed to import "jodit" |- ReferenceError: self is not defined at Object. (...\node_modules\jodit\build\jodit.min.js:1:224)

Spaceman2019 avatar Sep 01 '23 13:09 Spaceman2019

I'm having the same error here. If I get it to load on mount it won't detect the css file.

calvinlang avatar Oct 30 '23 02:10 calvinlang