angularjs - Adding angular-ui-tinymce to JHipster - gulp inject issue -
i have project generated jhipster (https://jhipster.github.io/).
i added dependency angular-ui-tinyme via command below.
bower install angular-ui-tinymce --save
after that, ran gulp inject , following injected index.thml
<script src="bower_components/angular-ui-tinymce/src/tinymce.js"></script>
however, did not inject following caused usage of tinymce fail.
<script src="bower_components/tinymce/tinymce.js"></script>
manually adding missing inject works love have automatically injected via gulp.
anyone experience in solving similar issues before?
looking forward advise.
update: per accepted answer below, solution add following override entry jhipster project bower.json file.
"tinymce": { "main": [ "tinymce.js" ] }
i having same problems installing tinymce on bower. problem lies on fact bower.json file in tinymce package wrong or incomplete:
{ "name": "tinymce", "description": "web based javascript html wysiwyg editor control.", "license": "lgpl-2.1", "keywords": [ "editor", "wysiwyg", "tinymce", "richtext", "javascript", "html" ], "homepage": "http://www.tinymce.com", "ignore": [ "readme.md", "composer.json", "package.json", ".npmignore", "changelog.txt" ]
}
the file missing main property. solution coming gaƫl add in bower.json of project override entry tinymce. here working example
Comments
Post a Comment