Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Text editor on Service Portal widget

Ashley Giannot2
Kilo Contributor

I have a requirement for a text editor on the portal, similar to the "HTML Script" field type you see in email notifications. It needs similar functionality that the "HTML Script" field provides.
I know about some Service Portal functionality like <sp-record-picker>, is there something similar for the "HTML Script" field?
Trying to avoid a custom JS library for a text editor.

6 REPLIES 6

Gaurav Bajaj
Mega Sage

Hi Ashley,



There is a HTML type variable in record producers as well.


You can add it there and display on service portal for a cat item/record producer.



find_real_file.png




find_real_file.png




Please mark correct/helpful based on the impact of the response.




Thanks


Gaurav


Hi Gaurav,



Thank you for your reply, however I am creating a very custom Widget for a specific purpose and I need to add an inline text editor.


Oh ok, I am afraid then you have to use external JS only to achieve it,


TinyMCE is the one ServiceNow uses so you might want to utilize the same.




https://www.tinymce.com/features/


Ashley Giannot2
Kilo Contributor

Hi Guys,

 

Just as a follow up, I ended up including the summernote.js as it provides a highly customisation text editor for a portal widget.

https://summernote.org/

 

Kind Regards

Ashley Giannotti