Skin false does not prevent loading of skins
See original GitHub issueWhat is the correct configuration with Create React App when loading resources yourself?
I get this so far:
import React from 'react';
import { Editor } from '@tinymce/tinymce-react';
import 'tinymce/tinymce';
import 'tinymce/themes/silver/theme';
import 'tinymce/skins/ui/oxide/skin.min.css'
import 'tinymce/skins/ui/oxide/content.min.css'
import 'tinymce/plugins/link';
import 'tinymce/plugins/code';
const RichTextEditor = () => {
return (
<Editor
initialValue="<p>hello</p>"
init={{
skin=false,
plugins: ['link', 'code'],
toolbar: 'bold italic',
}}
/>
);
};
RichTextEditor.propTypes = {
...Editor.propTypes,
};
export default RichTextEditor;
But I still get
tinymce.js:5320 Resource interpreted as Stylesheet but transferred with MIME type text/html: “http://localhost:3000/static/js/skins/content/default/content.css”.
Also there should be more clarification in documentation that modern theme is only for version 4 and you should use oxide with version 5, because in every part of the documentation, there is theme: modern and took me a while before I figured out that I should use oxide instead.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
COD: Warzone 'False Prospector' camo not staying on loadout ...
Players say the skin is unequipped after they leave gunsmith or after the end of every game.
Read more >Is There A Way To Disable Item Skins : r/playrust - Reddit
I think the only way to completely disable skins is to use a trick to stop Workshop from downloading Rust skins. Even if...
Read more >Telerik Web Forms Skins - RadAjaxLoadingPanel
If the Skin property is set, the loading panel will NOT hide the updated control entirely, because transparency is applied by default from...
Read more >Rails / Webpack: TinyMCE cannot load skins (404 (Not Found))
I tried putting the skins folder directly in the root directory, in a packs folder placed in the root and in the javascript/packs...
Read more >How to Enable Skins on a Minecraft Server - YouTube
Your browser can 't play this video. Learn more. Switch camera.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems like there is a bug in TinyMCE 5 that is loads the content css even if skin is set to false, we will fix this in a future version but for now I think you can skip loading the content css by setting the
content_css
setting tofalse
as well.skin:false
also fixed the issue for me with Webpack 4 and TinyMCE 4, and thecontent_css
is set to ourapp.css
. I found this solution from https://community.tiny.cloud/communityIdeaDetail?id=08761000000AT6yAAG and then found this github issue when I was trying to see ifskin:false
was a valid option to use.