Function: maxLengthPlugin()
maxLengthPlugin(
params?):RealmPlugin
A plugin that limits the maximum length of the text content of the editor. Adapted from the Lexical plugin. https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/plugins/MaxLengthPlugin/index.tsx
Parameters
| Parameter | Type |
|---|---|
params? | number |
Returns
Example
<MDXEditor plugins={[maxLengthPlugin(100)]} markdown={'hello world'} />