Sha256: 48935353d08add9e2189c4bd38814f194510067dfd5b00ac09f6112db15c7b33

Contents?: true

Size: 624 Bytes

Versions: 3

Compression:

Stored size: 624 Bytes

Contents

class SpreeEditorHooks < Spree::ThemeSupport::HookListener
  # Admin configuration
  insert_after :admin_configurations_menu do
    %(<tr>
      <td><%= link_to t("rich_editor"), admin_editor_settings_path %></td>
      <td><%= t("rich_editor_description") %></td>
      </ tr>)
  end

  insert_after :admin_configurations_sidebar_menu do
    %(<li<%== ' class="active"' if controller.controller_name == 'editor_settings' %>><%= link_to t("rich_editor"), admin_editor_settings_path %></li>)
  end

  # Javascript
  insert_after :admin_inside_head do
    %(<%= render :partial => 'shared/rich_editor_javascript' %>)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_editor-0.50.1 lib/spree_editor_hooks.rb
spree_editor-0.50.0 lib/spree_editor_hooks.rb
spree_editor-0.40.0 lib/spree_editor_hooks.rb