if not canSelectImagesInContentEditable, prevent default on click

Because preventing default on mousedown forbids native
default behavior of being able to drag and drop images, which is so
nice to have for free.
Checked against chromium 24, still able to select IMG.
Hide currently opened dialog when it is shown for another element.
Bubble editor 'hide' event up through editor as 'hide:dialog'.