TP5 configure UEditor editor

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title> UEditor placement </ title>
</head>
<body>
	<script id="container" name="content" type="text/plain" style="width:1000px;height:300px;"></script>
	{js href="/asset/ueditor/ueditor.config.js" /}
	{js href="/asset/ueditor/ueditor.all.js" /}
	<script type="text/javascript"> var ue = UE.getEditor('container');</script>
</body>
</html>

 

Effect picture:

 

Other configurations are as follows:

The upload path of the configuration image is in php/config.json
Replace "/ueditor/php/ with "/

Configure the programmer's toolbar in ueditor.config.js
Just configure display source code undo bold redo font color background color font size ordered list unordered list hyperlink single image upload multiple images upload attachment upload code language date time insert table full screen

remove toolbar:false; in ueditor.all.min.js
Find toolbar:false; delete it, there are two documents in total

Modify the code language in ueditor.all.min.js
PHP javaScript etc.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326534771&siteId=291194637