Commit 6a195c4
[fix] Hide the toolbar when the richtext widget is read-only
When the RichTextEditor is disabled via `isEnabledExpression`, the toolbar remains visible,
creating misleading UX (toolbar appears interactive but does nothing). This commit
uses conditional rendering to completely hide the toolbar when the editor is read-only.
This also allows the widget to serve as a rich-text display (like a label),
with correct markdown rendering but no editing affordances.
Signed-off-by: Cédric Brun <cedric.brun@obeo.fr>1 parent 7330997 commit 6a195c4
File tree
1 file changed
+3
-3
lines changed- packages/forms/frontend/sirius-components-forms/src/richtexteditor
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
0 commit comments