Sitecore TinyMCE: New Life
Sitecore uses Telerik Rich Text Editor for a long time. It is quite a powerful and reliable editor. But sometimes it is really hard to extend it if you want to do something complex. And also, there are a lot of free open-source alternatives that could be better. And it is not a new idea, people from time to time ask, how to replace Sitecore RTE with something else.
One of the options is TinyMCE. This advanced rich text editor has different pricing plans. But even the free plan has too many features. It can cover 95% of editing cases.
And the idea to integrate Sitecore with TinyMCE also is not new. After a quick search, we are able to find:
- Mike Robbins Tiny MCE integration into SPEAK.
- Emanuele Ciriachi Tiny MCE integration into Content Editor.
Both modules are open-source and have Github repositories(1, 2). We are more interested in the extension of Content Editor that is why I took the Emanuele module as a basis. Then I started to work on improvements:
- There was added Unicorn serialization. It allows developers to work easier with Sitecore content items that are required for this module.
- The way, how TinyMCE is included in the project was changed. Instead of adding static frontend files, now Tiny MCE is installed as
- Version of TinyMCE was updated to 5.6.1
- Continuous integration and continuous delivery were configured using AppVeyor. Now, each commit to GitHub triggers AppVeyor build and provides Sitecore
.updatepackage as an artifact. This package could be installed on any Sitecore CM instance. If you are interested in how it was done, I described it in detail in my blog for another Sitecore module.
- SonarCloud was configured to ensure code quality. And, yeah, there are still many things that could be improved in code. Contributions are welcome!
- Added one more Sitecore field type. Now you should not choose between classic Sitecore RTE and TinyMCE. Now you have both at once. Rich Text editor has buttons to open Sitecore RTE as well as TinyMCE RTE.
- Added Sitecore 10 support.
- Changed the way how references are used. Locally copied assemblies were replaced with Nuget packages.
- Added style formats support.
- Improved local development experience: added publishing profiles and proper development setup description.
- Many other small improvements.
I hope all these changes will bring this module to a new life. But there is still room for other improvements. Contributions to the Github repository are welcomed. If you find any bugs - report them. If you fixed bugs or added new functionality - create pull requests.