Feature

Clear Formatting

Remove all inline formatting from the selected area and revert to the default text style.

toolbar: removeRunStyle

Clear Formatting

Quickly clean up unwanted formatting from text pasted from external documents.

This text has various formatting applied: underline, color, highlight, font, background color, etc.

↑ Select the paragraph above and click the Clear Formatting button in the toolbar to get ↓ the result below.

This text has various formatting applied: underline, color, highlight, font, background color, etc.

Configuration

mode: classic · 1 button
var config = Object.assign(synapEditorConfig, {
    'editor.license': synapEditorLicense,
    'editor.lang': 'en',
    'editor.toolbar': [
        'new', '|',
        'removeRunStyle'
    ],
    'editor.menu.show': false
});

// Create editor instance
var editor = new SynapEditor('synapEditor', config, initialHtml);