def METHOD_NAME(self):
    """Updates the editor when the object trait changes external to the
    editor.
    """
    text = self.str_value
    if self.factory.format_text:
        text = self.factory.parse_text(text)
    if self.base_url and HAS_WEB_VIEW:
        url = self.base_url
        if not url.endswith("/"):
            url += "/"
        self.control.setHtml(text, QtCore.QUrl.fromLocalFile(url))
    else:
        self.control.setHtml(text)