BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
14.37k stars 1.82k forks source link

Expand Toolbar when editor in Full Screen mode #5102

Open MartynKeigher opened 1 week ago

MartynKeigher commented 1 week ago

Describe the feature you'd like

When editing a page in full-screen mode, I see no reason to not fully expand the toolbar.

Describe the benefits this would bring to existing BookStack users

The majority of my content is technical documentation, so I use 'code blocks' and to clean up the look I occasionally put my code blocks in 'collapsable blocks' AND insert horizonal lines, but all 3 of those options, 'code block' & 'collapsable block' & 'insert horizontal line', are nested. So, while it's very much a 'quality of life tweak'... it really is frustrating that the 3 most used 'features' of my docs I use are nested. image

Can the goal of this request already be achieved via other means?

Not sure. It would be nice if I could re-order the tools in the tool menu, as there are many I don't use that have 'primary positions', but the ones that I do use the most, are nested, but I know for a fact that would be a larger dev effort to pull off.

Have you searched for an existing open/closed issue?

How long have you been using BookStack?

Under 3 months

Additional context

No response

ssddanbrown commented 1 week ago

Thanks for the request @MartynKeigher. I've been thinking about this while working on a new potential editor implementation #5058, specifically thinking about always expanding the sections to avoid overflow if there's space. My initial target will be to match the existing editor 1:1 though until we get it stable, but I'll keep this open for the future.

If you're familiar with JavaScript, you could alter the existing editor toolbar via the public events we expose which provide access to the underlying config and libraries. There's an example of altering the toolbar somewhat at the top of this hack.