Today, I encountered a problem. In the background management section, I used textbox to set multiple rows, but the customer asked me to wrap the lines and insert spaces. This gave me a headache. If I sent it to cuteeditor, it is too big. Even if you go to the function button, you will find it useless. There is no need to use cuteeditor. You can search for it on the Internet and finally find a text editor developed based on jquery, it is convenient and flexible to use.
I used some of the simplest features.
- Download the latest xheditor, http://xheditor.com/
- Create an xheditor folder under the site. You can download the downloaded file package or my package. For the latest version 1.1.7, click Download.
- Class style for generating textarea or textbox in online http://xheditor.com/wizard
For example: <asp: textbox id = "tb_me" runat = "server" class = "xheditor-mini {skin: 'nostyle', width: '20140901', height: '200', layershadow: 1, forceptag: false, cleanpaste: 3} "textmode =" multiline "> </ASP: textbox>
- Introduce in Head
<LINK rel = "stylesheet" href = "xheditor/common.css" type = "text/CSS" Media = "screen"/>
<SCRIPT type = "text/JavaScript" src = "xheditor/jquery/jquery-1.4.2.min.js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "xheditor/xheditor-1.1.7-zh-cn.min.js"> </SCRIPT>
- The preview page is available as follows.