foex-open-source / fos-ckeditor4

A Rich Text Editor for Oracle APEX based on CKEditor4.
MIT License
9 stars 5 forks source link

Javascript errors in some browsers #2

Open RichardAPickett opened 2 years ago

RichardAPickett commented 2 years ago

Hi, I'm using APEX 21.1.2 and have installed CKEditor4 in order to provide a way to edit email messages in an app. It is working perfectly in Chrome (latest version) in Windows 10, but yesterday my colleague told me of problems using Firefox and Chrome on Mac. I checked using MS Edge on Windows and encountered the same problem.

Here's a screenshot from your demo app: image

Basically, that is all you get. I have pasted below the JS errors from the console. I don't know why the same issues don't happen in Chrome on Windows.

Thank you for having a look at this and if possible please email me at richard@ameg.org.uk if this is caused by a configuration issue or anything like that.

And thanks for providing your excellent free plugins!

Console errors:

Refused to load the script 'https://cdn.ckeditor.com/4.15.1/full-all/ckeditor.js' because it violates the following Content Security Policy directive: "default-src 'self' 'unsafe-inline' 'unsafe-eval' ajax.googleapis.com ajax.aspnetcdn.com code.jquery.com". Note that 'script-src-elem' was not explicitly set, so 'default-src' is used as a fallback.

Refused to load the script 'https://cdn.ckeditor.com/4.15.1/full-all//adapters/jquery.js' because it violates the following Content Security Policy directive: "default-src 'self' 'unsafe-inline' 'unsafe-eval' ajax.googleapis.com ajax.aspnetcdn.com code.jquery.com". Note that 'script-src-elem' was not explicitly set, so 'default-src' is used as a fallback. desktop_all.min.js?v=21.1.2:5

ReferenceError: CKEDITOR is not defined at Object.FOS.item.ckeditor4 (script.js:85:23) at f?p=114:4010:::::::214:22 at HTMLDocument. (f?p=114:4010:::::::219:5) at Object.e.init (desktop_all.min.js?v=21.1.2:14:5863) at HTMLDocument. (f?p=114:4010:::::::210:11) at e (desktop_all.min.js?v=21.1.2:2:30005) at t (desktop_all.min.js?v=21.1.2:2:30307) e.error @ desktop_all.min.js?v=21.1.2:5 desktop_all.min.js?v=21.1.2:5 console.trace e.error @ desktop_all.min.js?v=21.1.2:5

RichardAPickett commented 2 years ago

I accidentally closed comment