Sha256: 32bb940ab0646331c824323c127ebcde3643b894dc60bdbec3f22a18dfc4a09b

Contents?: true

Size: 1.28 KB

Versions: 19

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/linkable_essence_tools', :content => content %>

      <% end %>

    <% end %>

  </div>
<% end %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
alchemy_cms-2.6.3 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.6.2.1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.6.2 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.6.1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.6.0 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.6.0.rc5 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.5.3.1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.5.3 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.5.2.2 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.5.2.1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.5.2 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.5.1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.5.0 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.5.0.rc3 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.5.0.b9 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.4.1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.5.0.b5 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.5.0.b2 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-2.4.0 app/views/alchemy/essences/_essence_text_editor.html.erb