Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Form with TinyMCE

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

Page: 1
Go to End
Author Topic: 933 Views
  • roterl
    Community Member
    44 Posts

    Form with TinyMCE Link to this post

    I would like to create a form the users may fill in with TinyMCE.
    How can I do it?

       function Form() {
          return new Form($this, "Form", new FieldSet(

             // List your fields here
             new TextField("FirstName", "First name"),
             new TextField("Surname"),
             new EmailField("Email", "Email address"),
             new HtmlEditorField("Story", "Your story")

          ), new FieldSet(

             // List the action buttons here
             new FormAction("SignupAction", "Sign up")

          ), new RequiredFields("Email", "FirstName"

             // List the required fields here: "Email", "FirstName"


    I add the RequiredFields into the Form object and the form include multi-line text field, but without the TinyMCE.


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.