JQuery Mobile End Arteditor Rich Text editor _jquery

Source: Internet
Author: User

Because of the slow typing on the phone, it is not suitable for lengthy articles, so there are few rich text editors on the mobile side. Arteditor is a jquery based mobile end Rich text editor, supporting the insertion of pictures, follow-up to improve other features.

Plugin Address: Https://github.com/baixuexiyang/artEditor Welcome to star or fork.

Demo

Reference:

<script src= "Http://code.jquery.com/jquery-1.11.0.min.js" ></script> 

Parameters:

Imgtar

Picture Upload button

Limitsize

Picture maximum limit, default 3 trillion

Showserver

Display a picture returned from the server, by default a picture showing local resources

Uploadurl

Picture Upload Road Strength

Data

Upload pictures Other parameters

Uploadfield

Upload picture fields

Placeholader

Rich Text editor Holder

Validhtml

When pasting, remove illegal HTML tags

Uploadsuccess

Picture upload Successful Callback

Uploaderror

Picture upload failed callback

Demo

Html:

<div id= "Content" >

Js:

$ (' #content '). Arteditor ({
imgtar: ' #imageUpload ',
limitsize:5,//Mega
Showserver:false,
uploadurl: ' ,
data: {},
Uploadfield: ' Image ',
placeholader: ' <p> Please enter the content of the article Body </p> ',
validhtml: [ BR "],
uploadsuccess:function (res) {
//return img URL return
res.path;
},
Uploaderror: Function (res) {
//Something Error
console.log (res);
}
});

The above content for you to introduce the jquery mobile end Arteditor Rich Text editor of the relevant knowledge, I hope you like.

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.