Documentation
Clean
enter
Type: Boolean
Default: true
By default, when you press Enter at the end of the editable block, the editor creates a new block and does not inherit the attributes and classes of the previous block. This can be changed by setting false
.
RedactorX('#entry', {
clean: {
enter: false
}
});
Now when you press Enter at the end of the block, the editor will inherit all the attributes and classes of this block for the newly created one.
enterinline
Type: Boolean
Default: false
If this setting is enabled, when you press enter at the end of a paragraph in which the last node is an inline tag (bold, italic, etc.), this inline tag will be created in the new paragraph.
RedactorX('#entry', {
clean: {
enterinline: true
}
});
comments
Type: Boolean
Default: false
If this setting is enabled, html comments will not be removed from the content.
RedactorX('#entry', {
clean: {
comments: true
}
});
dkjgvo65776inru43654