Limited formatting

Sometimes it is necessary for the editor to be restricted in formatting, for example, to create comments or messages. For this purpose, Redactor has a wide range of options for customizing pasting restrictions and the appearance of toolbars.

Code

<!-- element -->
<textarea id="entry">...</textarea>

<!-- call -->
<script>
let app = Redactor('#entry', {
    plugins: ['emoji'],
    extrabar: false,
    format: false,
    paste: {
        blockTags: ['p'],
        images: false
    },
    buttons: {
        toolbar: ['bold', 'italic', 'deleted', 'link']
    },
    popups: {
        control: ['duplicate', 'trash']
    }
});
</script>