'Sync the position of the preview panel to the current cursor position in the current editor'

def sync_preview_to_editor(self):

    if self.ignore_preview_to_editor_sync:
        return
    ed = self.gui.central.current_editor
    if (ed is not None):
        name = editor_name(ed)
        if ((name is not None) and (getattr(ed, u'syntax', None) == u'html')):
            self.gui.preview.sync_to_editor(name, ed.current_tag())
