Update – I have this error in the error console of browser – “Error: CKEditor should be loaded before CKEditor jQuery adapter.”
Hey,
First, thank you for the link – makes things so much easier!
I just tested the plugin on my demo site with the latest release (1.9.13) and the latest download from Gravity Forms (1.9.13.16) – and it worked on both.
http://demo.itsupportguides.com/gravity-forms-wysiwyg-ckeditor/single-page-form/
I checked the order the plugin is loading compared to my demo site, and it’s the same order – so I dont think this is some sort of minifying/caching issue.
I do see a defer onload=''
that my demo site doesn’t have, which may be part of the issue. Not sure if that’s somethin the yoast plugin or something else you have installed adds in.
I’m about to head out, but will take a further look later today.
OK, so I’m feeling pretty confident the issue is stemming from your website having defer onload
when calling JavaScript files. I’m seeing the same attribute on every JavaScript file but ones called ‘jQuery.js’.
This isn’t standard for WordPress, and I’m not seeing an option where Yoast is making this happen – so somewhere something else in your website is adding this in.
Do you know if you’re running any custom scripts, like this one?
http://wordpress.stackexchange.com/questions/161429/how-to-get-defer-or-async-attribute-to-appear-when-i-add-a-stylesheet-with-wp-en
What other plugins do you have installed? Do you think one of these is adding it under the guise of it being for ‘page load performance’?
I customised the script in the link above to do what your website is doing (adding defer onload to all scripts but ‘jquery.js’) and got the exact same result.
DO NOT USE THIS CODE – IT WILL BREAK THIS PLUGIN
function wcs_defer_javascripts ($url)
{
if (strpos($url, '.js') === FALSE) {
return $url;
}
if (strpos($url, 'jquery.js')) {
return $url;
}
return "$url' defer onload='";
}
add_filter('clean_url', 'wcs_defer_javascripts', 11, 1);
DO NOT USE THIS CODE – IT WILL BREAK THIS PLUGIN
So does something like this look familiar to you?
Thanks Ovann86 for all that investigating. I do/did have the following in my child theme functions.php
// Defer jQuery Parsing using the HTML5 defer property
if (!(is_admin() )) {
function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, '.js' ) ) return $url;
if ( strpos( $url, 'jquery.js' ) ) return $url;
// return "$url' defer ";
return "$url' defer onload='";
}
add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
}
I have removed it and your plugin is working :-). Another plugin developer asked me to use it a while ago but all seems ok at the moment without it. This is a list of plugins on the site though – https://shopinthesquare.co.uk/plugins/
Thanks for the help.
Hi Again.
Unfortunately the editor isn’t appearing in Internet Explorer or MS Edge…it is labelled “Main Section” on the original link I posted. Thanks
Hey,
I can’t test on a MS Edge (win 10) computer for another 20 hours.
Can you tell me if the demo pages load on MS Edge?
Yes, the demo page is loading on MS Edge (win 10)
You have an issue in
https://shopinthesquare.co.uk/wp-content/themes/Divi/js/custom.js
Run the page without that, and it runs fine.
Which means other JavaScript/jQuery features will be having issues as well in IE/Edge.
You could debug the script, remove it (no idea what it does, didn’t look but of course removing it will remove what ever it is meant to do) or change to a theme without bugs (or IE/Edge support).