Sha256: 5807bdcb920ca66698d549e461b6ed7fac5ecb226adf2331fa5e9280a08d5fab

Contents?: true

Size: 983 Bytes

Versions: 3

Compression:

Stored size: 983 Bytes

Contents

<% cache(content) do %>
  <div class="essence_text content_editor<%= options[:display_inline].to_s == 'true' ? ' display_inline' : '' %>" id="<%= content.dom_id %>">
    <%= content_label(content) %>
    <%= text_field_tag(
      content.form_field_name,
      content.ingredient,
      class: ["thin_border #{content.settings[:linkable] ? ' text_with_icon' : ''}", html_options[:class]].join(' '),
      style: html_options[:style]
    ) %>
    <% if content.settings[:linkable] %>
      <%= hidden_field_tag content.form_field_name(:link), content.essence.link %>
      <%= hidden_field_tag content.form_field_name(:link_title), content.essence.link_title %>
      <%= hidden_field_tag content.form_field_name(:link_class_name), content.essence.link_class_name %>
      <%= hidden_field_tag content.form_field_name(:link_target), content.essence.link_target %>
      <%= render 'alchemy/essences/shared/linkable_essence_tools', content: content %>
    <% end %>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alchemy_cms-3.3.0 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-3.3.0.rc2 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-3.3.0.rc1 app/views/alchemy/essences/_essence_text_editor.html.erb