diff --git a/config/zeus-sky.php b/config/zeus-sky.php index 942f03f..761c1fd 100644 --- a/config/zeus-sky.php +++ b/config/zeus-sky.php @@ -46,4 +46,13 @@ 'skipHighlightingTerms' => ['iframe'], 'defaultFeaturedImage' => null, + + /** + * the default editor for pages and posts, Available: + * \LaraZeus\Sky\Editors\TipTapEditor::class, + * \LaraZeus\Sky\Editors\TinyEditor::class, + * \LaraZeus\Sky\Editors\MarkdownEditor::class, + * \LaraZeus\Sky\Editors\RichEditor::class, + */ + 'editor' => \LaraZeus\Sky\Editors\RichEditor::class, ]; diff --git a/docs/getting-started/configuration.md b/docs/getting-started/configuration.md index 47a544c..9e573fc 100644 --- a/docs/getting-started/configuration.md +++ b/docs/getting-started/configuration.md @@ -36,9 +36,6 @@ SkyPlugin::make() 'Tag' => \LaraZeus\Sky\Models\Tag::class, ]) - // the default editor - ->editor(Editors\TipTapEditor::class) - // available tags ->tagTypes([ 'tag' => 'Tag', @@ -127,6 +124,8 @@ return [ 'skipHighlightingTerms' => ['iframe'], 'defaultFeaturedImage' => null, + + 'editor' => \LaraZeus\Sky\Editors\RichEditor::class, ]; ``` @@ -138,8 +137,17 @@ the default editor is: `MarkdownEditor`. and included: * [Tiptap Editor](https://filamentphp.com/plugins/tiptap) * [Tiny Editor](https://filamentphp.com/plugins/mohamedsabil83-tinyeditor) -to use them you only need to install the package, and set the config -`->editor(Editors\TipTapEditor::class)` +to use them you only need to install the package, and set the `editor` in `zeus-sky` +```php +/** + * the default editor for pages and posts, Available: + * \LaraZeus\Sky\Editors\TipTapEditor::class, + * \LaraZeus\Sky\Editors\TinyEditor::class, + * \LaraZeus\Sky\Editors\MarkdownEditor::class, + * \LaraZeus\Sky\Editors\RichEditor::class, + */ +'editor' => \LaraZeus\Sky\Editors\RichEditor::class, +``` ### adding new editor