Summary:
Arteditor.js is a mobile end of the rich text editor, support image upload, will be added after the expression, small video and other functions. Recent Friends Feedback Arteditor support form submission is of course supported, and you can implement form submission as follows before you develop this feature
$ ('. Submit '). On (' click ', Function (e) {
e.preventdefault ();
$ ('. Hidden '). Val ($ (' #artEditor '). GetValue ());
$ (this). Submit ();
New features:
The new Forminputid parameter, which represents the ID of the form's hidden field, places the editor contents in a hidden field as follows:
<form action= "" >
<input type= "hidden" id= "target" >
<div id= "Arteditor" >
</div >
</form>
<script>
$ (' #artEditor '). Arteditor ({
forminputid: ' Target '
}) ;
</script>
Related reading:
JQuery Mobile End Arteditor Rich Text editor
About Arteditor Rich Text Editor Add form submission function Small series to introduce so many people, I hope to help you!