tinymce-docs
tinymce-docs copied to clipboard
Bundling docs are incorrect and incomplete
- 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
fromstuff 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
This issue is stale because it has been open 365 days with no activity. Please comment if you wish to keep this issue open or it will be closed in 30 days.
Please keep open
Note, there is (or at least was) a bug that I fixed in my fork of TinyMCE: https://github.com/hugerte/hugerte/commit/d62ccbfb11583b5ebb4177986666039da2fe50de I permit you to copy my fix without attribution (but I won't sign a CLA).