Skip to content

🌈🌈🌈祝开发者2026年元旦快乐!UEditorPlus 是基于 UEditor 二次开发的富文本编辑器,让 UEditor 焕然一新,已集成秀米、135编辑器,会不定时更新!!!

License

Notifications You must be signed in to change notification settings

mo3408/ueditorplus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UEditor Plus star star

🌈🌈🌈祝开发者2026即将到来的元宵节快乐!UEditorPlus 是基于 UEditor 二次开发的富文本编辑器,让 UEditor 焕然一新,已集成秀米、135编辑器,会不定时更新!!!

输入图片说明 输入图片说明

/dist//dist-min/ 目录分别为构建的非压缩和压缩版代码,可直接使用

联系方式 (进群请添加vx,请备注来源)

输入图片说明

功能亮点

  • 支持文档一键导入,支持Word文档(docx)、Markdown文档(md)文档
  • 全新的UI外观,使用字体图标替换原有图片图标
  • 移除过时、无用的插件支持,不断完善使用体验
  • 图片、文件、视频上传配置化定制增强
  • 演示界面重构,右上角可直接查看当前演示界面代码
  • 兼容现有UEditor,实现无缝切换

使用教程

演示

参考index.html文件

原生使用

<script id="editor" type="text/plain" style="height:300px;"></script>
<link rel="stylesheet" href="_examples/style.css"/>
<script src="_examples/example.js"></script>
<script type="text/javascript" charset="utf-8" src="ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="editor_api.js"></script>
<script type="text/javascript" charset="utf-8" src="lang/zh-cn/zh-cn.js"></script>
<script src="plugins/demo/demo.js"></script>
<script>
    var ue = UE.getEditor('editor', {
        // ... 更多配置
    });
</script>

vue2 使用

npm i --save vue-ueditor-wrap@2.x
# 或
yarn add --save vue-ueditor-wrap@2.x

解压 UEditorPlus 到静态资源目录

复制 dist-min 到项目 public/static/UEditorPlus/ 目录 (Vue部署可参考,传统方式请以上面为准) 引入组件并使用

<template>
    <div>
        <vue-ueditor-wrap v-model="content" editor-id="editor" :config="editorConfig" :editorDependencies="['ueditor.config.js','ueditor.all.js']" style="height:500px;"/>
    </div>
</template>
<script>
    import VueUeditorWrap from 'vue-ueditor-wrap'
    export default {
        components: {
            VueUeditorWrap
        },
        data() {
            return {
                content: '<p>Hello UEditorPlus</p>',
                editorConfig: {
                    // 后端服务地址,后端处理参考
                    serverUrl: '/api/path/to/server',
                    UEDITOR_HOME_URL: '/static/UEditorPlus/',
                    UEDITOR_CORS_URL: '/static/UEditorPlus/',
                }
            }
        }
    }
</script>

vue3 使用

① 安装插件支持

npm i --save vue-ueditor-wrap@3.x
#
yarn add --save vue-ueditor-wrap@3.x

② 解压 UEditorPlus 到静态资源目录

复制 dist-min 到项目 public/static/UEditorPlus/ 目录

③ 引入组件并使用

main.js

import {createApp} from 'vue'
import App from './App.vue'
import VueUeditorWrap from 'vue-ueditor-wrap';

createApp(App).use(VueUeditorWrap).mount('#app')

App.vue

<template>
    <div>
        <vue-ueditor-wrap v-model="content"
                          editor-id="editor"
                          :config="editorConfig"
                          :editorDependencies="['ueditor.config.js','ueditor.all.js']"
                          style="height:500px;"/>
    </div>
</template>

<script setup>
    import {ref} from 'vue';

    const content = ref('<p>Hello UEditorPlus</p>');
    const editorConfig = {
        // 后端服务地址,后端处理参考
        // https://open-doc.modstart.com/ueditor-plus/backend.html
        serverUrl: '/api/path/to/server',
        UEDITOR_HOME_URL: '/static/UEditorPlus/',
        UEDITOR_CORS_URL: '/static/UEditorPlus/',
    }
</script>

react 使用

① 安装插件支持

npm i --save react-ueditor-wrap
#
yarn add --save react-ueditor-wrap

② 解压 UEditorPlus 到静态资源目录

复制 dist-min 到项目 public/static/UEditorPlus/ 目录

③ 引入组件并使用

import RcUeditor from 'react-ueditor-wrap';

function App() {
    const hanldeChage = (value) => {
        console.log('RcUeditor', value);
    }
    return (
        <div className="App">
            <div style={{margin: '0 auto', maxWidth: '800px'}}>
                <RcUeditor
                    value={'<p>Hello UEditorPlus</p>'}
                    ueditorUrl={'/static/UEditorPlus/ueditor.all.js'}
                    ueditorConfigUrl={'/static/UEditorPlus/ueditor.config.js'}
                    editorConfig={{
                        // 后端服务地址,后端处理参考
                        // https://open-doc.modstart.com/ueditor-plus/backend.html
                        initialFrameWidth: '100%',
                        serverUrl: '/api/path/to/server',
                        UEDITOR_HOME_URL: '/static/UEditorPlus/',
                        UEDITOR_CORS_URL: '/static/UEditorPlus/',
                    }}
                    onChange={hanldeChage}/>
            </div>
        </div>
    );
}

export default App;

二次开发

第一步,clone代码到本地

git clone https://gitee.com/mo3408/ueditorplus.git

或

git clone https://gitcode.com/mo3408/ueditorplus.git

第二步,开始功能开发

使用浏览器打开 dist或者dist-min/index.html 页面相关内容,完成功能开发

更新日志

更新日志

开源协议

  • Apache 2.0

About

🌈🌈🌈祝开发者2026年元旦快乐!UEditorPlus 是基于 UEditor 二次开发的富文本编辑器,让 UEditor 焕然一新,已集成秀米、135编辑器,会不定时更新!!!

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors