Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Widget js loads before jquery #125

Open
dePhantum opened this issue Mar 17, 2018 · 1 comment
Open

Widget js loads before jquery #125

dePhantum opened this issue Mar 17, 2018 · 1 comment
Labels

Comments

@dePhantum
Copy link

I am seeing the following error.

jquery.js?v=1505308094:5 Uncaught Error: jQuery should be loaded before CKEditor jQuery adapter.
at jquery.js?v=1505308094:5
at jquery.js?v=1505308094:10

Is there an option to output the jquery script myself? the jquery is loaded last for this site.

@tonydspaniard
Copy link
Member

@dePhantum that is very difficult if you haven't changed the AssetManager component of your application. The reason is due that the widget is using https://github.com/2amigos/yii2-ckeditor-widget/blob/master/src/CKEditorAsset.php#L19 to register its assets and as you can see it depends on its Yii query package.

PS: Apologies for being so late to respond.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants