First of all I'm using drupal 5.7 with FCKEditor and Flashnode 5.x-5.4. If I enable the advanced options and then upload a content everything is ok. The FCKEditor is showing for the description, the node is saved and when it's viewed the description is there. However if I hide the advanced options for the users (which I do because I want every registered user to upload flash content and not messing with these options) then the description form is just plain text (and can't be switched to FCKEditor) and even if a description is entered in the process of creating flash node. When the flash node is viewed after that, the description isn't showing at all. I guess it's not saved because I see the description of the Node which I created earlier with enabled advanced options. How can I enable the GUI editor when the advanced options are hidden so the users can save their descriptions properly?

Comments

Stuart Greenfield’s picture

Bad news - I can see why this happening, but I'm not exactly sure why it's doing it. It appears that FCKeditor is attaching itself to some fields in the advanced options area, it numbers these FCK-1 and FCK-2, but these then get hidden so the body (FCK-3) doesn't get processed properly.

Good news - I think there is an fairly simple work-around - try adding two exclusions to the FCKeditor profile.

Go to Administer > Site configuration > FCKeditor, and then click edit for the global profile.

Expand the visibility settings.

Then add the following two lines to "Fields to exclude/include:"

edit-flashnode-substitution
edit-flashnode-flashvars

Then save the changes and test the form again.

This will prevent FCKeditor attaching itself to the substitution fields and the flashvars fields, and it should then appear as normal on the main body. You would probably never want FCKeditor attached to flashvars anyway, and if you're hiding the advanced options you don't mind that it is suppressed here.

Let me know if this works.

Anonymous’s picture

Sorry for the late reply, I was going around this by changing the code of the flashnode.module file. However your approach is certainly a lot better and is working perfect. Thank you very much for your assistance.

Anonymous’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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