Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Since move to Cloudfront WordPress tinyMCE not displaying

Since our blog has been moved to Cloudfront the tinyMCE editor just doesn't show up. According to our server admin the blog install is, "on a standard ec2 instance with cloudfront in front of it but not caching anything but static content".

Also, it's running on nginx.

We did a fresh WP install, and only replacing our config file and wp-content from back up. I didn't include the plugins to check if they were the problem. Still no tinyMCE.

I've Googled this quite a bit but nothing has worked or the fix doesn't apply to our server config.

TIA - D

like image 938
donfifty Avatar asked Feb 16 '26 14:02

donfifty


1 Answers

This is the answer I finally found:

function richedit_wp_cloudfront () {
   add_filter('user_can_richedit','__return_true');
}

add_action( 'init', 'richedit_wp_cloudfront', 9 );

Add this to or create a functions.php in your themeName directory and you should be good to go.

like image 121
donfifty Avatar answered Feb 19 '26 05:02

donfifty



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!