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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

TinyMCE/WYSIWYG for a ComplexTableField element


Reply


2 Posts   1143 Views

Avatar
lise

Community Member, 47 Posts

8 December 2009 at 9:48pm

Hello,

I have defined a ComplexTableField object (called 'Post') which users can create/update through CMS.
One field of this table has been defined as an HTMLEditorField.

I would like to be able to edit this field with TinyMCE instead of the "plain" text box I get . Yes can enter html mark-ups but
I would like my users to have a more friendly interface , like the WYSIWYG editor used in CMS when a field is defined as HTMLText.

Is it possible have "HTMLEditorField" handled exactly as HTMLText ? Is there a configuration parameter ?
Thanks,

Avatar
banal

Community Member, 901 Posts

8 December 2009 at 10:36pm

This might help you:
http://silverstripe.org/customising-the-cms/show/274582?start=0#post274601

The easiest way would probably be if you replaced the CTF with the DataObjectManager. The DataObjectManager is based on the ComplexTableField, so you should be able to use the same constructor syntax.