We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d298ed commit cd81d9cCopy full SHA for cd81d9c
app/src/protyle/header/Title.ts
@@ -49,6 +49,12 @@ export class Title {
49
// 不能使用 range.insertNode,否则无法撤销
50
let text = event.clipboardData.getData("text/siyuan");
51
if (text) {
52
+ try {
53
+ JSON.parse(text);
54
+ text = event.clipboardData.getData("text/plain");
55
+ } catch (e) {
56
+ // 不为数据库,保持 text 不变
57
+ }
58
text = protyle.lute.BlockDOM2Content(text);
59
} else {
60
text = event.clipboardData.getData("text/plain");
0 commit comments