akveo / ngx-admin-bundle-support

Support repository for ngx-admin backend bundles with issues tracking, instructions and code samples
58 stars 32 forks source link

TinyMCE error on ngx-admin nodejs + e-comm #19

Open mhhonline opened 4 years ago

mhhonline commented 4 years ago

Greetings,

I have bought "ngx-admin Backend Bundle Node + E-comm"

on TinyMCE page: tinymce:1 Refused to apply style from 'http://localhost:4200/pages/assets/skins/lightgray/content.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Regards, Mohammed

valentinkononov commented 4 years ago

Hi Mohammed,

This is a feature, also available as is in ngx-admin module, we have no changes in it for bundles. But anyway, I cannot reproduce the issue as you describing. could you try again on the latest code and share me a screenshot?

Thanks

mhhonline commented 4 years ago

hi Valentin,

here is the screen-shot. do you keep track of the version on any place? this is for backend "name": "bundle-node", "version": "1.0.0",

this is for frontend "name": "ngx-admin-bundle", "version": "3.2.1",

Screen Shot 2019-08-21 at 9 08 36 PM
yggg commented 4 years ago

Hi @mhhonline! The issue is that TinyMCE tries to load skin by URL relative to the current path pages/editors/tinymce/assets/skins/... when it should be /assets/skins/.... I've fixed this in ngx-admin, see the pull request. Until bundles are updated to a fixed version, you can implement the fix on your side. You need to set an absolute path for skin_url instead of relative. See changed files on ngx-admin pull request for a code sample how it could be done.

valentinkononov commented 4 years ago

thanks a lot, I will merge this fix into bundles as well!