Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adanced block tunes in sidebar #2727

Open
mauritskorse opened this issue May 23, 2024 · 2 comments
Open

Adanced block tunes in sidebar #2727

mauritskorse opened this issue May 23, 2024 · 2 comments

Comments

@mauritskorse
Copy link

I am looking to add some block tunes to a sidebar (similar to what WordPress provides in their block editor). This would make editing blocks much quicker and with less clicks. Especially if it would be possible to open the block tunes in the sidebar once a block is selected (or the cursor is within that block).

It would also be great if that current block can keep its selected class for good user interaction:
Currently I open a modal in which I render a form with the more advanced block tune settings. However once I open that modal from the block tunes menu, the block on which I opened the modal, is visualluy being deselected, so the feedback to the user becomes less clear which block they are actually editing.

@neSpecc
Copy link
Member

neSpecc commented May 23, 2024

Screenshots would be helpfull here

@mauritskorse
Copy link
Author

In this vid I show how Wordpress does it. I don't have a proper example with EditorJs just yet as I am still working on the form. But as you can see in this example the settings for e.g. coloring, spacing, visibility, etc, can become quite complex. At least much more complex than some simple toggles in the popover menu. Also, you can see that the moment another block is selected the settings for that block are immediately shown in the sidebar which makes it quite fast to adjust styling.

example.mp4

In general it would be nice if there would be a event listener that can be configured on the editors config in that triggers when a block is focussed/selected and passes along at least the block, tunes, possibly the available tools, and the core api of the editor. With that in place, this should be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants