Sha256: dd0030ca203ad1fa589549f9ef807d0a087b11b690177deca1756d65a5ebbf28

Contents?: true

Size: 1.28 KB

Versions: 11

Compression:

Stored size: 1.28 KB

Contents

<% cache(content) do %>
  <div class="essence_text content_editor<%= options[:display_inline].to_s == 'true' ? ' display_inline' : '' %>" id="<%= content_dom_id(content) %>">

    <% if content.settings[:display_as].present? %>

      <%= warning 'The display_as setting is deprecated! Please run rake alchemy:upgrade', 'You are using the display_as setting in your elements.yml. Please run rake alchemy:upgrade' %>

    <% else %>

      <%= label_and_remove_link(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 %>

    <% end %>

  </div>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.9.0 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.8.3 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.7.5 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.7.4 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.8.2 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.8.1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.7.3 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.7.2 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.7.1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.7.0 app/views/alchemy/essences/_essence_text_editor.html.erb