Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

How to hide the formatting toolbar for an html variable on catalog item?

Avinash_Patil1
Giga Guru

How to hide the formatting toolbar for an html variable on catalog item?

find_real_file.png

 

expected output is 

find_real_file.png

5 REPLIES 5

LeonLalaev
Tera Contributor

The following code works for me 😏 (Yokohama patch2-hotfix2)

function onLoad() {
   var sheet = top.window.document.styleSheets[0];
   sheet.insertRule('.tox-editor-header { display: none !important; }', sheet.cssRules.length);
}