Remove empty anchors on enter key press.

remove empty anchors on enter key press.