2amigos / yii2-ckeditor-widget

CKEditor WYSIWYG widget for Yii2.
https://2amigos.us/open-source/ckeditor-widget
Other
172 stars 112 forks source link

Not Found asset files for production #105

Closed mstzn closed 7 years ago

mstzn commented 7 years ago

When I run website in production mode, widget not using assets folder, looking for files directly from root dir. But when in development mode looking file folders from assets folder. Is there any configuration to fix this problem?

"config.js?t=H0CF 404 (Not Found)" "lang/en-gb.js?t=H0CF 404 (Not Found)" "skins/moono-lisa/editor.css?t=H0CF "

composer file: "require": .... "2amigos/yii2-ckeditor-widget" : "*" ...

mstzn commented 7 years ago

I find the reason to not work. If you using "\rmrevin\yii\minify\View" for minify your assets, this widget cant find files in assets folder because of minify changing the location.

Solution is, set minify "jsPosition" variable to "\yii\web\View::POS_READY" in config.

Thanks..