summary:
artEditor.js is a rich text editor on mobile, which supports image upload, and will add features such as expressions and short videos. Recently, a friend reported whether artEditor supports form submission, of course it supports it. Before developing this function, you can implement form submission like below.
$('.submit').on('click', function(e) {e.preventDefault();$('.hidden').val($('#artEditor').getValue());$(this).submit();});New features:
Added a new formInputId parameter, which represents the id of the form hidden domain, and will put the editor content into the hidden domain, as follows:
<form action=""><input type="hidden" id="target"><div id="artEditor"></div></form><script>$('#artEditor').artEditor({formInputId: 'target'});</script>Related readings:
jQuery mobile artEditor rich text editor
Regarding the ArtEditor rich text editor adding form submission function, the editor will introduce so much to you, I hope it will be helpful to you!