'Replace the contents of the response editor'

def add_content_via_editor_button(self, content_type, response_id, url, description, is_decorative=False):

    self._find_within('#wmd-{}-button-edit-post-body-{}'.format(content_type, response_id)).click()
    self.q(css='#new-url-input').fill(url)
    self.q(css='#new-url-desc-input').fill(description)
    if is_decorative:
        self.q(css='#img-is-decorative').click()
    self.q(css='input[value="OK"]').click()
