Ueditor Rich Text web editor

Source: Internet
Author: User

Ueditor is by the Baidu Web front-end research and development department to see that is the income, a few days ago the company's original rich text editor replaced by Baidu, you can make the style of the whole production copy to the text editor, authentic ...

To the official website to read the document, in fact, very simple, simple configuration can be, ...

You need to add JS: <script src= "in. Net. /.. /.. /ueditor/ueditor.config.js "></script> <script src=". /.. /.. /ueditor/ueditor.all.min.js "></script> <script src=". /.. /.. /ueditor/lang/zh-cn/zh-cn.js "></script> Assignment: 1. Assigning values from background to foreground in. NET can be assigned to the foreground's hidden field 2. Then add JavaScript method in the background to call the foreground JS:                               Clientscript.registerstartupscript (GetType (), "hint", "Fuzhi ()", true); 3. The foreground Fuzhi () assigns the contents of the hidden field: function Fuzhi () { Ue.addlistener ("Ready", function () {/////editor is prepared before you can use Ue.setcontent (d            Ocument.getelementbyid ("Hd_content"). Value);                 });  Save: If it is a Submit button, set a: onclientclick= "return Save ();"          function Save () {var temp = ue.geteditor (' editor '). GetContent ();             document.getElementById ("TXTMM"). Value = temp; document.getElementById ("<%=hd_content.            ClientID%> "). Value = temp;                    document.getElementById ("Txtshow"). Value = temp; In fact, the value is assigned to the hidden domain, the background method is extracted to save,OK..... is not very simple ....

  

Ueditor Rich Text web editor

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.