Просмотр исходного кода

Revert "20261012 編輯器調色盤改由Blade參數限縮六色"

This reverts commit 240e28b08fb5912c98021d5c1e9dbf7267aa0cf6.
S.K. 1 месяц назад
Родитель
Сommit
f771f22f59

+ 0
- 0
resources/views/vendor/filament-lexical-editor/.gitkeep Просмотреть файл


+ 0
- 6
resources/views/vendor/filament-lexical-editor/components/dialogs.blade.php Просмотреть файл

@@ -1,6 +0,0 @@
1
-<div style="height: 0">
2
-    <x-filament-lexical-editor::link-editor/>
3
-    <x-filament-lexical-editor::image-dialog/>
4
-    <x-filament-lexical-editor::image-editor/>
5
-</div>
6
-

+ 0
- 51
resources/views/vendor/filament-lexical-editor/components/image-dialog.blade.php Просмотреть файл

@@ -1,51 +0,0 @@
1
-@php
2
-    $id = uniqid();
3
-@endphp
4
-
5
-<div x-ref="imageModal" modal-id="{{$id}}">
6
-    <x-filament::modal  id="{{$id}}">
7
-        <x-slot name="heading">
8
-            @lang('filament-lexical-editor::lexical-editor.image_uploader.upload_image')
9
-        </x-slot>
10
-        {{-- Modal content --}}
11
-
12
-        <label for="image-upload">@lang('filament-lexical-editor::lexical-editor.image_uploader.image')</label>
13
-        <x-filament::input.wrapper>
14
-            <x-filament::input
15
-                type="file"
16
-                accept="image/*"
17
-                x-ref="image_input"
18
-            />
19
-        </x-filament::input.wrapper>
20
-
21
-        <label for="alt-text">@lang('filament-lexical-editor::lexical-editor.image_uploader.alt')</label>
22
-
23
-        <x-filament::input.wrapper>
24
-            <x-filament::input
25
-                type="text"
26
-                x-ref="image_alt"
27
-            />
28
-        </x-filament::input.wrapper>
29
-
30
-
31
-
32
-        <x-slot name="footerActions">
33
-            <div class="dialog-actions ms-auto">
34
-                <x-filament::button
35
-                    @click="$event.preventDefault(); handleImage(); close()"
36
-                >
37
-                    @lang('filament-lexical-editor::lexical-editor.image_uploader.upload')
38
-                </x-filament::button>
39
-                <x-filament::button
40
-                    @click="$event.preventDefault(); close()"
41
-                    color="gray"
42
-                >
43
-                    @lang('filament-lexical-editor::lexical-editor.cancel')
44
-                </x-filament::button>
45
-
46
-            </div>
47
-        </x-slot>
48
-    </x-filament::modal>
49
-
50
-</div>
51
-

+ 0
- 63
resources/views/vendor/filament-lexical-editor/components/image-editor.blade.php Просмотреть файл

@@ -1,63 +0,0 @@
1
-@php
2
-    $id = uniqid();
3
-@endphp
4
-<div x-ref="imageEditorModal" modal-id="{{$id}}">
5
-    <x-filament::modal  id="{{$id}}">
6
-        <x-slot name="heading">
7
-            @lang('filament-lexical-editor::lexical-editor.image_editor.update_image')
8
-        </x-slot>
9
-        <input type="text" class="hidden" id="alt-text" x-ref="image_editor_key"  value="" >
10
-
11
-        <label for="alt-text">@lang('filament-lexical-editor::lexical-editor.image_editor.alt')</label>
12
-            <x-filament::input.wrapper
13
-                label="Image Upload"
14
-            >
15
-            <x-filament::input
16
-                 type="text"
17
-                x-ref="image_editor_alt"
18
-            />
19
-        </x-filament::input.wrapper>
20
-
21
-        <label for="image_editor_width">@lang('filament-lexical-editor::lexical-editor.image_editor.width')</label>
22
-        <x-filament::input.wrapper>
23
-            <x-filament::input
24
-                type="number"
25
-                x-ref="image_editor_width"
26
-            />
27
-        </x-filament::input.wrapper>
28
-
29
-        <label for="image_editor_height">@lang('filament-lexical-editor::lexical-editor.image_editor.height')</label>
30
-        <x-filament::input.wrapper>
31
-            <x-filament::input
32
-                type="number"
33
-                x-ref="image_editor_height"
34
-            />
35
-        </x-filament::input.wrapper>
36
-
37
-        <x-slot name="footerActions">
38
-            <div class="dialog-actions ms-auto">
39
-                <x-filament::button
40
-                    @click="$event.preventDefault();updateImage(); close()"
41
-                >
42
-                    @lang('filament-lexical-editor::lexical-editor.edit')
43
-                </x-filament::button>
44
-                <x-filament::button
45
-                    @click="$event.preventDefault(); deleteImage(); close()"
46
-                    color="danger"
47
-                >
48
-                    @lang('filament-lexical-editor::lexical-editor.delete')
49
-                </x-filament::button>
50
-
51
-                <x-filament::button
52
-                    @click="$event.preventDefault(); close()"
53
-                    color="gray"
54
-                >
55
-                    @lang('filament-lexical-editor::lexical-editor.cancel')
56
-                </x-filament::button>
57
-
58
-            </div>
59
-        </x-slot>
60
-    </x-filament::modal>
61
-
62
-</div>
63
-

+ 0
- 34
resources/views/vendor/filament-lexical-editor/components/link-editor.blade.php Просмотреть файл

@@ -1,34 +0,0 @@
1
-<template x-if="showLinkEditor">
2
-    <div x-anchor.bottom-start="linkEditorAnchor" class="pt-2"
3
-         @click.outside="closeLinkEditorDialog()"
4
-    >
5
-        <div class="dropdown w-96 align-middle relative">
6
-            <div class="flex ps-3 py-3" x-show="linkEditMode">
7
-                <div style="flex-grow: 3">
8
-                    <x-filament::input.wrapper>
9
-                        <x-filament::input
10
-                            type="text"
11
-                            x-model="linkEditorUrl"
12
-                            x-on:keydown.enter="$event.preventDefault(); updateLink()"
13
-                            style="width: 100%"
14
-                        />
15
-                    </x-filament::input.wrapper>
16
-                </div>
17
-
18
-                <div class="ms-2 flex-1 flex">
19
-                    <div class="link-cancel dark:invert" @click="closeLinkEditorDialog()" role="button" tabindex="0"></div>
20
-                    <div class="link-confirm dark:invert" @click="updateLink()" role="button" tabindex="0"></div>
21
-                </div>
22
-            </div>
23
-            <div class="flex" x-show="linkEditMode == false">
24
-                <a class="text-blue-500 hover:underline hover:text-blue-700 whitespace-nowrap overflow-hidden ms-2 text-ellipsis block break-words" style="padding: 12px 12px; flex-grow: 3" :href="linkEditorUrl" x-text="linkEditorUrl" target="_blank" rel="noopener noreferrer">
25
-                </a>
26
-                <div class="ms-2 flex-1 flex">
27
-                    <div class="link-edit dark:invert" @click="linkEditMode = true" role="button" tabindex="0"></div>
28
-                    <div class="link-trash dark:invert" @click="removeLink()" role="button" tabindex="0"></div>
29
-                </div>
30
-
31
-            </div>
32
-        </div>
33
-    </div>
34
-</template>

+ 0
- 5
resources/views/vendor/filament-lexical-editor/components/text-color-dialog.blade.php Просмотреть файл

@@ -1,5 +0,0 @@
1
-<div class="flex" x-tooltip="'{{ $title }}'">
2
-    <button type="button"  x-ref="{{$ref}}"   class="toolbar-item color-picker gap-1">
3
-        <input x-ref="{{$ref}}_input" data-coloris class="w-1 h-1 ">
4
-        <span class="icon dark:invert {{$icon}}"></span><i class="dark:invert chevron-down"></i></button>
5
-</div>

+ 0
- 9
resources/views/vendor/filament-lexical-editor/components/toolbar-item.blade.php Просмотреть файл

@@ -1,9 +0,0 @@
1
-@props(['activeOption' => 'none' , 'disableOption' => 'none' ,'ref' => '' , 'rtlRef' => null, 'title' => '' , 'rtlTitle' => null, 'shortcut' => '', 'rtlShortcut' => null , 'icon' => '' , 'rtlIcon' => null , 'class' => 'spaced' , 'iconClass' => 'icon' , ])
2
-<div style="align-self: center">
3
-    <button class="toolbar-item {{$class}}"  :class="{ 'active': toolbarState.{{$activeOption}} }" x-bind:disabled="toolbarState.{{$disableOption}}"
4
-            x-ref="{{__('filament-lexical-editor::lexical-editor.direction') == "rtl" && $rtlRef != null ? $rtlRef : $ref}}"
5
-            aria-label="{{__('filament-lexical-editor::lexical-editor.direction') == "rtl" && $rtlTitle != null ? $rtlTitle : $title}}"
6
-            x-tooltip="'{{__('filament-lexical-editor::lexical-editor.direction') == "rtl" && $rtlTitle != null ? $rtlTitle . " ($rtlShortcut)" : $title . (filled($shortcut) ? " ($shortcut)" : "" ) }}'" type="button">
7
-        <i class="{{$iconClass}} dark:invert {{__('filament-lexical-editor::lexical-editor.direction') == "rtl" && $rtlIcon != null ? $rtlIcon : $icon}}"></i>
8
-    </button>
9
-</div>

+ 0
- 212
resources/views/vendor/filament-lexical-editor/components/toolbar.blade.php Просмотреть файл

@@ -1,212 +0,0 @@
1
-@props(['toolbar' => '' ])
2
-@php
3
-    use Malzariey\FilamentLexicalEditor\Enums\ToolbarItem;
4
-    $item = $toolbar instanceof ToolbarItem ? $toolbar : ToolbarItem::from($toolbar);
5
-@endphp
6
-@switch($item)
7
-    @case(ToolbarItem::UNDO)
8
-        <x-filament-lexical-editor::toolbar-item ref="undo" disable-option="cannotUndo"
9
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.undo') }}" shortcut="Ctrl+Z" icon="undo"/>
10
-        @break
11
-    @case(ToolbarItem::REDO)
12
-        <x-filament-lexical-editor::toolbar-item ref="redo" disable-option="cannotRedo"
13
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.redo') }}" shortcut="Ctrl+Y" icon="redo"/>
14
-        @break
15
-    @case(ToolbarItem::FONT_FAMILY)
16
-        <div class="relative w-52 h-11 py-1">
17
-            <select x-ref="fontFamily" class="toolbar-item spaced font-family"
18
-                    x-tooltip="'{{ __('filament-lexical-editor::lexical-editor.font_family') }}'">
19
-                <option value="Arial" style="font-family: Arial,serif">Arial</option>
20
-                <option value="Courier New" style="font-family: 'Courier New',serif">Courier New</option>
21
-                <option value="Georgia" style="font-family: Georgia,serif">Georgia</option>
22
-                <option value="Times New Roman" style="font-family: 'Times New Roman',serif">Times New Roman</option>
23
-                <option value="Verdana" style="font-family: Verdana,serif">Verdana</option>
24
-            </select>
25
-
26
-        </div>
27
-
28
-
29
-        @break
30
-    @case(ToolbarItem::NORMAL)
31
-        <x-filament-lexical-editor::toolbar-item active-option="blockType == 'paragraph'" ref="normal"
32
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.normal') }}" shortcut="Ctrl+Alt+0"
33
-                                                 icon="paragraph"/>
34
-        @break
35
-    @case(ToolbarItem::H1)
36
-        <x-filament-lexical-editor::toolbar-item active-option="blockType == 'h1'" ref="h1"
37
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.heading_1') }}" shortcut="Ctrl+Alt+1"
38
-                                                 icon="h1"/>
39
-        @break
40
-    @case(ToolbarItem::H2)
41
-        <x-filament-lexical-editor::toolbar-item ref="h2" active-option="blockType == 'h2'"
42
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.heading_2') }}" shortcut="Ctrl+Alt+2"
43
-                                                 icon="h2"/>
44
-        @break
45
-    @case(ToolbarItem::H3)
46
-        <x-filament-lexical-editor::toolbar-item ref="h3" active-option="blockType == 'h3'"
47
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.heading_3') }}" shortcut="Ctrl+Alt+3"
48
-                                                 icon="h3"/>
49
-        @break
50
-    @case(ToolbarItem::H4)
51
-        <x-filament-lexical-editor::toolbar-item ref="h4" active-option="blockType == 'h4'"
52
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.heading_4') }}" shortcut="Ctrl+Alt+4"
53
-                                                 icon="h4"/>
54
-        @break
55
-    @case(ToolbarItem::H5)
56
-        <x-filament-lexical-editor::toolbar-item ref="h5" active-option="blockType == 'h5'"
57
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.heading_5') }}" shortcut="Ctrl+Alt+5"
58
-                                                 icon="h5"/>
59
-        @break
60
-    @case(ToolbarItem::H6)
61
-        <x-filament-lexical-editor::toolbar-item ref="h6" active-option="blockType == 'h6'"
62
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.heading_6') }}" shortcut="Ctrl+Alt+6"
63
-                                                 icon="h6"/>
64
-        @break
65
-    @case(ToolbarItem::BULLET)
66
-        <x-filament-lexical-editor::toolbar-item ref="bullet" active-option="blockType == 'bullet'"
67
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.bullet_list') }}" shortcut="Ctrl+Alt+7"
68
-                                                 icon="bullet-list"/>
69
-        @break
70
-    @case(ToolbarItem::NUMBERED)
71
-        <x-filament-lexical-editor::toolbar-item ref="numbered" active-option="blockType == 'number'"
72
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.numbered_list') }}" shortcut="Ctrl+Alt+8"
73
-                                                 icon="numbered-list"/>
74
-        @break
75
-    @case(ToolbarItem::QUOTE)
76
-        <x-filament-lexical-editor::toolbar-item ref="quote" active-option="blockType == 'quote'"
77
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.quote') }}" shortcut="Ctrl+Alt+Q" icon="quote"/>
78
-        @break
79
-    @case(ToolbarItem::CODE)
80
-        <x-filament-lexical-editor::toolbar-item ref="code" active-option="blockType == 'code'"
81
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.code_block') }}" shortcut="Ctrl+Alt+C"
82
-                                                 icon="code"/>
83
-        @break
84
-    @case(ToolbarItem::FONT_SIZE)
85
-        <x-filament-lexical-editor::toolbar-item ref="decrement" class="font-decrement"
86
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.decrease_font_size') }}" shortcut="Ctrl+Shift+,"
87
-                                                 icon-class="format" icon="minus-icon"/>
88
-        <input type="number" title="Font size" x-ref="fontSize" class="toolbar-item font-size-input w-16 " min="8"
89
-               max="72" value="15">
90
-        <x-filament-lexical-editor::toolbar-item ref="increment" class="font-increment"
91
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.increase_font_size') }}" shortcut="Ctrl+Shift+."
92
-                                                 icon-class="format" icon="add-icon"/>
93
-        @break
94
-    @case(ToolbarItem::BOLD)
95
-        <x-filament-lexical-editor::toolbar-item active-option="isBold" ref="bold" title="{{ __('filament-lexical-editor::lexical-editor.bold') }}"
96
-                                                 shortcut="Ctrl+B" icon="bold"/>
97
-        @break
98
-    @case(ToolbarItem::ITALIC)
99
-        <x-filament-lexical-editor::toolbar-item active-option="isItalic" ref="italic"
100
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.italic') }}" shortcut="Ctrl+I" icon="italic"/>
101
-        @break
102
-    @case(ToolbarItem::UNDERLINE)
103
-        <x-filament-lexical-editor::toolbar-item active-option="isUnderline" ref="underline"
104
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.underline') }}" shortcut="Ctrl+U"
105
-                                                 icon="underline"/>
106
-        @break
107
-    @case(ToolbarItem::ICODE)
108
-        <x-filament-lexical-editor::toolbar-item active-option="isCode" ref="icode"
109
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.insert_code_block') }}" shortcut="Ctrl+Shift+C"
110
-                                                 icon="code"/>
111
-        @break
112
-    @case(ToolbarItem::LINK)
113
-        <x-filament-lexical-editor::toolbar-item active-option="isLink" ref="link"
114
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.insert_link') }}" shortcut="Ctrl+K"
115
-                                                 icon="link"/>
116
-        @break
117
-    @case(ToolbarItem::TEXT_COLOR)
118
-        <x-filament-lexical-editor::text-color-dialog ref="text_color" icon="font-color"
119
-                                                      :title="__('filament-lexical-editor::lexical-editor.formatting_text_color')"/>
120
-        @break
121
-    @case(ToolbarItem::BACKGROUND_COLOR)
122
-        <x-filament-lexical-editor::text-color-dialog ref="background_color" icon="bg-color"
123
-                                                      :title="__('filament-lexical-editor::lexical-editor.formatting_background_color')"/>
124
-        @break
125
-    @case(ToolbarItem::LOWERCASE)
126
-        <x-filament-lexical-editor::toolbar-item active-option="isLowercase" ref="lowercase"
127
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.lowercase') }}" shortcut="Ctrl+Shift+1"
128
-                                                 icon="lowercase"/>
129
-        @break
130
-    @case(ToolbarItem::UPPERCASE)
131
-        <x-filament-lexical-editor::toolbar-item active-option="isUppercase" ref="uppercase"
132
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.uppercase') }}" shortcut="Ctrl+Shift+2"
133
-                                                 icon="uppercase"/>
134
-        @break
135
-    @case(ToolbarItem::CAPITALIZE)
136
-        <x-filament-lexical-editor::toolbar-item active-option="isCapitalize" ref="capitalize"
137
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.capitalize') }}" shortcut="Ctrl+Shift+3"
138
-                                                 icon="capitalize"/>
139
-        @break
140
-    @case(ToolbarItem::STRIKETHROUGH)
141
-        <x-filament-lexical-editor::toolbar-item active-option="isStrikethrough" ref="strikethrough"
142
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.strikethrough') }}" shortcut="Ctrl+Shift+S"
143
-                                                 icon="strikethrough"/>
144
-        @break
145
-    @case(ToolbarItem::SUBSCRIPT)
146
-        <x-filament-lexical-editor::toolbar-item active-option="isSubscript" ref="subscript"
147
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.subscript') }}" shortcut="Ctrl+,"
148
-                                                 icon="subscript"/>
149
-        @break
150
-    @case(ToolbarItem::SUPERSCRIPT)
151
-        <x-filament-lexical-editor::toolbar-item active-option="isSuperscript" ref="superscript"
152
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.superscript') }}" shortcut="Ctrl+."
153
-                                                 icon="superscript"/>
154
-        @break
155
-    @case(ToolbarItem::CLEAR)
156
-        <x-filament-lexical-editor::toolbar-item ref="clear" title="{{ __('filament-lexical-editor::lexical-editor.clear_text_formatting') }}"
157
-                                                 shortcut="Ctrl+/" icon="clear"/>
158
-        @break
159
-    @case(ToolbarItem::LEFT)
160
-        <x-filament-lexical-editor::toolbar-item active-option="elementFormat == 'left'" ref="left" rtl-ref="right"
161
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.left_align') }}"
162
-                                                 rtl-title="{{ __('filament-lexical-editor::lexical-editor.right_align') }}" shortcut="Ctrl+Shift+L"
163
-                                                 rtl-shortcut="Ctrl+Shift+R" icon="left-align" rtl-icon="right-align"/>
164
-        @break
165
-    @case(ToolbarItem::CENTER)
166
-        <x-filament-lexical-editor::toolbar-item active-option="elementFormat == 'center'" ref="center"
167
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.center_align') }}" shortcut="Ctrl+Shift+E"
168
-                                                 icon="center-align"/>
169
-        @break
170
-    @case(ToolbarItem::RIGHT)
171
-        <x-filament-lexical-editor::toolbar-item active-option="elementFormat == 'right'" ref="right" rtl-ref="left"
172
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.right_align') }}"
173
-                                                 rtl-title="{{ __('filament-lexical-editor::lexical-editor.left_align') }}" shortcut="Ctrl+Shift+R"
174
-                                                 rtl-shortcut="Ctrl+Shift+L" icon="right-align" rtl-icon="left-align"/>
175
-        @break
176
-    @case(ToolbarItem::JUSTIFY)
177
-        <x-filament-lexical-editor::toolbar-item active-option="elementFormat == 'justify'" ref="justify"
178
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.justify_align') }}" shortcut="Ctrl+Shift+J"
179
-                                                 icon="justify-align"/>
180
-        @break
181
-    @case(ToolbarItem::START)
182
-        <x-filament-lexical-editor::toolbar-item active-option="elementFormat == 'start'" ref="start" rtl-ref="end"
183
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.start_align') }}"
184
-                                                 rtl-title="{{ __('filament-lexical-editor::lexical-editor.end_align') }}" shortcut="Ctrl+Shift+["
185
-                                                 rtl-shortcut="Ctrl+Shift+]" icon="left-align" rtl-icon="right-align"/>
186
-        @break
187
-    @case(ToolbarItem::END)
188
-        <x-filament-lexical-editor::toolbar-item active-option="elementFormat == 'end'" ref="end" rtl-ref="start"
189
-                                                 title="{{ __('filament-lexical-editor::lexical-editor.end_align') }}"
190
-                                                 rtl-title="{{ __('filament-lexical-editor::lexical-editor.start_align') }}" shortcut="Ctrl+Shift+]"
191
-                                                 rtl-shortcut="Ctrl+Shift+[" icon="right-align" rtl-icon="left-align"/>
192
-        @break
193
-    @case(ToolbarItem::INDENT)
194
-        <x-filament-lexical-editor::toolbar-item ref="indent" title="{{ __('filament-lexical-editor::lexical-editor.indent') }}" shortcut="Ctrl+]"
195
-                                                 icon="indent"/>
196
-        @break
197
-    @case(ToolbarItem::OUTDENT)
198
-        <x-filament-lexical-editor::toolbar-item ref="outdent" title="{{ __('filament-lexical-editor::lexical-editor.outdent') }}" shortcut="Ctrl+["
199
-                                                 icon="outdent"/>
200
-        @break
201
-    @case(ToolbarItem::HR)
202
-        <x-filament-lexical-editor::toolbar-item ref="hr" title="{{ __('filament-lexical-editor::lexical-editor.hr') }}" shortcut=""
203
-                                                 icon="horizontal-rule"/>
204
-        @break
205
-    @case(ToolbarItem::IMAGE)
206
-        <x-filament-lexical-editor::toolbar-item ref="image" title="{{ __('filament-lexical-editor::lexical-editor.image') }}" shortcut=""
207
-                                                 icon="image"/>
208
-        @break
209
-    @case(ToolbarItem::DIVIDER)
210
-        <div class="divider"></div>
211
-        @break
212
-@endswitch

+ 0
- 57
resources/views/vendor/filament-lexical-editor/lexical-editor.blade.php Просмотреть файл

@@ -1,57 +0,0 @@
1
-@php
2
-    use Filament\Support\Facades\FilamentAsset;
3
-    $statePath = $getStatePath();
4
-
5
-@endphp
6
-<x-dynamic-component
7
-    :component="$getFieldWrapperView()"
8
-    :field="$field"
9
->
10
-    <div
11
-        @class([
12
-            'lexical-editor rounded-md relative text-gray-950 bg-white shadow-sm ring-1 dark:bg-white/5 dark:text-white',
13
-            'ring-gray-950/10 dark:ring-white/20' => ! $errors->has($statePath),
14
-            'ring-danger-600 dark:ring-danger-600' => $errors->has($statePath),
15
-        ])
16
-
17
-    >
18
-
19
-        <div
20
-            ax-load="visible"
21
-            ax-load-src="{{ FilamentAsset::getAlpineComponentSrc('lexical-component', 'malzariey/filament-lexical-editor') }}"
22
-            x-data="lexicalComponent({
23
-                    state: $wire.{{ $applyStateBindingModifiers("\$entangle('{$statePath}')") }},
24
-                    enabledToolbars: @js($getEnabledToolbars()),
25
-                    basicColors: @js(['#ef3346', '#1A3673', '#FF7500', '#00B6ED', '#6557B8', '#00AB16'])
26
-            })"
27
-
28
-            x-ignore
29
-            wire:ignore
30
-
31
-            class="editor-shell w-full"
32
-        >
33
-
34
-            <div class="toolbar flex-wrap">
35
-                @foreach($getEnabledToolbars() as $toolbar)
36
-                    <x-filament-lexical-editor::toolbar :toolbar="$toolbar"/>
37
-                @endforeach
38
-            </div>
39
-
40
-            <div class="editor-container tree-view p-2 ">
41
-                <div class="editor-scroller">
42
-                    <div x-ref="editor"
43
-                         @link-clicked="showLinkEditorDialog( $event.detail.target,$event.detail.url, false)"
44
-                         @link-created="showLinkEditorDialog( $event.detail.target, $event.detail.url,)"
45
-                         @close-link-editor-dialog="closeLinkEditorDialog()"
46
-                         class="editor" style="max-width: unset" contenteditable="true" role="textbox" spellcheck="true"
47
-                         aria-placeholder="Enter some rich text..." data-lexical-editor="true"/>
48
-                </div>
49
-            </div>
50
-            <x-filament-lexical-editor::dialogs/>
51
-
52
-        </div>
53
-
54
-    </div>
55
-
56
-
57
-</x-dynamic-component>