Working enhancement: make cmd s work inside the post editor
-
By adding this two lines inside the
setButton
function, hitting cmd+S works when the pointer is in the post editor !function setButton(selector){ if(...) { ... $("#content_ifr body").on('keydown',handleKeydown); ... } else { ... $("#content_ifr body").off('keydown',handleKeydown); ... } }
$("#content_ifr body")
is the iframe body. We can now listen to any event bubbling to it.
- The topic ‘Working enhancement: make cmd s work inside the post editor’ is closed to new replies.