@portabletext/plugin-one-line
Version:
🤏 Restricts the Portable Text Editor to a single line
12 lines (10 loc) • 372 B
TypeScript
/**
* @beta
* Restrict the editor to one line. The plugin takes care of blocking
* `insert.break` events and smart handling of other `insert.*` events.
*
* Place it with as high priority as possible to make sure other plugins don't
* overwrite `insert.*` events before this plugin gets a chance to do so.
*/
export declare function OneLinePlugin(): null
export {}