Home  >  Article  >  CMS Tutorial  >  How to change DedeCMS editor fck to eWebEditor editor

How to change DedeCMS editor fck to eWebEditor editor

藏色散人
藏色散人Original
2020-01-04 10:25:462205browse

How to change DedeCMS editor fck to eWebEditor editor

How to change DedeCMS editor fck to eWebEditor editor?

The effect of inserting eWebEditor editor into DEDE background :

Recommended learning: 梦Weavercms

How to change DedeCMS editor fck to eWebEditor editor

Complete Word online editing function, allowing you to use it from now on Get rid of the stuck editor and enter a new era of smooth and clean editing interface.

The following are the specific steps:

First of all, you need to know what kind of tool eWebEditor is.

eWebEditor is an online text editing tool developed by a domestic software company.

It has now been integrated by several CMS systems.

eWebEditor is an open source online text editing tool. Editor,

Its latest paid version is eWebEditor V6.2, and the latest free version is eWebEditor V4.6, which is equivalent to the original paid version V4.6.

The first step:

First download the latest free version of eWebEditor,

The name is eWebEditor V4.6 Lite Edition,

But in fact, there are no defects in its functions. It is the same as the paid version V4.6.

The address is: http://www.ewebeditor.net/download.asp.

Second step:

Decompress the downloaded eWebEditor V4.6 Lite version compressed file,

You will get 7 folders and 3 files,

Just change the code in the ewebeditor.htm file:

config.ServerExt = "asp";

to:

config.ServerExt = "php";

In this way, the eWebEdito editor can be used on the PHP system ( It can be seen that this editor is extremely compatible).

Upload all the above folders and files to the directory: .

It is best to make up a folder name yourself for your eWebEditor folder name. Do not use the name eWebEditor. This will prevent others from finding your eWebEditor editor and improve the security of the website.

The third step:

Modify the background HTM file of DEDECMS, insert eWebEditor into it, and replace the original FCK text editor.

For example, if you want to replace the FCK text editor for adding a document page,

Find the /dede/templets/article_add.htm file.

Modify the following code segment in the article_add.htm file:

The code is as follows:

 
 

Comment out this code first, the effect is as follows:

The code is as follows:

 
 

Then Insert in front of the comment, the effect is as follows :

The code is as follows:

 
 
 
 

This completes the modification of the article_add.htm file.

Note: The iframe code must be inserted before the commented code, otherwise the ewebeditor editor will not be able to open the table containing it and the display will be incomplete.

Step 4:

Upload the modified article_add.htm and replace the original file, so that when you refresh the background add document page, the new editor will appear.

Note: Other pages that use the text editor can be replaced with the above method.

I hope everyone will enter a new era of informationization and say goodbye to the FCK (Fa Ke) editor. Cherish life and stay away from FCK.

The following is a screenshot of an article successfully published in the DEDECMS background using the ewebeditor editor:

How to change DedeCMS editor fck to eWebEditor editor

The above is the detailed content of How to change DedeCMS editor fck to eWebEditor editor. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn