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.

TinyMCE: Style sheets 'skin.min.css' and 'content.min.css' not found

Community Alums
Not applicable

Hello community,

 

I'm trying to implement the TinyMCE editor in a UI page. In my PDI everything is working fine, but on a customer instance I get an error which indicates that the CSS for the editor is missing. See specifics below.

 

Implementation in UI page

	<script src="/scripts/tinymce4_4_3/tinymce.full.jsx"></script>

	<script>
		tinymce.init({
			mode : "specific_textareas",
			editor_selector : "mce",
			width: '100%',
			height: '200px',
			menubar: "tools",
			toolbar: 'undo redo | bold italic | alignleft aligncenter alignright | bullist numlist'
		});
	</script>

   <form>
       <!-- HTML omitted -->
      <textarea class="form-control modal-textarea mce" id="desc" type="text"></textarea>
      <!-- HTML omitted -->
    </form>

 

UI Page result

In the UI page the HTML description is empty. It is not showing.

 

briannice_0-1754381181205.png

 

 

CSS error

When I look in the browser, it looks that there is some CSS that is not found:

  • scripts/tinymce_default/node_modules/sn-tinymce/js/tinymce/skins/lightgray/skin.min.css
  • scripts/tinymce_default/node_modules/sn-tinymce/js/tinymce/skins/lightgray/content.min.css

 

Does anyone know how I can fix this? I don't have this is error in my PDI. DO I have to use a different version? And how can I check which version to use?

 

Thank you for your help in advance!

 

KR Brian

4 REPLIES 4

Ct111
Tera Sage

1. both your PDI and customer instance are on the same version of Servicenow ?

 

2. Also crosscheck if you have the below plugin in your instance while searching it.

 

Ct111_0-1754384820884.png

 

Community Alums
Not applicable

Both instances on Yokohama. PDI is on patch 5, customer instance on patch 4. Would that be the issue?

Ct111
Tera Sage

have you crosschecked plugin as well , which i mentioned above?

Community Alums
Not applicable

Yes, both version 1.0.0. En the app 'sn-custom-tinymce-scoped-app' is both times on version 27.0.17.