mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 12:08:07 +01:00
This commit is contained in:
parent
5a9bb84641
commit
a635bcbafd
15 changed files with 63 additions and 64 deletions
|
|
@ -233,7 +233,7 @@ export const getLocalStorage = (cb: () => void) => {
|
|||
dark: "dark",
|
||||
annoColor: "var(--b3-pdf-background1)"
|
||||
};
|
||||
defaultStorage[Constants.LOCAL_LAYOUTS] = []; // {name: "", layout:{}, time: number, filespaths: filesPath[]}
|
||||
defaultStorage[Constants.LOCAL_LAYOUTS] = []; // {name: "", layout:{}, time: number, filespaths: IFilesPath[]}
|
||||
defaultStorage[Constants.LOCAL_AI] = []; // {name: "", memo: ""}
|
||||
defaultStorage[Constants.LOCAL_PLUGIN_DOCKS] = {}; // { pluginName: {dockId: IPluginDockTab}}
|
||||
defaultStorage[Constants.LOCAL_PLUGINTOPUNPIN] = [];
|
||||
|
|
@ -284,7 +284,7 @@ export const getLocalStorage = (cb: () => void) => {
|
|||
currentTab: "emoji"
|
||||
};
|
||||
defaultStorage[Constants.LOCAL_FONTSTYLES] = [];
|
||||
defaultStorage[Constants.LOCAL_FILESPATHS] = []; // filesPath[]
|
||||
defaultStorage[Constants.LOCAL_FILESPATHS] = []; // IFilesPath[]
|
||||
defaultStorage[Constants.LOCAL_SEARCHDATA] = {
|
||||
page: 1,
|
||||
sort: 0,
|
||||
|
|
|
|||
|
|
@ -233,12 +233,12 @@ const setHTML = (options: {
|
|||
protyle.block.id = protyle.block.rootID;
|
||||
protyle.wysiwyg.element.setAttribute("data-doc-type", "NodeDocument");
|
||||
}
|
||||
if (protyle.options.defId) {
|
||||
protyle.wysiwyg.element.querySelectorAll(`[data-id="${protyle.options.defId}"]`).forEach(item => {
|
||||
protyle.options.defIds?.forEach(item => {
|
||||
protyle.wysiwyg.element.querySelectorAll(`[data-id="${item}"]`).forEach(item => {
|
||||
item.classList.add("def--mark");
|
||||
});
|
||||
protyle.options.defId = undefined;
|
||||
}
|
||||
});
|
||||
protyle.options.defIds = [];
|
||||
if (options.action.includes(Constants.CB_GET_APPEND) || options.action.includes(Constants.CB_GET_BEFORE)) {
|
||||
protyle.app.plugins.forEach(item => {
|
||||
item.eventBus.emit("loaded-protyle-dynamic", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue