Home > Article > Web Front-end > Detailed explanation of the steps to introduce ueditor editor into houjs/hou-admin
This time I will give you a detailed explanation of the steps to introduce the ueditor editor into houjs/hou-admin. What are the precautions for introducing the ueditor editor into houjs/hou-admin? Here is a practical case, let’s take a look.
Download and configure First we download the ueditor source code into houjs/libs/ueditor. We need to configure the ueditor configuration file ueditor.config.js, mainly to modify its URL value. In Chapter 23 Just add a line before the line.
window.UEDITOR_HOME_URL = '/houjs/js/libs/ueditor/';var URL = window.UEDITOR_HOME_URL || getUEBasePath();
Use Next we will use ueditor. Write the following code on the html page according to the ueditor document
<script id="editor" name="abc" type="text/plain"></script>
The next step is the js part
requirejs([''libs/ueditor/ueditor.config','libs/ueditor/ueditor.all'],function(){ var ue = UE.getEditor('editor',{ initialFrameHeight:400 }); });
ok, until now It was successful. How about it? Is it great to inherit houjs?
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
Detailed explanation of the steps for using interfaces in JS
Detailed explanation of the implementation steps of PromiseA
The above is the detailed content of Detailed explanation of the steps to introduce ueditor editor into houjs/hou-admin. For more information, please follow other related articles on the PHP Chinese website!