. Advertisement .
..3..
. Advertisement .
..4..
I need to find a solution to turn off the edit mode after using document.body.contenteditable = ‘true’; document.designmode=’on’; void 0
I’ve tried to change true and 0 to false and 1 respectively, but it doesn’t work.
Could you give me some advice. Here is my code detail:
javascript:document.body.contentEditable='true';
document.designMode='on';
void 0
Have you tried to change document.designMode to ‘off’? It works for me.
Edit mode can be ended by changing the command to the following
javascript:document.body.contentEditable='false'; document.designMode='off'; void 0
I have updated my response to include a working example of my answer. It was tested in safari, firefox, and chrome.