Skip to content

Commit 1a549d6

Browse files
jhjguxinNerian
authored andcommitted
'core.js.erb' use 'stylesheet_path' to call css file
1 parent e093e06 commit 1a549d6

File tree

1 file changed

+3
-3
lines changed
  • vendor/assets/javascripts/bootstrap-wysihtml5

1 file changed

+3
-3
lines changed

vendor/assets/javascripts/bootstrap-wysihtml5/core.js.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147

148148
createEditor: function(options) {
149149
options = options || {};
150-
150+
151151
// Add the toolbar to a clone of the options object so multiple instances
152152
// of the WYISYWG don't break because "toolbar" is already defined
153153
options = $.extend(true, {}, options);
@@ -379,7 +379,7 @@
379379
return methods.init.apply( this, arguments );
380380
} else {
381381
$.error( 'Method ' + method + ' does not exist on jQuery.wysihtml5' );
382-
}
382+
}
383383
};
384384

385385
$.fn.wysihtml5.Constructor = Wysihtml5;
@@ -450,7 +450,7 @@
450450
"pre": 1
451451
}
452452
},
453-
stylesheets: ["<%= Rails.configuration.assets.prefix + '/bootstrap-wysihtml5/wysiwyg-color.css' %>"], // (path_to_project/lib/css/wysiwyg-color.css)
453+
stylesheets: ["<%= stylesheet_path('bootstrap-wysihtml5/wysiwyg-color.css') %>"], // (path_to_project/lib/css/wysiwyg-color.css)
454454
locale: "en"
455455
};
456456

0 commit comments

Comments
 (0)