Is there a way to enable the 'codesample' button in tinyMCE?
In ServiceNow there are two places that tinyMCE editor can be found:
- In the Platform specifically Knowledge
- In Service Portal
These are two separate iterations of tinyMCE. TinyMCE found in the Platform does not support the 'codesample' button.
Service Portal currently only supports the 'codesample' button which is on by default. You can find this by going to an out of the box Service Portal and go to Community click on "Ask a Question" which will bring up the tinyMCE editor to write the question.
There you will see the 'codesample' button in the toolbar: