mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
a1f275e3c3
commit
e261977812
1 changed files with 4 additions and 2 deletions
|
|
@ -1095,7 +1095,9 @@ export const getArticle = (options: {
|
||||||
if (articleId !== options.id) {
|
if (articleId !== options.id) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
options.edit.protyle.wysiwyg.renderCustom(response.data.ial);
|
if (options.edit.protyle.options.render.title) {
|
||||||
|
options.edit.protyle.title.render(options.edit.protyle, response);
|
||||||
|
}
|
||||||
fetchPost("/api/filetree/getDoc", {
|
fetchPost("/api/filetree/getDoc", {
|
||||||
id: options.id,
|
id: options.id,
|
||||||
query: options.value || null,
|
query: options.value || null,
|
||||||
|
|
@ -1118,7 +1120,7 @@ export const getArticle = (options: {
|
||||||
updateReadonly: true,
|
updateReadonly: true,
|
||||||
data: getResponse,
|
data: getResponse,
|
||||||
protyle: options.edit.protyle,
|
protyle: options.edit.protyle,
|
||||||
action: zoomIn ? [Constants.CB_GET_ALL] : [],
|
action: zoomIn ? [Constants.CB_GET_ALL, Constants.CB_GET_HTML] : [Constants.CB_GET_HTML],
|
||||||
});
|
});
|
||||||
|
|
||||||
const contentRect = options.edit.protyle.contentElement.getBoundingClientRect();
|
const contentRect = options.edit.protyle.contentElement.getBoundingClientRect();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue