4 * Copyright, Moxiecode Systems AB
5 * Released under LGPL License.
7 * License: http://www.tinymce.com/license
8 * Contributing: http://www.tinymce.com/contributing
16 * @borrow-members tinymce.EditorManager
17 * @borrow-members tinymce.util.Tools
19 define("tinymce/Compat", [
20 "tinymce/dom/DOMUtils",
21 "tinymce/dom/EventUtils",
22 "tinymce/dom/ScriptLoader",
23 "tinymce/AddOnManager",
26 ], function(DOMUtils, EventUtils, ScriptLoader, AddOnManager, Tools, Env) {
27 var tinymce = window.tinymce;
30 * @property {tinymce.dom.DOMUtils} DOM Global DOM instance.
31 * @property {tinymce.dom.ScriptLoader} ScriptLoader Global ScriptLoader instance.
32 * @property {tinymce.AddOnManager} PluginManager Global PluginManager instance.
33 * @property {tinymce.AddOnManager} ThemeManager Global ThemeManager instance.
35 tinymce.DOM = DOMUtils.DOM;
36 tinymce.ScriptLoader = ScriptLoader.ScriptLoader;
37 tinymce.PluginManager = AddOnManager.PluginManager;
38 tinymce.ThemeManager = AddOnManager.ThemeManager;
40 tinymce.dom = tinymce.dom || {};
41 tinymce.dom.Event = EventUtils.Event;
43 Tools.each(Tools, function(func, key) {
47 Tools.each('isOpera isWebKit isIE isGecko isMac'.split(' '), function(name) {
48 tinymce[name] = Env[name.substr(2).toLowerCase()];
54 // Describe the different namespaces
57 * Root level namespace this contains classes directly releated to the TinyMCE editor.
63 * Contains classes for handling the browsers DOM.
65 * @namespace tinymce.dom
69 * Contains html parser and serializer logic.
71 * @namespace tinymce.html
75 * Contains the different UI types such as buttons, listboxes etc.
77 * @namespace tinymce.ui
81 * Contains various utility classes such as json parser, cookies etc.
83 * @namespace tinymce.util