Bundling docs are incorrect and incomplete
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, vite, webpack
- Domain
- documentation
Research direction
Start with the TinyMCE 6 Vite ES6 npm and Webpack ES6 npm documentation pages, especially the CSS import examples. Reproduce the Vite imports and iframe behavior, then update the examples and explanations so the bundling guidance works and the Webpack page is complete.
Written by the indexing model from the issue text.
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
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
- Dominant language
- JavaScript
- Stars
- 96
- Forks
- 219
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 26
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tinymce/tinymce-docs
-
bug
Difficulty 2/5 Half a day Newbie friendliness 45/100
tinymce/tinymce-docs#3588 · 2 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
tinymce/tinymce-docs#2778 · 2 comments ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
tinymce/tinymce-docs#2155 · 2 comments · 1 reaction ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
tinymce/tinymce-docs#1900 · 4 comments ·
All issues in tinymce/tinymce-docs
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
curation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#186 ·
-
light
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
aemdemos/patients-stryker#253 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·