sky

On this page

Content Editor

the default editor is: MarkdownEditor. and also included:

to use them you only need to install the package, and set the editor in zeus-sky

1/**
2 * the default editor for pages and posts, Available:
3 * \LaraZeus\Sky\Editors\TipTapEditor::class,
4 * \LaraZeus\Sky\Editors\TinyEditor::class,
5 * \LaraZeus\Sky\Editors\MarkdownEditor::class,
6 * \LaraZeus\Sky\Editors\RichEditor::class,
7 */
8'editor' => \LaraZeus\Sky\Editors\RichEditor::class,

Customize the editor

in some cases you may want to use some options with the editor, like uploading to S3 or adding or removing toolbar buttons. to do so, you need to copy the class to your app or create a new editor. this way you will have the editor class available to you to add any more options:

1MarkdownEditor::make('content')
2 ->fileAttachmentsDisk('s3')
3 ->fileAttachmentsDirectory('attachments')
4 ->fileAttachmentsVisibility('private')

adding new editor

you can add any editor available in filament plugin directory

  • first install the plugin that you want to use.
  • implement the \LaraZeus\Sky\Editors\ContentEditor interface, and set it in the config file zeus-sky.php in the editor option

Zeus is an open-source project. Thanks to my sponsors for helping me maintain this project.