MikePitta Posted February 12 Share Posted February 12 Hi. This hook to ckeditor versione 4.22 works <?php add_hook('AdminAreaHeadOutput', 1, function($vars) { return '<script src="https://cdn.ckeditor.com/4.22.0/standard/ckeditor.js"></script> <script>window.onload = function() { CKEDITOR.replace("replymessage"); };</script>'; }); ?> but with a warning about vulnerabilities. This instead, as well as for any newer ckeditor version, doesn't work. <?php add_hook('AdminAreaHeadOutput', 1, function($vars) { return '<script src="https://cdn.ckeditor.com/4.25.1-lts/standard/ckeditor.js"></script> <script>window.onload = function() { CKEDITOR.replace("replymessage"); };</script>'; }); ?> Any way to make it work? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.