Sha256: 40ea7d2144e37087b1282d7d5323c8708ed94191701faf893d0369077b0447ee
Contents?: true
Size: 812 Bytes
Versions: 13
Compression:
Stored size: 812 Bytes
Contents
window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/"; window.CKEDITOR_ASSETS_MAPPING = { <% Rails.application.assets.each_logical_path(->(path){ path =~ /ckeditor/ && (path.include?('effective_ckeditor/config') || !path.include?('effective_ckeditor')) }) 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
13 entries across 13 versions & 1 rubygems