1// Shared pasted-image upload for all CKEditor 4 instances. 2// Loaded once after ckeditor.js, then each *_config.js calls 3// CKEDITOR.sportyImageUpload.apply(config). 4// The bundled uploadimage plugin only activates when an upload URL is configured; 5// without one it leaves pasted images embedded as base64 data URIs. 6(function () { 7 if (typeof CKEDITOR === 'undefined') { 8 return; 9 } 10 11 CKEDITOR.sportyImageUpload = CKEDITOR.sportyImageUpload || {}; 12 13 CKEDITOR.sportyImageUpload.apply = function (config) { 14 var organisationId = $('#OrganisationId').val(); 15 if (!organisationId) { 16 return; 17 } 18 19 // A subsite's gallery lists its own folders, not the root site's, so the 20 // upload has to know which site the editor is on to stay reachable there. 21 var siteId = $('#SiteId').val(); 22 23 config.imageUploadUrl = '/Asset/UploadPastedImage?organisationId=' + organisationId + 24 (siteId ? '&siteId=' + siteId : ''); 25 }; 26})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.