What about this:
Hitting the save icon in the online editor + ctrl -> saves and opens in view mode
?
The PageDataRouter would have to record the ctrl button and give this information to XH_saveEditorContents
XH 1.6: Switching to view mode after saving
Re: XH 1.6: Switching to view mode after saving
Well, at first the information that the CTRL key had been held down while the save button was pressed would have to be send to the server. This might be done by adding an event listener for keydown and keyup, and filling out a hidden form field respectively, but I'm not sure if pressing a CTRL key triggers these events, and it seems to me that would be merely a hack, anyway.svasti wrote:What about this:
Hitting the save icon in the online editor + ctrl -> saves and opens in view mode
?
The PageDataRouter would have to record the ctrl button and give this information to XH_saveEditorContents
Christoph M. Becker – Plugins for CMSimple_XH