I'd like to override (wrap) the $.fn.ckeditor
function, that is the jQuery adapter for CKEditor. What value should I return? It this the correct way:
;(function ($) {
var defaults = {}
ckeditor = $.fn.ckeditor;
$.fn.ckeditor = function (cb, options) {
ckeditor.apply(this, [cb || $.noop, $.extend(defaults, options || {})]);
};
}(jQuery));
in order to override a plugin?