{"id":20588476,"url":"https://github.com/sanluan/ueditor","last_synced_at":"2025-12-26T16:20:14.125Z","repository":{"id":101089325,"uuid":"389121811","full_name":"sanluan/ueditor","owner":"sanluan","description":"由PublicCMS开发团队维护的ueditor分支 增加word文档复、文件上传取消flash,表情、列表图片素材本地化、增加日文翻译等","archived":false,"fork":false,"pushed_at":"2025-02-26T09:30:54.000Z","size":50448,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-04-14T21:52:59.801Z","etag":null,"topics":["ueditor"],"latest_commit_sha":null,"homepage":"http://www.publiccms.com/ui/#mian_w_editor","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanluan.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-24T14:43:43.000Z","updated_at":"2025-02-26T09:27:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"9bbdc796-cbcb-4321-ac29-9ff5fd78ca06","html_url":"https://github.com/sanluan/ueditor","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanluan%2Fueditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanluan%2Fueditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanluan%2Fueditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanluan%2Fueditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanluan","download_url":"https://codeload.github.com/sanluan/ueditor/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248968754,"owners_count":21191158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ueditor"],"created_at":"2024-11-16T07:24:50.080Z","updated_at":"2025-12-26T16:20:14.014Z","avatar_url":"https://github.com/sanluan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 介绍\n让UEditor重新散发活力的硬核更新版本来啦！\n\n与原版1.4.4保持最大程度兼容,不改图标！\n\n支持word、wps文档复制粘贴图片自动上传\n\n## v1.4.5 修改记录\n\n1. 文件上传取消flash\n1. 表情、列表图片素材本地化\n1. 增加日文翻译\n1. 增加word、wps文档复制图片自动上传\n1. 增加base64图片自动转存\n1. 移除截图工具\n1. 移除webapp、音乐、图片搜索等失效功能\n1. 增加视频封面设置、已上传视频选择功能\n1. 一键排版增加字号、字体、行间距、段前断后距离、空格替换设置\n1. 处理中文双引号不能正常转义bug\n1. 增加表格左右滑动\n1. 增加图片高宽比不变方式拉拽\n1. 修复图片选中后不能切换焦点问题\n1. 增加图片属性原尺寸提示\n1. 增加三个内容模板：局部滚动布局、序号标题、左右序号标题\n1. 更新jquery,webuploader,zeroclipboard等第三方插件\n\n## 编译 ##\n\n```\nnpm install grunt -g\ngrunt\n```\n\nGet Started\n\n## ueditor富文本编辑器介绍\n\nUEditor是由百度web前端研发部开发所见即所得富文本web编辑器，具有轻量，可定制，注重用户体验等特点，开源基于MIT协议，允许自由使用和修改代码。\n\n## 入门部署和体验 ##\n\n### 第一步：下载编辑器 ###\n\n到官网下载ueditor最新版：[[GITEE地址]](https://gitee.com/sanluan/ueditor/releases/download/v1.4.5/ueditor-1.4.5.zip \"GITEE下载地址\")\n\n### 第二步：创建demo文件 ###\n解压下载的包，在解压后的目录创建demo.html文件，填入下面的html代码\n\n```html\n\u003c!DOCTYPE HTML\u003e\n\u003chtml lang=\"en-US\"\u003e\n\u003chead\u003e\n\t\u003cmeta charset=\"UTF-8\"\u003e\n\t\u003ctitle\u003eueditor demo\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\t\u003c!-- 加载编辑器的容器 --\u003e\n\t\u003cscript id=\"container\" name=\"content\" type=\"text/plain\"\u003e这里写你的初始化内容\u003c/script\u003e\n\t\u003c!-- 配置文件 --\u003e\n\t\u003cscript type=\"text/javascript\" src=\"ueditor.config.js\"\u003e\u003c/script\u003e\n\t\u003c!-- 编辑器源码文件 --\u003e\n\t\u003cscript type=\"text/javascript\" src=\"ueditor.all.js\"\u003e\u003c/script\u003e\n\t\u003c!-- 实例化编辑器 --\u003e\n\t\u003cscript type=\"text/javascript\"\u003e\n\t    var ue = UE.getEditor('container');\n\t\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n### 第三步：在浏览器打开demo.html ###\n\n如果看到了下面这样的编辑器，恭喜你，初次部署成功！\n\n![部署成功](http://fex.baidu.com/ueditor/doc/images/demo.png)\n\n### 自定义的参数\n\n编辑器有很多可自定义的参数项，在实例化的时候可以传入给编辑器：\n```javascript\nvar ue = UE.getEditor('container', {\n    autoHeight: false\n});\n```\n\n配置项也可以通过ueditor.config.js文件修改，具体的配置方法请看[前端配置项说明](http://fex.baidu.com/ueditor/#start-config1.4 前端配置项说明.md)\n\n### 设置和读取编辑器的内容\n\n通getContent和setContent方法可以设置和读取编辑器的内容\n```javascript\nvar ue = UE.getContent();\nue.ready(function(){\n    //设置编辑器的内容\n    ue.setContent('hello');\n    //获取html内容，返回: \u003cp\u003ehello\u003c/p\u003e\n    var html = ue.getContent();\n    //获取纯文本内容，返回: hello\n    var txt = ue.getContentTxt();\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanluan%2Fueditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanluan%2Fueditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanluan%2Fueditor/lists"}