mProjectsCode / obsidian-shiki-plugin

MIT License
43 stars 6 forks source link

can't easily edit the codeblocks in live preview #1

Closed KraXen72 closed 6 months ago

KraXen72 commented 6 months ago

Describe the bug In live preview, there is only a copy button, covering the edit button. clicking on the codeblock does not turn it into an editable thing.

To Reproduce add a codeblock, turn on the plugin, go to Live Preview

Expected behavior clicking on the codeblock should go into edit more. Or, move the copy code button elsewhere, so it doesen't obscure the edit button.

Screenshots

Occurs on

Plugin version 0.2.1

Additional context

mProjectsCode commented 6 months ago

clicking on the codeblock does not turn it into an editable thing.

That is by design, allowing you to freely select text in the code block.

In live preview, there is only a copy button, covering the edit button.

I will try to move the copy button.

mProjectsCode commented 6 months ago

I moved the copy button to the lower right corner