Drupal V5RC2

First I would like to thank you so very much for Drupalizing this Editor for Drupal V5. It has been great to use. Simple and Fast or you might say jusat good old down and dirty. Either way it gets the job done fast. Especially nice when building a new site and pasting content into Nodes.

Everything has been working great until tonight. I upgraded to V5RC2.

Now there appears to be two body text area sections --- one above the other. The top Body text area box is false when creating a New Node. In other words – anything that is pasted in the top box is and will not be accepted.

If you paste into the second box – everything appears to be fine.

If you Edit a Node – content will display in both boxes.

This is as much detail as I have – I hope it helps.

Jeff

Comments

green monkey’s picture

... I forgot to mention - I see this in --- both Books and CCK

hickory’s picture

I'm seeing this too, though on Preview there's only one body textarea, as it should be.

Sparky Marky’s picture

I'm getting this too, although if I refresh the page it only displays one and works fine

green monkey’s picture

I just noticed that Comments too, is having this problem

Ralf Skirr’s picture

I have the same problem, but only when using the widgeditor setting 'Enable widgEditor by default'.
Refreshing the page does not help for me.

pyutaros’s picture

I would also like to confirm the problem and the workaround submitted by Ralf. After installing the widgeditor and selecting to use it as default, I found two body fields for input, the top of which is false. Entering into the bottom updates the content like normal. Deselecting use as default and manually turning on widgeditor gives only one input secion.

shadyman@erroraccessdenied.com’s picture

This also happens in release version V5, when creating nodes. It doesn't always happen, but happens more often than not.

shadyman@erroraccessdenied.com’s picture

Title: V5RC2 - two text area "body" fields » Two text area "body" fields
david lesieur’s picture

I tried replacing jQuery 1.0.4 with 1.0.3 and it solved the problem. This confirms Gurpartap's suspicion.

AstaC’s picture

Will there be a new release for those of us who don't know how to replace JQuery?

lias’s picture

I have this problem only using IE 6, it doesn't seem to happen when I use Firefox, as registered user or admin. When I disabled default widgeditor it does correctly display the single toolbar when the Enable WYSIWYG link.

How did you manually replace jquery 1.0.4 with 1.0.3?

Thanks.
Lsabug

tenmon’s picture

I can confirm this one and it's preventing me to use it.
I'm using Drupal 5.1 and PHP 4.

If I have fQuery disabled, I get 2 widgEditor.
If I have it enabled, I get 2 widgEditor plus a 3rd one (a normal text area).

I couldn't find any fQuery 1.0.3 for download.

mfh’s picture

I confirm this (had this with Drupal 5.0, now switched to FCKeditor).
I had the impression it appeared when I installed Localizer or some other L18n stuff (i18n, ...?).
I also had the impression that it remained there when I tried tinyMCE (not sure)

mr700’s picture

Is the problem caused by more than one text areas? I tried with 'Page' and 'Story':

  • my 'Page' displays two widgets, after refresh - one. I see two text areas without widgEditor - 'Body' and 'Log Message'.
  • my 'Story' has 'excerpt' enabled and displays two widgets (I think I got 3 once, but can't remember wasn't the third just a textarea). I see three text areas without widgEditor - 'Teaser', 'Body' and 'Log Message'.

I'll try to get just one textarea and see if it works better...

Gurpartap Singh’s picture

Status: Active » Fixed

To clear it out, this is not an issue with widgEditor, rather with javascript(jQuery1.0.4) in drupal code.

JohnNoc-old’s picture

Status: Fixed » Active

just reporting that it is not yet fixed...downloaded the editor 15min ago... and same problem in book textareas

Drupal 5.1

shadyman@erroraccessdenied.com’s picture

Status: Active » Closed (won't fix)

#15 submitted by Gurpartap on February 8, 2007 - 16:45
Status: active » fixed

To clear it out, this is not an issue with widgEditor, rather with javascript(jQuery1.0.4) in drupal code.

mr700’s picture

The patch from node 110935, comment 195854 seems to fix this, at least for me.

mr700’s picture

About comment #18, it works randomly, not always.

mr700’s picture

Priority: Normal » Critical
Status: Closed (won't fix) » Needs review
StatusFileSize
new481 bytes

I have the problem with FF 1.5 and IE 6 (XP and 98SE). I tried this and that but none worked at all (http://dev.jquery.com/ticket/975 , http://aheimlich.freepgs.com/tests/jquery/ajax-load/ , jQuery 1.1.x). Then I looked at the demo page - http://www.themaninblue.com/experiment/widgEditor/ and saw no widgInit(); at all. It turns out that commenting this line in the module fixes the problem everywhere:

--- widgeditor.module   2007-02-21 01:34:33.000000000 +0200
+++ widgeditor.module.fixed     2007-02-21 01:57:42.000000000 +0200
@@ -72,7 +72,6 @@ function widgeditor_add_javascript($text
     for (i=0;i<textareas.length;i++) {
       $("textarea#"+textareas[i]).attr("class","widgEditor");
     }
-        widgInit();
   });
 }', 'inline');}
   else {

(the line that starts with a minus sign '-')
Now I can add "teaser-edit" to the text arreas and all works fine (FF 1.5 on linux and IE 6 on Win98SE and WinXP).

Steel Rat’s picture

I confirm that commenting out that first widgInit() does fix the problem in FF 2.0 and IE 7.

mr700’s picture

Status: Needs review » Reviewed & tested by the community

And a closer look shows it's the "right(tm) way" to be. The editor's javascript (widgEditor.js) attaches widgInit() to document.onload - look after the "END CONFIGURATION" - there's direct call to "run();" which does this:

function run()
{
        var oldOnload = window.onload;

        if (typeof(window.onload) != "function")
        {
                window.onload = widgInit;
        }
        else
        {
                window.onload = function()
                {
                        oldOnload();
                        widgInit();
                }
        }
}

Looks familiar? ;-) I think it is RTBC.

fouadoff’s picture

sorry for bothering you with my stupid question but i don't know how to fix this problem - Two text area "body" fields - till now
and found this topic inactive for about 2 weeks now
i'm working on a new arabic site which in a very bad need to this editor but this problem is stopping everything for me and i have to open it so soon .. actually it might be opened without in in a few houres
plz help

thanks
fouad

Gurpartap Singh’s picture

Status: Reviewed & tested by the community » Fixed
StatusFileSize
new546 bytes

Thanks mr700! The attached patch has been applied in the CVS 5.x dev branch. Have not got chance to test it but it should work well.

Anonymous’s picture

Status: Fixed » Closed (fixed)