Adds a block control button for assigning CSS class names to the current block. Replaces any existing block classes with the value you enter.
Select a block, open the control dropdown, and choose Classname. Enter one or more space-separated class names and save.
<script src="/assets/redactor/redactor.js"></script>
<script src="/assets/redactor/plugins/block-class/block-class.js"></script>
const app = Redactor('#entry', {
plugins: ['blockClass']
});
string)
Redactor('#entry', {
plugins: ['blockClass'],
blockClass: {
icon: '<svg...>'
}
});
en: {
blockClass: {
classname: 'Classname'
}
}
This plugin does not emit events.
This plugin does not expose a public API.