Incorrect insert of tags by editor.php fixed