     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 ''

    @$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_operator_select.off('blur').empty().addClass 'hidden'


module.exports = SurveyAdmin
