question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to load theme when skin: false

See original GitHub issue

Bug

Current behaviour: When specifying skin: false in the config object, it should not try to load any skins or themes. As I’m running tinymce locally, it will never find the theme files.

What is the expected behavior? It should not try to load any themes.

This seemed to work when it was in cloud mode (but took 5-10 seconds to load, way too long). I am now including tinymce directly in my angular.json file, as follows:

"scripts": [
    "node_modules/tinymce/tinymce.min.js"
]

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE? “tinymce”: “4.8.5”, “@tinymce/tinymce-angular”: “2.3.1”,

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
lnewsoncommented, Mar 8, 2019

Awesome, glad to hear you got it working! Also thanks for including you final configuration. I’ll see what I can do about getting something better documented.

3reactions
sam-s4scommented, Mar 8, 2019

Ok thanks to your help I got it working 😄 Excellent!

I’ll put my stuff here so that anyone else in the same situation can get theirs working too…

package.json

"@tinymce/tinymce-angular": "3.0.0",
"tinymce": "5.0.2"

angular.json

"styles": [
    "app/index.scss",
    "node_modules/tinymce/skins/ui/oxide/skin.min.css"
],
"scripts": [
    "node_modules/tinymce/tinymce.min.js",
    "node_modules/tinymce/themes/silver/theme.min.js",
    "node_modules/tinymce/plugins/advlist/plugin.js",
    "node_modules/tinymce/plugins/code/plugin.js",
    "node_modules/tinymce/plugins/image/plugin.js",
    "node_modules/tinymce/plugins/link/plugin.js",
    "node_modules/tinymce/plugins/lists/plugin.js",
    "node_modules/tinymce/plugins/searchreplace/plugin.js",
    "node_modules/tinymce/plugins/wordcount/plugin.js",
    "node_modules/tinymce/plugins/paste/plugin.js",
    "node_modules/tinymce/plugins/table/plugin.js",
    "node_modules/tinymce/plugins/autoresize/plugin.js"
]

config:

skin: false,
content_css: '/app/assets/tinymce-content.min.css'

(you have to copy node_modules\tinymce\skins\content\default\content.min.css to your assets directory as part of your build process)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamically loading TinyMCE - wrong plugin, theme paths
The only solution I could come up with is to copy and rename the theme.min.js, and plugin.min.js files to theme.js and plugin.js and...
Read more >
Download or remove Chrome themes - Chrome Web Store Help
Remove a Chrome theme · On your computer, open Chrome. · At the top right, click More More and then Settings. · Under...
Read more >
Creating & Removing Total Theme Skins (deprecated)
Important: Skins were removed from the theme in 2015 in version 3.0.0 for various reasons (mainly the fact that you can now customize...
Read more >
Change a theme and make it the default in Word or Excel
On the Page Layout tab in Excel or the Design tab in Word, click Colors, and then click Customize Colors. Click the button...
Read more >
How to Change a WordPress Theme (Without Breaking Your ...
However, if you want to do it safely, switching themes becomes more ... Set up a staging copy of your website; Install your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found