Closed (won't fix)
Project:
TinyMCE
Version:
5.x-1.9-1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Sep 2008 at 22:56 UTC
Updated:
3 Feb 2013 at 20:02 UTC
How do I upgrade the tinymce editor, not the module?
When I try replacing the folder, clearing cache, etc... The editor simply won't load.
Comments
Comment #1
hduyker commentedI didn't have problems with that, I could just replace my /sites/all/modules/tinymce/tinymce folder with the new version, and most things just worked.
Toggling the editor did not work anymore (I upgraded from TinyMCE 2.xx to 3.xx).
I changed lines 135-162 of tinymce.module to the following to make that work again:
Also, the advimg (and I suppose the img module as well, I did not check that one) TinyMCE modules default to emitting style='align: right' type HTML code, which the Filtered HTML input filter in Drupal does not like: it strips out all 'style' attributes, even when the tag itself ( <img> for example) is allowed. Luckily, TinyMCE can be configured to use "old-style" HTML instead of inline styles.
What I did to solve this, is to append the following line under line 28 of plugin_reg.php:
A better solution might be to either make this a configuration option, or to have this toggle along with the "Convert <font> tags to styles:" option in the configuration of the Drupal module. Note that you then have to modify plugin_reg.php as well, so TinyMCE allows style attributes on (for example) image tags:
Note that the toolbar button images are no longer shown alongside the various button options in the Drupal configuration page; cause of this is the fact that TinyMCE switched from a load of individual image files (one per button) to a single icons.gif file for all the button images. The Drupal module still tries to find all the individual images (and fails to do so). This doesn't impact functionality, as far as I have been able to figure out.
Comment #2
pomliane commentedThis version of TinyMCE is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.