Using angular-ui-tinymce with JSPM - unable to load templates and plugins -
i have same problem has been documented on github here. ui-tinymce references number of dependencies cannot reached in application.
http://localhost:8080/jspm_packages/github/tinymce/tinymce-dist@4.3.12/themes/modern/theme.min.js @ angular.js:6084 tinymce.js:9426 failed load: /jspm_packages/github/tinymce/tinymce-dist@4.3.12/themes/modern/theme.min.js
i able use workaround suggested in github issue above, changes baseurl. works fine in development environment. however, when run jspm bundle-sfx not pick these dependencies , left in same situation without templates or plugins.
what best way address this? can angular-ui-tinymce broken down dependent files available in separate packages? or should use gulp around problem?
i tried using gulp concatenate missing files, not work because default tinymce still expects files @ relative locations uses in own internal file structure.
i still think helpful tinymce provide separate packages common themes, admit there lot of themes , plugins fair amount of work.
in end simplest thing copy theme , plugin files "correct" relative directories within own source code. way can change relative baseurl tinymce , correct when run in production development environments.
this way can run jspm bundle-sfx , bundle these files along else. may have import files explicitly if not serve area statically in application. example:
import 'sysadmin/app/tinymce/themes/modern/theme';
Comments
Post a Comment