php版的UEditor使用

来源:互联网 发布:淘宝商品标识上传错 编辑:程序博客网 时间:2024/06/05 01:09

下载php版的ueditor

页面中嵌入ueditor

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>编辑器php版实例</title>
</head>
<body>
    <form method="post" action="1.php">
        <!-- 加载编辑器的容器 -->
        <script id="container" name="content" type="text/javascript">
            
        </script>
        <!-- 导入UEditor文件 -->
        <script type="text/javascript" src="../plugins/ueditor/ueditor.config.js"></script>
        <script type="text/javascript" src="../plugins/ueditor/ueditor.all.min.js"></script>

       <!--  实例化编辑器 -->
        <script type="text/javascript">
            var editor=UE.getEditor('container');
        </script>
        <input type="submit" value="提交">
    </form>
</body>
</html>


修改图片上传路径(imagePathFormat)  相对于网站的根目录而言

文件结构:






0 0
原创粉丝点击