In view of the fact that there are more ISSUEs and less maintenance time at present, and the subsequent version update is in progress, ISSUE is temporarily closed. If anyone in the community follows up, please contact us. For repeated questions, see the FAQ FAQ Wiki 。
-
The commons-fileupload-1.3.1. jar has a vulnerability that may lead to ddos. The source code has been modified. Users who use the old version are strongly recommended to upgrade commons-fileupload.jar to the latest version. (2018-04-09). -
All back-end codes provided by UEditor are only used for DEMO, and must not be directly used in the production environment. Currently, PHP codes are known to have ssrf and file inclusion vulnerabilities, so they are no longer provided.
git clone Warehouse npm install Installation dependency (if grunt is not installed, please install grunt globally first) -
Executed at the terminal grunt default
<! DOCTYPE HTML >
< html lang =" en-US " >
< head >
< meta charset =" UTF-8 " >
< title > ueditor demo </ title >
</ head >
< body >
<!-- Load the editor's container -->
< script id =" container " name =" content " type =" text/plain " > Write your initialization content here </ script >
<!-- Profile -->
< script type =" text/javascript " src =" ueditor.config.js " > </ script >
<!-- Editor source code file -->
< script type =" text/javascript " src =" ueditor.all.js " > </ script >
<!-- Instantiation Editor -->
< script type =" text/javascript " >
var ue = UE . getEditor ( 'container' ) ;
</ script >
</ body >
</ html >
var ue = UE . getEditor ( 'container' , {
autoHeight : false
} ) ;
var ue = UE . getEditor ( ) ;
//It is better to operate the editor after the editor is ready
ue . ready ( function ( ) {
//Set the contents of the editor
ue . setContent ( 'hello' ) ;
//Get the html content and return:<p>hello</p>
var html = ue . getContent ( ) ;
//Get plain text content and return: hello
var txt = ue . getContentTxt ( ) ;
} ) ;