Home  >  Article  >  CMS Tutorial  >  How to change dede editor to kindEditor editor

How to change dede editor to kindEditor editor

藏色散人
藏色散人Original
2019-12-21 10:17:022561browse

How to change dede editor to kindEditor editor

How to change dede editor to kindEditor editor?

Recently, due to project needs, I was working on dedeCMS and found that the ckEditor that comes with dede is not very good at word pasting. The content of ctrl V directly from word is different from the expression style on wrod. It’s very big. Finally, it was successfully tested on kindEditor. It can completely save the style copied from word. See the illustration below.

Recommended learning: 梦Weavercms

Let’s take a look at the renderings first:

How to change dede editor to kindEditor editor

##Considering the unity of the dede system, we abandoned the direct By directly modifying the article_edit.htm template, you can complete the editor replacement while only modifying a small place.

First download the packaged kindEditor_for_dedeCMS.rar.

After decompression, you will get a kindeditor directory, which is copied to the dede root directory include/ for convenience.

Then replace the original inc_fun_funAdmin.php file with inc_fun_funAdmin.php under kindeeditor. This file is under the dede root directory/include/inc.

Then modify the system configuration in the cms background:

How to change dede editor to kindEditor editor

Save and that’s it.

If you cannot modify the system configuration as an administrator, you can directly modify the dede root directory/data/config.cache.inc.php:

How to change dede editor to kindEditor editor

This must be If it is set to 'kindEditor', the others will have no effect. If you want to modify this value, you can modify the corresponding value in inc_fun_funAdmin.php mentioned above.

The above is the detailed content of How to change dede editor to kindEditor 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