In the code example, clicking on both divs makes the background color gray.
Clicking a second time on the first div (content editable) changes the color back to white. Clicking the second div (not content editable) does not.
Is there a way to easily achieve the same result for the second div?
<div contenteditable="true" style="width:100px; height:100px; border: 1px solid red;" onclick="this.style.backgroundColor='gray'" onblur="this.style.backgroundColor='white'"></div>
<div style="width:100px; height:100px; border: 1px solid blue;" onclick="this.style.backgroundColor='gray'" onblur="this.style.backgroundColor='white'"></div>