Module WYSIWYG with the 4.4.7 Ckeditor library stopped working What I got in Drupal 7:

WYSIWYG module 7.x-2.2

CKEditor library 4.4.7.3a35b3d


Changes I made:

1. This get's ckeditor library to work with WYSIWYG:

In .../modules/wysiwyg/editors/ckeditor.inc change line from function wysiwyg_ckeditor_version($editor)

if (preg_match('@version:\'(?:CKEditor )?([\d\.]+)(?:.+revision:\'([\d]+))?@', $line, $version)) {


to

if (preg_match('@version:\"(?:CKEditor )?([\d\.]+)(?:.+revision:\"([\d]+))?@', $line, $version)) {


This changes version number search from single quotes version: '4.0' to double quotes version "4.0"

This changed error in console log about jquery version.

2. In .. Wysywig .../modules/wysiwyg/wysiwyg.js change function

$('.wysiwyg', context).once('wysiwyg', function () {


to

 $('.wysiwyg:not(.processed)', context).addClass('processed').each(function() {
       if (!this.id || typeof Drupal.settings.wysiwyg.triggers[this.id] === 'undefined') {
         return;
       }


3. Iv'e cleared caches.

4. Added Full HTML format to /admin/config/content/formats

5. Added buttons at /admin/config/content/wysiwyg

6. Tried to "downgrade" to the 3.6.x version of CKEditor

7. Tried Ckeditor module https://www.drupal.org/project/ckeditor without wysiwyg module

8. Tired TinyMc library with wysiwyg

9. !Solution! need lines of kode at sites/all/templates/html.tpl.php to load wysiwyg.js .:

&lt;?php print $page_top; ?&gt;
&lt;?php print $page; ?&gt;
&lt;?php print $page_bottom; ?&gt;
I would "downgrade" to the 3.6.x vrsion of CKEditor (such as CKEditor version 3.6.6.1.7696), since the WYSIWYG module does not support the 4.x version yet ...). In this case, you may also want to experiment with the various 'cleanup and output' options within /admin/config/content/wysiwyg/profile/your_txt_fmt/edit (with 'your_txt_fmt' the text format you're using, eg 'filtered_html').

Another option is to switch to the CKeditor module (which is in core in D8 now ...), and no longer use the WYSIWYG module in combination with the CKEditor library.