ngx-admin-bundle-support icon indicating copy to clipboard operation
ngx-admin-bundle-support copied to clipboard

TinyMCE error on ngx-admin nodejs + e-comm

Open mhhonline opened this issue 6 years ago • 4 comments

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

mhhonline avatar Aug 04 '19 20:08 mhhonline

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

valentinkononov avatar Aug 19 '19 14:08 valentinkononov

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

mhhonline avatar Aug 21 '19 18:08 mhhonline

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.

yggg avatar Aug 23 '19 16:08 yggg

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

valentinkononov avatar Aug 27 '19 13:08 valentinkononov