How to programmatically pin rich text toolbar #11409
-
Beta Was this translation helpful? Give feedback.
Answered by
thibaudcolas
Jan 2, 2024
Replies: 1 comment 3 replies
-
@ilia4bit good question – there is no way currently, though with the right amount of CSS overrides nothing is impossible. This isn’t officially supported but you could do this if you’re ok with changing the default for all fields: // If the toolbar’s theme isn’t set, default to sticky.
if (!window.localStorage.getItem('wagtail:draftail-toolbar')) {
window.localStorage.setItem('wagtail:draftail-toolbar', 'sticky');
} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ilia4bit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ilia4bit good question – there is no way currently, though with the right amount of CSS overrides nothing is impossible. This isn’t officially supported but you could do this if you’re ok with changing the default for all fields: