Jump to:

7938 Posts in 1541 Topics by 945 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, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1513 Views
  • mschiefmaker
    Avatar
    Community Member
    187 Posts

    Problem with Model Admin, HTMLText field and TinyMCE Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Problem with Model Admin, HTMLText field and TinyMCE Link to this post

    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.

    1513 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.