ctrl+s Opens “Save As” Window in Sitecore 9.3 Experience Editor

During upgrade to Sitecore 9.3, we noticed that save shortcut (ctrl+s) did not function properly in Experience Editor. “Save As” dialog box appeared when we used it to save the changes. It functions properly in Content Editor though.

We reported this behavior with Sitecore support and they registered this as a bug with public reference number 359703. Also, they provided the patch to fix this.

To resolve this issue,  uncomment the following from your “Website/sitecore/shell/Applications/Page Modes/PageEditor.js“:

this.save = function(postaction) {
  var command = "webedit:save";
  if (postaction) {
    command += "(postaction=" + postaction + ")";
  }

  this.onSaving();
  this.postRequest(command, null, false);
};

if (e.keyCode == 83 && e.ctrlKey) {
  e.preventDefault();
  this.save();
  return;
}

As per Sitecore, this change hooks onto ctrl+s in javascript, prevents the default ctrl+s functionality of saving the html, and then triggers the save.

Contact Sitecore support before applying this patch.

One thought on “ctrl+s Opens “Save As” Window in Sitecore 9.3 Experience Editor

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s