-
Notifications
You must be signed in to change notification settings - Fork 222
Open
Labels
Description
- Bundling using https://www.tiny.cloud/docs/tinymce/6/vite-es6-npm/, the lines
don't work: Uncaught SyntaxError:
import contentUiSkinCss from 'tinymce/skins/ui/oxide/content.js'; import contentCss from 'tinymce/skins/content/default/content.js';
The requested module 'http://localhost:5174/node_modules/.vite/deps/tinymce_skins_content_default_content__js.js?v=1dcb8b20' doesn't provide an export named: 'default'
- When removing the
from
stuff from the imports like this:the css gets applied to the whole webpage rather than only the editor, so the fonts change (import 'tinymce/skins/ui/oxide/content.js'; import 'tinymce/skins/content/default/content.js';
body {font-family:sans-serif}
from TinyMCE css). TinyMCE should edit the shadow root of its iframe and not my document root. Oh wait, it doesn't even generate an iframe when bundling it using Vite, it just makes a div? What's the cause of that? - https://www.tiny.cloud/docs/tinymce/6/webpack-es6-npm/ is incomplete