Inline Cancel

This is a simple cancel button for the CKEditor toolbar, designed to go along with the inlinesave addon. A customonCancel function can be specified, allowing the developer to implement his/her own functionality for the button.

Usage 1. Add the plugin to your editor. Help 2. Set configuration options

The options are:

  • onCancel (function): function to call when the button is clicked; editor element is passed into this function (can be used to manually undo changes; see notes)

Sample configuration object (place this in your configuration file):

config.inlinecancel = {
  onCancel: function(editor) { console.log('cancel', editor); }
};
Display label

If you want the label "Cancel" to display next to the icon, add the following css to your site:

.cke_button_label.cke_button__inlinecancel_label {
    display: inline;
}

 

Screenshots

inlinecancel

21,937 downloads (view stats)

Releases

Plugin versions CKEditor versions
4.10 4.9 4.8

Version: 1.0

DownloadRelease notes

First release. Let me know if there are problems.

Version: 2.7.1

DownloadRelease notes

Set config to empty object if it is not defined by user

Twitter Facebook Facebook Instagram Medium Google+ GitHub Arrow down Phone Menu Close icon Check