Esempio n. 1
0
    def __init__(self, parent, document):
        self.parent = parent
        self.notebook = None
        self.model = ZBlogPostEditorModel()
        self.model.setDocument(document)
        self.wysiwygContentEditor = None
        self.xhtmlContentEditor = None
        self.contentPreviewer = None
        self.activeContentEditor = None
        self.previewMode = False
        self.currentPreviewTemplate = None
        self.dataStoreService = getApplicationModel().getService(IZBlogAppServiceIDs.DATA_STORE_SERVICE_ID)
        self.templateService = getApplicationModel().getService(IZBlogAppServiceIDs.TEMPLATE_SERVICE_ID)

        ZEditor.__init__(self, parent)

        self.bitmap = self._createEditorBitmap()
        self.menuBarModel = self._createMenuBarModel()
        self.toolBarModel = self._createToolBarModel()
        self.statusBarModel = self._createStatusBarModel()

        self._registerAsListener()
        self._startSnapshotTimer()
Esempio n. 2
0
 def _fireDirtyEvent(self):
     ZEditor._fireDirtyEvent(self)
     self._fireUpdateMenu()