Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
TinyMCE Custom Styles icon

TinyMCE Custom Styles

v1.1.5
by Tim Reeves · 4.1 (14 reviews)

Enhance the TinyMCE visual editor with a dedicated stylesheet, a stylesheet shared with the frontend, and custom styles in the 'Formats' dro …

8K+ active installs Updated Jun 29, 2024 Tested to 6.5.5 Requires PHP 5.6
Try Demo Download
Pre-installed Ready in ~10s No card

About TinyMCE Custom Styles

The author of the TinyMCE Custom Styles plugin is looking for someone to take over maintaining it because they are retired and have other projects. The plugin adds custom CSS files to the TinyMCE visual editor and allows you to create custom styles for the editor's 'Formats' dropdown. It is currently being used by over 9,000 active installations.

Changelog

1.1.5 (2023-08-05)

  • Security – Overzealous sanitization relaxed to allow “/” in directory path input

1.1.4 (2023-06-06)

  • Security – More sanitize and escape admin panel settings inputs, as requested by Jetpack Support

1.1.3 (2023-01-27)

  • Security – Sanitize and escape admin panel settings inputs (rawrly)
  • Documentation – Add note in description to report security bugs through Patchstack

1.1.2 (2023-01-24)

  • Removed broken link in credits

1.1.1 (2021-10-25)

  • Bugfix – call of wp_enqueue_scripts corrected to wp_enqueue_style
  • Enhancement – enqueue both stylesheets also as Gutenberg block assets

1.1.0 (2021-04-07)

  • editor-style.css and editor-style-shared.css: Both files must be present or a (non-empty) stub will be created; but if a file is zero bytes long, it will not be loaded / enqueued at all
  • Styles defined for the ‘Formats’ dropdown which do not have a class now do not create an empty class attribute in HTML
  • Regrouping of items on the settings page to make clearer which elements belong to which functionality
  • Very major rework of the documentation – both in the description page and on the settings page (backend)

1.0.10 (2021-03-07)

  • Fixed a typo which prevented custom style deletion
  • Documented that Gutenberg classic blocks not supported

1.0.9 (2020-07-01)

  • Typo-correction in plugin description

1.0.8 (2018-01-13)

  • Improved plugin description

1.0.7 (2017-12-28)

  • Learned more on SVN and really deleted/added language files

1.0.6 (2017-12-28)

  • Removed unneccesary and outdated translation files

1.0.5 (2017-12-28)

  • Small formal improvements re translation
  • Added .pot string translation file

1.0.4 (2017-08-10)

  • Standard entries and any other previous entries (from other plugins) in TinyMCE’s Formats dropdown are now preserved
  • Added a checkbox option to allow inserting the custom styles in a submenu “Custom Styles” in the Formats dropdown
  • Added a checkbox option to govern whether to preserve the standard Formats entries or remove them. This option gets overwritten (to ‘preserve’) by the ‘WP Edit’ plugin with option ‘Add Pre-defined Styles’ checked.
  • Minor updates to german translation
  • Outdated spanish and serbien translations removed
  • Tested and described on WordPress MultiSite
  • Various other improvements in the description

1.0.3

  • Updated german translation
  • Made some table header names translatable
  • Shortened some table input fields for better layout

1.0.2

  • This update improves the settings page as follows
  • Added second save button
  • Complete rework of admin notices
  • Many minor layout and message improvements
  • Corrected several loop counter irritations
  • Improved how missing style files are tested
  • Improved logic and messages around custom directory
  • Added more explanation and sample content in auto-created editor-style-shared.css
  • Reduced PHP Warnings and Notices to zero

1.0.1

  • Initial release as fork.

ToDos

  • Warn admin user when leaving changed settings page
  • Add a JS function to insert a row after another row
  • OR better: Make style rows sortable by drag and drop
  • Nice to have: Rewrite the code from procedural to OOP
  • Get more translations

Try other plugins