am-editor

A rich text editor that supports collaborative editing and allows for the free use of front-end common libraries such as React and Vue to extend and define plugins.

MIT License

Stars
919
Committers
22

Bot releases are visible (Hide)

am-editor -

Published by big-camel over 2 years ago

Features

  • 增加 setMarkdown 方法,可通过 engine.setMarkdown 直接解析设置 markdown 值 #87

Fixed

  • table: 修正表格高度和宽度不精准问题
  • card: 卡片工具栏刚插入时不显示

Improvements

  • image & link: 优化 markdown 解析和触发机制
  • image: 优化只读状态下,单击图片放大
am-editor -

Published by big-camel over 2 years ago

Fixed

  • 复制表格后丢失行的高度信息
  • 预览状态卡片的工具栏未显示 #83

Improvements

  • 链接的预览按钮在移动端需要点击两次
  • 简单解决协同撤销与重做冲突问题 #84
am-editor - @aomao/[email protected]

Published by big-camel over 2 years ago

Fixed

  • embed: 大小不能拖动
  • @后会出现无法删除的情况
am-editor - @aomao/[email protected]

Published by big-camel over 2 years ago

Fixed

  • table 粘贴报错

Improvements

image 插件增加新的可选项 #81

  • enableResizer 图片大小是否可以拖动修改,默认为 true

  • enableTypeSwitch 是否启用 block inline 模式切换,默认为 true

  • defaultType 设置默认的图片卡片类型,默认为 'inline'

am-editor - @aomao/[email protected]

Published by big-camel over 2 years ago

Fixed

  • table 表格添加行/列后无法编辑
  • request 上传增加 withCredentials 可选项
am-editor - @aomao/[email protected]

Published by big-camel over 2 years ago

Fixed

  • image 放大后变形(未正确获取到图片的真实宽度)

Improvements

  • video 增加 fullEditor = number 可选项,传入数字即可限定最高高度,以免视频占太多空间
am-editor - @aomao/[email protected]

Published by big-camel over 2 years ago

Fixed

  • 无法解析table中子卡片的html

Improvements

  • sub 优化从word导入解析规则
  • sup 优化从word导入解析规则
am-editor - @aomao/[email protected]

Published by big-camel over 2 years ago

Fixed

table

  1. 只读模式下未禁用编辑
  2. 在td有多个rowspan的情况下,解析错误
  3. #77

engine

  1. getValue 获取不到正确的 cursor 标记
  2. ot 删除的节点路径错误
  3. mark 节点嵌套下unwrap 和 wrap 会出现错误的结果

Improvements

  • 导出 file & image & video 插件的 options 类型
  • 优化粘贴的word格式文本
  • 过滤粘贴过程中 disableMark 中的mark节点
  • 事件绑定增加 options 选项
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • op 在某些情况下修改文字会出现不准确的path
  • table 表格初始化的宽度信息会进入历史栈
  • toolbar popup 的出现位置定位会出现错误
  • engine 样式缓存会被修改,导致下次获取到错误的缓存样式
  • paste 粘贴mark节点在嵌套的情况下未按优先级显示

Improvements

  • 改进 toolbar dropdown 隐藏时机
  • video 插件增加 fullEditor 选项,初始化宽度与编辑器宽度对齐
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • heading 不能复制锚点
  • paste 粘贴后的光标位置记录错误
  • list 复制list粘贴的内容不完整
  • link 工具栏无法输入内容
  • table 子节点未 card 无法渲染
  • copy 调整复制逻辑
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • mark-range:还原后会丢失标记
  • table:粘贴会导致表格嵌套

Improvements

  • toolbar popup:按钮提示位置会被覆盖
  • markdown:插件markdown增加更多的容错性
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • mark:range collapsed 下分割会丢失最外层mark效果
  • list:粘贴多层次嵌套列表位置错乱
  • codeblock:代码块内撤销会导致光标跳出到代码块外部
  • code:行内代码粘贴,粘贴后的内容位置错误
  • table:表格行列无法拖动
  • mention:自定义渲染接口多次渲染未清空之前的内容

Improvements

  • codeblock:增加 alias?: Record<string, string>; 可选项,无法识别的别名可以通过这里设置与 CodeMirror 对应的语言
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • mark-range:wrapFromPath & filterValue 方法会对卡片大小有影响

Improvements

  • status:通过 static 属性传输颜色参数改为通过插件 options 传入
  • mention:通过 static 属性传入事件和方法改为通过插件 options 和 编辑器事件触发
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • codeblock:无法正确保存选择后的语言和数据
  • status:无法正确解析对应的html
  • mark-range:标记在可设置mark样式的卡片中无法复原

Improvements

  • card:改进卡片之间的键盘左右上下的光标选择
  • typescript:类型优化
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Features

  • toolbar 增加浮动工具栏

Fixed

  • status 无法解析状态卡片html
  • mark 在mark样式节点包裹后无法修改背景色、无法去除需要执行的样式
  • table 撤销或重做后 列头/行头 会丢失
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Features

  • 卡片内可应用mark样式

Fixed

  • paintformat: 应用格式刷后光标位置错误
  • parser: 解析文本换行会多出一个
  • codeblock:未解析ul、ol节点
  • input:搜狗输入法输入@会出现两个@符合
  • table:全选table无法完整复制,从numbers中复制会解析多个无效的列
  • ot:删除节点无法正确获取到节点的__index
  • list:粘贴ul、ol节点和markdown无法解析嵌套的节点
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • image markdown 的图片链接中如果包含其它字符会无法命中
  • 滚动条在视窗大小改变后未执行回调
  • 删除操作后滚动条未滚动到光标位置处
  • 移除到编辑区域外的表格选中样式缺失
  • 表格评论后,评论标记丢失
  • 卡片渲染后未赋予__index,导致撤销失败
  • inline 卡片删除后光标位置错误
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Features

  • 表格支持拓宽到编辑区域外侧,视野更充足,上下按键支持,tab键到最后一个单元格自动新建一行
  • 代码块可以设置换行或者显示滚动条
  • 视频支持拖动改变大小

Fixed

  • 粘贴过程中对标签转换不不完全,造成遗漏
  • 在协同情况下,懒加载卡片会造成协同数据异常
  • mention 插件,在Android下无反应,在safari浏览器中会多出一个@符号
  • tasklist 插件,在Android下行首的位置组合输入法会造成字符混乱
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • 评论标记获取路径错误,range 的 toPath 、fromPath 增加 root 参数
  • block 节点插入会跳转到下一行
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • 粘贴过程中有转换的情况下子节点无法进行正确的过滤
  • 协同中会有一定的情况会造成卡片不渲染
  • 格式刷插件双击会报错