Skip to content

Commit

Permalink
add filament-tiptap-editor
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Jul 29, 2023
1 parent 1acf877 commit 484c2d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"filament/spatie-laravel-media-library-plugin": "^3.0@beta",
"filament/spatie-laravel-tags-plugin": "^3.0@beta",
"filament/spatie-laravel-translatable-plugin": "^3.0@beta",
"awcodes/filament-tiptap-editor": "v3.0.0-alpha2",
"awcodes/filament-tiptap-editor": "dev-livewire-v3 as 3.0.0",
"spatie/laravel-medialibrary": "^10.0.0",
"spatie/laravel-sluggable": "^3.3",
"ryangjchandler/filament-navigation": "dev-filament3",
Expand Down
5 changes: 2 additions & 3 deletions src/Classes/TipTapEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ class TipTapEditor implements ContentEditor
{
public static function component(): Component
{
//todo
/*if (class_exists(TipTapEditorAlias::class)) {
if (class_exists(TipTapEditorAlias::class)) {
return \FilamentTiptapEditor\TiptapEditor::make('content')
->profile('default')
->output(TiptapOutput::Html)
->required();
}*/
}

return Textarea::make('content')->required();
}
Expand Down
1 change: 0 additions & 1 deletion src/SkyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public function packageBooted(): void
CoreServiceProvider::setThemePath('sky');

Filament::serving(function () {
// todo
$this->bootFilamentNavigation();
});
}
Expand Down

0 comments on commit 484c2d1

Please sign in to comment.