npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@editora/plugin-fullscreen

v1.0.2

Published

Fullscreen plugin for Rich Text Editor

Readme

Fullscreen Plugin

A comprehensive fullscreen plugin for the Rich Text Editor that allows users to expand the editor to fill the entire viewport.

Features

  • Toggle Fullscreen: Click the fullscreen button in the toolbar to expand/collapse the editor
  • Keyboard Support: Press Escape to exit fullscreen mode
  • Responsive: Editor scales properly in fullscreen mode
  • Toolbar Integration: Easy-to-use button in the main toolbar

Installation

The plugin is included in the @editora/plugins package.

import { FullscreenPlugin, FullscreenPluginProvider } from '@editora/plugins';

Usage

Basic Setup

The fullscreen plugin is automatically integrated into the EditoraEditor when using FullscreenPluginProvider:

import { EditoraEditor } from '@editora/react';
import { FullscreenPlugin } from '@editora/plugins';

export default function Editor() {
  return (
    <EditoraEditor
      plugins={[
        // ... other plugins
        FullscreenPlugin(),
      ]}
    />
  );
}

Using the useFullscreen Hook

You can programmatically control fullscreen mode using the useFullscreen hook:

import { useFullscreen } from '@editora/plugins';

function MyComponent() {
  const { isFullscreen, toggleFullscreen } = useFullscreen();

  return (
    <button onClick={toggleFullscreen}>
      {isFullscreen ? 'Exit Fullscreen' : 'Enter Fullscreen'}
    </button>
  );
}

API

FullscreenPlugin()

Creates a fullscreen plugin instance that adds a toolbar button.

Returns: Plugin

FullscreenPluginProvider

Context provider that manages fullscreen state.

Props:

  • children: ReactNode - Child components
  • editor?: Editor - Optional editor instance

Context:

interface FullscreenContextType {
  isFullscreen: boolean;
  toggleFullscreen: () => void;
}

useFullscreen()

Hook to access fullscreen context.

Returns: FullscreenContextType

Throws: Error if not used within FullscreenPluginProvider

Styling

The fullscreen plugin uses CSS Modules for scoped styling. The active fullscreen state applies these styles:

  • Positions editor as fixed filling the entire viewport
  • Sets z-index to 9999 to appear above other content
  • Hides body scrollbars
  • Maintains toolbar and content proportions

CSS Classes

  • .fullscreenActive - Applied to editor when fullscreen is active

Keyboard Shortcuts

| Key | Action | |-----|--------| | Escape | Exit fullscreen mode |

Browser Support

The fullscreen plugin works in all modern browsers that support:

  • CSS Grid/Flexbox
  • ES6+ JavaScript features
  • CSS Custom Properties

Accessibility

  • Toolbar button is keyboard accessible
  • Escape key provides standard fullscreen exit mechanism
  • Maintains proper focus management

Example

import React from 'react';
import { EditoraEditor } from '@editora/react';
import {
  BoldPlugin,
  ItalicPlugin,
  FullscreenPlugin,
} from '@editora/plugins';

export default function Editor() {
  return (
    <EditoraEditor
      plugins={[
        BoldPlugin(),
        ItalicPlugin(),
        FullscreenPlugin(),
      ]}
    />
  );
}

Notes

  • The fullscreen button appears in the main toolbar
  • Fullscreen state is maintained until explicitly closed
  • All editor functionality remains available in fullscreen mode
  • The fullscreen state is local to the component (not persisted)