Added the form submission function in the ArtEditor Rich Text Editor _ javascript skills

Source: Internet
Author: User
ArtEditor is a jQuery-based mobile Rich Text Editor that supports image insertion and other functions. Next, I will introduce the form submission FUNCTION OF THE ArtEditor Rich Text Editor. If you are interested in the arteditor Editor, join us. Abstract:

ArtEditor. js is a mobile Rich Text Editor that supports image uploading and adds functions such as facial expressions and small videos. A friend recently reported whether artEditor supports form submission. Of course, it is supported. Before developing this function, you can implement form submission as follows:

$ ('. Submit '). on ('click', function (e) {e. preventDefault (); $ ('. den den '). val ($ ('# artEditor '). getValue (); $ (this ). submit ();});

New features:

The formInputId parameter is added. This parameter indicates the id of the form hidden domain. The editor content is placed in the hidden domain, as shown below:

Script $ ('# artEditor'). artEditor ({formInputId: 'target'}); script

Related reading:

JQuery mobile artEditor Rich Text Editor

For more information about how to add the form submission function in the ArtEditor Rich Text Editor, I hope it will help you!

Related Article

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.