Service Portal: Widget not allowing more than one TinyMCE Editor/ Rich Text Editor (sp-tinymce-editor ) in Service Portal after ROME upgrade

vamsi
Tera Contributor

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)

 

4 REPLIES 4

Sandhya Bellann
ServiceNow Employee
ServiceNow Employee

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

sieusaopolo15
Tera Guru

Hi,
Have you found any solutions for this case yet @vamsi because i run into the same problem as you do.

I think is solved now
I was able to add more than one TinyMCE Editor in a widget

ICaTonyBalde
Tera Expert

I am facing a similar problem but the issue is with adding attributes to the sp-tinymce-editor, like font selection for example