XH 1.6: Switching to view mode after saving

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: XH 1.6: Switching to view mode after saving

Post by svasti » Fri Nov 21, 2014 10:06 pm

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

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: XH 1.6: Switching to view mode after saving

Post by cmb » Fri Nov 21, 2014 11:00 pm

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
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.
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply