Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Custom Components and TinyMCE

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

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

Page: 1
Go to End
Author Topic: 906 Views
  • StuM
    Avatar
    Community Member
    56 Posts

    Custom Components and TinyMCE Link to this post

    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???

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