Sha256: cd3250804abca5d70ea6c3a597d21d8792877e2baf1c3e0e83320263408a16c3
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
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' && path.index('ckeditor/filebrowser').nil? && path.index('.md').nil? && (path.index('.html').nil? || !path.index('.htmlm').nil?) && path.index('LICENSE').nil? && path.index('README').nil? && path != 'ckeditor/plugins/preview/preview.js' && path != 'ckeditor/plugins/wsc/dialogs/ciframe.js' && path != 'ckeditor/plugins/wsc/dialogs/tmpFrameset.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glebtv-ckeditor-4.4.7.3 | app/assets/javascripts/ckeditor/override.js.erb |