Maison > php教程 > php手册 > le corps du texte

6kzz整合ueditor

WBOY
Libérer: 2016-06-13 11:31:25
original
1020 Les gens l'ont consulté

用过

 

下载下来

就要进行配置了

本文就

1.仿照

目录的

2.找到调用编辑气的页面,在

在引入编辑器文件的位置引入

同时将引入原来编辑器的

 

<span <!--</span><span   


<script type="text/javascript" src="../inc/kindeditor/kindeditor.js"></script>


</span><span --></span>


 


<span <</span><span script </span><span type</span><span ="text/javascript"</span><span  src</span><span ="../inc/ueditor/ueditor.config.js"</span><span ></</span><span script</span><span ></span>


<span <</span><span script </span><span type</span><span ="text/javascript"</span><span  src</span><span ="../inc/ueditor/ueditor.all.js"</span><span ></</span><span script</span><span ></span>
Copier après la connexion

然后初始化

<span <</span><span script </span><span type</span><span ="text/javascript"</span><span ></span>


    <span //</span><span var editor = new UE.ui.Editor();</span>


    <span //</span><span editor.render("myEditor");</span>


    <span //</span><span 1.2.4以后可以使用一下代码实例化编辑器</span>
<span 

    UE.getEditor(</span><span '</span><span myEditor</span><span '</span><span )


</span><span </</span><span script</span><span ></span>


 
Copier après la connexion

如果是文件编辑或者修改

那么在admin.php