'Show text in rich mode'

def show_rich_text(self, text, collapse=False, img_path=''):

    self.visibility_changed(True)
    self.raise_()
    self.switch_to_rich_text()
    context = generate_context(collapse=collapse, img_path=img_path)
    self.render_sphinx_doc(text, context)
