WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17133, comment 24


Ignore:
Timestamp:
01/26/2018 03:58:51 AM (2 years ago)
Author:
Junaidkbr
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17133, comment 24

    initial v1  
    44
    55There's another neat way to handle the document save with CodeMirror but I couldn't access the `commands` property anywhere. Ref: http://codemirror.net/doc/manual.html#commands
     6
     7'''About the patch:'''
     8Calling `component.submit` directly from the shortcut event isn't possible because `componenet.save` needs a parameter which is the form submit event. Due to this limitation, the patch is initiating the form submit event by `component.form.submit()`