Expands typed shortcuts into longer text when you press Space after a match. Useful for boilerplate phrases, signatures, or frequently used snippets.
Configure a map of shortcut → replacement strings. The plugin is inactive when items is false.
<script src="/assets/redactor/redactor.js"></script>
<script src="/assets/redactor/plugins/text-expander/text-expander.js"></script>
const app = Redactor('#entry', {
plugins: ['textExpander'],
textExpander: {
items: {
sig: 'Best regards, Team',
date: 'June 17, 2026'
}
}
});
object | false)
falsefalse.Redactor('#entry', {
plugins: ['textExpander'],
textExpander: {
items: {
lorem: 'Lorem ipsum dolor sit amet.',
email: '[email protected]'
}
}
});
This plugin does not emit events.
This plugin does not expose a public API.