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 - @aomao/[email protected]

Published by big-camel almost 3 years ago

Feature

  • link插件增加对普通url文本解析
  • 评论标记更新为 border-bottom 实现换行显示标记,去掉代码行数里标记样式
  • 上传请求增加 withCredentials 选项 #60

Fixed

  • safari 下图片无法缩放,图片放大未显示原图尺寸大小
  • 格式刷无法删除已有样式
  • 文本删除生成的op指令排序错误
  • 粘贴会错误的过滤掉空格
  • 解析table的html没有正确的解析head标签
  • heading 插件的 anchor 按钮被删除后无法删除 tooltip 提示
  • 行内代码在文字中插入时最后一个字会挤掉
  • 选中block节点,然后粘贴markdown会导致节点位置错误
  • 协同环境下修正某些情况获取删除的节点索引出现错误
  • 格式刷block节点偶现 selectNode 无法选中节点的错误
  • 插入包含文本和inline卡片的节点会导致文本节点位置异常 #61
  • mark节点粘贴过滤不完全
  • 复制列表会导致列表多层嵌套
  • 快捷键会重复执行
  • 错误的删除了span不为空的节点
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Feature

  • 增加嵌入url插件(@aomao/plugin-embed)
  • 优化粘贴时解析markdown的流程
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • 表格中不能导出未渲染卡片的html
  • 优化标记插件协同交互
  • 协同交互影响了当前编辑者的光标
  • 浏览器会响应默认快捷键命令与当前绑定的快捷键会重复执行命令
  • 插入block卡片会多一行空行
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Feature

  • getHtml 移除 p 标签继承编辑器根节点的样式

Fixed

  • 相同uuid用户在协同编辑时会进入死循环
  • quote 在光标拖选时不能删除
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Feature

  • 移除 mark-range 插件 onChangeonSelect 可选项,使用 mark-range:selectmark-range:change 事件替代
  • 增加卡片懒渲染,给卡片静态属性 lazyRender 标识为 ture 即可启用卡片懒渲染,即卡片节点在视窗内可见时才渲染。engine 可选项增加 lazyRender 设置,设置为 false,即禁用全部卡片懒渲染,默认为 true。codeblock 和 table 已支持懒渲染。在支持懒渲染的情况下,粘贴速度大大提高

Fixed

  • 不能连续换行
  • 光标重合时进行评论标记会自动取消
  • vue link 插件解析 markdown 错误
  • 两个inline类型的卡片在一起时,删除会造成结构性错误

Docs

  • 更新卡片 & mark-range 文档
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Feature

  • vue工具栏列表不显示快捷键 #57
  • 编辑时一点点性能优化
  • 粘贴时一点点性能优化
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Feature

  • shfit+enter 只在列表中有效
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • 粘贴单行 markdown 转换后,没有删除markdown语法
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • inline card 两侧输入中文乱码
  • 增加 data-id 重复的容错性
  • 列表回车无效果、复制自定义列表首行不带卡片
  • 卡片左右两边回车后插入的节点位置不正确
  • 再列表中插入卡片会多出一个空行
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • 复制未重置节点的data-id
  • 增加 ops 产生的容错性
  • setJsonValue 遇到空节点会报错
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Refactor

  • MutationObserver 产生 ops 的逻辑
  • 撤销与重做
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • shift + enter cannot wrap at the end of the paragraph

Feature

  • cannot copy the text at the end of a single line of the list
  • optimize the card selection state mechanism
  • the non-editing state does not enable the mouse scroll of the table plug-in to trigger the scroll bar
  • plugin-image does not display the image when the src has not changed, load the placeholder image
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • Fix the accuracy of restoring ops positions from MutationObserver
  • Undo, redo, and remote modification do not apply the node index correctly
  • The structure is disordered due to pasting

Feature

  • Add shortcut keys to copy and paste in the table
  • Add multiple editors to copy and paste boundary judgment
  • Add data-element=ui attribute to link ui
  • Optimize the quote plugin paste parsing

Docs

  • Update vue2 documentation
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Fixed

  • Paste cannot access the engine object
  • Cards enable autoSelected=false and do not perform selection

Feature

  • math add shortcut keys
am-editor - @aomao/[email protected]

Published by big-camel almost 3 years ago

Feature

  • mention & math multiple asynchronous requests, interrupt all previous requests
  • add abort method to request.ajax

Fixed

  • setValue setHtml will trigger focus and cause scrolling

Chore:

  • change the vue build process
am-editor - @aomao/[email protected]

Published by big-camel about 3 years ago

Feature

  • Added shift-enter event interception processing
  • history optimizes the lock method mechanism in the history record
  • ot increases the error tolerance of getting index

Fixed

  • plugin-mark-range is not synchronized ot after marking
  • The mark plugin cannot be applied correctly after multiple nesting of mark
  • node after before cannot append the array NodeInterface
  • ot increases the error tolerance of getting index
am-editor - @aomao/[email protected]

Published by big-camel about 3 years ago

Feature

  • The style problem after the maximized card is selected

Fixed

  • mark range cannot be wrapped in collapsed
  • card the onChange event of the editable card cannot be triggered when the card toolbar has an input box
  • setValue setHtml If there are multiple editors, if the current editor is not focused, the value will be set to another editor
am-editor - @aomao/[email protected]

Published by big-camel about 3 years ago

Feature

Fiexd

  • parser pastes blank lines with mark nodes cannot be displayed
  • engine setValue cannot generate data-id in some cases
  • change deleteContent method may leave a blank line that cannot be selected after deleting
am-editor - @aomao/[email protected]

Published by big-camel about 3 years ago

Feature

  • optimize zero-width characters for mark and inline
  • file-uploader error handling

Fiexd

  • set the serial number markdown of an orderedlist is invalid
  • deleting a block node with an empty mark cannot delete blcok
  • wrong cursor position when setting markdown original painting
  • markdown does not restore the cursor correctly after undoing the operation
  • fix the wrong position of the collaborative cursor
am-editor - @aomao/[email protected]

Published by big-camel about 3 years ago

Feature

  • Optimize card selection logic
  • toolbar & mention quickly insert query input box is covered by text

Fiexd

  • In some cases setValue will add a blank line at the beginning of the document