def getXhtmlDocument(self):
        xhtmlDoc = ZMshtmlEditControl.getXhtmlDocument(self)
        # run visitor to convert special marker to a <!-- more --> comment
        zdom = xhtmlDoc.getDom()
        visitor = ZMshtmlExtEntryMarker2CommentZDomVisitor()
        visitor.visit(zdom)
        # run embed wrapper visitor
        visitor = ZMshtmlWrapEmbedElementZDomVisitor()
        visitor.visit(zdom)
        # run visitor to remove empty elements.
        visitor = ZMshtmlRemoveEmptyElementZDomVisitor([u"a"])  #$NON-NLS-1$
        visitor.visit(zdom)
        # remove 'unselectable' attribute
        visitor = ZMshtmlRemoveUnSelectableZDomVisitor()
        visitor.visit(zdom)

        return xhtmlDoc
    def getXhtmlDocument(self):
        xhtmlDoc = ZMshtmlEditControl.getXhtmlDocument(self)
        # run visitor to convert special marker to a <!-- more --> comment
        zdom = xhtmlDoc.getDom()
        visitor = ZMshtmlExtEntryMarker2CommentZDomVisitor()
        visitor.visit(zdom)
        # run embed wrapper visitor
        visitor = ZMshtmlWrapEmbedElementZDomVisitor()
        visitor.visit(zdom)
        # run visitor to remove empty elements.
        visitor = ZMshtmlRemoveEmptyElementZDomVisitor([u"a"]) #$NON-NLS-1$
        visitor.visit(zdom)
        # remove 'unselectable' attribute
        visitor = ZMshtmlRemoveUnSelectableZDomVisitor()
        visitor.visit(zdom)

        return xhtmlDoc
 def setXhtmlDocument(self, xhtmlDoc):
     # override to run visitor to remove empty <a> elements
     visitor = ZMshtmlRemoveEmptyElementZDomVisitor([u"a"])  #$NON-NLS-1$
     visitor.visit(xhtmlDoc.getDom())
     ZMshtmlEditControl.setXhtmlDocument(self, xhtmlDoc)
 def _getCapabilityIdList(self):
     rval = ZMshtmlEditControl._getCapabilityIdList(self)
     rval.append(IZBlogPostEditControl.ZCAPABILITY_EXTENDED_ENTRY_MARKER)
     return rval
 def _bindWidgetEvents(self):
     ZMshtmlEditControl._bindWidgetEvents(self)
     self.Bind(IZMshtmlEvents.ZEVT_MSHTML_DOCUMENT_LOADED,
               self.onDocumentLoaded, self._getMshtmlControl())
 def __init__(self, parent):
     ZMshtmlEditControl.__init__(self, parent)
 def setXhtmlDocument(self, xhtmlDoc):
     # override to run visitor to remove empty <a> elements
     visitor = ZMshtmlRemoveEmptyElementZDomVisitor([u"a"]) #$NON-NLS-1$
     visitor.visit(xhtmlDoc.getDom())
     ZMshtmlEditControl.setXhtmlDocument(self, xhtmlDoc)
 def _getCapabilityIdList(self):
     rval = ZMshtmlEditControl._getCapabilityIdList(self)
     rval.append(IZBlogPostEditControl.ZCAPABILITY_EXTENDED_ENTRY_MARKER)
     return rval
 def _bindWidgetEvents(self):
     ZMshtmlEditControl._bindWidgetEvents(self)
     self.Bind(IZMshtmlEvents.ZEVT_MSHTML_DOCUMENT_LOADED, self.onDocumentLoaded, self._getMshtmlControl())
 def __init__(self, parent):
     ZMshtmlEditControl.__init__(self, parent)