@payload-bites/fullscreen-editor
TypeScript icon, indicating that this package has built-in type declarations

1.4.4 • Public • Published

Fullscreen editor

Provides a fullscreen mode for the lexical rich text editor.

https://github.com/user-attachments/assets/22ba5cf7-6cb2-4695-8dbf-f06b37c77b66

Quick start

  1. Install the plugin:
pnpm add @payload-bites/fullscreen-editor
  1. Add the feature to your lexical editor in payload.config.ts:
// ...
import { FullscreenEditorFeature } from "@payload-bites/fullscreen-editor";

export default buildConfig({
  // ...
  editor: lexicalEditor({
    features: ({ defaultFeatures }) => [
      ...defaultFeatures,
      // ...
      FixedToolbarFeature(), // optional
      FullscreenEditorFeature(),
    ],
  }),
});

Roadmap

  • [ ] Focus trap around editor in fullscreen mode.
  • [x] Translations.

Package Sidebar

Install

npm i @payload-bites/fullscreen-editor

Weekly Downloads

250

Version

1.4.4

License

none

Unpacked Size

41 kB

Total Files

56

Last publish

Collaborators

  • rilrom