Skip to content

Commit

Permalink
add editor config and update config
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Oct 5, 2023
1 parent eb4156d commit 21bd6a3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
9 changes: 9 additions & 0 deletions config/zeus-sky.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
18 changes: 13 additions & 5 deletions docs/getting-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ SkyPlugin::make()
'Tag' => \LaraZeus\Sky\Models\Tag::class,
])

// the default editor
->editor(Editors\TipTapEditor::class)

// available tags
->tagTypes([
'tag' => 'Tag',
Expand Down Expand Up @@ -127,6 +124,8 @@ return [
'skipHighlightingTerms' => ['iframe'],

'defaultFeaturedImage' => null,

'editor' => \LaraZeus\Sky\Editors\RichEditor::class,
];
```

Expand All @@ -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

Expand Down

0 comments on commit 21bd6a3

Please sign in to comment.