Ylbtech-javascript-tool:ueditor |
Ueditor is an open source Rich Text editor developed by Baidu Web front-end research and development department, which has the characteristics of light weight, customizable and excellent user experience. Open source is based on the BSD protocol, and all source code can be freely modified and used within the scope of the agreement. Baidu Ueditor launch, can help a lot of developers in the development of rich text editor encountered problems, save developers because of the development of rich text editor needs a lot of time, effectively reduce the development costs of enterprises.
1, features UeditorIn the design of the classic layered architecture design concept, as far as possible to achieve a slight coupling between functional levels. Specifically, the entire system is divided into the
core layer, command plug-in layer and UI layer such as three low-coupling level.
1, the core layer provides some of the editor's underlying methods and concepts, such as
DOM tree operations, Selection, Rangesuch as 2.
The command plug-in layer is covered above the core layer。 The reason is called the command plug-in layer, because all the functional implementation of the ueditor in this layer through the command and plug-ins to complete, and the various commands and plug-ins between the basic non-coupling-the user needs to use which function to import which function corresponding command or plug-in file, No need to consider the other assorted JS files (except for a few plugins, about these plugins will be compiled a dependency list for students to refer to). In theory, all commands can be replaced with plug-ins, but the main reason for separating them is that the commands are static methods that do not have to be initialized with the editor instance, which optimizes the performance of the editor. The plug-in is initialized with the editor and has a slight performance impact, but the plugin can do more complex functions than the command. One of the most important features of the plugin is that you can either register the command for the editor or the editor to bind to the listener event. This feature makes it possible to add any functionality to the editor independently in the plugin. 3.
above the command plug-in layer is the UI layer。 The UI design of Ueditor is almost completely decoupled from the core layer and command plug-in layer, with a few simple configurations to add additional UI elements and functionality to the interface for the editor, which will be described in more detail below. 2.
0, HTTP://UEDITOR.BAIDU.COM/WEBSITE/1, Https://baike.baidu.com/item/UEditor2,
|
Ylbtech Source: http://ylbtech.cnblogs.com/ This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility. |
Javascript-tool:ueditor