'Set the text of a CodeMirror editor that is part of this xblock\'s settings.'

def set_codemirror_text(self, text, index=0):

    type_in_codemirror(self, index, text, find_prefix='$("{}").find'.format(self.editor_selector))
