Hi,
there are some entries in the error log regarding TinyMCE that occur repeatedly (I’ve changed the domain prefix for this posting):
[2010-11-16 14:07:29] (ERROR @ /is/htdocs/mydomain_T0O6V8LYFV/www/core/components/tinymce/lexicon/de/default.inc.php : 12) PHP warning: include_once(/is/htdocs/mydomain_T0O6V8LYFV/www/core/components/tinymce/lexicon/de/english.inc.php) [<a href=’function.include-once’>function.include-once</a>]: failed to open stream: No such file or directory
[2010-11-16 14:07:29] (ERROR @ /is/htdocs/mydomain_T0O6V8LYFV/www/core/components/tinymce/lexicon/de/default.inc.php : 12) PHP warning: include_once() [<a href=’function.include’>function.include</a>]: Failed opening ’/is/htdocs/mydomain_T0O6V8LYFV/www/core/components/tinymce/lexicon/de/english.inc.php’ for inclusion (include_path=’.:/usr/share/pear/php5’)
Not sure if this one is TinyMCE related:
[2010-11-16 14:07:29] (ERROR @ /is/htdocs/mydomain_T0O6V8LYFV/www/core/xpdo/xpdo.class.php : 1754) PHP warning: json_encode() [<a href=’function.json-encode’>function.json-encode</a>]: recursion detected
Can I change some setting or is it a bug?
-Andrea
Thanks for the link to the other thread. So this seems to be TinyMCE related.
I don’t know if this is important: The first two entries in the error log I posted refer to a value set by the modx installation (upload_tmp_dir: mydomain_T0O6V8LYFV).
I’m using:
MODx Revolution 2.0.4-pl2
Linux
PHP Version: 5.2.12
MySQL: 5.1.49
pdo_mysql: 5.1.49
-Andrea
I’m trying to get TinyMCE to remove div tags when using either the Cleanup tool or the Remove Formatting tool, preferably both.
For the Cleanup tool, it would appear that I want to use the "invalid_elements" setting. And it would appear that the proper place to insert this is in the assets/components/tinymce/xconfig.js file, where there is an empty variable for it. This alone doesn’t seem to work; is there anything else that needs to be done in order to implement this setting? (I did also try removing the div tag from the valid_elements list in the same file, but that didn’t help either.)
For the Remove Formatting tool, according to TinyMCE documentation I can use the "removeformat_selector" setting. Where is the correct place to add this? It doesn’t appear in any of the files by default. I thought the correct place to add it would be core/components/tinymce/tinymce.class.php, but that isn’t doing the job.
Any help is appreciated!
I’ve also found a possible package upgrade issue. On a system that has been upgraded from 4.0.4-rc2 through each intermediate version to 4.1.2-rc1 on MODx from 2.02 through to currently 2.04 -- and using package management and the modxcms.com provider all along -- the file assets/components/tinymce/jscripts/tiny_mce/tiny_mce.js was never upgraded. It was still at minorVersion 2.7 from 2009-09-22, whereas the current version is 3.8 from 2010-06-30. Because I still had the system setting tiny.use_uncompressed_library at false, it was using the old file.
This causes me to have some fundamental doubt in the ability of package management to automatically replace old files. Is there some known and fixed bug that might have caused this?
Thanks.