forked from tinymce/tinymce
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtiny_mce_dev.js
141 lines (121 loc) · 3.37 KB
/
tiny_mce_dev.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/**
* tiny_mce_dev.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This file should only be used while developing TinyMCE
* tiny_mce.js or tiny_mce_src.js should be used in a production environment.
* This file loads the js files from classes instead of a merged copy.
*/
(function() {
var i, nl = document.getElementsByTagName('script'), base, src, p, li, query = '', it, scripts = [];
if (window.tinyMCEPreInit) {
base = tinyMCEPreInit.base;
query = tinyMCEPreInit.query || '';
} else {
for (i=0; i<nl.length; i++) {
src = nl[i].src;
if (src && src.indexOf("tiny_mce_dev.js") != -1) {
base = src.substring(0, src.lastIndexOf('/'));
if ((p = src.indexOf('?')) != -1)
query = src.substring(p + 1);
}
}
}
// Parse query string
li = query.split('&');
query = {};
for (i=0; i<li.length; i++) {
it = li[i].split('=');
query[unescape(it[0])] = unescape(it[1]);
}
nl = null; // IE leak fix
function include(u) {
scripts.push(base + '/classes/' + u);
};
function load() {
var i, html = '';
for (i = 0; i < scripts.length; i++)
html += '<script type="text/javascript" src="' + scripts[i] + '"></script>\n';
document.write(html);
};
// Firebug
if (query.debug && !("console" in window)) {
include('firebug/firebug-lite.js');
}
// Load coverage version
if (query.coverage) {
base = base + '/../../tmp/jscoverage';
window.tinyMCEPreInit = {base: base, suffix: '_src', query: ''};
}
// Core ns
include('tinymce.js');
// Load framework adapter
if (query.api)
include('adapter/' + query.api + '/adapter.js');
// tinymce.util.*
include('util/Dispatcher.js');
include('util/URI.js');
include('util/Cookie.js');
include('util/JSON.js');
include('util/JSONP.js');
include('util/XHR.js');
include('util/JSONRequest.js');
include('util/VK.js');
include('util/Quirks.js');
// tinymce.html.*
include('html/Entities.js');
include('html/Styles.js');
include('html/Schema.js');
include('html/SaxParser.js');
include('html/Node.js');
include('html/DomParser.js');
include('html/Serializer.js');
include('html/Writer.js');
// tinymce.dom.*
include('dom/EventUtils.js');
include('dom/TreeWalker.js');
include('dom/DOMUtils.js');
include('dom/Range.js');
include('dom/TridentSelection.js');
include('dom/Sizzle.js');
include('dom/Element.js');
include('dom/Selection.js');
include('dom/Serializer.js');
include('dom/ScriptLoader.js');
include('dom/RangeUtils.js');
// tinymce.ui.*
include('ui/KeyboardNavigation.js');
include('ui/Control.js');
include('ui/Container.js');
include('ui/Separator.js');
include('ui/MenuItem.js');
include('ui/Menu.js');
include('ui/DropMenu.js');
include('ui/Button.js');
include('ui/ListBox.js');
include('ui/NativeListBox.js');
include('ui/MenuButton.js');
include('ui/SplitButton.js');
include('ui/ColorSplitButton.js');
include('ui/ToolbarGroup.js');
include('ui/Toolbar.js');
// tinymce.*
include('AddOnManager.js');
include('EditorManager.js');
include('Editor.js');
include('Editor.Events.js');
include('EditorCommands.js');
include('UndoManager.js');
include('ForceBlocks.js');
include('ControlManager.js');
include('WindowManager.js');
include('Formatter.js');
include('LegacyInput.js');
include('EnterKey.js');
load();
}());