Daguo CMS background editor integrated with ueditor Editor

Source: Internet
Author: User

There are several reasons for changing to a hundred-degree Editor:
1. it is necessary to use the image Pasting and uploading function of Baidu editor. During development or uploading, QQ is usually used for direct uploading to the article, it is really troublesome to save it locally.
2. Use the word image transfer function. When offline, you can use word to write the article and upload it to the website. Images are the biggest problem, which can be perfectly solved using the Baidu editor.
3. good scalability. Baidu editor seems to be more convenient to develop plug-ins.
This function does not modify the core code of the CMS, so there is no problem.
The procedure is as follows:
1. Download the customized Baidu plug-in. below is

Http://www.amicm.com/index.php/lskes? APP = KF & Action = code/view & id = 10

Download and decompress the package to the E/extend/lskue directory. This is uedtior. It is modified.
2. Modify the field in system-manage data table-in the background, and replace the editor field of newstext with the following code:
<SCRIPT id = "newstext" name = "newstext" type = "text/plain" style = "width: 100%; Height: 500px;"> <? = Stripslashes ($ R [newstext])?> </SCRIPT>

<SCRIPT type = "text/JavaScript">
VaR lskcf = {classid: <? = Empty ($ R ['classid '])? Intval ($ _ Get ['classid ']): $ R ['classid']?>, Filepass: <? = $ Filepass;?>, Infoid: <? = Intval ($ _ Get ['id'])?> };
</SCRIPT>
<SCRIPT type = "text/JavaScript" charset = "UTF-8" src = "/e/extend/lskue/ueditor. config. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" charset = "UTF-8" src = "/e/extend/lskue/ueditor. All. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" charset = "UTF-8" src = "/e/extend/lskue/lang/ZH-CN/zh-cn.js"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
VaR ue = UE. geteditor ('newstext '); </SCRIPT>


<Table width = "100%" border = "0" cellpadding = "3" cellspacing = "1" bgcolor = "# dbeaf5">
<Tr>
<TD bgcolor = "# ffffff"> <input name = "Dokey" type = "checkbox" value = "1" <? = $ R [Dokey] = 1? 'Checked': ''?>
Keyword replacement & nbsp; <input name = "copyimg" type = "checkbox" id = "copyimg" value = "1">
Save images remotely (
<Input name = "mark" type = "checkbox" id = "mark" value = "1">
<A href = "setenews. php <? = $ Ecms_hashur [whehref]?> "Target =" _ blank "> watermarking </a>) & nbsp;
<Input name = "copyflash" type = "checkbox" id = "copyflash" value = "1">
Save flash remotely (address Prefix:
<Input name = "qz_url" type = "text" id = "qz_url" size = "">
) </TD>
</Tr>
<Tr>

<TD bgcolor = "# ffffff"> <input name = "repimgnexturl" type = "checkbox" id = "repimgnexturl" value = "1"> convert the image link to the next page. & nbsp; & nbsp; <input name = "autopage" type = "checkbox" id = "autopage" value = "1"> automatic Paging
, Each
<Input name = "autosize" type = "text" id = "autosize" value = "5000" size = "5">
Byte: one page & nbsp;
<Input name = "getfirsttitlepic" type = "text" id = "getfirsttitlepic" value = "" size = "1">
An upload image is a title image (
<Input name = "getfirsttitlespic" type = "checkbox" id = "getfirsttitlespic" value = "1">
Thumbnail: width
<Input name = "getfirsttitlespicw" type = "text" id = "getfirsttitlespicw" size = "3" value = "<? = $ Public_r [spicwidth]?> ">
* High
<Input name = "getfirsttitlespich" type = "text" id = "getfirsttitlespich" size = "3" value = "<? = $ Public_r [spicheight]?> ">
) </TD>
</Tr>
</Table>

Daguo CMS background editor integrated with ueditor 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.