Closed djleonskennedy closed 7 years ago
Hi - can you clarify how you solved this issue? I saw you mentioned loading the plugins globally, but how was that accomplished?
I have the exactly same error. Can you explain how you resolved this please ?
It has been a while since I fixed this for myself, but I think that just importing the individual plugins in app.module (or a shared module in my case) worked for me:
import 'assets/tinymce/plugins/fullscreen/plugin.js'; import 'assets/tinymce/plugins/image/plugin.js'; import 'assets/tinymce/plugins/media/plugin.js'; import 'assets/tinymce/plugins/hr/plugin.js'; import 'assets/tinymce/plugins/insertdatetime/plugin.js'; import 'assets/tinymce/plugins/preview/plugin.js'; import 'assets/tinymce/plugins/print/plugin.js'; import 'assets/tinymce/plugins/textcolor/plugin.js'; import 'assets/tinymce/plugins/colorpicker/plugin.js'; import 'assets/tinymce/plugins/emoticons/plugin.js'; import 'assets/tinymce/plugins/charmap/plugin.js';
This is just before the @NgModule Declarations, Imports, etc.
Oh ok, thank you !
Hi, It's woking by following comment above but not on prod environment. Any suggest?
Hi, It's woking by following comment above but not on prod environment. Any suggest?
I got same issue with prod mode.
I fixed it by add js to angular.json
"scripts": [
"node_modules/tinymce/tinymce.min.js",
"node_modules/tinymce/themes/modern/theme.min.js",
"node_modules/tinymce/plugins/link/plugin.min.js",
"node_modules/tinymce/plugins/paste/plugin.min.js",
"node_modules/tinymce/plugins/table/plugin.min.js",
"node_modules/tinymce/plugins/autoresize/plugin.min.js"
],
Just make sure js loaded.
EXCEPTION: Uncaught (in promise): TypeError: Cannot read property 'nodeName' of null TypeError: Cannot read property 'nodeName' of null
without plugins all works fine
config: