In core/modules/ckeditor/js/ckeditor.js ckeditor doesn't support saveCallbacks for multiple dialogs open, e.g. when one dialog opens another one and the latter is closed, saveCallback is set to null. Thus when the first one is closed then, the callback isn't called. The code causing the behaviour:

$(window).on('dialog:afterclose', function (e, dialog, $element) {
  if (Drupal.ckeditor.saveCallback) {
      Drupal.ckeditor.saveCallback = null;
  }
});
CommentFileSizeAuthor
#2 ckeditor-afterclose-quickfix-3002478-2.patch505 byteskpv

Comments

kpv created an issue. See original summary.

kpv’s picture

StatusFileSize
new505 bytes

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

wim leers’s picture

Status: Active » Closed (works as designed)

Having multiple dialogs active simultaneously, nested or not, is terrible for usability. In other words: this is working as designed.