Migration from TinyMCE
From some point, TinyMCE changed its license from MIT to GPL. Editor42 is built from the latest MIT-licensed state of TinyMCE, so you get a maintained, secure rich text editor under a permissive license without rewriting your integration.
You can migrate from any version of TinyMCE — the process is the same regardless of which release you are currently on, and in most cases the switch is seamless.
Step by Step
Self-Hosted
Replace the TinyMCE directory with the Editor42 distribution and update your script tag:
- <script src="/js/tinymce/tinymce.min.js"></script>
+ <script src="/js/editor42/editor42.min.js"></script>
CDN
Update the CDN URL:
- <script src="https://cdn.tiny.cloud/1/KEY/tinymce/6/tinymce.min.js"></script>
+ <script src="https://cdn.editor42.com/editor42/latest/editor42.min.js"></script>
Init Call
- tinymce.init({
+ editor42.init({
selector: '#my-editor'
});
The old tinymce.init() call will also work — Editor42 sets window.tinymce as an alias for compatibility.
API Compatibility
TinyMCE APIs, events, configuration options, and plugins work with Editor42. Both window.editor42 and window.tinymce are available by default, so existing code that references window.tinymce will continue to work as-is.
If you want to disable the window.tinymce alias — reducing compatibility but getting rid of that TinyMCE-branded global — set EDITOR42_NO_SHIM before loading Editor42:
<script>window.EDITOR42_NO_SHIM = true;</script>
Technical Details
Editor42 rebrands the editor's identifiers — CSS classes, global variables, hooks, and MIME types — and reports itself as version 42 through majorVersion, while keeping the TinyMCE 6 API unchanged. For the complete list of renamed identifiers and the versioning scheme, see Technical Details & Compatibility.