WYSIWYG Editor

4 posts by 2 authors in: Forums > CMS Builder
Last Post: November 14, 2013   (RSS)

By dmn - November 11, 2013

wysiwyg keeps disappearing - have reloaded CMS several times (2.53 (Build 1040)), have tried other versions, have tried the fix found in Forum http://www.interactivetools.com/forum/forum-posts.php?WYSIWYG-not-displaying-72763=&page=1 - it worked for a while but then when the tiny_mce_cache is created the wysiswyg disappears.   I have my FTP client open and I have to go into  the /data/ folder and delete  tiny_mce_cache and the wysiwyg shows up. I have to do this whenever i use any of the Section Editors. I've used many versions of CMS on many sites and have never encountered this. What's the fix for this very annoying problem.

By Dave - November 14, 2013

Hi dmn,

I haven't seen that problem before and we'd have to debug it to know for sure but try this quick fix: 

Edit: /cmsAdmin/3rdParty/tiny_mce/tiny_mce_gzip.php

Find this line (search for disk_cache):     "disk_cache" => true,

And change true to false:     "disk_cache" => false,

Let me know if that works for you.

Dave Edis - Senior Developer
interactivetools.com

By dmn - November 14, 2013

Thanks for the reply Dave, I solved the problem by changing the path to the cache in tiny_mce_gzip.php, line 202,203 from this

// Set cache file name
    $cacheFile = $this->settings["cache_dir"] . "tiny_mce_cache." . $hash . ($supportsGzip ? ".gz" : ".js");

to this

    // Set cache file name
    $cacheFile = $this->settings["cache_dir"] . "data/tiny_mce_cache." . $hash . ($supportsGzip ? ".gz" : ".js");

it's been working great ever since.