     @$question_text_input.addClass 'hidden'
     @$question_form_options.addClass 'hidden'
     @$question_text_editor.html "<trix-editor input='question_text'></trix-editor>"
-  
+
   resetQuestionText: ->
     @question_html_backup = @$question_text_input.val()
     @$question_text_input.val @question_html_backup.replace(/(<([^>]+)>)/ig,"").replace('&nbsp;', ' ')

    conditional_string += "#{@$conditional_operator.text()}|"
    conditional_string += "#{@$conditional_value_select.val()}|multi"
    @$conditional_input_field.val conditional_string
  
  clearConditional: (e) ->
    e.preventDefault() if e?
    @$conditional_operator.text ''

  showQuestionTypes: (string) ->
    $("[data-question-type-options*='#{string}']").removeClass 'hidden'
    @$answer_options.addClass 'hidden' if @course_data

    switch string
      when 'Select', 'Checkbox', 'Radio'
        @$answer_options.removeClass 'hidden' if !@course_data
