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>开发者_JAVA百科;<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!
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?
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论