Ledzz / angular2-tinymce

Angular 2 component for TinyMCE MCE WYSIWYG editor
https://angular2-tinymce.surge.sh
65 stars 37 forks source link

plugins not working after generating build #51

Open NikhilRadadiya opened 6 years ago

NikhilRadadiya commented 6 years ago

I've added config options in app.module.ts

TinymceModule.withConfig({      
      plugins: ['link', 'paste', 'table','textcolor'],
      auto_focus: false
    })

but after ng build I'm putting it under http://example.com/mysite/myproject/#/users/create but it shows error in console and in editor textcolor not working

Failed to load plugin: textcolor from url /assets/tinymce/plugins/textcolor/plugin.js

I've textcolor folder and plugin.js inside it in my assets folder like assets/tinymce/plugins/textcolor/plugin.js

What m I missing?

Bl4ckPix3l commented 6 years ago

I had the same problem. I solved it by install npm install tinymce --save and import the plugins like import 'tinymce/plugins/emoticons/plugin.js';