Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » TinyMCE stripping out form elements

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: 4552 Views
  • mmilo
    Avatar
    Community Member
    9 Posts

    TinyMCE stripping out form elements Link to this post

    Hello,

    I have noticed that TinyMCE is stripping out form elements from the source code. I have checked to see if this is done within TinyMCE and have tried the fixes I came across. (setting verify HTML to false, and adding to valid_elements) but neither of these seemed to work.

    Is there something SilverStripe specific that is causing form elements to be stripped out of the HTMLEditField that I am not aware of?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: TinyMCE stripping out form elements Link to this post

    why are you trying to insert a form via TinyMCE? as you have found out tinyMCE is pretty annoying to muck around with. There is probably a way to do a form without using TinyMCE

  • mmilo
    Avatar
    Community Member
    9 Posts

    Re: TinyMCE stripping out form elements Link to this post

    Yes TinyMCE is excrutiatingly annoying to muck around with. The reason why I need forms within TinyMCE is that I need a small form running inline with a bunch of content. The form doesn't actually need to do anything (ie. doesn't submit, long story) but TinyMCE strips out all tags relating to forms, including <input>'s

    Currently I've written a little javascript and used images to simulate the look and feel of form elements but I would prefer it if I could just get them to work normally.

  • davede
    Avatar
    Community Member
    24 Posts

    Re: TinyMCE stripping out form elements Link to this post

    Hi, I know this is an incredibly old thread however there's no solution or reference to one written here.

    How can we add form elements in TinyMCE.

    We don't want to add a complex form or anything.

    Just things like paypal buttons (which use forms).

    Feel free to move the post or start a new thread with it if you think appropriate.

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