Sha256: 3a06a6bd35089501e06982d1fe3e4f1a3b6d2e22f53c09ea27c286a442f91d28

Contents?: true

Size: 1.16 KB

Versions: 48

Compression:

Stored size: 1.16 KB

Contents

<%= content_tag :div,
  id: essence_text_editor.dom_id,
  class: [
    essence_text_editor.css_classes,
    essence_text_editor.settings[:display_inline] ? 'display_inline' : ''
  ], data: essence_text_editor.data_attributes do %>
  <%= content_label(essence_text_editor) %>
  <%= text_field_tag(
    essence_text_editor.form_field_name,
    essence_text_editor.ingredient,
    class: "thin_border #{essence_text_editor.settings[:linkable] ? ' text_with_icon' : ''}",
    type: essence_text_editor.settings[:input_type] || "text"
  ) %>
  <% if essence_text_editor.settings[:linkable] %>
    <%= hidden_field_tag essence_text_editor.form_field_name(:link), essence_text_editor.essence.link %>
    <%= hidden_field_tag essence_text_editor.form_field_name(:link_title), essence_text_editor.essence.link_title %>
    <%= hidden_field_tag essence_text_editor.form_field_name(:link_class_name), essence_text_editor.essence.link_class_name %>
    <%= hidden_field_tag essence_text_editor.form_field_name(:link_target), essence_text_editor.essence.link_target %>
    <%= render 'alchemy/essences/shared/linkable_essence_tools', content: essence_text_editor.content %>
  <% end %>
<% end %>

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
alchemy_cms-5.3.8 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.3.7 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.3.6 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.3.5 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.3.4 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.3.3 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.3.2 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.3.1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.3.0 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.2.7 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.2.6 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.1.10 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.0.10 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.2.5 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.1.9 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.0.9 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.2.4 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.1.8 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.0.8 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-5.0.7 app/views/alchemy/essences/_essence_text_editor.html.erb