Rich Editor blocks UI improvements: icons, grid, search, sticky controls, minimal previews

Rich Editor blocks UI improvements: icons, grid, search, sticky controls, minimal previews

  • form
  • rich editor
  • custom blocks

Custom blocks can define getIcon() to display an icon alongside a block's label.

On the editor you can use:

  • customBlocksGrid() - display custom blocks in a grid
  • searchableCustomBlocks() - add a search field to the custom blocks panel
  • stickyToolbar() / stickyPanels() - keep toolbar and panels visible while scrolling
  • stickyOffset() - set the distance from the top of the scroll viewport
  • minimalCustomBlockControls() - drops the frame around block previews so content feels closer to the frontend
  • and group blocks with string keys in customBlocks().
RichEditor::make('content')
 ->customBlocks([
     'Marketing' => [HeroBlock::class, CallToActionBlock::class],
     'Media' => [ImageGalleryBlock::class, VideoEmbedBlock::class],
 ])
 ->customBlocksGrid()
 ->searchableCustomBlocks()
 ->stickyToolbar()
 ->stickyPanels()
 ->minimalCustomBlockControls();
All Filament Up To Date tips