Fixed editor plugin for internal links, closes #667