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.

Archive /

Our old forums are still available as a read-only archive.

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

Custom Components and TinyMCE


Go to End


1223 Views

Avatar
StuM

Community Member, 59 Posts

3 November 2008 at 1:40pm

Edited: 03/11/2008 1:41pm

Hi All,

I've written a custom CMS component, but can't get HTMLEditorFields to display. They currently only display the label and a line where the box should be.

My controller has extended LeftAndMain

I added <% include Editor_toolbar %> at the top of the right template and the toolbar displays.

I copied the Javascript from CMSMain::init(), and tried it without but no difference.

If I inspect the element using FireBug, removing the htmleditor class from the textarea makes it appear, but it only works as a regular text area.

Are there any tutorials/recipes/advice on adding this functionality to custom components???