# Migration

> Move to Editor42, the maintained MIT-licensed editor: from any TinyMCE version without a rewrite, or from CKEditor 4 after its end of life (EOL).

Source: https://editor42.com/docs/migration  
Every page of editor42.com has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://editor42.com/llms-full.txt

## From TinyMCE

Editor42 keeps TinyMCE's API, configuration options and plugins, so moving a TinyMCE integration to it is a swap rather than a rewrite. It works from any TinyMCE version, and the steps are the same whichever release you are on:

- **Self-hosted**: replace the TinyMCE directory with the Editor42 distribution and point the script tag at `editor42.min.js`.
- **CDN**: load `https://cdn.editor42.com/editor42/latest/editor42.min.js` in place of the Tiny Cloud URL. Editor42 needs no API key.
- **Framework components**: the TinyMCE wrappers for React, Vue, Angular, Svelte, jQuery and the Web Component each have an Editor42 fork with the same props, events and component names.

`tinymce.init()` keeps working, because Editor42 sets `window.tinymce` as an alias of `window.editor42`. What can need an edit is code that reaches into the editor by its brand-bearing names, such as the `.tox` classes of its UI, the `mce` commands and the `x-tinymce/html` clipboard type. The guide lists every one of them.

## From CKEditor 4

CKEditor 4 reached its end of life (EOL) on June 30, 2023, and 4.22.1 is its last open-source release. Editor42 is a different editor, so moving a CKEditor 4 integration to it is a port: the guide maps the script, the configuration options, the toolbar buttons, uploads, the API and your plugins to Editor42's, and shows what to check in the content CKEditor 4 saved.

- [Migration from TinyMCE](https://editor42.com/docs/migration/from-tinymce): Step by step: the script, the CDN URL, the init call, the framework packages and what your own code may need.
- [Migration from CKEditor 4](https://editor42.com/docs/migration/from-ckeditor-4): Step by step: the script, the options and toolbar buttons, uploads, the API, your plugins and your saved content.
