This commit is contained in:
Vanessa 2023-06-09 21:21:48 +08:00
parent 5831aea56e
commit 3caa569386
3 changed files with 5 additions and 4 deletions

View file

@ -3,8 +3,8 @@
cursor: text; cursor: text;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
box-sizing: border-box; box-sizing: border-box;
user-select: auto;
.protyle-breadcrumb__bar { .protyle-breadcrumb__bar {
font-size: 14px; font-size: 14px;

View file

@ -484,7 +484,9 @@ export const updatePanelByEditor = (options: {
) { ) {
return; return;
} }
if (options.protyle.title) {
title = options.protyle.title.editElement.textContent; title = options.protyle.title.editElement.textContent;
}
if (options.resize) { if (options.resize) {
resize(options.protyle); resize(options.protyle);
} }

View file

@ -949,7 +949,7 @@ export class WYSIWYG {
// 三击选中段落块时rangeEnd 会在下一个块 // 三击选中段落块时rangeEnd 会在下一个块
if ((range.endContainer as HTMLElement).classList.contains("protyle-attr")) { if ((range.endContainer as HTMLElement).classList.contains("protyle-attr")) {
// 三击在悬浮层中会选择到 attr https://github.com/siyuan-note/siyuan/issues/4636 // 三击在悬浮层中会选择到 attr https://github.com/siyuan-note/siyuan/issues/4636
range.setEndAfter(range.endContainer.previousSibling.lastChild); setLastNodeRange((range.endContainer as HTMLElement).previousElementSibling, range, false);
} }
} else { } else {
endBlockElement = hasClosestBlock(range.endContainer); endBlockElement = hasClosestBlock(range.endContainer);
@ -1954,7 +1954,6 @@ export class WYSIWYG {
/// #if !MOBILE /// #if !MOBILE
if (newRange.toString().replace(Constants.ZWSP, "") !== "") { if (newRange.toString().replace(Constants.ZWSP, "") !== "") {
protyle.toolbar.render(protyle, newRange); protyle.toolbar.render(protyle, newRange);
} else { } else {
hideElements(["toolbar"], protyle); hideElements(["toolbar"], protyle);
} }