fishme / kirby_ckeditor

Visual Editor for Kirby2
GNU General Public License v2.0
10 stars 1 forks source link

Cross origin requests #3

Open m-artin opened 7 years ago

m-artin commented 7 years ago

It's nice to have the option for a powerful editor in Kirby! Not sure, if there is a good solution for the following Cross origin requests.

The console logs Cross origin requests in Chrome and Safari, after pressing any editor button (bold button for example). Error: XMLHttpRequest cannot load javascript:void('Bold'). Cross origin requests are only supported for HTTP.

Firefox gives a warning not to use synchronous XMLHttpRequests, when pressing the image editor button to open the image dialog.

And it looks like these requests trigger the Kirby Save-Page-Loading-Indicator.

fishme commented 7 years ago

I see, I will have a look on it.

fishme commented 7 years ago

that looks not funny... For the moment I have no idea. the cool one is, ckeditor is working, on the otherside I don't want js errors in the plugin.

m-artin commented 7 years ago

Unfortunately I currently have no idea either. I have tested to import some assets, as described here at the part Adding field assets: https://getkirby.com/docs/developer-guide/panel/fields But there are too many javascript files to add and the ckeditor path structure isn't working this way.