Fixed: Link dialog opened if double-clicked linked image.
Basic integration with link dialog.
Retrieve range from the event in link dialog's onOk.
Consider that link might be first child of an element when downcasting.
Several fixes of internal structure of the widget.