Skip to content

Commit b8b9861

Browse files
authored
Add clear formatting tool (#6)
* Add clear formatting tool * Remove Windows tests * Revert "Remove Windows tests" This reverts commit 4987bf9. * Update Carbon version
1 parent 33666bf commit b8b9861

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
include:
2828
- laravel: 10.*
2929
testbench: 8.*
30-
carbon: ^2.63
30+
carbon: ^2.67
3131

3232
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3333

resources/views/components/icon.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ class="h-5 w-5"
7373
/>
7474
@break
7575

76+
@case('clear-formatting')
77+
<path
78+
d="M17.5 12a5.5 5.5 0 1 1 0 11a5.5 5.5 0 0 1 0-11m-6.186 7.5c.172.534.412 1.038.709 1.501L2.75 21a.75.75 0 0 1-.102-1.493l.102-.007zm3.779-4.534l-.07.058l-.057.07a.5.5 0 0 0 0 .568l.058.07l1.77 1.769l-1.768 1.766l-.057.07a.5.5 0 0 0 0 .568l.057.07l.07.057a.5.5 0 0 0 .568 0l.07-.057l1.766-1.767l1.77 1.769l.069.058a.5.5 0 0 0 .568 0l.07-.058l.057-.07a.5.5 0 0 0 0-.568l-.057-.07l-1.77-1.768l1.772-1.77l.058-.069a.5.5 0 0 0 0-.569l-.058-.069l-.069-.058a.5.5 0 0 0-.569 0l-.069.058l-1.772 1.77l-1.77-1.77l-.068-.058a.5.5 0 0 0-.493-.043zM15.75 3.5a.75.75 0 0 1 .75.774l-.01.097l-.245 1.5a.75.75 0 0 1-1.49-.14l.01-.102l.102-.629h-3.86L9.001 16.5h.749a.75.75 0 0 1 .743.648l.007.102a.75.75 0 0 1-.648.743L9.75 18h-3a.75.75 0 0 1-.102-1.493l.102-.007h.729L9.485 5h-4.1l-.146.874a.75.75 0 0 1-1.49-.146l.01-.102l.251-1.5a.75.75 0 0 1 .632-.618L4.75 3.5z"
79+
/>
80+
@break
81+
7682
@case('code-block')
7783
<path
7884
fill="none"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<x-filament-tiptap-editor::button
2+
action="editor().chain().focus().unsetAllMarks().run()"
3+
label="Clear formatting"
4+
icon="clear-formatting"
5+
/>

0 commit comments

Comments
 (0)