Coder Social home page Coder Social logo

MIME type skin error about tinymce-angular HOT 10 CLOSED

tinymce avatar tinymce commented on June 13, 2024
MIME type skin error

from tinymce-angular.

Comments (10)

vctormb avatar vctormb commented on June 13, 2024 12

I fixed it partly with tinymce-angular v5.0.3 by setting the skin_url of the editor and copying the files in the assets folder.

So my markup looks like this:

<editor class="u-spacer--small" id="answerEditor" [init]="{skin_url: 'assets/skins/ui/oxide'}" .

Now I still get this error because the silver theme still wants to load the 'skins/content/default/content.css' file ...

Try to put the content like this:
content_css: assets/skins/ui/oxide/content.min.css

I'm creating a library, so I'll need to document that the developer will need to navigate inside my node_modules, copy the skin and paste inside his public folder. That's not good but unfortunately I guess that's the only option.

from tinymce-angular.

janvanuytrecht avatar janvanuytrecht commented on June 13, 2024 5

from tinymce-angular.

janvanuytrecht avatar janvanuytrecht commented on June 13, 2024 2

I fixed it partly with tinymce-angular v5.0.3 by setting the skin_url of the editor and copying the files in the assets folder.

So my markup looks like this:

<editor class="u-spacer--small" id="answerEditor" [init]="{skin_url: 'assets/skins/ui/oxide'}" .

Now I still get this error because the silver theme still wants to load the 'skins/content/default/content.css' file ...

from tinymce-angular.

fyrkant avatar fyrkant commented on June 13, 2024

How are you loading the skin, using the skin_url property in the config?

from tinymce-angular.

fyrkant avatar fyrkant commented on June 13, 2024

Closing due to inactivity.

from tinymce-angular.

Raiper34 avatar Raiper34 commented on June 13, 2024

Exact same issue here, I defined skins in angular cli config under styles, same as for example plugins (but plugins are in scripts)...

from tinymce-angular.

wouterda avatar wouterda commented on June 13, 2024

Same issue here. Only defining the skin in the "tinymce.init" method through "skin_url".
All other css is loading just fine.

from tinymce-angular.

sasos90 avatar sasos90 commented on June 13, 2024

So whats the conclusion? Any solutions here?

from tinymce-angular.

vctormb avatar vctormb commented on June 13, 2024

I'm facing this issue too.

I'm using React.. so I'm importing the css file inside my component because if I pass the skin_url inside the init object, it will not work. Btw, even if I import the css it still shows the 404 error to the css files, but the style works.

from tinymce-angular.

92Arbiter avatar 92Arbiter commented on June 13, 2024

If you use the following syntax, the copying is executed automatically:
{ "glob": "**/*", "input": "node_modules/tinymce", "output": "/tinymce/" }

You can find more info at the following link:
https://angular.io/guide/workspace-config#assets-configuration

from tinymce-angular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.