7911 Posts in 1354 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Problem with Model Admin, HTMLText field and TinyMCE
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1347 Views |
-
Problem with Model Admin, HTMLText field and TinyMCE

6 December 2009 at 9:34am
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?
Thanks
Catherine
-
Re: Problem with Model Admin, HTMLText field and TinyMCE

6 December 2009 at 9:43am
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.
| 1347 Views | ||
|
Page:
1
|
Go to Top |
