Module: EffectiveEditorHelper

Defined in:
app/helpers/effective_editor_helper.rb

Instance Method Summary collapse

Instance Method Details

#effective_editor_tag(delta) ⇒ Object



3
4
5
6
7
# File 'app/helpers/effective_editor_helper.rb', line 3

def effective_editor_tag(delta)
  input_js = { method_name: 'effective_editor_tag', theme: 'snow', readOnly: true, modules: { toolbar: false } }

  (:div, '', id: "ql-#{delta.object_id}", class: 'effective_editor_content ql-effective', data: { 'input-js-options': input_js, 'delta': delta.presence || '{}'})
end