Service Portal: Widget not allowing more than one TinyMCE Editor/ Rich Text Editor (sp-tinymce-editor ) in Service Portal after ROME upgrade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2022 12:03 PM
After upgrading to ROME, we observed a strange issue with Service Portal's tiny-mce editor
In a Widget if we have more than one <sp-tinymce-editor> anything other than 1st one is not getting displayed.
Steps:
1. Go to Service Portal Widgets -> Create New -> Open in Widget Editor
2. Add below lines in HTML Template
<div>
<sp-tinymce-editor name="first" ng-model="data.first" ng-model-options="{getterSetter: true, height:'480', plugins: 'paste', paste_as_text: false}"></sp-tinymce-editor>
</div>
<div>
<sp-tinymce-editor name="second" ng-model="data.second" ng-model-options="{getterSetter: true, height:'480', plugins: 'paste', paste_as_text: false}"></sp-tinymce-editor>
</div>
3. Client Script
api.controller=function() {
/* widget controller */
var c = this;
c.data.first="<b> Hello </b> World! ";
c.data.first="<b> Bonjour le monde!</b>";
};
Save and see the Preview you'll find only one editor (PFA for sample output)
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022 02:31 PM
Hi,
This is a known problem KB1005368 closed as Working as expected.
Please refer the KB for workaround:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1005368
Best Regards,
Sandhya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2023 10:30 PM
Hi,
Have you found any solutions for this case yet @vamsi because i run into the same problem as you do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 07:47 AM - edited 04-02-2024 07:47 AM
I think is solved now
I was able to add more than one TinyMCE Editor in a widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 07:10 AM
I am facing a similar problem but the issue is with adding attributes to the sp-tinymce-editor, like font selection for example