Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Can't have HTMLEditorField in a popup form


Reply

2 Posts   1427 Views

Avatar
amir99

13 February 2009 at 8:37pm Community Member, 5 Posts

Hi,

I have tried to modify the example from tutorial5 (database relations) by adding a description field(HTMLText) to the Module class.
Then, in the function getCMSFields_forPopup() I added the line:

$fields->push( new HTMLEditorField( 'description' ) );

Now when I go to a project page in the 'module' tab, and try to add a new module the popup form does not show the fields and I get a javascript error saying "f has no properties" (from tiny_mce code)

I have seen a similar discussion [url=http://www.silverstripe.org/archive/show/40582/]here[/url]
I really like SilverStripe, but this kind of problem is a show stopper for me.

Amir

Avatar
amir99

25 February 2009 at 11:24am Community Member, 5 Posts

Ok, I tested it again on more machines, and this problem does not exist on IE6+7 and FF3.
It didn't work on my browser - FF2 on Linux.