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 { createSingleLinePlugin } from '@udecode/plate-break';
 
const plugins = [
  // ...otherPlugins
  createSingleLinePlugin(),
];

API

createSingleLinePlugin