mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
5831aea56e
commit
3caa569386
3 changed files with 5 additions and 4 deletions
|
|
@ -3,8 +3,8 @@
|
|||
cursor: text;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
box-sizing: border-box;
|
||||
user-select: auto;
|
||||
|
||||
.protyle-breadcrumb__bar {
|
||||
font-size: 14px;
|
||||
|
|
|
|||
|
|
@ -484,7 +484,9 @@ export const updatePanelByEditor = (options: {
|
|||
) {
|
||||
return;
|
||||
}
|
||||
title = options.protyle.title.editElement.textContent;
|
||||
if (options.protyle.title) {
|
||||
title = options.protyle.title.editElement.textContent;
|
||||
}
|
||||
if (options.resize) {
|
||||
resize(options.protyle);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -949,7 +949,7 @@ export class WYSIWYG {
|
|||
// 三击选中段落块时,rangeEnd 会在下一个块
|
||||
if ((range.endContainer as HTMLElement).classList.contains("protyle-attr")) {
|
||||
// 三击在悬浮层中会选择到 attr https://github.com/siyuan-note/siyuan/issues/4636
|
||||
range.setEndAfter(range.endContainer.previousSibling.lastChild);
|
||||
setLastNodeRange((range.endContainer as HTMLElement).previousElementSibling, range, false);
|
||||
}
|
||||
} else {
|
||||
endBlockElement = hasClosestBlock(range.endContainer);
|
||||
|
|
@ -1954,7 +1954,6 @@ export class WYSIWYG {
|
|||
/// #if !MOBILE
|
||||
if (newRange.toString().replace(Constants.ZWSP, "") !== "") {
|
||||
protyle.toolbar.render(protyle, newRange);
|
||||
|
||||
} else {
|
||||
hideElements(["toolbar"], protyle);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue