FKCeditor removes the resizable class on textareas

realityloop - January 15, 2008 - 01:24
Project:FCKeditor - WYSIWYG HTML editor
Version:6.x-2.0-rc1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When disabling FCKEditor on an an element the resizable class gets left off the textarea element.

Confirmed on FF and IE7, with FCKEditor 2.5.1 and Module version 5.x-2.0-beta

With FCKEditor Module enabled:

<textarea cols="20" rows="10" name="content[top][0][configuration][body]" id="edit-content-top-0-configuration-body"  class="form-textarea">

With FCKEditor Module disabled:

<textarea cols="20" rows="10" name="content[top][0][configuration][body]" id="edit-content-top-0-configuration-body"  class="form-textarea resizable">

Please see attached image.

AttachmentSize
Edit-panels-FCK-issue.png10.46 KB

#1

wwalc - January 15, 2008 - 09:04

The resizable class is disabled by the FCKeditor module intentionally, in modules/fckeditor/fckeditor.module:

$element['#resizable'] = FALSE;

It has been disabled in previous versions of FCKeditor module so I left it as it is.
If resizeable is enabled, error 0x800a025e in IE6 is thrown when switching to FCKeditor from text mode... I'll try to investigate it further.

#2

realityloop - January 18, 2008 - 03:01

that would be much appreciated. is there a way for me to re-enable it manually for now?

#3

Jorrit - August 10, 2008 - 23:14
Title:resizable class missing when FCKeditor excluded on element.» FKCeditor removes the resizable class on textareas
Status:active» fixed

Fixed in CVS: FCKeditor now does not remove the resize class

#4

realityloop - August 11, 2008 - 22:46

Is there a fix for the Drupal 5 version, it looks to only be fixed in the 6 version?

Sun Aug 10 23:17:03 2008 UTC (23 hours, 26 minutes ago) by jorrit
Branch: DRUPAL-6--2
Changes since 1.20.2.34.2.16: +30 -36 lines
Diff to previous 1.20.2.34.2.16 , to branch point 1.20.2.34

* Improved loading mechanism, thereby fixing
* #273752: FCKeditor malfunctions when multiple fields are present and one of them has a teaser
* #210065: FKCeditor removes the resizable class on textareas
* #212054: Plain text editor shows unformatted text

#5

Jorrit - August 12, 2008 - 07:03

It is quite a lot of work to backport it to Drupal 5. Our main development goes toward Drupal 6, after we are done, perhaps the changes will be backported. If you want to make sure you will receive the best FCKeditor module available, consider finding out if you can upgrade to Drupal 6.

#6

Anonymous (not verified) - August 26, 2008 - 07:13
Status:fixed» closed

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

#7

ivanjaros - October 20, 2009 - 14:59
Version:5.x-2.0-beta» 6.x-1.4
Status:closed» active

How is this bug looking now? I'm using 6.x-1,4 version and it reallyn sux to have textarea without resizing. Any progress on this? I tried to set #resizable to TRUE in .module but it's not working(the drawbar is shown, but it's doing nothing).

#8

Jorrit - October 20, 2009 - 18:14
Status:active» closed

This is a really old issue, and as far as I know you can resize normal textareas perfectly, even when they are also replaced by FCKeditor. Otherwise, try version 2 of the module.

#9

ivanjaros - October 24, 2009 - 16:59
Version:6.x-1.4» 6.x-2.0-rc1
Status:closed» active

I updated to v2, tried Opera, FF but still can't resize.

#10

Tarsjusz - November 8, 2009 - 11:30

subscribing,

I've simply commented one line in fckeditor module:

    if ($conf["popup"]=="f") {
//      $element['#resizable'] = FALSE; // PS
    }

and it works. I don't see any side effects by now..

#11

Jorrit - November 19, 2009 - 21:01
Status:active» closed

The code you posted is from version 6.x-1.4. The problem has been fixed in 6.x-2.x.

 
 

Drupal is a registered trademark of Dries Buytaert.