Home > Web Front-end > JS Tutorial > body text

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

php中世界最好的语言
Release: 2018-05-24 15:21:09
Original
1741 people have browsed it

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();
Copy after login

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>
Copy after login

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
    });
});
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!