Update anchor plugin.js

Exposed showDialog so it can be called from outside the editor.

Updated to use the selected text as the default value for the bookmark name.

Added a delete button to remove the anchor.