hi-mention
Advanced tools
Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "hi-mention", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"main": "index", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
@@ -147,2 +147,6 @@ # Mention 提及 | ||
| `onWordWrap` | 方法:换行 | `(e: KeyboardEvent)=> boolean` | 返回 `true` 阻止默认事件和触发其他事件 | | ||
| `onUndoHistory` | 方法:撤销 | `(e: KeyboardEvent)=> boolean` | 返回 `true` 阻止默认事件和触发其他事件 | | ||
| `onSelectAll` | 方法:全选 | `(e: KeyboardEvent)=> boolean` | 返回 `true` 阻止默认事件和触发其他事件 | | ||
| `onShearContent` | 方法:剪切 | `(e: KeyboardEvent)=> boolean` | 返回 `true` 阻止默认事件和触发其他事件 | | ||
| `onMoveCursor` | 方法:移动光标 | `(e: KeyboardEvent)=> boolean` | 返回 `true` 阻止默认事件和触发其他事件 | | ||
@@ -255,21 +259,8 @@ ### HiUserSelector 接口 | ||
``` | ||
# 更新日志 | ||
```html | ||
v2.2.0 2024-10-27 | ||
- 对v2.1.0版本BUG继续修复 | ||
v2.1.0 2024-10-26 | ||
- 修复剪切、复制、粘贴 | ||
- 修复移动光标 | ||
- 修复换行 | ||
- 修复删除 | ||
- 修复焦点 | ||
- 修复占位符展示异常 | ||
- 针对火狐浏览器做兼容处理 | ||
v2.0.1 2024-10-25 | ||
- 修复默认用户选择器切换用户异常 | ||
v2.0.0 2024-10-25 | ||
- 初始版本 | ||
v2.2.1 2024-10-27 - 修复长按删除键导致的光标丢失 v2.2.0 2024-10-27 - 对v2.1.0版本BUG继续修复 v2.1.0 2024-10-26 - 修复剪切、复制、粘贴 - 修复移动光标 - 修复换行 - 修复删除 - 修复焦点 - 修复占位符展示异常 - 针对火狐浏览器做兼容处理 v2.0.1 | ||
2024-10-25 - 修复默认用户选择器切换用户异常 v2.0.0 2024-10-25 - 初始版本 | ||
``` |
@@ -0,0 +0,0 @@ import UserSelector from "./UserSelector"; |
@@ -136,2 +136,4 @@ "use strict"; | ||
for (var i = 0, el = rangeEl; i < 10 && !editorEl; i++) { | ||
if (!el) | ||
break; | ||
if (el.className === const_1.TEXT_TAG_CLASS || ((_a = el.parentElement) === null || _a === void 0 ? void 0 : _a.className) === const_1.ROW_TAG_CLASS) { | ||
@@ -154,3 +156,5 @@ textEl = el; | ||
var textContent = rangeEl.textContent; | ||
rangeEl.remove(); | ||
if (rangeEl.className !== const_1.EDITOR_CLASS) { | ||
rangeEl.remove(); | ||
} | ||
var index_1 = rangeIndex > editorEl.childNodes.length - 1 ? editorEl.childNodes.length - 1 : rangeIndex; | ||
@@ -176,3 +180,5 @@ rowEl = editorEl.childNodes[index_1]; | ||
var textContent = rangeEl.textContent; | ||
rangeEl.remove(); | ||
if (rangeEl.className !== const_1.EDITOR_CLASS) { | ||
rangeEl.remove(); | ||
} | ||
textEl = (0, _1.createTextTag)(textContent ? textContent : rowEl.children.length > 0 ? const_1.PLACEHOLDER_TEXT : const_1.NEW_LINE); | ||
@@ -179,0 +185,0 @@ rowEl.appendChild(textEl); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108891
2490
265