Sha256: 48e850fd364415dc3abba55229e918e7d6443e25e1ac84ffcab8acfb8fffe6ab

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 KB

Contents

<% cache(content) do %>
  <div class="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/linkable_essence_tools', :content => content %>

      <% end %>

    <% end %>

  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

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