(self, mode)
u'''Remove text from fields in editor.
u'''Remove text from fields in editor.
u Remove text from fields in editor .
def clear_all_editor_fields(self, mode):
    u'''Remove text from fields in editor. '''
    note = self.note
    # enumerate all fieldNames of the current note
    for c, field_name in enumerate(self.mw.col.models.fieldNames(note.model())):
        if mode == "most" and field_name in excluded_from_clearing:
            continue
        note[field_name] = ''
    self.loadNote()
    self.web.setFocus()
    self.web.eval("focusField(%d);" % self.currentField)
    self.web.eval('saveField("key");')
def clear_all_editor_fields ( self , mode ) : note = self . note # enumerate all fieldNames of the current note for c , field_name in enumerate ( self . mw . col . models . fieldNames ( note . model ( ) ) ) : if mode == "most" and field_name in excluded_from_clearing : continue note [ field_name ] = '' self . loadNote ( ) self . web . setFocus ( ) self . web . eval ( "focusField(%d);" % self . currentField ) self . web . eval ( 'saveField("key");' )