Changes between Initial Version and Version 6 of Ticket #9779
- Timestamp:
- Feb 6, 2013, 11:39:45 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9779
-
Property
Status
changed from
new
toconfirmed
-
Property
Milestone
changed from
to
CKEditor 4.0.2
-
Property
Status
changed from
-
Ticket #9779 – Description
initial v6 1 in previous version you could override geturl by creating a function called 1 In previous version you could override geturl by creating a function called CKEDITOR_GETURL. This seems be broken because of this block in ckeditor_base.js: 2 2 3 CKEDITOR_GETURL 3 {{{ 4 // Make it possible to override the "url" function with a custom 5 // implementation pointing to a global named CKEDITOR_GETURL. 6 var newGetUrl = window.CKEDITOR_GETURL; 7 if ( newGetUrl ) { 8 var originalGetUrl = CKEDITOR.url; 9 CKEDITOR.url = function( resource ) { 10 return newGetUrl.call( CKEDITOR, resource ) || originalGetUrl.call( CKEDITOR, resource ); 11 }; 12 } 13 }}} 4 14 5 this seems be broken because of this block in ckeditor_base.js 15 It should be: 6 16 17 {{{ 7 18 // Make it possible to override the "url" function with a custom 8 // implementation pointing to a global named CKEDITOR_GETURL. 9 var newGetUrl = window.CKEDITOR_GETURL; 10 if ( newGetUrl ) { 11 var originalGetUrl = CKEDITOR.url; 12 CKEDITOR.url = function( resource ) { 13 return newGetUrl.call( CKEDITOR, resource ) || originalGetUrl.call( CKEDITOR, resource ); 14 }; 15 } 16 17 it should be 18 19 // Make it possible to override the "url" function with a custom 20 // implementation pointing to a global named CKEDITOR_GETURL. 21 var newGetUrl = window.CKEDITOR_GETURL; 22 if ( newGetUrl ) { 23 var originalGetUrl = CKEDITOR.getUrl; 24 CKEDITOR.getUrl = function( resource ) { 25 return newGetUrl.call( CKEDITOR, resource ) || originalGetUrl.call( CKEDITOR, resource ); 26 }; 27 } 28 19 // implementation pointing to a global named CKEDITOR_GETURL. 20 var newGetUrl = window.CKEDITOR_GETURL; 21 if ( newGetUrl ) { 22 var originalGetUrl = CKEDITOR.getUrl; 23 CKEDITOR.getUrl = function( resource ) { 24 return newGetUrl.call( CKEDITOR, resource ) || originalGetUrl.call( CKEDITOR, resource ); 25 }; 26 } 27 }}}