Replies: 1 comment 1 reply
-
I addressed a couple of your issues here: #69 and #1286. Namely the ability to style the toolbar at a granular level, and making the toolbar work outside the container of the element being edited. each can be set dynamically as you identify which type of configuration you need. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Buttons (including full-screen) unexpectedly react to right-click and middle-click on mouse down, instead of only left-click on mouse up, which I believe is the most intuitive behavior. (Let's use GitHub issue editor as an example.) Easily reproducible on https://alex-d.github.io/Trumbowyg/demos/. If the defaults stay as they are, at the very least this could be configurable, as it's a UX requirement for some consumers.
Full-screen mode can display incorrectly depending on parent elements. I'll illustrate this as a Vuetify-specific issue (with a default setup) as a use-case, so you can consider if this has a greater impact, and if there are any universal solutions.
<v-app-bar app style="z-index: 200">
covers the buttons, making it impossible to exit fullscreen mode, but only when Trumbowyg is under<v-overlay>
. (Note that thez-index: 200
is properly overridden by a higher value if the textbox is outside.):dark="false"
onv-overlay
, but I observed that behavior even with this prop (currently can't reproduce).<v-card>
, using.v-overlay .trumbowyg-fullscreen { position: absolute; }
style, which I'm currently using in my project's use-case (as it's usually not underv-overlay
).As a feature suggestion, the fullscreen mode could support being closed via ESC key press. (This would also make it possible to recover from abovementioned styling hazard.)
When inside element with a defined width, e.g.
<v-card style="width: 400px">
, Trumbowyg doesn't respect this boundary and thus completely breaks the page layout when a single word gets too wide (sometimes even pushing element completely outside the browser window, making the issue irrecoverable). As a workaround, I always use.trumbowyg-editor { word-wrap: anywhere; }
style, but I'd suggest for this to be safely handled by default.It's difficult to reduce height directly by default (if we prefer it to auto-expand only once after there is a longer input), e.g. we have to use
.trumbowyg-editor { min-height: 120px; }
. Sometimes this still causes other issues like an empty (unusable) space at the bottom under input (screenshot).Trumbowyg library doesn't directly expose array of default buttons to be used in config, so we can't properly re-use it, for example only exclude one entry (e.g. full-screen).
Fullscreen button in small resolution pushes the starting position of the text in input further down:
Minor issue: we can't directly style this input (e.g.
outline: 2px solid red;
); but luckily this seems to be fine if we wrap it in another div.Buttons have large z-index value, by default displaying over any other library elements, e.g. Vuetify's
v-footer
orv-overlay
. Workaround:.trumbowyg-button-pane { z-index: auto; }
I was also unable to get this compatible with Storybook, specifically only the icons are missing:
Beta Was this translation helpful? Give feedback.
All reactions