CMS MADE SIMPLE FORGE

TinyMCE

 

[#11000] TinyMCE editor ignores configuration on Content Editor

avatar
Created By: David Dennis (d4creative)
Date Submitted: Fri Apr 29 02:02:11 -0400 2016

Assigned To:
Version: 3.1.2
CMSMS Version: v2.1.2
Severity: Major
Resolution: Awaiting Response
State: Closed
Summary:
TinyMCE editor ignores configuration on Content Editor
Detailed Description:
I am trying to get the TinyMCE module to show CSS classes in a menu or as a
toolbar item. It works as per the instructions in the module setup screen and
test area. But when I go to an actual page and try to edit the content it uses
the default setup and doesn't show my CSS style classes. The "Formats" menu just
has a submenu with default heading, paragraph and list elements etc.


History

Comments
avatar
Date: 2016-05-04 08:50
Posted By: Mathieu Muths (airelibre) (airelibre)

Can you test the 3.1.3 version? I made some changes on the CSS handling.

Do you use the CSS / Style formats option, right? Can you try the given example:
title: 'Red title', block: 'h2', classes: 'text-red'

in the field? 

Thank you
      
avatar
Date: 2016-05-04 22:32
Posted By: David Dennis (d4creative)

Yes, I've tried that. I can't see where or how that's supposed to appear. Does
it add something to the "styleselect" menu?

As mentioned above, the module seems to behave correctly in the Extensions
module configuration and testing area. It displays a list of styles that are
found within the designated Design attached css files.

Now, when I try to edit a page I am getting this error at the top:
Warning: array_merge(): Argument #2 is not an array in
/home/s1074868/public_html/cmsms/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php
on line 468
      
avatar
Date: 2016-05-04 22:47
Posted By: David Dennis (d4creative)

I just performed the upgrade to 3.1.3

I cleared the cache.

Now I get this error (and still no css classes displayed):
Warning: filemtime(): stat failed for
/home/s1074868/public_html/cmsms/tmp/cache/tinymce_7990e0742e1204cbe431ad22b1be3637.js
in /home/s1074868/public_html/cmsms/modules/TinyMCE/TinyMCE.module.php on line
140
      
avatar
Date: 2016-05-09 02:59
Posted By: Mathieu Muths (airelibre) (airelibre)

Can you please test the SVN version? If not, can you send me an access to your
cmsms admin by private message?

Thx
      
avatar
Date: 2016-06-07 16:19
Posted By: Chris Taylor (chrisbt)

Hi, I was also consistently getting the 'Warning: filemtime(): stat failed for
...'

SVN version fixed it fully (so far).

Many thanks. :)
      
avatar
Date: 2016-06-07 18:33
Posted By: Chris Taylor (chrisbt)

Sorry commented too soon. Warning has gone but CSS file is not being loaded.
Will investigate further.
      
avatar
Date: 2016-06-07 18:36
Posted By: David Dennis (d4creative)

Pardon my ignorance, but what do you mean by SVN version?
      
avatar
Date: 2016-06-08 03:35
Posted By: Mathieu Muths (airelibre) (airelibre)

SVN means the development version - But the current 3.1.3 version is the latest
;)
      
avatar
Date: 2016-06-08 19:50
Posted By: Chris Taylor (chrisbt)

I managed to remove the filemtime Warning on line 140 of TinyMCE.module.php by
adding in a file_exists test. But I couldn't work out why the file didn't exist,
and why the caching isn't working!?
      
   if ($query->TotalMatches() > 0 && file_exists($filepath))
      {
        $current_js_mtime = filemtime( trim($filepath) );
        $res = $query->GetMatches();
        foreach ($res as $one)
        {
          if ($one->get_modified() > $current_js_mtime)
            $force = true;
        }
      }
      
avatar
Date: 2017-03-23 11:07
Posted By: TimdeBuurman (timdebuurman)

Hi,

I came across this same problem.
Will this be solved?

I'm using CMSMS version 2.1.6 and TinyMCE version 3.1.4, and also no
styleselects appear when edditing a page, but is does show up in the test
environment.

thx
      
avatar
Date: 2017-03-23 12:33
Posted By: TimdeBuurman (timdebuurman)

sry for last post, clearing the cache solved this
      
avatar
Date: 2017-10-13 10:22
Posted By: Charles Butcher (chazzo)

This has just been driving me mad with TinyMCE 3.2b3 and CMSms 2.2.3.1. I think
it might be a browser caching issue, even though AFAIK I'm set up not to use
browser caching and I've never seen an issue like this before.

Clearing the CMSms cache was not enough to fix the problem. Changing to a
different browser (Firefox) and reloading worked, at least in Firefox. I still
haven’t got it working with Safari (11.0).
      
avatar
Date: 2017-10-13 16:49
Posted By: Charles Butcher (chazzo)

Clearing the browser cache fixed it for me.
      
Updates

Updated: 2020-02-01 20:05
state: Open => Closed

Updated: 2016-05-04 08:50
resolution_id: => 10