Fix 'ctrl+s' in inlineEditors that use CodeMirror.
Review Request #6133 — Created July 22, 2014 and submitted — Latest diff uploaded
inlineEditor has two functions that save the contents:
save
andsubmit
. Of
these two,save
is really just meant to be an internal helper, andsubmit
is the one that does a lot of the necessary cleanup.The handler for 'ctrl+s' was calling
save
, which caused the editor box to
disappear. Changing it tosubmit
makes everything work correctly.
Opened an inline editor that used CodeMirror and hit ctrl+s. Saw the input box
disappear and be replaced with the rendered contents.