I have CiviCRM 4.7.22 and WordPress 4.8.2. I don't get the WYSIWYG CKEditor for a New Mailing or the description in a new event. Both are present on the CiviCRM sandbox site.

From the documentation I think that it should be installed with WordPress and set as default. Permissions can't be an issue as I am an admin.

While WYSIWYG editor disappeared in CiviCRM 4.7.16 looks similar, the answers seem to relate to Drupal not WordPress and nothing suggested there helps.

  • The question you referenced is a WordPress install; the answers are CMS-agnostic. Can you verify that the problem exists with a default theme (e.g. twothousandseventeen)? – Jon G - Megaphone Tech Oct 15 '17 at 23:22
  • Use F12 to open the browser console and refresh the page. If there are any error messages, take a screenshot and paste them here. – Coleman Oct 16 '17 at 0:15
  • @JonG-MegaphoneTech I am using thethousandseventeen. On the link referred to some was definitely Drupal specific (permissions in CMS). I can't see any similar setting in WP. I did try the cache rebuild and open and save but not change ACL. – Mick Kahn Oct 16 '17 at 8:37
  • @Coleman I don't understand what you mean by using F12. Doesn't do anything in Firefox or IE. I don't see any error message. – Mick Kahn Oct 16 '17 at 8:38
  • @coleman I found the browser console. F12 not functioning in IE and have to use menu in Firefox. I do have an error: Loading failed for the <script> with source “http://<sitename>/test/wp-content/plugins/civicrm/civicrm/js/wysiwyg/crm.ckeditor.js” – Mick Kahn Oct 16 '17 at 8:57

Well, finally managed to get CKEditor going, but this is far from an ideal solutuion. The problem is that an extra component is being put into the URL for the editor. My main site that works is mysite.org and the problem is with test.mysite.org. This has all its files in a subdirectory of the main site and this confuses things. Looking up [civicrm.root] in the Resource URL admin page shows an extra "/test". So work round for now is to edit CRM/Core/Resource.php to replace "[civicrm.root]" with "wp-content/plugins/civicrm/civicrm/" in the call to the editor. A bit of trail and error and a bit odd as that isn't logical from what I epxected [civicrm.root] to produce.

I would love a better solution.

Another problem How can I fix [civicrm.root] variable on an addon domain? was useful in confirming that [civicrm.root] is the problem.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.