
外掛標籤
開發者團隊
原文外掛簡介
Editor42 brings modern classic editing to WordPress, your way. Out of the box it adds an Editor42 block to the block editor (Gutenberg): free-form rich text with a real toolbar, right between your other blocks. Flip one switch and it goes further, disabling the block editor and restoring the full classic editing screen. Editor42 is a free, MIT licensed fork of TinyMCE with security fixes, so either way you get an actively maintained WYSIWYG rich text editor with the workflow you already know.
Why replace the TinyMCE in WordPress
WordPress still edits classic content with an outdated TinyMCE: version 4.9.11, released in July 2020 and the last TinyMCE 4 there is. The classic editor, the Classic block and the visual editor fields of themes and plugins all run on it. TinyMCE’s later releases fixed a series of cross-site scripting (XSS) issues, and none of those fixes was ever released for TinyMCE 4. Editor42 is an up-to-date fork with those fixes, and it keeps getting updates.
The plugin is fully self-contained. It ships its own editor and never depends on the TinyMCE copy inside WordPress core, so it keeps working on future WordPress versions that no longer load one. There are no accounts and no cloud requests; the plugin itself loads nothing from outside your site.
The plugin’s own code ships as readable source. The bundled engine is Editor42 42.0.0, shipped minified with the readable file next to every minified one; its source is the editor42 branch of https://github.com/editor42com/editor42 (its 42.0.0 release commit) and its built files are https://github.com/editor42com/editor42-dist (tag 42.0.0). The FAQ has the build steps.
What you get
An Editor42 block for the block editor: free-form rich text stored as plain HTML, with its own section at the top of the block inserter, a toolbar that stays in view while you scroll a long text, and fullscreen editing over the whole window. It edits in place wherever the block editor shows it: posts and pages, the Site Editor, the pattern editor and the device previews.
Turn a Classic block, paragraphs, headings, lists, quotes and other text blocks into an Editor42 block, several at once too, and turn it back into separate blocks with one click.
A Default editor switch: keep the block editor with the Editor42 block, or disable it and bring the classic editing screen back. Everything is reversible: switch back or deactivate, and your editors are stock again while your content stays plain HTML.
Editor42 in every classic editor area if you want it there: product descriptions, text widgets and other plugin fields (on by default, one checkbox to turn off). A field that asks for the lean toolbar or for no Add Media button gets exactly that.
A rich toolbar out of the box: two rows with tables, colors, emoji, code view, find and replace, accordions and more, with the menubar above it. A leaner Simple preset is one click away, and the menubar has a switch of its own.
A drag and drop toolbar configurator: arrange the buttons and the lines your way, by mouse or by keyboard, and load a built-in preset any time.
The WordPress media library wherever a picture comes in: Add Media, the Browse button of the image dialog, and pictures you paste or drop into the text, which are uploaded to the library. Image alignment and captions are stored exactly as the classic editor stored them, and the older spellings are read too.
The WordPress link dialog with search over your existing posts and pages.
WordPress’s own Text tab, with its quicktags, next to the Visual tab.
Live previews for galleries, embeds and media shortcodes right in the editor, with the shortcode text preserved byte for byte.
Insert/edit media on the Full-featured toolbar: a video or audio file gets a player, and a link to YouTube, Vimeo or any other site WordPress can embed is stored as the link on its own line, so the site embeds it the WordPress way for every user role.
Every wp_editor() spot that asks for a visual editor is covered: Text widgets (with their Visual/Text tabs and Add Media), WooCommerce product descriptions and other plugin integrations. Spots that never had a visual editor, like comment editing and bbPress forms, stay exactly as they are.
A right-to-left site gets a right-to-left editor.
Full compatibility with ClassicPress 2.x.
Content stays yours
Content is stored the way the classic editor always stored it: standard HTML in post_content, paragraphs restored by wpautop on output, captions as the regular shortcode. Whatever the classic editor kept is kept here too: icon fonts, the empty lines between paragraphs, and the embeds WordPress lets a user add. Scripts and style blocks are the exception: the editor drops them when a post is edited in Visual mode. A post written in the block editor keeps its blocks when you open and save it on the classic screen. Nothing proprietary is written into your posts or your database: the plugin stores one option, and uninstalling removes it.
