Arteditor Rich Text Editor add form submit function _javascript skill

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.