Skip to content

Commit

Permalink
#9779: Fixed overriding CKEDITOR.getUrl with CKEDITOR_GETURL.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredck committed Feb 6, 2013
1 parent d02739b commit 6e60de2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
@@ -1,6 +1,11 @@
CKEditor 4 Changelog
====================

## CKEditor 4.0.2

* [#9779](http://dev.ckeditor.com/ticket/9779): Fixed overriding CKEDITOR.getUrl with CKEDITOR_GETURL.


## CKEditor 4.0.1

Fixed issues:
Expand Down
4 changes: 2 additions & 2 deletions core/ckeditor_base.js
Expand Up @@ -283,8 +283,8 @@ if ( !window.CKEDITOR ) {
// implementation pointing to a global named CKEDITOR_GETURL.
var newGetUrl = window.CKEDITOR_GETURL;
if ( newGetUrl ) {
var originalGetUrl = CKEDITOR.url;
CKEDITOR.url = function( resource ) {
var originalGetUrl = CKEDITOR.getUrl;
CKEDITOR.getUrl = function( resource ) {
return newGetUrl.call( CKEDITOR, resource ) || originalGetUrl.call( CKEDITOR, resource );
};
}
Expand Down

0 comments on commit 6e60de2

Please sign in to comment.