Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Can the issue be reproduced with the default theme (daylight/midnight)?
- I was able to reproduce the issue with the default theme
Could the issue be due to extensions?
- I've ruled out the possibility that the extension is causing the problem.
Describe the problem
When I'm using mermaid or plantUML diagram, I can't edit it after closing the editor modal
If I click on the "pencil" to edit it, nothing happen, except an error that increments in the console panel
Error:
main.208cb25c4e2b628f3ba9.js:3779 Uncaught TypeError: Cannot read properties of null (reading 'removeAttribute')
at main.208cb25c4e2b628f3ba9.js:3779:16932
at NodeList.forEach (<anonymous>)
at HTMLDivElement.<anonymous> (main.208cb25c4e2b628f3ba9.js:3779:16863)
(anonymous) @ main.208cb25c4e2b628f3ba9.js:3779
(anonymous) @ main.208cb25c4e2b628f3ba9.js:3779
Expected result
I can create a mermaid diagram with
gitGraph
commit id: "init projet"
commit tag: "v1.0.0"
branch develop
checkout develop
commit
branch feat/FP-1234/add-login
commit id: "feat(login/db): Add user table migration"
commit id: "feat(user/api): Add user CRUD endpoints"
checkout develop
merge feat/FP-1234/add-login type: HIGHLIGHT id: "feat(login): Add user login (#1)"
branch release/v1.1.0
checkout release/v1.1.0
commit id: "infra(k8s/val1): Deploy release v1.1.0-alpha-1"
commit id: "infra(k8s/prod): Bump tag to v1.1.0"
And edit it successfully later
Screenshot or screen recording presentation
Version environment
- Version: v3.1.25
- Operating System: ArchLinux x86_64
- Browser (if used): Brave v1.62.162
Log file
I 2025/03/27 15:10:18 working.go:178:
___ ___ ___ ___
/ /\ ___ ___ /__/\ / /\ /__/\
/ /:/_ / /\ /__/| \ \:\ / /::\ \ \:\
/ /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \:\
/ /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\:\
/__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/::::::::\
\ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/
\ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~
\__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \:\
/__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \:\
\__\/ \__\/ \__\/ \__\/
I 2025/03/27 15:10:18 runtime.go:87: kernel is booting:
* ver [3.1.26]
* arch [amd64]
* os [arch]
* pid [737002]
* runtime mode [prod]
* working directory [/usr/lib/siyuan-note]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [/home/pawndev/SiYuan]
I 2025/03/27 15:10:18 conf.go:147: initialized the specified language [en_US]
I 2025/03/27 15:10:18 runtime.go:139: use network proxy [system]
I 2025/03/27 15:10:18 serve.go:209: kernel [pid=737002] http server [127.0.0.1:43513] is booting
I 2025/03/27 15:10:18 blocktree.go:75: reinitialized database [/home/pawndev/SiYuan/temp/blocktree.db]
I 2025/03/27 15:10:18 database.go:92: the database structure is changed, rebuilding database...
I 2025/03/27 15:10:18 database.go:109: reinitialized database [/home/pawndev/SiYuan/temp/siyuan.db]
I 2025/03/27 15:10:18 conf.go:874: tree/block count [0/0]
I 2025/03/27 15:10:18 working.go:224: kernel booted
I 2025/03/27 15:10:18 font.go:58: loaded system fonts [151] in [73ms]
I 2025/03/27 15:10:18 box.go:77: auto stat [trees=0, blocks=0, dataSize=36.87 kB, assetsSize=0 B]
I 2025/03/27 15:10:18 disk.go:33: disk usage [total=230.86 GB, used=207.13 GB, free=11.93 GB]
I 2025/03/27 15:10:19 pandoc.go:186: initialized built-in pandoc [ver=3.5, bin=/home/pawndev/SiYuan/temp/pandoc/bin/pandoc]
I 2025/03/27 15:10:19 conf.go:1137: pandoc initialized, set pandoc bin to [/home/pawndev/SiYuan/temp/pandoc/bin/pandoc]
I 2025/03/27 15:10:19 index.go:220: rebuilt database for notebook [20210808180117-6v0mkxr] in [0.05s], tree [count=67, size=1.34 MB]
I 2025/03/27 15:10:19 fixedport.go:35: fixed port service [127.0.0.1:6806] is running
I 2025/03/27 15:10:19 index.go:290: resolved refs [37] in [25ms]
I 2025/03/27 15:10:25 mount.go:65: created box [20250327151025-ocmo6j3]
I 2025/03/27 15:10:25 index.go:220: rebuilt database for notebook [20250327151025-ocmo6j3] in [0.00s], tree [count=0, size=0 B]
I 2025/03/27 15:10:25 index.go:290: resolved refs [37] in [39ms]
More information
No response
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
[-]Please enter the title of the bug report[/-][+][BUG] Editing mermaid/plantUML not working[/+]TCOTC commentedon Mar 27, 2025
I can reproduce this issue.
[-][BUG] Editing mermaid/plantUML not working[/-][+]Editing mermaid/plantUML not working[/+]🎨 #14462