loader = new YAHOO.util.YUILoader(); loader.addModule({ name: "domFunctions", //module name; must be unique type: "js", //can be "js" or "css" fullpath: "/jslib/domFunctions.js", //can use a path instead, extending base path varName: "domFunctions" // a variable that will be available when the script is loaded. Needed // in order to act on the script immediately in Safari 2.x and below. }); loader.addModule({ name: "rteImageUploader", //module name; must be unique type: "js", //can be "js" or "css" fullpath: "/yui/build/editor/editor-uploader.js", //can use a path instead, extending base path varName: "rteImageUploader", // a variable that will be available when the script is loaded. Needed // in order to act on the script immediately in Safari 2.x and below. requires: ['editor'] //if this module had dependencies, we could define here }); loader.addModule({ name: "rteImageCleanup", //module name; must be unique type: "js", //can be "js" or "css" fullpath: "/yui/build/editor/editor-window-cleanup.js", //can use a path instead, extending base path varName: "rteImageCleanup", // a variable that will be available when the script is loaded. Needed // in order to act on the script immediately in Safari 2.x and below. requires: ['editor'] //if this module had dependencies, we could define here }); loader.addModule({ name: "rteImgCropper", //module name; must be unique type: "js", //can be "js" or "css" fullpath: "/yui/build/editor/editor-img-crop.js", //can use a path instead, extending base path varName: "rteImgCropper", // a variable that will be available when the script is loaded. Needed // in order to act on the script immediately in Safari 2.x and below. requires: ['editor'] //if this module had dependencies, we could define here }); loader.base = '/yui/build/'; loader.require("editor","imagecropper","dragdrop","connection","domFunctions","rteImageUploader","rteImageCleanup","rteImgCropper","animation","container","logger"); loader.onSuccess = function(){ Dom=YAHOO.util.Dom; Event = YAHOO.util.Event; } loader.insert();