In the last two projects I have worked on the TinyMCE editor plays a huge part of the applications I developed for the Service Portal (a dynamic pdf generator and a new email client supporting secure emails).
I found the editor to be very difficult to customize and prevent it from altering the html content. The latest issue I have encountered is an issue with new lines. The editor inserts either P or BR. The problem is that when BR is inserted it is the version <br /> and we found that in rare cases this can actually lead to loss of editor content.
So I am looking for alternative editors for future projects.
So far I have tested following alternatives very briefly. The tests consists of only a few things so far:
- Can I instantiate the editor and edit content?
- Can I get the content via event when user has modified it?
- Can I set the content for example when user clicks a button?
- Can I insert images from clipboard
Product | Type | Works | Comments | Link |
TinyMCE 5 | Commercial | No | Not compatible | tiny.cloud |
CKeditor 5 | Commercial | No | Unable to test | ckeditor.com |
Froala 4 | Commercial | Yes | Easy pdf export | froala.com |
Quill | Open Source | Yes | quilljs.com | |
Pell | Open Source | Yes | jaredreich.com/pell | |
I still need to do more thourough testing but I kind of like Froala.
As for TinyMCE 5. This seems like the obvious choice since ServiceNow is already using version 4. However version 5 requires the page to be rendered in standards mode and that is not the case in ServiceNow.
Do You know any editors that will work in Service Portal or as a component in Now Experience Framework ?
If you do please comment below or send me a message on LinkedIn.
