Sha256: 7350c666f1b2792bb36ca7b23461e910854bad3071eec793f615dddbe3cdbf50
Contents?: true
Size: 901 Bytes
Versions: 5
Compression:
Stored size: 901 Bytes
Contents
<%#window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/";%> window['CKEDITOR_BASEPATH'] = "<%= asset_path(Ckeditor.asset_path) %>/"; 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 %> } window.CKEDITOR_GETURL = function( resource ) { // If this is not a full or absolute path. if ( resource.indexOf( ':/' ) == -1 && resource.indexOf( '/' ) !== 0 ) resource = this.basePath + resource; // Add the timestamp, except for directories. if ( resource.charAt( resource.length - 1 ) != '/' ){ var url = resource.match( /^(.*?:\/\/[^\/]*)\/assets\/(.+)/ ); if(url) resource = (CKEDITOR_ASSETS_MAPPING[url[2]] || '/assets/' + url[2]); } return resource; }
Version data entries
5 entries across 5 versions & 1 rubygems