Skip to content

Commit

Permalink
🔖 v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Oct 11, 2024
1 parent 0434d8e commit dfb24e7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## v1.0.6 / 2024.10.11
## v1.0.7 / 2024.10.11
- 排除对超链接、块引的格式刷
- 支持公式的格式刷

Expand Down
2 changes: 1 addition & 1 deletion README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## 🚀开发背景

当在思源笔记做笔记需要添加样式的时候,如果想要给多个文字同时添加叠加的样式,例如背景色+加粗,就会比较麻烦,更别说三种以上的样式叠加了(如字体色+字体大小+加粗)😖💔
当在思源笔记做笔记需要添加样式的时候,如果想要给多处的文字批量添加样式,比如批量加粗、批量添加行内代码,每次都要按快捷键或者通过悬浮工具栏点击添加样式,有点繁琐,两种以上的样式叠加(例如背景色+加粗)以及三种以上的样式叠加(如字体色+字体大小+加粗)只会更繁琐 😖💔


因此模仿office的格式刷,开发了这个格式刷插件,希望能成为你的思源笔记美化小帮手,帮你节省时间快速美化笔记!💃🕺
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "siyuan-plugin-formatPainter",
"author": "Achuan-2",
"url": "https://github.com/Achuan-2/siyuan-plugin-formatPainter",
"version": "1.0.6",
"version": "1.0.7",
"minAppVersion": "3.0.12",
"backends": [
"windows",
Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class PluginSample extends Plugin {
}
this.formatPainterEnable = true;
document.body.dataset.formatPainterEnable ="true";
console.log(this.formatData);
// console.log(this.formatData);
fetchPost("/api/notification/pushErrMsg", { "msg": this.i18n.enable, "timeout": 7000 });
this.protyle.toolbar.range.collapse(true);
// 关闭toolbar
Expand Down Expand Up @@ -103,7 +103,7 @@ export default class PluginSample extends Plugin {
}
}
this.protyle.toolbar.range = range; // 更改选区
console.log(this.protyle.toolbar.range.toString());
// console.log(this.protyle.toolbar.range.toString());
// Apply the stored format to the selected text
// 如果都为空
this.protyle.toolbar.setInlineMark(this.protyle, "clear", "range");
Expand All @@ -112,7 +112,7 @@ export default class PluginSample extends Plugin {
return;
}
if (this.formatData.datatype) {
console.log(this.formatData.datatype);
// console.log(this.formatData.datatype);


// this.protyle.toolbar.setInlineMark(this.protyle, this.formatData.datatype, "range");
Expand Down Expand Up @@ -207,7 +207,7 @@ export default class PluginSample extends Plugin {
}
}

console.log(selectedNode);
// console.log(selectedNode);
// console.log(endNode);

let parentElement = selectedNode.nodeType === Node.TEXT_NODE ? selectedNode.parentNode : selectedNode;
Expand Down

0 comments on commit dfb24e7

Please sign in to comment.