Hide editor HTML variable type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2017 09:17 AM
Hi guys,
I was wondering, there is some way to hide the html editor when i display a catalog item form?
I create a variable html, and when i display the form, it show the editor, and i only want the information.
I try to reproduce this ServiceNow KB: Making HTML variable read-only on Geneva still shows the editor bar and large text bo... and doesnt work! Could be a problem is this is in geneva and i have istanbul?
Thanks in advance!
Regards
-Sergio V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2017 09:29 AM
please use the below function say in OnLoad (client scripts)
function onLoad() {
var sheet = window.document.styleSheets[0];
sheet.insertRule('.mce-toolbar-grp { display: none !important; }', sheet.cssRules.length);
sheet.addRule('.mce-toolbar-grp ', 'display: none !important;', -1); // IE likes to be different
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2017 09:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2017 09:51 AM
Please use same logic i.e. script to p[populate the table and you may try the script provided before to hie html editor on say onChange, etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2017 10:00 AM