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 Model Admin, HTMLText field and TinyMCE


2 Posts   1530 Views


6 December 2009 at 9:34am Community Member, 187 Posts

I have setup, as part of modelAdmin:

class Sponsors extends DataObject {

static $db = array(
'Sponsor' => 'Varchar(100)',
'DisplayOrder' => 'Int',
'SponsorsDescription' => 'HTMLText',

Everything works fine with this unless I try to edit one Sponsor record after another. For the first record everything displays as it should, for the second I loose the TinyMCE function and just get the text (with HTML) displayed. See attached image. Is the probelm in TinyMCE or can I not use a HTMLText field in Model Admin?




6 December 2009 at 9:43am 4085 Posts

Yup. HtmlEditorField doesn't work in model admin. Only the first time you load the page. I keep meaning to put in a ticket. There probably already is one.