Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When enabling FCKeditor on a Node Comment Form to panels I get duplicate editors. There is a similar post but it was pointed this way. Any ideas?
http://drupal.org/node/122157
Thanks
Comments
Comment #1
Artur Formella CreditAttribution: Artur Formella commentedPlease update your FCKeditor script, FCKeditor module and Panels module to the latest.
This bug is fixed. (e.g. http://dev.fckeditor.net/ticket/2381)
Let me know if that worked for you.
Comment #2
paradigmshifter CreditAttribution: paradigmshifter commentedHi arczif,
I upgrade both my fckEditor module to 5.x-2.2-rc3 and my fckEditor the latest nightly build but I still get the duplicate textarea.
I checked fckeditor.js and it does include the appropriate line talked about the ticket you showed.
I'm really at a loss on what to try next. Thanks
Comment #3
paradigmshifter CreditAttribution: paradigmshifter commented"duplicate post... sorry ignore this"
Comment #4
paradigmshifter CreditAttribution: paradigmshifter commentedwhen looking at my generated HTML Dom I have 2 iframe instances with id's
"oFCK_1___Frame"
"oFCK_2___Frame"
Comment #5
Artur Formella CreditAttribution: Artur Formella commentedparadigmshifter, please send me the source code of this page (you can use contact form).
Comment #6
Artur Formella CreditAttribution: Artur Formella commentedThank you paradigmshifter for your email.
Now we know the bug is on PHP side:
Comment #7
wwalc CreditAttribution: wwalc commentedCheck this:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/fckeditor/f...
(try the dev release tomorrow).
fckeditor_process_textarea was called twice on the same element for some reason.
Comment #8
paradigmshifter CreditAttribution: paradigmshifter commentedIt works!!! You guys are awesome! Thanks for the help... Even after skimming through the changes the problem isn't obvious to me. If it can be explained easily I'm curious what the problem was. How was $preprocessed_elements defined(1 of the 2 times called) within the function fckeditor_process_textarea($element) when it wasn't passed?
I'm a php newbie. Thanks again!