mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 07:24:07 +01:00
This commit is contained in:
parent
3a53fd4a9a
commit
fdee19e703
6 changed files with 16 additions and 15 deletions
|
|
@ -1183,7 +1183,7 @@ const renderNextSearchMark = (options: {
|
|||
return;
|
||||
}
|
||||
let matchElement;
|
||||
const allMatchElements = Array.from(options.edit.protyle.wysiwyg.element.querySelectorAll(`div[data-node-id="${options.id}"] span[data-type~="search-mark"]`));
|
||||
const allMatchElements = Array.from(options.edit.protyle.wysiwyg.element.querySelectorAll('span[data-type~="search-mark"]'));
|
||||
allMatchElements.find((item, itemIndex) => {
|
||||
if (item.classList.contains("search-mark--hl")) {
|
||||
item.classList.remove("search-mark--hl");
|
||||
|
|
@ -1233,7 +1233,7 @@ export const getArticle = (options: {
|
|||
protyle: options.edit.protyle,
|
||||
action: zoomIn ? [Constants.CB_GET_ALL, Constants.CB_GET_HTML] : [Constants.CB_GET_HTML],
|
||||
});
|
||||
const matchElements = options.edit.protyle.wysiwyg.element.querySelectorAll(`div[data-node-id="${options.id}"] span[data-type~="search-mark"]`);
|
||||
const matchElements = options.edit.protyle.wysiwyg.element.querySelectorAll('span[data-type~="search-mark"]');
|
||||
if (matchElements.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue