Opened 11 years ago

Last modified 11 years ago

#9779 closed Bug

CKEditor 4 unable to override GetUrl — at Initial Version

Reported by: Michael Owned by:
Priority: Normal Milestone: CKEditor 4.0.2
Component: General Version: 4.0
Keywords: Cc:

Description

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

Make it possible to override the "url" function with a custom

implementation pointing to a global named CKEDITOR_GETURL. var newGetUrl = window.CKEDITOR_GETURL; if ( newGetUrl ) {

var originalGetUrl = CKEDITOR.url; CKEDITOR.url = function( resource ) {

return newGetUrl.call( CKEDITOR, resource )
originalGetUrl.call( CKEDITOR, resource );

};

}

it should be

Make it possible to override the "url" function with a custom

implementation pointing to a global named CKEDITOR_GETURL. var newGetUrl = window.CKEDITOR_GETURL; if ( newGetUrl ) {

var originalGetUrl = CKEDITOR.getUrl; CKEDITOR.getUrl = function( resource ) {

return newGetUrl.call( CKEDITOR, resource )
originalGetUrl.call( CKEDITOR, resource );

};

}

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy