Use regular text editor instead of tiny MCE editor on knowledge article comments

BehelC
Tera Expert

The OOB Knowledge Article Comments widget uses a MCE editor for the user to fill in the text box on the portal. But it makes the comments on the platform side include html tags so if a user goes kinda crazy with the MCE editor it makes the comments hard to read. We manage all the feedback on the platform side because we actually hide the comments on the articles so people cant see them after they are published. We want to avoid an open conversation in the comments. Also our email server doesn't play well with html tags from external sources so the comments also look ugly in the notifications. 

So my question is this, is there a way to use a regular text editor field for the text entry for the comments?

I've tried using a regular textarea field but it seems to break the submit button and nothing happens. I've also looked at using the old KB Article Comments widget but it doesn't want to cooperate on the kb_article_view page. I'd like to keep using that page since its the recommended page to use so I'm seeing if there are any other ideas. 

I guess another potential solution would be using roles to limit who can view the published comments. Using the system settings to do role based things hides the whole widget. We want anyone to be able to comment, just not see the comments. Its just ideally, we try to manage all work on the platform instead of sending our techs to the portal. The portal is mainly seen as a customer view only

5 REPLIES 5

dmathur09
Kilo Sage
Kilo Sage

Hi BehelC,

You can update the property glide.ui.html.editor from tinymce to normal htmlarea. Refer below screenshot

find_real_file.png

Also if you do not want any toolbar option to be visible you can hide it by updating the dictionary attributes. Refer below screenshot.

find_real_file.png

 

Regards,

Deepankar Mathur

Link to docs for attributes details - https://docs.servicenow.com/bundle/sandiego-platform-administration/page/administer/form-administration/task/t_ConfigureTheTinyMCEHTMLToolbar.html

Regards,

Deepankar Mathur

That seems like it would effect the entire system though. I really just want to adjust that one text box on the Knowledge Article Comments widget. Its html code that creates the text box on the Service Portal. 

find_real_file.png

well i pointed to the textarea tag, its the sp-tinymce-editor one thats being used. if you comment out the tinymce editor, it will display the text area content but the submit button stops working