Limits the maximum character count of plain editor text. Blocks further typing and paste when the limit is reached. Shows current length in the status bar.
Counts text the same way as the Counter plugin (whitespace normalized). Navigation and delete keys still work at the limit.
<script src="/assets/redactor/redactor.js"></script>
<script src="/assets/redactor/plugins/limit/limit.js"></script>
const app = Redactor('#entry', {
plugins: ['limit'],
limit: {
limit: 200
}
});
number | false)
falsefalse, null, undefined, or 0.Redactor('#entry', {
plugins: ['limit'],
limit: {
limit: 500
}
});
This plugin does not emit events.
This plugin does not expose a public API.