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

HTMLEditorField in popup


Reply

5 Posts   2743 Views

Avatar
juandavidgc

25 June 2009 at 3:08am Community Member, 36 Posts

Hey!!

Someone knows how to put a HTMLEditorField (complete, not simple) in a pop-up of DataObjectManager?

Thanks!

Avatar
UncleCheese

25 June 2009 at 4:04am 4085 Posts

Use SimpleHTMLEditorField

Avatar
juandavidgc

25 June 2009 at 5:03am Community Member, 36 Posts

Hi UncleCheese! thanks for your response!

well, i used SimpleHTMLEditorField, but my cliente prefer the same editor located in all pages, Is it posible ?

Thanks!

Avatar
UncleCheese

25 June 2009 at 6:03am 4085 Posts

You can try it, but I don't suspect you'll have much luck. It's a little too much overhead for that little popup window. If you're needing that amount of editing, you should probably be creating pages, not dataobjects.

Avatar
schellmax

25 June 2009 at 8:19pm Community Member, 126 Posts

just a comment on this:

in fact, the lack of advanced controls in popus, such as a fully featured html-editor, is one of the most important drawbacks when it comes to flexibility in silverstripe. this is a point where the (otherwise really cool) cms doesn't meet up with flexibility you have in code (defining your page classes and dataobjects). there are many posts in this forum concerning this; see also the bug tracker (http://open.silverstripe.org/ticket/3490).

as you already found, unclecheese did a great job providing some helpers (such as simplehtmleditorfield and simpletreedropdownfield), and often you can get around this using page classes instead of dataobjects (as unclecheese mentions).

to me this is directly related to the restricted functionality of complextablefields (once again unclecheese provides relief here with dataobjectmanager), on which silverstripe staff is working for the next release (http://open.silverstripe.org/ticket/3476). to me, this will be an enhancement to make silverstripe immortal ;-)