tinymce-docs icon indicating copy to clipboard operation
tinymce-docs copied to clipboard

Bundling docs are incorrect and incomplete

Open carlosmintfan opened this issue 1 year ago • 3 comments

  1. Bundling using https://www.tiny.cloud/docs/tinymce/6/vite-es6-npm/, the lines
    import contentUiSkinCss from 'tinymce/skins/ui/oxide/content.js';
    import contentCss from 'tinymce/skins/content/default/content.js';
    
    don't work: Uncaught SyntaxError: 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'
  2. When removing the from stuff from the imports like this:
    import 'tinymce/skins/ui/oxide/content.js';
    import 'tinymce/skins/content/default/content.js';
    
    the css gets applied to the whole webpage rather than only the editor, so the fonts change (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?
  3. https://www.tiny.cloud/docs/tinymce/6/webpack-es6-npm/ is incomplete

carlosmintfan avatar Sep 09 '24 19:09 carlosmintfan

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.

tiny-stale-bot avatar Sep 11 '25 00:09 tiny-stale-bot

Please keep open

carlosmintfan avatar Sep 11 '25 12:09 carlosmintfan

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).

carlosmintfan avatar Oct 06 '25 19:10 carlosmintfan