An opinionated reconfigureation of the default wordpress TinyMCE settings.
squarecandy.github.io/squarecandy-tinymce
WordPress is awesome, but some of the TinyMCE rich text editing options that come out of the box are not ideal for less web-savvy editors and clients. This plugin provides some modifications to the standard editor buttons and features that will make it easier for clients to have as all the formatting options that are good for them and remove options that can break a custom site design.
- Removes the toggle advanced button. This is confusing to many users who can't find the features they are looking for. Just provides 1 row of editor buttons.
- Removes features such as strike through, underline (should be reserved for links online, not emphasis), full justification (generally looks bad online, but clients like to use it), and several other less used and confusing features.
- Simplifies the dropdown list of heading and block types available.
- Adds several formats that can be added to a paragraph
- Button - add this format to a paragraph to make the links into "call to action" buttons
- Small - a format for create a paragraph of smaller text, such as a "terms & conditions" section.
- Big - enlarge the text of a certain paragraph. This helps client not mis-use heading elements for entire paragraphs when they want slightly larger text for emphasis.
- Limits color palette in the text colorpicker to grayscale only by default.
- Allows for adding up to 4 custom colors that compliment the site's design and branding that the user may use. (Under Settings > Writing)
- Adds the current theme's style.css to the editor to make what you see in TinyMCE match the live site better
- Allows for adding additional css files to the editor styles. These could be external resources such as google font stylesheets, additional theme css you want to load in the editor, or a custom stylesheet. Just add the URL you want to add in the Additional CSS field under Settings > Writing. For multiple files, add one per line.
- Cleans up pasted content copied from other websites, Word, Google Docs, etc.
As the description states, this plugin makes opinionated changes to the default setup. I don't plan to grow this into a bulkier plugin that allows you to modify and customize all aspects of TinyMCE. Try TinyMCE Advanced or other existing plugins for that purpose.
Gutenberg will be great for some things, but we also believe that using custom fields (via ACF) and a basic WYSIWYG body editing area has a place in WordPress development.
Continued use of this plugin should be used in conjunction with the Classic Editor plugin in most circumstances.
- fix: don't strip br, hr, blockquote on paste
- fix: css file overrides, allow in both child and parent theme.
- fix: don't load frontend-style.css in editor if disabled in settings
- fix: $_SERVER vars must be quoted in php 7.4+
- add phpcs rules and do plugin code cleanup
- New feature: Clean HTML pasted into the visual editor
- add option to turn off colorpicker
- add option to turn off frontend-style.css
- Add compatibility with GitHub Updater
- Add clear formatting button
- bugfixes
- adds dotted line to define right side of editor column width
- use tabs and other corrections to conform to WordPress coding standards
- Adds column width option
- Adds checkbox to optionally add the theme style.css
- Adds a check to optionally remove editor-style.css or editor.css from the existing theme
- The very first version!