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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Problem with SimpleHTMLEditorField in 2.4

Go to End

9 Posts   3122 Views


27 April 2010 at 8:38am Community Member, 5 Posts

I'm struggling with the SimpleHTMLEditorField in a DOM Popup. I'm working on my latop under Win7 and Wamp. If I edit my Newssection (which has an HTMLEditor in the fieldlist), everything is fine. If I upload the code to my Linux Hostingprovider, the htmleditor will not show up. I also tried the SimpleTinyMCEField and SimpleWysiwygField. Evertime the effect is nearly the same. If I use SimpleHTMLEditorField the filed will no shown up, with SimpleTinyMCEField at least a Textares shows up (but without controls). Any idea? I tried to delete all the old code from the hosting server and uploaded it again. But there was no change. Is there maybe a wrong path somewhere (case sensitiv)?

Here's my code:

      $fields = new FieldSet(
         new TextField('Title',_t('News.TITLE','Title')),
new SimpleTinyMCEField('Text', _t('News.TEXT','Text')),
         new DatePickerField('ShowFrom', _t('News.SHOWFROM','Show from')),
new DatePickerField('ShowTill', _t('News.SHOWTILL','Show till')),

return $fields;

Thanks for help.


3 May 2010 at 11:17am (Last edited: 3 May 2010 11:20am), Google Summer of Code Hacker, 58 Posts

This is the same issue as in

This has been working something like 2 or 3 weeks ago (with SS trunk), but right now the buttons disappear (TinyMCE and Wysiwyg) or the whole field, as the class "hidden" is added to it (HTMLEditor). This only happens if you are in production mode.
As a quick fix you can use .../admin/?isDev=1 in production mode and the field is working again.

I think the combination of JS files is breaking something - UncleCheese could you please help us out? Thanks!

PS: Using trunk for both SilverStripe and DataobjectManager


3 May 2010 at 7:54pm Community Member, 8 Posts

I third this, very annoying!

SimpleHTMLEditorField simply does not show up in the popup as it's hidden in the CSS and the JavaScript isn't kicking in for some reason...


4 May 2010 at 3:22am 4085 Posts

I just checked in a possible fix. Can you guys do some testing?


4 May 2010 at 3:34am Google Summer of Code Hacker, 58 Posts

This fixed it for me (HTMLEditor).

Thanks a lot for the quick response :)!


4 May 2010 at 8:36am Community Member, 5 Posts

The fix also worked for me. I tried all the mentioned fields without errors.



4 May 2010 at 8:31pm (Last edited: 4 May 2010 8:31pm), Community Member, 8 Posts

This worked for me in most of my popups. I resolved the remaining issues by tracing the problem down to a conflict with a workaround I was using for the DatePickerField where I was doing the following:

$df = new DatePickerField( 'NewsDate' );
$df->setConfig('showcalendar', true);
$fields->push( $df );

Simply, changing it back to:

$fields->push( new DatePickerField( 'NewsDate' ) );

fixed it!



5 May 2010 at 1:34am 4085 Posts

Yeah, all the new datefield stuff really threw me and made validation impossible, so for now the DatePickerField just circumvents all that and returns true for validation. :(

Go to Top