NKeditor v5.0.2 released, an online rich text editor

NKeditor 5.0.2 has been released. NKedtior is a secondary development project based on kindeditor, an excellent open source online editor. Lightweight and powerful, the amount of code is less than half of Baidu's ueditor editor. We have made a lot of optimizations on the basis of kindeditor, including optimizing some styles, and deleting and adding some components.

This update

  1. Correct the font, color and other styles displayed in the position of the drop-down menu icon.

  2. Fix the bug issue of searching relative paths ( https://gitee.com/blackfox/kindeditor/issues/IFLFS  )

  3. Refactored the API for general image upload and image list, optimized image storage and list algorithm issue ( https://gitee .com/blackfox/kindeditor/issues/IFHXZ  )

  4. Fixed some known small bugs and experience details

A few reminders about upgrading:

This optimization is mainly aimed at users who use the old version of KindEditor and want to upgrade to NKeidtor. Since KindEditor uses traversing folders to realize the online file list, NKeditor v5.0.2 uses SimpleDB, a simple file database implemented independently. Implement a file list to reduce the performance loss caused by traversing directories multiple times. So if you want to upgrade smoothly, you must first run php/default/import.php to rebuild the index for the files you have uploaded before.

php php/default/import.php

Before execution, you may need to modify the values ​​of the two variables in import.php according to the actual situation of your project.

// Root directory of file upload, please modify 
$root = $basePath = dirname(dirname(__DIR__)) . "/uploads/"; 
// Root url of image upload, please modify 
$baseUrl according to actual project = "/editor/nkeditor/uploads/";

After modification, you can directly run the import data command above.

online demo

http://d.r9it.com/nkeditor/

Guess you like

Origin blog.csdn.net/yangjian8801/article/details/78247934