Sign up (with export icon)

Email configuration helper

Show the table of contents

While configuring an email editor looks like a demanding task, the email configuration helper plugin is the best way to start and make this experience more manageable.

Unlock this feature with selected CKEditor Plans

Try all premium features – no credit card needed.

Sign up for a free trial Select a Plan

Demo

Copy link

Look at the logs below to see the configuration problems.

The logs displayed below come from DevTools and show problems encountered by the editor during configuration validation. These issues may cause emails to be displayed incorrectly in various email clients.

Installation

Copy link

After installing the editor, add the feature to your plugin list and toolbar configuration:

import { ClassicEditor } from 'ckeditor5';
import { EmailConfigurationHelper } from 'ckeditor5-premium-features';

ClassicEditor
	.create( document.querySelector( '#editor' ), {
		licenseKey: '<YOUR_LICENSE_KEY>',
		plugins: [ EmailConfigurationHelper, /* ... */ ],
		link: {
			// Configuration.
		}
	} )
	.then( /* ... */ )
	.catch( /* ... */ );
Copy code

Activating the feature

Copy link

To use this premium feature, you need to activate it with proper credentials. Refer to the License key and activation guide for details.

Configuration

Copy link

Logs and warnings

Copy link

The EmailConfigurationConfig property lets you suppress warnings or log messages about email client compatibility.

ClassicEditor
    .create( editorElement, {
        email: {
            logs: {
                suppressAll: false,
                suppress: [
                    'email-configuration-unsupported-reversed-list',
                    'email-configuration-unsupported-list-style-type',
                    // ... other message codes
                ]
            }
        }
    } )
Copy code

Common API

Copy link

The EmailConfigurationHelper plugin registers the following components:

Note

We recommend using the official CKEditor 5 inspector for development and debugging. It will give you tons of useful information about the state of the editor such as internal data structures, selection, commands, and many more.