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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

TinyMCE/WYSIWYG for a ComplexTableField element


Go to End


2 Posts   1454 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
bummzack

Community Member, 904 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.