Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
4.02k stars 614 forks source link

Position: sticky - editor panel #1277

Closed anielka41 closed 2 years ago

anielka41 commented 2 years ago

Hi, as I have a lot of content, you have to go back to the top to use the options in the edit panel. Can you add Position: sticky?

Alex-D commented 2 years ago

There is an undocumented option to do that, named fixedBtnPane, you can pass it to true to get a fixed button pane :)

If you want the button pane to go full width, you have fixedFullWidth: true for that.

I should add this to the doc ^^'

See the example in the index.html file: https://github.com/Alex-D/Trumbowyg/blob/efedfdeaf04344281cf47d3fbf1931717503e36d/index.html#L372-L394

(I just notice that the mobile option is still here, but does not exists anymore)