Download & Extend

FKCeditor removes the resizable class on textareas

Project:FCKeditor - WYSIWYG HTML editor
Version:6.x-2.0-rc1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

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

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

#3

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

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

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

Status:fixed» closed (fixed)

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

#7

Version:5.x-2.0-beta» 6.x-1.4
Status:closed (fixed)» 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

Status:active» closed (fixed)

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

Version:6.x-1.4» 6.x-2.0-rc1
Status:closed (fixed)» active

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

#10

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

Status:active» closed (fixed)

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

#12

This problem has popped up again. I am using 6.x-2.x and the resizeable handle disappears as soon as the editor kicks in.