spree-contrib / spree_editor

Rich text editor for Spree with Image and File uploading in-place.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
112 stars 183 forks source link

ArgumentError in Spree::Admin::EditorSettings#edit #101

Closed voodee closed 9 years ago

voodee commented 9 years ago

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 %>
    }
alepore commented 9 years ago

please see above commit, that should fix