Skip to content

Commit 16c3d6c

Browse files
Always enable text justification
For some reason, tiptap always returns false for `can` with these, even if applying them would work, so just keep them enabled.
1 parent d82ea41 commit 16c3d6c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • javascript/src/frontend/collab_forms/rich_text_editor

javascript/src/frontend/collab_forms/rich_text_editor/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,27 +195,31 @@ export function Toolbar(props: {
195195
menuItem
196196
chain={(c) => c.setTextAlign("left")}
197197
active={{ textAlign: "left" }}
198+
enable
198199
>
199200
Left
200201
</FormatButton>
201202
<FormatButton
202203
menuItem
203204
chain={(c) => c.setTextAlign("center")}
204205
active={{ textAlign: "center" }}
206+
enable
205207
>
206208
Center
207209
</FormatButton>
208210
<FormatButton
209211
menuItem
210212
chain={(c) => c.setTextAlign("right")}
211213
active={{ textAlign: "right" }}
214+
enable
212215
>
213216
Right
214217
</FormatButton>
215218
<FormatButton
216219
menuItem
217220
chain={(c) => c.setTextAlign("justify")}
218221
active={{ textAlign: "justify" }}
222+
enable
219223
>
220224
Justify
221225
</FormatButton>

0 commit comments

Comments
 (0)