xiongxiaoyang 255b3f8c4b feat(templates): 新增绿色主题模版,并设置为默认模版
和文档站点 docs.xxyopen.com 风格保持一致
2023-10-13 21:21:21 +08:00

158 lines
7.9 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 问题记录
## 版本修复
### v3.0.1
- [done] 如何设置自动增加高度补充文档
- [done] src/js/editor/Bar 改为 Progress仅供上传图片使用
- [done] Panel 在右上角增加一个关闭按钮
- [done] 显示页面 tablequotecode 等样式说明一下
- [done] 增加自定义上传回调函数用以自定义返回图片的格式
- [done] 上传附带的参数也加入到 form-data 中一份
- [done] 编辑器默认情况下菜单栏不能点击必须focus了编辑器求之后才能点击
- [done] 点击菜单弹出panel之后再点击编辑器区域其他地方panel不消失
- [done] 自定义filenamev2版本就有
- [done] ff 中的 bug
- [done] ff 中粘贴图片和文字出现问题 https://github.com/wangfupeng1988/wangEditor/issues/609
- [done] 火狐浏览器下创建表格编辑表格内容时会出现两个控制点有人提供了解决方案
- [done] 配置最多上传的文件个数
- [done] 连续给两段内容 添加有/无序列表时样式会出问题且其他内容找不到了并且编辑器不处于编辑状态
- [done] onchange
- [done] IE11下面一直报错并且表格无法正常使用
### v3.0.2
- [done] onchange 完善 vue react demo
- [done] 插入图片之后光标移动到图片的前面然后回车图片消失并且不能撤销
- [done] 修复上传图片 customInsert 无效的bug
- [done] 编辑区域 z-index 可配置
- [done] 上传图片不应该把状态码限制在 200而是 2xx
- [done] editor.txt.html() 之后没有定位光标位置
### v3.0.3
- [done] 粘贴图片在低版本的谷歌浏览器中无法使用提示验证图片未通过undefined不是图片
- [done] 动态赋值内容会自动换行因为给自动加了`<p><br></p>`
- [done] 不选中任何内容点击加粗报错Failed to execute 'setEnd' on 'Range'
- [done] toolbar 小图标的 z-index 可配置
### v3.0.4
- [done] 允许使用者通过`replace`实现多语言
- [done] `_alert()`可自定义配置提示框
- [done] 支持用户自定义上传图片的事件如用户要上传到七牛云阿里云
### v3.0.5
- [done] 图片上传中insertLinkImg 方法中去掉 img.onload 之后再插入的逻辑吧这样会打乱多个图片的顺序
- [done] `<h>` 标签重叠问题两行文字都是`h2`然后将第一行选中设置为`h1`结果是 `<h2><h1>测试1</h1>测试2</h2>`
- [done] 补充 ng 集成的示例 https://github.com/wangfupeng1988/wangEditor/issues/859
- [done] 菜单不能折叠的说明加入到文档中
- [done] 上传图片 before 函数中增加一个判断可以让用户终止图片的上传
### v3.0.6
- [done] src/fonts 中的字体文件名改一下 icomoon 容易发生冲突
- [done] 将禁用编辑器的操作完善到文档中 https://www.kancloud.cn/wangfupeng/wangeditor3/368562
- [done] 开放表格中的粘贴功能之前因不明问题而封闭
- [done] 代码块中光标定位到最后位置时连续两次回车要跳出代码块
### v3.0.7
- [done] 紧急修复上一个版本导致的菜单图标不显示的 bug
### v3.0.8
- [done] 修复 backColor foreColor 代码文件名混淆的问题
- [done] 修改 IE 引用 的功能
- [done] 增加粘贴过滤样式的可配置
- [done] 修复 IE 粘贴文字的问题
### v3.0.9
- [done] config 上传图片的 token 注视掉
- [done] 将一些常见 API 开放写到文档中 https://www.kancloud.cn/wangfupeng/wangeditor3/404586
- [done] IE 火狐 插入多行代码有问题
- [done] 粘贴时`<p>`不能只粘贴纯文本还得要图片
- [done] 粘贴内容中过滤掉`<!--xxx-->`注释
- [done] **支持上传七牛云存储**
### v3.0.10
- [done] 支持插入网络图片的回调函数
- [done] 插入链接时候的格式校验
- [done] 支持拖拽上传
### v3.0.11
- [done] 如何用 textarea 创建编辑器完善到文档中许多人提问
- [done] 修复`editor.customConfig.customUploadImg`不触发的 bug
- [done] 修复有序列表和无序列表切换时 onchange 不触发的 bug
### v3.0.12
- [done] 增加 onfocus onblur 感谢 [hold-baby](https://github.com/hold-baby) 提交的 [PR](https://github.com/wangfupeng1988/wangEditor/pull/1076)
- [done] 上传的自定义参数`editor.customConfig.uploadImgParams`是否拼接到 url 支持可配置
- [done] onchange 触发的延迟时间支持可配置
### v3.0.13
- [done] 修复图片 选中/取消选中 触发 onchange 的问题
- [done] 修复只通过 length 判断 onchange 是否触发的问题
- [done] 增加插入网络图片的校验函数
- [done] 增加自定义处理粘贴文本的事件
- [done] 修复选中一个图片时点击删除键会误删除其他内容的 bug
- [done] 修复 window chrome 复制图片然后粘贴图片会粘贴为两张的 bug
- [done] 修复无法撤销引用的问题
### v3.0.14
- [done] 可以配置前景色背景色
- [done] 回车时无法从`<p><code>....</code></p>`中跳出
- [done] 增加获取 JSON 格式内容的 API
### v3.0.15
- [done] 表情兼容图片和 emoji 都可自定义配置
### v3.0.16
- [done] 修复粘贴图片的 bug
- [done] 修复`pasteTextHandle`执行两次的问题
- [done] 修复插入链接时文字和链接为空时`linkCheck`不执行的 bug
- [done] 粘贴 html 过滤掉其中的`data-xxx`属性
- [done] 修复中文输入法输入过程中出发 onchange 的问题感谢 [github.com/CongAn](https://github.com/CongAn) PR
- [done] `editor.txt.html``editor.txt.text`替换`&#8203`字符为空字符串
- [done] 精确图片大小计算`maxSize / 1000 / 1000`改为`maxSize / 1024 / 1024`
- [done] 修复 droplist 类型菜单颜色背景色等点击不准确的问题
### v3.0.17
- [done] 合并 pr [菜单和编辑区域分离 onfocus onblur 失效bug](https://github.com/wangfupeng1988/wangEditor/pull/1174) ,感谢 [hold-baby](https://github.com/hold-baby) 提供 pr
- [done] 使用`document.execCommand("styleWithCSS", null, true)`这样设置字体颜色就会用 css 而不是用`<font color=xxx>`
### 近期计划解决
- 撤销的兼容性问题会误伤其他编辑器或者 input textarea 考虑用 onchange 记录 undo redo 的内容但是得考虑直接修改 dom 的情况 quote code img list table 菜单
- 列表撤销会删除一行https://github.com/wangfupeng1988/wangEditor/issues/1131
- 页面中有 input 等输入标签时undo redo 会误伤 https://github.com/wangfupeng1988/wangEditor/issues/1024
- 两个编辑器 undo 的问题 https://github.com/wangfupeng1988/wangEditor/issues/1010
- list undo redo 有问题选中几行先设置有序列表再设置无序列表然后撤销就能复现问题
- 粘贴文字的样式问题可暂时配置 `pasteTextHandle` 自行处理
- 先输入文字再粘贴 excel 表格样式丢失 https://github.com/wangfupeng1988/wangEditor/issues/1000
- IE 11 直接输入文字会空一行在第二行出现内容 https://github.com/wangfupeng1988/wangEditor/issues/919
- windows word excel 的粘贴存在垃圾数据
## 待排期
- 调研 safariIE 和ff中粘贴图片 https://github.com/wangfupeng1988/wangEditor/issues/831
- 图片调整大小表格调整的方式是否用 toolbar 的方式
- 删除掉`./release`之后执行`npm run release`会报错原因是`fonts`文件没拷贝全就要去替换`css`中的字体文件为`base64`格式导致找不到文件
- 先点击'B'再输入内容这种形式前期先支持 webkit IE火狐的支持后面再加上
- 图片压缩 canvas https://github.com/think2011/localResizeIMG
- github 徽章 https://github.com/EyreFree/GitHubBadgeIntroduction
- 将代码在进行拆分做到每个程序只做一件事不要出现过长的代码文件例如 `src/js/command/index.js` `src/js/selection/index.js`