I just started using contentEditable and did not find much complete information about this.
I noticed that in Chrome I can make the words bold / italic by pressing CTRL - B and CTRL - I.
Perhaps this will be the intended behavior in other browsers? This, for example, works in Chrome:
<div class="container" id="typer" onclick="this.contentEditable='true';">
http://jsfiddle.net/uk6DA/15/
I am wondering if I can read this formatting to save user changes? Also, can I create a Bold button and an Italic button that will launch CTRL - B and CTRL - I ? Or will I need to depend on the user pressing CTRL - B and CTRL - I (which means giving them a note telling them)?
source share