Docs
Single Line

Single Line

Restrict the editor to a single block.

You cannot type or paste text with multiple lines.

Features

  • Limits editor to one block of text. Suitable for brief content or titles.

Installation

npm install @udecode/plate-break

Usage

import { SingleLinePlugin } from '@udecode/plate-break/react';
 
const plugins = [
  // ...otherPlugins
  SingleLinePlugin,
];

Plugins

SingleLinePlugin