Home Tinymce failed to load skin.min.css in android
Reply: 1

Tinymce failed to load skin.min.css in android

setu basak
1#
setu basak Published in 2018-02-14 10:01:50Z

I am using angular2-tinymce library to work with tinymce editor for android in my project. It is perfectly working in browser using ionic serve. But when i tried to run in android, skin.min.css file is not loaded and as a result, tinymce editor is not there in the app.

In my project src folder:

And in my project platforms folder:

setu basak
2#
setu basak Reply to 2018-02-15 07:03:43Z

I had to override the skin path(skin_url) of TinymceModule to load the css files from assets folder in android.

@NgModule({
  declarations: [
    AddProgressNotePage,
  ],
  imports: [
    IonicPageModule.forChild(AddProgressNotePage),
    TinymceModule.withConfig({
      skin_url: 'assets/tinymce/skins/lightgray' // Need to provide a fixed path
    })
  ]
})
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.299823 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO