def editor_field_tag(name, value, options = {})
      options[:toolbar] ||= "basic"
      options[:lines] ||= 10

      content_tag(:div, class: "editor") do
        template = ""
        template += label_tag(name, options[:label]) if options[:label] != false
        template += hidden_field_tag(name, value, options)
        template += content_tag(:div, nil, class: "editor-container", data: {
                                  toolbar: options[:toolbar]
                                }, style: "height: #{options[:lines]}rem")
        template.html_safe
      end
    end
def editor_field_tag(name, value, options = {})
      options[:toolbar] ||= "basic"
      options[:lines] ||= 10

      content_tag(:div, class: "editor") do
        template = ""
        template += label_tag(name, options[:label]) if options[:label] != false
        template += hidden_field_tag(name, value, options)
        template += content_tag(:div, nil, class: "editor-container", data: {
                                  toolbar: options[:toolbar]
                                }, style: "height: #{options[:lines]}rem")
        template.html_safe
      end
    end
A custom helper to include an editor field without requiring a form object

 name - The input name
 value - The input value
 options - The set of options to send to the field
           :label   - The Boolean value to create or not the input label (optional) (default: true)
           :toolbar - The String value to configure WYSIWYG toolbar. It should be 'basic' or
                      or 'full' (optional) (default: 'basic')
           :lines   - The Integer to indicate how many lines should editor have (optional)

 Returns a rich editor to be included in an html template.