spree-contrib/spree_editor

ArgumentError in Spree::Admin::EditorSettings#edit

Closed this issue · 1 comments

Showing /home/voodee/dev/gramax/app/views/shared/editor_engines/_ck_editor.html.erb where line # 4 raised:

wrong number of arguments (2 for 1)

    window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/";
    window.CKEDITOR_ASSETS_MAPPING = {
>       <% Rails.application.assets.each_logical_path(->(path){ path =~ /ckeditor/ && path != 'ckeditor/override.js' && path != 'ckeditor/init.js' && path != 'ckeditor/ckeditor.js' }) do |asset| %>
        "<%= asset %>": "<%= asset_path(asset) %>",
        <% end %>
    }

please see above commit, that should fix