Skip to content

Commit 893153a

Browse files
committed
build: v1.3.3 release (^.^)YYa!!
1 parent 405f4d9 commit 893153a

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

changes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# AiEditor ChangeLog
22

3-
## v1.3.2 20241221:
43

4+
## v1.3.3 20241221:
55
- feat: Add link configuration to images
66
- feat: Add alt, title and other attribute configuration to images
77
- feat: Add onClick configuration support to AIMenu
88
- fix: When migrating edited data from wangEditor to AIEditor, some images are not displayed
99
- fix: When there are multiple editor instances on the same page, the number of characters counted is inaccurate
1010
- fix: When the menu is in the active state, the corners are not rounded.
11+
- fix: fix parse init html error if the content is text only
1112
- doc: update ai command docs
1213
- doc: update comment docs
1314

@@ -18,13 +19,13 @@
1819
- 修复:wangEditor 编辑数据迁移到 AIEditor 时,某些图片不显示的问题
1920
- 修复:当同一个页面存在多个编辑器实例时,右下角统计字符数不准确
2021
- 修复:菜单在 active 的状态时,不是圆角的。
22+
- 修复:修复当初始化内容为存文本时 html 解析错误的问题
2123
- 文档:更新 ai command 的相关文档
2224
- 文档:更新评论(批注)的相关文档
2325

2426

2527

2628
## v1.2.9 20241212:
27-
2829
- feat: Added changeTheme() method for dynamic theme switching
2930
- feat: Optimized the color variables related to dark and light themes
3031
- feat: Adjusted the size of emoji to use the toolbarSize configuration
@@ -43,7 +44,6 @@
4344

4445

4546
## v1.2.8 20241203:
46-
4747
- feat: Added support for the Shift-Tab de-indentation shortcut key in code blocks
4848
- feat: Added support for the `:::` syntax of Markdown
4949
- feat: Updated related dependencies to the latest version

dist/index.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/index.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73886,11 +73886,14 @@ const hL = /^:::([a-z]+)?[\s\n]$/, gL = Ne.create({
7388673886
}
7388773887
}
7388873888
let o = "";
73889-
for (let a = 0; a < n.body.children.length; a++) {
73890-
const s = n.body.children[a];
73891-
a == 0 && s.tagName === "P" || s.querySelector("img") && s.tagName !== "A" ? o += s.innerHTML : o += s.outerHTML;
73892-
}
73893-
return o;
73889+
return n.body.childNodes.forEach((a) => {
73890+
if (a.nodeType === Node.TEXT_NODE)
73891+
o += a.textContent;
73892+
else if (a.nodeType === Node.ELEMENT_NODE) {
73893+
const s = a;
73894+
s === n.body.firstChild && s.tagName === "P" || s.querySelector("img") && s.tagName !== "A" ? o += s.innerHTML : o += s.outerHTML;
73895+
}
73896+
}), o;
7389473897
}, AL = he.create({
7389573898
name: "pasteExt",
7389673899
priority: 1e3,

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "aieditor",
33
"author": "yangfuhai",
4-
"version": "1.3.2",
4+
"version": "1.3.3",
55
"type": "module",
66
"keywords": [
77
"editor",

0 commit comments

Comments
 (0)