🚨
This commit is contained in:
parent
e98f0480ee
commit
16e1a90bfa
2 changed files with 3 additions and 3 deletions
|
@ -378,7 +378,7 @@ export const setRelationCell = (protyle: IProtyle, nodeElement: HTMLElement, tar
|
|||
if (target.classList.contains("b3-menu__item")) {
|
||||
const targetId = target.getAttribute("data-id");
|
||||
const separatorElement = menuElement.querySelector(".b3-menu__separator");
|
||||
const searchValue = menuElement.querySelector('input').value;
|
||||
const searchValue = menuElement.querySelector("input").value;
|
||||
if (target.getAttribute("draggable")) {
|
||||
if (!separatorElement.nextElementSibling.getAttribute("data-id") && !searchValue) {
|
||||
separatorElement.nextElementSibling.remove();
|
||||
|
|
|
@ -209,7 +209,7 @@ export const enableLuteMarkdownSyntax = (protyle: IProtyle) => {
|
|||
protyle.lute.SetSup(true);
|
||||
protyle.lute.SetTag(true);
|
||||
protyle.lute.SetInlineUnderscore(true);
|
||||
}
|
||||
};
|
||||
|
||||
export const restoreLuteMarkdownSyntax = (protyle: IProtyle) => {
|
||||
protyle.lute.SetInlineAsterisk(window.siyuan.config.editor.markdown.inlineAsterisk);
|
||||
|
@ -219,7 +219,7 @@ export const restoreLuteMarkdownSyntax = (protyle: IProtyle) => {
|
|||
protyle.lute.SetSup(window.siyuan.config.editor.markdown.inlineSup);
|
||||
protyle.lute.SetTag(window.siyuan.config.editor.markdown.inlineTag);
|
||||
protyle.lute.SetInlineUnderscore(window.siyuan.config.editor.markdown.inlineUnderscore);
|
||||
}
|
||||
};
|
||||
|
||||
export const pasteText = (protyle: IProtyle, textPlain: string, nodeElement: Element, toBlockDOM = true) => {
|
||||
const range = getEditorRange(protyle.wysiwyg.element);
|
||||
|
|
Loading…
Add table
Reference in a new issue