Sha256: cd6d9181133aac59d73fe4171ff3e2731571cfc1aa3be25825740c18ad7cad5d
Contents?: true
Size: 366 Bytes
Versions: 17
Compression:
Stored size: 366 Bytes
Contents
module EffectiveEditorHelper def effective_editor_tag(delta) input_js = { method_name: 'effective_editor_tag', theme: 'snow', readOnly: true, modules: { toolbar: false } } content_tag(:div, '', id: "ql-#{delta.object_id}", class: 'effective_editor_content ql-effective', data: { 'input-js-options': input_js, 'delta': delta.presence || '{}'}) end end
Version data entries
17 entries across 17 versions & 1 rubygems