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.

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);
}