mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
🚨
This commit is contained in:
parent
f1bdb4dcfd
commit
82eafca96d
10 changed files with 14 additions and 14 deletions
|
|
@ -385,7 +385,7 @@ const renderPDF = (id: string) => {
|
|||
window.siyuan.printWin.once("ready-to-show", () => {
|
||||
// 导出 PDF 预览界面不受主界面缩放影响 https://github.com/siyuan-note/siyuan/issues/6262
|
||||
window.siyuan.printWin.webContents.setZoomFactor(1);
|
||||
})
|
||||
});
|
||||
fetchPost("/api/export/exportTempContent", {content: html}, (response) => {
|
||||
window.siyuan.printWin.loadURL(response.data.url);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1200,7 +1200,7 @@ export class Gutter {
|
|||
id,
|
||||
attrs: {breadcrumb: inputElement.checked.toString()}
|
||||
});
|
||||
nodeElement.removeAttribute("data-render")
|
||||
nodeElement.removeAttribute("data-render");
|
||||
blockRender(protyle, nodeElement);
|
||||
window.siyuan.menus.menu.remove();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ export const blockRender = (protyle: IProtyle, element: Element) => {
|
|||
const content = Lute.UnEscapeHTMLStr(item.getAttribute("data-content"));
|
||||
let breadcrumb: boolean | string = item.getAttribute("breadcrumb");
|
||||
if (breadcrumb) {
|
||||
breadcrumb = breadcrumb === "true"
|
||||
breadcrumb = breadcrumb === "true";
|
||||
} else {
|
||||
breadcrumb = window.siyuan.config.editor.embedBlockBreadcrumb
|
||||
breadcrumb = window.siyuan.config.editor.embedBlockBreadcrumb;
|
||||
}
|
||||
fetchPost("/api/search/searchEmbedBlock", {
|
||||
embedBlockID: item.getAttribute("data-node-id"),
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ export const setFontStyle = (textElement: HTMLElement, textOption: ITextOption)
|
|||
textElement.innerText = blockRefData[2];
|
||||
};
|
||||
const setLink = (textOption: string) => {
|
||||
const options = textOption.split(Constants.ZWSP)
|
||||
const options = textOption.split(Constants.ZWSP);
|
||||
textElement.setAttribute("data-href", options[0]);
|
||||
textElement.removeAttribute("data-subtype");
|
||||
textElement.removeAttribute("data-id");
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export class Link extends ToolbarItem {
|
|||
dataHref = clipText;
|
||||
} else {
|
||||
// 360
|
||||
const lastSpace = clipText.lastIndexOf(' ')
|
||||
const lastSpace = clipText.lastIndexOf(" ");
|
||||
if (lastSpace > -1) {
|
||||
if (protyle.lute.IsValidLinkDest(clipText.substring(lastSpace))) {
|
||||
dataHref = clipText.substring(lastSpace);
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ export const pasteAsPlainText = async (protyle:IProtyle) => {
|
|||
writeText("");
|
||||
} else {
|
||||
protyle.lute.SetHTMLTag2TextMark(true); // 临时设置 Lute 解析参数,行级元素键盘和下划线无法粘贴为纯文本 https://github.com/siyuan-note/siyuan/issues/6220
|
||||
const dom = protyle.lute.InlineMd2BlockDOM(clipboard.readText())
|
||||
const dom = protyle.lute.InlineMd2BlockDOM(clipboard.readText());
|
||||
protyle.lute.SetHTMLTag2TextMark(false);
|
||||
insertHTML(protyle.lute.BlockDOM2Content(dom), protyle, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue