Home >CMS Tutorial >DEDECMS >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:
##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: 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: 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!