Scott Yu - builds stuff
Scott Yu - builds stuff

Reputation: 11763

How to save <FORM> tag inside <TEXTAREA> using rich-text editor like FCKeditor or NicEditor

I am using a rich text editor and in HTML mode, I want to put a FORM tag within my code. However, when I save, the tag disappears. I guess you cant have a FORM in the code within the FORM.

So I think what's happening is this:

<form name="form">
<textarea><form><input type="text"></form></textarea>
<input type="submit" value="submit">
</form>

Is there anyway I can use javascript (I am using jQuery) to serialize it or other ways of getting it to save with FORM tag in my editor content?

Thanks!

Upvotes: 0

Views: 970

Answers (1)

Pekka
Pekka

Reputation: 449435

I think this is getting prevented by the browser's rendering engine (or the RTE's validation).

You could use a different tag for the inner form <farm> and to replace it on the fly on the save event of the editor.

But what do you need a nested form for in the first place?

Upvotes: 1

Related Questions