TinyMCE not attaching to correct "Block body:"

bluesquare - October 10, 2006 - 05:35
Project:Node Info Boxes
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Suuch
Status:closed
Description

After having entered and saved an info box the following error occurs in firefox (1.5.0.7).

If you click on "info boxes" for the node in question the recently added box appears in the list.

If you then click "modify" the "Modify info box" region is expanded. However TinyMCE appears to attach two instances of the rich text editor to the "Block body" in "Add new info box" and nothing to the "Block body" under "Modify info box".

Both text areas are showing up as "Rich-text editing" under "Input format". This is a custom input format I have created to use with TinyMCE (as per the readme).

I am running Node Info Boxes (node_block.module 1.4) and TinyMCE (tinymce.module 1.9) under Drupal 4.7.3.

Anybody else experiencing this problem? Any idea if it's Node Info Boxes or TinyMCE at fault here?

Thanks,

BlueSquare

#1

Suuch - October 10, 2006 - 23:45

Not sure, as we did use TinyMCE when testing this module, with no problems. It's hard to say without a live demo what the problem could be, much more which module is causing it.

#2

bluesquare - October 11, 2006 - 08:28

Ok,

I will try posting a bug to the TinyMCE project page.

If I made a login for you and sent you to url with the issue would that help?

Thanks,

Blue Square.

#3

Suuch - October 11, 2006 - 09:28

Aye, let's try that.

#4

bluesquare - October 12, 2006 - 00:15

Ok I have sent you the url and login via your user profile contact link here.

I tested and the problem is reproducable in IE/Firefox (XP) and Firefox (OSX).

Let me know if you have any trouble logging in.

Cheers,

BlueSquare.

#5

Suuch - October 13, 2006 - 08:07

I think I've figured out why--TinyMCE uses ids to attach richtext to textareas. On this particular page, there are two textareas called edit-body so tinymce attaches both richtext addons to the first editbox only.

It's probably safest to say that Node Info Boxes is to blame for not assigning unique ids to each textarea. At least that will be the easiest fix. Will make the change this weekend and update the 4.7 version before closing this issue.

#6

bluesquare - October 24, 2006 - 01:04

Suuch,

Any luck with this? Any way I can help at all?

Bluesquare

#7

Suuch - October 26, 2006 - 20:57

Fixed in version 1.7 (HEAD).

#8

bluesquare - October 27, 2006 - 00:19

Suuch,

Thanks for your quick response to this issue.

The change made in 1.7 now causes each TinyMCE instance to attach to the correct text area.

However, clicking on 'modify' for an existing block causes the 'Add New Info Box' field set to collapse and the url for this link changes from the clean url version (sitename/node/1/blocks#) to the pathauto version (sitename/this-is-the-page/blocks). Clicking on this link causes a 'Page Not Found' error to come up.

Not exactly a show stopper I know as this is not necessarily how people would proceed at this point, but I am always aware that it saves time in the long run to idiot proof sites before going live :)

The login I sent you previously should still work if you want to confirm this behaviour on my site. FYI using pathauto.module 1.22.2.9 and node_block.module 1.7.

Thanks,

BlueSquare.

#9

Suuch - October 28, 2006 - 09:04
Assigned to:Anonymous» Suuch
Status:active» reviewed & tested by the community

Fixed in version 1.8

#10

bluesquare - October 28, 2006 - 12:29

Perfect! Works like a charm :)

Thanks,

BlueSquare.

#11

Suuch - November 1, 2006 - 09:42
Status:reviewed & tested by the community» closed
 
 

Drupal is a registered trademark of Dries Buytaert.