mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
This commit is contained in:
parent
ffd94d6b51
commit
119ec51770
1 changed files with 6 additions and 0 deletions
|
|
@ -5,11 +5,17 @@ import {insertHTML} from "../protyle/util/insertHTML";
|
|||
import {Dialog} from "../dialog";
|
||||
import {isMobile} from "../util/functions";
|
||||
import {getContenteditableElement} from "../protyle/wysiwyg/getBlock";
|
||||
import {blockRender} from "../protyle/markdown/blockRender";
|
||||
import {processRender} from "../protyle/util/processCode";
|
||||
import {highlightRender} from "../protyle/markdown/highlightRender";
|
||||
|
||||
export const fillContent = (protyle:IProtyle, data:string, elements:Element[]) => {
|
||||
setLastNodeRange(getContenteditableElement(elements[elements.length - 1]), protyle.toolbar.range);
|
||||
protyle.toolbar.range.collapse(true);
|
||||
insertHTML(data, protyle, true, true);
|
||||
blockRender(protyle, protyle.wysiwyg.element);
|
||||
processRender(protyle.wysiwyg.element);
|
||||
highlightRender(protyle.wysiwyg.element);
|
||||
};
|
||||
|
||||
export const AIActions = (elements: Element[], protyle: IProtyle) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue