def __init__(self, parent: QWidget, editor: Editor) -> None: AnkiWebView.__init__(self, title="editor") self.editor = editor self.setAcceptDrops(True) self._markInternal = False clip = self.editor.mw.app.clipboard() qconnect(clip.dataChanged, self._onClipboardChange) gui_hooks.editor_web_view_did_init(self)
def __init__(self, parent, editor): AnkiWebView.__init__(self, title="editor") self.editor = editor self.strip = self.editor.mw.pm.profile["stripHTML"] self.setAcceptDrops(True) self._markInternal = False clip = self.editor.mw.app.clipboard() qconnect(clip.dataChanged, self._onClipboardChange) gui_hooks.editor_web_view_did_init(self)