<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
curder / filament-rich-editor-source-code example snippets
RichEditor::make('html')
->toolbarButtons([
['source-code'], // Add the `source-code` button to the toolbar.
[ 'bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'link'],
['h2', 'h3', 'alignStart', 'alignCenter', 'alignEnd'],
['blockquote', 'codeBlock', 'bulletList', 'orderedList'],
['table', 'attachFiles', 'customBlocks'], // The `customBlocks` and `mergeTags` tools are also added here if those features are used.
['undo', 'redo'],
]),