Copy image from browser to mikidown works now.
Refactor out LineEditDialog to be shared by notesTree and notesEdit.