Richard
Richard

Reputation: 14625

CKEditor on font-size change event

Is there any way to capture an event when user has changed font-size?

I'm looking for something similar to this:

CKEDITOR.editor.getCommand('xxx').on('xxx', function(){

});

Upvotes: 2

Views: 919

Answers (1)

maheshwaghmare
maheshwaghmare

Reputation: 2192

You need to use:

CKEDITOR.instances.your_instance_name.on( 'change', function() {
    //  Code goes here
} );

Replace your_instance_name with your instance name.

Upvotes: 1

Related Questions