Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@wangeditor/core

wangeditor-team71.4kMIT1.1.19TypeScript support: included

wangEditor core

readme

wangEditor core

wangEditor core.

Main Functionalities

  • View( model -> vdom -> DOM ) + Selection
  • Menus + toolbar + hoverbar
  • Core editor APIs and events
  • Register third-party modules (menus, plugins...)

Main dependencies

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.1.19 (2022-11-14)

Bug Fixes

  • font family menu: 处理 setHtml 的时候字体样式回显失败的问题 (b941bab)
  • fontFamily menu: fix font-family value quote symbol (2c25231)

1.1.18 (2022-10-18)

Bug Fixes

  • mousedown事件添加passive的默认值 (60229cc)
  • video menu: fix invoke clear api can not clear video node when insert video (68c1f8e)

1.1.17 (2022-10-04)

Bug Fixes

  • 修复 compositionend 时错误修改dom的问题 (1187154)
  • 修复设置 maxlength 后粘贴异常的问题 (14003d0)

1.1.16 (2022-09-27)

Bug Fixes

  • list-item - 遇到 style 是 toHtml 出错 (9854308)

1.1.15 (2022-09-27)

Note: Version bump only for package @wangeditor/core

1.1.14 (2022-09-16)

Note: Version bump only for package @wangeditor/core

1.1.13 (2022-09-15)

Bug Fixes

  • focus table 时 isFocused 异常 (5c52bf3)
  • snabbdom 增加 attributesModule (2c597b6)

1.1.12 (2022-08-30)

Bug Fixes

1.1.11 (2022-07-27)

Note: Version bump only for package @wangeditor/core

1.1.10 (2022-07-27)

Bug Fixes

  • setHtml 支持空字符串 (d438157)
  • upload file callback error (bf20e07)

1.1.9 (2022-07-22)

Bug Fixes

1.1.8 (2022-07-18)

Bug Fixes

1.1.7 (2022-07-16)

Bug Fixes

  • setHtml() 多一个空行 (994954f)
  • 图片受 indent 影响 (3d737f1)

1.1.6 (2022-07-14)

Bug Fixes

  • 粘贴网页 HTML 报错 (939cb22)

1.1.5 (2022-07-13)

Bug Fixes

  • setHtml 问题 - table 后面 p 格式错误 (b525b4a)

1.1.4 (2022-07-12)

Note: Version bump only for package @wangeditor/core

1.1.3 (2022-07-11)

Bug Fixes

  • scroll 滚动问题 (bc133e1)
  • 修复选中内容输入时,出现光标位置不对或者输入重复内容的问题 (9596a4c)

1.1.2 (2022-07-11)

Bug Fixes

  • editor.focus() 参数语法错误 (334fa21)
  • focus blur 问题 (4a1997b)
  • 单词之间空格问题 issue 4403 (2f1d6f5)

1.1.1 (2022-06-02)

Bug Fixes

  • issue 4308 - 自定义字号、字体无法回显 (ad38b8c)

1.1.0 (2022-05-25)

Bug Fixes

  • 修复 readonly 模式下,特定内容下editor初始化报错的问题 (f3bc8b8)
  • 粘贴 HTML 后 font-size font-family line-height 不显示 (2281957)

Features

1.0.1 (2022-04-18)

Bug Fixes

  • 部分菜单 disabled (87f1233)
  • 错别字 alwaysEnable (82c5136)
  • 弹出 modal 时 blur (53454ef)
  • 点击编辑器区域,未关闭 dropPanel (b23123b)
  • 多余的空行 (4af6c64)
  • 多余的空行 (9dde85c)
  • 更新各包之间依赖版本 (75c552c)
  • 获取 activeElement 兼容 Document 和 ShadowRoot (d904e5d)
  • 拼音输入 bug we-2021/issues/47 (20b7429)
  • 拼音隐藏 placeholder (aec1a9f)
  • 全屏边距 (1acb129)
  • 全选 (3cb8f42)
  • 上传图片 - base64 仍触发上传 + 超出 maxSize 的报错提醒 (a1d469a)
  • 使用了 ts 类型空间导入方式优化 (5d7b509)
  • 图片上传,提示 (3754012)
  • 完善了 isDOMEventHandled (745f1d7)
  • 完善了 metaWithUrl 类型声明 (3542834)
  • 修复 firefox 上全选编辑器内容使用拼音输入异常 (87dafcb)
  • 修复 modal 中的 input 没有被 focus (484c51e)
  • 修复 modal close 时没有恢复选区的问题 (16f5a57)
  • 修复回车超过视口后没有自动滚动的问题 (f088b52)
  • 修复了使用拼音输入法在 safari 上光标位置没有正常更新的问题 (cb4cf12)
  • 修复连续输入空格滚动条不滚动的bug (3bd358d)
  • 修复内容重复和编辑器内容拖动的一些 bug (5a9c9d0)
  • 修复行间距过小无效 (5f13a5b)
  • 修复选中内容中文输入时光标定位问题 (51596a8)
  • 修复用户自定义change事件获取html时tabal报错 (5204f8e)
  • 修复在 Chrome 和 Safari 中删除内容时,内联空节点被选中 (a47c73f)
  • 修复在 Safari 下,即使 contenteditable 元素非聚焦状态,并不会删除所选内容 (3e8ca3c)
  • 修复在代码块中中文输入会有多余字符的问题 (a138c3f)
  • 修复在destory可能出现editor not find的问题 (ce60416)
  • 修复Safari上table内空行输入报错的问题 (dae6dc5)
  • 修复ua正则不支持100+的问题 (c488ba0)
  • 选择图片会滚动 (d2a8762)
  • 选中内容输入中文报错 (890cc68)
  • 移除了每个包下的 publishConfig directory 配置 (16559f0)
  • 优化插入新文本的滚动交互 (71131a4)
  • 优化当父元素有滚动条,插入新文本的滚动交互 (9275090)
  • 优化了 core 类型声明 (5b5ee1e)
  • 优化了 deleteFragment 函数调用传参 (8d8145c)
  • 优化了 normalizeDOMPoint 函数 (31b9999)
  • 优化了当编辑失焦编辑区域滚动到顶部的问题 (ebb966b)
  • 优化了浏览器是否支持 beforeinput 事件的兼容性判断 (ea221bb)
  • 优化选中代码块不应该展示 hoverbar 的交互 (33dcbd6)
  • 在移动 word 之前折叠展开选区 (6b9b0f3)
  • 增加 EXTEND_CONF 配置扩展能力 (ff75a16)
  • 重复创建 (3682c53)
  • autoFucos (fea2faf)
  • beforeinput support (60e6efc)
  • blockquote & header insertBreak (06678c9)
  • button 增加 type (37b3390)
  • chrome 链接后输入拼音,js 错误 (6c04fab)
  • clear API (c188b56)
  • code-block 选择语言 - 点击拖拽滚动条 (b8c75e7)
  • composition-end (082561d)
  • create - 判断 content length (c0eadc9)
  • dangerouslyInsertHtml - 兼容异常情况 (8b549f4)
  • droplist 过长 (1de2a76)
  • dropPanel 定位 (e76310a)
  • editor.blur() api 无效 (48cbff3)
  • firefox下全选输入出现多余字符 (659b107)
  • fix https://github.com/wangeditor-team/wangEditor-v5/issues/457 (1d8a46a)
  • fullScreen 隐藏 hoverbar (ec463d3)
  • getElems 增加 id (1dcedd9)
  • getHtml 死循环 (4614bfb)
  • getHtml API (c0b60cf)
  • group-menu 考虑 excludeKeys (ecc29f3)
  • hotkey mod (d480c20)
  • hoverbar - 处于网页下部 (6cfb3e2)
  • hoverbar 被点击多次隐藏 (bf4fc19)
  • hoverbar active (ceb3f41)
  • hoverbar modal 重复创建 (70d2b61)
  • hoverbar show/hide (c96bc83)
  • hoverbarKeys - text (59b4840)
  • html 特殊字符 (b3eb81b)
  • i18n - 获取多语言配置 (9f81597)
  • i18n 切换语言 (b3b4642)
  • insertHtml - maxLength (8c7dc8b)
  • insertHtml - maxLength (52d72ec)
  • insertHtml - maxLength (b573359)
  • insertKeys (0a89420)
  • link, text hoverbar 选区问题 (e0b7438)
  • maxLength - 拼音 + 粘贴 (3ac4db6)
  • maxLength 对于拼音输入无效 (117faa6)
  • menu 点击多次才能生效 (6497e39)
  • min-height (460fad5)
  • modal close (dbfb3b4)
  • normalize when create editor (2b51962)
  • parse html - 有些 elem children 需要过滤 (63cbb80)
  • parse-html - space 160 (54e72bc)
  • parse-html - sub sup (2c15a5f)
  • parseHtml - 多空格文本 (5d4479c)
  • placeholder - 全选输入中文 (fe4dd2a)
  • placeHolder elem (7d577ac)
  • readOnly 时菜单还可操作 (0d4a29b)
  • readOnly 依然可以 insertText (096eeaf)
  • rename es module filename (1821d4e)
  • shadowDOM 节点支持问题 (5eb41f1)
  • shadowDOM 在失焦状态下元素获取失败 (98aeccc)
  • table - 粘贴合并单元格的表格 (56ecb63)
  • table - elemToHtml (e36e609)
  • table-cell 全选 (1ef4872)
  • tableCell 中 br 报错 (8604db7)
  • td th 中换行不起作用 (89c6032)
  • textarea height (873b04a)
  • tooltip (7e066d1)
  • upload progress 0 (9e660be)
  • url 后面中文输入异常 (3bcebc7)
  • void node - 不清理 text (1bc891c)
  • vue 组件增加 customPaste (e764248)
  • w-e-menu-tooltip 和 v4 冲突 (762403b)
  • z-index (02ec2d5)

Features