mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 22:44:06 +01:00
This commit is contained in:
parent
c37ccb741e
commit
a20a338e6d
3 changed files with 8 additions and 1 deletions
|
|
@ -187,10 +187,15 @@ export class BlockPanel {
|
|||
|
||||
private initProtyle(editorElement: HTMLElement) {
|
||||
const index = parseInt(editorElement.getAttribute("data-index"));
|
||||
const action = [Constants.CB_GET_ALL];
|
||||
if (this.targetElement.classList.contains("protyle-attr--refcount")||
|
||||
this.targetElement.classList.contains("counter")) {
|
||||
action.push(Constants.CB_GET_BACKLINK);
|
||||
}
|
||||
const editor = new Protyle(editorElement, {
|
||||
blockId: this.nodeIds[index],
|
||||
defId: this.defIds[index] || this.defIds[0] || "",
|
||||
action: [Constants.CB_GET_ALL],
|
||||
action,
|
||||
render: {
|
||||
gutter: true,
|
||||
breadcrumbDocName: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue