2amigos / yii2-ckeditor-widget

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

replace click event by native #81

Closed sashsvamir closed 7 years ago

sashsvamir commented 7 years ago

Before, csrf token added to post request only when "filebrowserUploadUrl" or "filebrowserImageUploadUrl" has been set in clientOptions. But if you use dropped or pasted upload, csrf token not apply to post request. I think "click" event can be replaced by native "fileUploadRequest" event. After this csrf will be added to any upload actions of CKEditor.

Also, i fixed miss alias path to dosamigos-ckeditor.widget.js

tonydspaniard commented 7 years ago

checking...

tonydspaniard commented 7 years ago

@sashsvamir I like the idea, but can you describe me an scenario to test this? I have found a bug and some issues on your javascript but I would be more than happy to modify it if I can see the issues it solves as its not very clear to me by the comments above.

Can you describe a step-by-step scenario? Thank you in advance!