Skip to content

Commit

Permalink
build: v1.3.3 release (^.^)YYa!!
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfuhai committed Dec 21, 2024
1 parent 405f4d9 commit 893153a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
6 changes: 3 additions & 3 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# AiEditor ChangeLog

## v1.3.2 20241221:

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

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



## v1.2.9 20241212:

- feat: Added changeTheme() method for dynamic theme switching
- feat: Optimized the color variables related to dark and light themes
- feat: Adjusted the size of emoji to use the toolbarSize configuration
Expand All @@ -43,7 +44,6 @@


## v1.2.8 20241203:

- feat: Added support for the Shift-Tab de-indentation shortcut key in code blocks
- feat: Added support for the `:::` syntax of Markdown
- feat: Updated related dependencies to the latest version
Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73886,11 +73886,14 @@ const hL = /^:::([a-z]+)?[\s\n]$/, gL = Ne.create({
}
}
let o = "";
for (let a = 0; a < n.body.children.length; a++) {
const s = n.body.children[a];
a == 0 && s.tagName === "P" || s.querySelector("img") && s.tagName !== "A" ? o += s.innerHTML : o += s.outerHTML;
}
return o;
return n.body.childNodes.forEach((a) => {
if (a.nodeType === Node.TEXT_NODE)
o += a.textContent;
else if (a.nodeType === Node.ELEMENT_NODE) {
const s = a;
s === n.body.firstChild && s.tagName === "P" || s.querySelector("img") && s.tagName !== "A" ? o += s.innerHTML : o += s.outerHTML;
}
}), o;
}, AL = he.create({
name: "pasteExt",
priority: 1e3,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aieditor",
"author": "yangfuhai",
"version": "1.3.2",
"version": "1.3.3",
"type": "module",
"keywords": [
"editor",
Expand Down

0 comments on commit 893153a

Please sign in to comment.