I've just upgraded my site to the latest 6.x-2.2 release of Wysiwyg, and also took the opportunity to upgrade the ckeditor library from 3.0 to 3.5. I discovered that the "Enable resizing button" option is now ignored, and a resizing button is already present on text areas, regardless of how this option is configured.
I've tracked this down to a chage in the ckeditor library that occured somtime between the 3.0 and 3.5 releases. Previous, it checked this option (in ckeditor/_source/plugins/resize/plugin.js) with the following line of code:
if ( config.resize_enabled )
But now, it uses
if ( config.resize_enabled !== false )
Unfortunately, the Drupal module passes the value of the configuration setting to ckeditor as an integer, and not a boolean, and so this test now always passes, meaning that the resize button is always present.
The attached patch (against 6.x-2.2) fixes this problem by forcing the Drupal module to pass a boolean value to the ckeditor library.
Comment | File | Size | Author |
---|---|---|---|
#2 | wysiwyg-HEAD.ckeditor-resize.2.patch | 1.32 KB | sun |
#1 | wysiwyg-ckeditor-resize-1007066.1.patch | 606 bytes | TwoD |
wysiwyg_ckeditor_resize.patch | 671 bytes | penguin25 |
Comments
Comment #1
TwoDThanks!
The coding standards say to use FALSE/TRUE, but we just need a bool cast here.
Powered by Dreditor.
Can you verify this still works for you with this patch?
Comment #2
sunThanks for reporting, reviewing, and testing! Committed to attached patch.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.
Comment #3
penguin25 CreditAttribution: penguin25 commentedYes, the modified patch still works fine for me.
Comment #5
bryancasler CreditAttribution: bryancasler commentedsubscribe
Comment #6
TwoD@animelion, this issue has been fixed and the patch is now in the latest releases so there will be no further updates here. If you're still seeing the problem in the latest release, please change the status back to active and provide as much information about your setup as you can.
Comment #7
bryancasler CreditAttribution: bryancasler commentedThanks TwoD, I'm not experiencing this problem, I was just subscribing to a bunch of threads I saw. I didn't realize this patch had already been committed.