Open NikhilRadadiya opened 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
ng build
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
assets/tinymce/plugins/textcolor/plugin.js
What m I missing?
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';
npm install tinymce --save
import 'tinymce/plugins/emoticons/plugin.js';
I've added config options in app.module.ts
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 workingI've textcolor folder and plugin.js inside it in my assets folder like
assets/tinymce/plugins/textcolor/plugin.js
What m I missing?