BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

render sidemenucontroller when editor editable field is set to false.

Open sijirama opened this issue 10 months ago • 2 comments

Is your feature request related to a problem? Please describe. basically i'll like to be able to use the sidemenu controller when the editor editable field is set to false.

Describe the solution you'd like to be able to use the sidemenu controller when editable field is false.

Describe alternatives you've considered i genuinely do not know, maybe another field passed to the editor called, showSideMenu, that defaults to false.

Additional context Screenshot from 2024-04-11 23-57-54

sijirama avatar Apr 11 '24 22:04 sijirama

~~i can attempt this~~ , never mind.

i don't know how you would like this to be set, if you even want this to be set, you pass in sideMenu and editable already, would you like another option to be passed to handle this?

sijirama avatar Apr 11 '24 23:04 sijirama

Ah, the reason you're running into this issue is it's not the controller that figures out when and for which block the side menu should be shown. That's done by the side menu plugin, and the controller uses information from it to show, hide, and position the side menu in the UI.

So unfortunately, this isn't possible atm but it may be a good idea to let people configure which UI elements can remain active when the editor is read-only. Thoughts on this @YousefED?

matthewlipski avatar Jun 11 '24 12:06 matthewlipski