Inline Cancel
- Categories: Accessibility, Usability
- Author: tyleryasaka
- License: GPL, LGPL, MPL
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.
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 labelIf 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
Releases
Plugin versions | CKEditor versions | |||
---|---|---|---|---|
4.25 | 4.24 | 4.23 | ||
Version: 2.7.1 |
||||
Set config to empty object if it is not defined by user |