Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » HtmlEditorField in Popup

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

Page: 1
Go to End
Author Topic: 1678 Views
  • Roelfsche
    Avatar
    25 Posts

    HtmlEditorField in Popup Link to this post

    Good Morning,
    I tried to use a HTMLEditorField in a popup on a HasManyComplexTableField. I have the problem, that the input is not saved into DB. If I change from HTMLEditorField to TextareaField it works as expected.
    The appropriate field in the DB is defined as 'HTMLText'. If I look into the DB table only '<p></p>' is saved. That looks to me that something is saved from the HTMLEditorField but not the input.
    Does anybody know the reason for that? What made I wrong?

    Edit: If I inspect the network traffic with firebug, I can see, that only '<p></p>' is transmitted. May be a javascript problem?
    During js debugging I saw there is a problem with resolving the name "sapphiremce_cleanup". The code is in tiny_mce_scr.js on line 7428. The resolve function returns 'undefined' and then a function will be called on that "f.apply(...)".

    Thank you,
    Roelfsche

  • theAlien
    Avatar
    Community Member
    131 Posts

    Re: HtmlEditorField in Popup Link to this post

    Hi,

    You indeed can't use HTMLEditorField in the CTF-popups because of some javascript-issues.

    You'd better use UncleCheese's DataObjectManager-module instead of CTF.
    Since HTMLEditorField can't be used in DOM either, DOM has some nice simple HTMLEditorFields packaged.
    These are lacking some features, but will do a lot better than nothing I guess.

    Oh, and on top of that: DOM is quite a bit nicer styled than CTF imo ;-)

  • Roelfsche
    Avatar
    25 Posts

    Re: HtmlEditorField in Popup Link to this post

    Thank you, theAlien,
    I will try the DataObjectManager module.
    Roelfsche

    1678 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.