After upgrading from Wysiwyg 7.x-2.1 to 7.x-2.2, the Font plugin in TinyMce is completely missed. So in the "buttons and plugins" bar I lost the "HTML Block format", "Font", "Font size" and "Font style" buttons.

As far as i can see, the following section:
------------------
'font' => array(
'path' => $editor['library path'] . '/plugins/font',
'buttons' => array('formatselect' => t('HTML block format'), 'fontselect' => t('Font'), 'fontsizeselect' => t('Font size'), 'styleselect' => t('Font style')),
'extended_valid_elements' => array('font[face|size|color|style],span[class|align|style]'),
'url' => 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/font',
'internal' => TRUE,
),
-----------
has been completely removed from editors/tinymce.inc files. It was present in version 7.x-2.1, no more in 7.x-2.2.

As result, I'm not able to use all additional classes that I added in the CSS profile option.

I tried to simply add again this code to the tinymce.inc file, and the plugin/font works again.

Is this is a bug, or is there any reason for this code being removed?

thanks to all! :)

fb

Comments

TwoD’s picture

Status: Active » Fixed

This has already been fixed in 7.x-2.x-dev. There's an update function in there which moves all the enabled buttons from the 'font' plugin (since it doesn't exist in TinyMCE) to the 'default' "plugin".
Installing 7.x-2.x-dev and running update.php will fix the issue without any file modifications being necessary. Of course, once you've upgraded, falling back to 7.x-2.1 will disable the buttons for existing profiles again because that version looks for them in the 'font' plugin. All this only applies to profiles subjected to upgrades, as newly created profiles always use the correct settings structure for the version on which they were created.

francoud’s picture

thanks. i'll try tomorrow. I also guess i should upgrade tinymce too. i'm currently running version 3.5.1.1, I suppose it's too old?

TwoD’s picture

All TinyMCE 3 versions are supported by Wysiwyg, but I do recommend upgrading the editor library when you upgrade Wysiwyg.
If there has been a very recent new version of a library with big changes (or sometimes very small critical ones, like the formatting of the version number), there's a risk we might not yet be aware of the changes or haven't had time to get a solid fix out yet. If the latest release doesn't work with a recent library version and it has fixes or features you need, try with the -dev snapshot, then search the issue queue for WIP patches, and lastly create a new issue to help make us aware of the incompatibility.

francoud’s picture

I can confirm that the last -dev version solved the problem, and it works fine with tinymce 3.5.1.1. too. I will try with more recent versions of tinymce - but with 3.5.1.1 it's all right already. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.