mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 07:02:33 +01:00
This commit is contained in:
parent
5a97fc5af7
commit
ab509fbc9d
3 changed files with 138 additions and 24 deletions
|
|
@ -393,9 +393,11 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
|
|||
}
|
||||
}
|
||||
|
||||
public fill(value: string, protyle: IProtyle) {
|
||||
public fill(value: string, protyle: IProtyle, updateRange = true) {
|
||||
hideElements(["hint", "toolbar"], protyle);
|
||||
protyle.toolbar.range = getEditorRange(protyle.wysiwyg.element);
|
||||
if (updateRange) {
|
||||
protyle.toolbar.range = getEditorRange(protyle.wysiwyg.element);
|
||||
}
|
||||
const range = protyle.toolbar.range;
|
||||
let nodeElement = hasClosestBlock(protyle.toolbar.range.startContainer) as HTMLElement;
|
||||
if (!nodeElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue