Home >Web Front-end >JS Tutorial >Detailed explanation of the steps to introduce ueditor editor into houjs/hou-admin

Detailed explanation of the steps to introduce ueditor editor into houjs/hou-admin

php中世界最好的语言
php中世界最好的语言Original
2018-05-24 15:21:091800browse

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([&#39;&#39;libs/ueditor/ueditor.config&#39;,&#39;libs/ueditor/ueditor.all&#39;],function(){
    var ue = UE.getEditor(&#39;editor&#39;,{
        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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn