Skip to content

Commit

Permalink
🐛 fix #1354
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Feb 4, 2023
1 parent 6ec6545 commit 8700069
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[*]
tab_width = 2
tab_width = 4
trim_trailing_whitespace = true
end_of_line = lf
indent_size = 2
indent_size = 4
indent_style = space
insert_final_newline = true
charset = utf-8
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@

* [open issues](https://github.com/Vanessa219/vditor/issues)

### v3.9.1 / 2023-03

* [IR 模式选择内容设置为代码块时异常](https://github.com/Vanessa219/vditor/issues/1354) `修复缺陷`

### v3.9.0 / 2023-01-15

* [1345](https://github.com/Vanessa219/vditor/issues/1345) 移除复制代码块末尾的换行 `改进功能`
Expand Down
4 changes: 3 additions & 1 deletion src/ts/ir/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ export const processToolbar = (vditor: IVditor, actionBtn: Element, prefix: stri
if (range.toString() === "") {
html = `${prefix}<wbr>${suffix}`;
} else {
if (commandName === "code" || commandName === "table") {
if (commandName === "code") {
html = `${prefix}\n${range.toString()}<wbr>${suffix}`;
} else if (commandName === "table") {
html = `${prefix}${range.toString()}<wbr>${suffix}`;
} else {
html = `${prefix}${range.toString()}${suffix}<wbr>`;
Expand Down

0 comments on commit 8700069

Please sign in to comment.