- buttons: [
- {
- text: Drupal.t('Continue'),
- class: 'button button--primary',
- click: function () {
- changeTextEditor(field, newFormatID);
- confirmationDialog.close();
- }
- },
- {
- text: Drupal.t('Cancel'),
- class: 'button',
- click: function () {
- // Restore the active format ID: cancel changing text format. We
- // cannot simply call event.preventDefault() because jQuery's
- // change event is only triggered after the change has already
- // been accepted.
- $select.val(activeFormatID);
- confirmationDialog.close();
- }
+ buttons: [{
+ text: Drupal.t('Continue'),
+ class: 'button button--primary',
+ click: function click() {
+ changeTextEditor(field, newFormatID);
+ confirmationDialog.close();