javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.07k stars 70 forks source link

[Question] Possiblity to edit content when clicking on admonition (instead of edit icon) #208

Closed vii33 closed 2 years ago

vii33 commented 2 years ago

Hi, I love this plugin, thanks a lot for creating it! 😍 I would have one question, though: When I want to edit an admonition then I have to click on the small edit icon (upper right corner). This is a bit cumbersome. A leaner process could be to just click on the main content (similar to the code blocks).

Can I achieve this behaviour somehow?

Current behaviour: grafik

Requested behaviour: grafik ---vvv--- grafik


Similar to code blocks behaviour: grafik ---vvv--- grafik

tangor86 commented 2 years ago

I have the same q too... it is inconvenient to click the icon in the right to edit instead of just clicking once in any place of the block, as it is done for the code block...

valentine195 commented 2 years ago

This is actually pretty tricky and will require using undocumented parts of the API. Sorry!