Sha256: 43d1f4ee3a0065721edb0efd70c71ec972ea4b5236d61d8197dce4940ae8e17d

Contents?: true

Size: 1.08 KB

Versions: 21

Compression:

Stored size: 1.08 KB

Contents

<%= content_tag :div,
  class: [
    text_editor.css_classes,
    text_editor.settings[:display_inline] ? "display_inline" : ""
  ], data: text_editor.data_attributes do %>
  <%= element_form.fields_for(:ingredients, text_editor.ingredient) do |f| %>
    <%= ingredient_label(text_editor) %>
    <%= f.text_field :value,
      class: text_editor.settings[:linkable] ? "text_with_icon" : "",
      id: text_editor.form_field_id,
      type: text_editor.settings[:input_type] || "text" %>
    <% if text_editor.settings[:anchor] %>
      <%= render "alchemy/ingredients/shared/anchor", ingredient_editor: text_editor %>
    <% end %>
    <% if text_editor.settings[:linkable] %>
      <%= f.hidden_field :link, "data-link-value": true, id: nil %>
      <%= f.hidden_field :link_title, "data-link-title": true, id: nil %>
      <%= f.hidden_field :link_class_name, "data-link-class": true, id: nil %>
      <%= f.hidden_field :link_target, "data-link-target": true, id: nil %>
      <%= render "alchemy/ingredients/shared/link_tools", ingredient_editor: text_editor %>
    <% end %>
  <% end %>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alchemy_cms-7.0.16 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.15 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.14 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.13 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.12 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.11 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.10 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.9 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.8 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.7 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.6 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.5 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.4 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.3 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.2 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.1 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.0 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.0.pre.rc1 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.0.pre.c app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-7.0.0.pre.b app/views/alchemy/ingredients/_text_editor.html.erb