bcms_content_syncing 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/{README → README.markdown} +5 -0
- metadata +6 -661
- data/.gitignore +0 -13
- data/COPYRIGHT.txt +0 -23
- data/GPL.txt +0 -674
- data/Rakefile +0 -34
- data/VERSION +0 -1
- data/bcms_content_syncing.gemspec +0 -710
- data/config/boot.rb +0 -110
- data/config/database.yml +0 -22
- data/config/environment.rb +0 -42
- data/config/environments/development.rb +0 -18
- data/config/environments/production.rb +0 -31
- data/config/environments/test.rb +0 -29
- data/config/initializers/backtrace_silencers.rb +0 -7
- data/config/initializers/inflections.rb +0 -10
- data/config/initializers/init_module.rb +0 -1
- data/config/initializers/mime_types.rb +0 -5
- data/config/initializers/new_rails_defaults.rb +0 -21
- data/config/initializers/session_store.rb +0 -15
- data/config/locales/en.yml +0 -5
- data/config/routes.rb +0 -45
- data/db/seeds.rb +0 -7
- data/doc/README_FOR_APP +0 -2
- data/public/404.html +0 -30
- data/public/422.html +0 -30
- data/public/500.html +0 -30
- data/public/bcms/ckeditor/ckeditor.js +0 -108
- data/public/bcms/ckeditor/config.js +0 -18
- data/public/bcms/ckeditor/core/_bootstrap.js +0 -64
- data/public/bcms/ckeditor/core/ajax.js +0 -143
- data/public/bcms/ckeditor/core/ckeditor.js +0 -96
- data/public/bcms/ckeditor/core/ckeditor_base.js +0 -190
- data/public/bcms/ckeditor/core/ckeditor_basic.js +0 -241
- data/public/bcms/ckeditor/core/command.js +0 -70
- data/public/bcms/ckeditor/core/commanddefinition.js +0 -72
- data/public/bcms/ckeditor/core/config.js +0 -287
- data/public/bcms/ckeditor/core/dom.js +0 -21
- data/public/bcms/ckeditor/core/dom/document.js +0 -210
- data/public/bcms/ckeditor/core/dom/documentfragment.js +0 -49
- data/public/bcms/ckeditor/core/dom/domobject.js +0 -204
- data/public/bcms/ckeditor/core/dom/element.js +0 -1384
- data/public/bcms/ckeditor/core/dom/elementpath.js +0 -104
- data/public/bcms/ckeditor/core/dom/event.js +0 -137
- data/public/bcms/ckeditor/core/dom/node.js +0 -649
- data/public/bcms/ckeditor/core/dom/nodelist.js +0 -23
- data/public/bcms/ckeditor/core/dom/range.js +0 -1668
- data/public/bcms/ckeditor/core/dom/text.js +0 -123
- data/public/bcms/ckeditor/core/dom/walker.js +0 -411
- data/public/bcms/ckeditor/core/dom/window.js +0 -96
- data/public/bcms/ckeditor/core/dtd.js +0 -200
- data/public/bcms/ckeditor/core/editor.js +0 -650
- data/public/bcms/ckeditor/core/editor_basic.js +0 -178
- data/public/bcms/ckeditor/core/env.js +0 -219
- data/public/bcms/ckeditor/core/event.js +0 -335
- data/public/bcms/ckeditor/core/eventInfo.js +0 -120
- data/public/bcms/ckeditor/core/focusmanager.js +0 -123
- data/public/bcms/ckeditor/core/htmlparser.js +0 -212
- data/public/bcms/ckeditor/core/htmlparser/basicwriter.js +0 -140
- data/public/bcms/ckeditor/core/htmlparser/cdata.js +0 -44
- data/public/bcms/ckeditor/core/htmlparser/comment.js +0 -59
- data/public/bcms/ckeditor/core/htmlparser/element.js +0 -196
- data/public/bcms/ckeditor/core/htmlparser/filter.js +0 -233
- data/public/bcms/ckeditor/core/htmlparser/fragment.js +0 -434
- data/public/bcms/ckeditor/core/htmlparser/text.js +0 -55
- data/public/bcms/ckeditor/core/imagecacher.js +0 -58
- data/public/bcms/ckeditor/core/lang.js +0 -147
- data/public/bcms/ckeditor/core/loader.js +0 -238
- data/public/bcms/ckeditor/core/plugindefinition.js +0 -66
- data/public/bcms/ckeditor/core/plugins.js +0 -82
- data/public/bcms/ckeditor/core/resourcemanager.js +0 -233
- data/public/bcms/ckeditor/core/scriptloader.js +0 -194
- data/public/bcms/ckeditor/core/skins.js +0 -185
- data/public/bcms/ckeditor/core/test.js +0 -184
- data/public/bcms/ckeditor/core/themes.js +0 -18
- data/public/bcms/ckeditor/core/tools.js +0 -531
- data/public/bcms/ckeditor/core/ui.js +0 -106
- data/public/bcms/ckeditor/core/xml.js +0 -165
- data/public/bcms/ckeditor/editor.js +0 -51
- data/public/bcms/ckeditor/lang/_languages.js +0 -82
- data/public/bcms/ckeditor/lang/_translationstatus.txt +0 -59
- data/public/bcms/ckeditor/lang/af.js +0 -674
- data/public/bcms/ckeditor/lang/ar.js +0 -674
- data/public/bcms/ckeditor/lang/bg.js +0 -674
- data/public/bcms/ckeditor/lang/bn.js +0 -674
- data/public/bcms/ckeditor/lang/bs.js +0 -674
- data/public/bcms/ckeditor/lang/ca.js +0 -674
- data/public/bcms/ckeditor/lang/cs.js +0 -674
- data/public/bcms/ckeditor/lang/da.js +0 -674
- data/public/bcms/ckeditor/lang/de.js +0 -674
- data/public/bcms/ckeditor/lang/el.js +0 -674
- data/public/bcms/ckeditor/lang/en-au.js +0 -674
- data/public/bcms/ckeditor/lang/en-ca.js +0 -674
- data/public/bcms/ckeditor/lang/en-uk.js +0 -674
- data/public/bcms/ckeditor/lang/en.js +0 -674
- data/public/bcms/ckeditor/lang/eo.js +0 -674
- data/public/bcms/ckeditor/lang/es.js +0 -674
- data/public/bcms/ckeditor/lang/et.js +0 -674
- data/public/bcms/ckeditor/lang/eu.js +0 -674
- data/public/bcms/ckeditor/lang/fa.js +0 -674
- data/public/bcms/ckeditor/lang/fi.js +0 -674
- data/public/bcms/ckeditor/lang/fo.js +0 -674
- data/public/bcms/ckeditor/lang/fr-ca.js +0 -674
- data/public/bcms/ckeditor/lang/fr.js +0 -674
- data/public/bcms/ckeditor/lang/gl.js +0 -674
- data/public/bcms/ckeditor/lang/gu.js +0 -674
- data/public/bcms/ckeditor/lang/he.js +0 -674
- data/public/bcms/ckeditor/lang/hi.js +0 -674
- data/public/bcms/ckeditor/lang/hr.js +0 -674
- data/public/bcms/ckeditor/lang/hu.js +0 -674
- data/public/bcms/ckeditor/lang/is.js +0 -674
- data/public/bcms/ckeditor/lang/it.js +0 -674
- data/public/bcms/ckeditor/lang/ja.js +0 -674
- data/public/bcms/ckeditor/lang/km.js +0 -674
- data/public/bcms/ckeditor/lang/ko.js +0 -674
- data/public/bcms/ckeditor/lang/lt.js +0 -674
- data/public/bcms/ckeditor/lang/lv.js +0 -674
- data/public/bcms/ckeditor/lang/mn.js +0 -674
- data/public/bcms/ckeditor/lang/ms.js +0 -674
- data/public/bcms/ckeditor/lang/nb.js +0 -674
- data/public/bcms/ckeditor/lang/nl.js +0 -674
- data/public/bcms/ckeditor/lang/no.js +0 -674
- data/public/bcms/ckeditor/lang/pl.js +0 -674
- data/public/bcms/ckeditor/lang/pt-br.js +0 -674
- data/public/bcms/ckeditor/lang/pt.js +0 -674
- data/public/bcms/ckeditor/lang/ro.js +0 -674
- data/public/bcms/ckeditor/lang/ru.js +0 -674
- data/public/bcms/ckeditor/lang/sk.js +0 -674
- data/public/bcms/ckeditor/lang/sl.js +0 -674
- data/public/bcms/ckeditor/lang/sr-latn.js +0 -674
- data/public/bcms/ckeditor/lang/sr.js +0 -674
- data/public/bcms/ckeditor/lang/sv.js +0 -674
- data/public/bcms/ckeditor/lang/th.js +0 -674
- data/public/bcms/ckeditor/lang/tr.js +0 -674
- data/public/bcms/ckeditor/lang/uk.js +0 -674
- data/public/bcms/ckeditor/lang/vi.js +0 -674
- data/public/bcms/ckeditor/lang/zh-cn.js +0 -674
- data/public/bcms/ckeditor/lang/zh.js +0 -674
- data/public/bcms/ckeditor/plugins/about/dialogs/about.js +0 -73
- data/public/bcms/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/public/bcms/ckeditor/plugins/about/plugin.js +0 -22
- data/public/bcms/ckeditor/plugins/basicstyles/plugin.js +0 -50
- data/public/bcms/ckeditor/plugins/blockquote/plugin.js +0 -301
- data/public/bcms/ckeditor/plugins/button/plugin.js +0 -264
- data/public/bcms/ckeditor/plugins/clipboard/dialogs/paste.js +0 -167
- data/public/bcms/ckeditor/plugins/clipboard/plugin.js +0 -208
- data/public/bcms/ckeditor/plugins/colorbutton/plugin.js +0 -202
- data/public/bcms/ckeditor/plugins/contextmenu/plugin.js +0 -178
- data/public/bcms/ckeditor/plugins/dialog/dialogDefinition.js +0 -315
- data/public/bcms/ckeditor/plugins/dialog/plugin.js +0 -2742
- data/public/bcms/ckeditor/plugins/dialogui/plugin.js +0 -1319
- data/public/bcms/ckeditor/plugins/domiterator/plugin.js +0 -354
- data/public/bcms/ckeditor/plugins/editingblock/plugin.js +0 -236
- data/public/bcms/ckeditor/plugins/elementspath/plugin.js +0 -182
- data/public/bcms/ckeditor/plugins/enterkey/plugin.js +0 -324
- data/public/bcms/ckeditor/plugins/entities/plugin.js +0 -200
- data/public/bcms/ckeditor/plugins/fakeobjects/plugin.js +0 -111
- data/public/bcms/ckeditor/plugins/filebrowser/plugin.js +0 -383
- data/public/bcms/ckeditor/plugins/find/dialogs/find.js +0 -843
- data/public/bcms/ckeditor/plugins/find/plugin.js +0 -46
- data/public/bcms/ckeditor/plugins/flash/dialogs/flash.js +0 -682
- data/public/bcms/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/public/bcms/ckeditor/plugins/flash/plugin.js +0 -165
- data/public/bcms/ckeditor/plugins/floatpanel/plugin.js +0 -325
- data/public/bcms/ckeditor/plugins/font/plugin.js +0 -227
- data/public/bcms/ckeditor/plugins/format/plugin.js +0 -191
- data/public/bcms/ckeditor/plugins/forms/dialogs/button.js +0 -135
- data/public/bcms/ckeditor/plugins/forms/dialogs/checkbox.js +0 -138
- data/public/bcms/ckeditor/plugins/forms/dialogs/form.js +0 -177
- data/public/bcms/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -91
- data/public/bcms/ckeditor/plugins/forms/dialogs/radio.js +0 -135
- data/public/bcms/ckeditor/plugins/forms/dialogs/select.js +0 -541
- data/public/bcms/ckeditor/plugins/forms/dialogs/textarea.js +0 -114
- data/public/bcms/ckeditor/plugins/forms/dialogs/textfield.js +0 -193
- data/public/bcms/ckeditor/plugins/forms/plugin.js +0 -193
- data/public/bcms/ckeditor/plugins/horizontalrule/plugin.js +0 -35
- data/public/bcms/ckeditor/plugins/htmldataprocessor/plugin.js +0 -373
- data/public/bcms/ckeditor/plugins/htmlwriter/plugin.js +0 -289
- data/public/bcms/ckeditor/plugins/iframedialog/plugin.js +0 -136
- data/public/bcms/ckeditor/plugins/image/dialogs/image.js +0 -1225
- data/public/bcms/ckeditor/plugins/image/plugin.js +0 -64
- data/public/bcms/ckeditor/plugins/indent/plugin.js +0 -323
- data/public/bcms/ckeditor/plugins/justify/plugin.js +0 -164
- data/public/bcms/ckeditor/plugins/keystrokes/plugin.js +0 -217
- data/public/bcms/ckeditor/plugins/link/dialogs/anchor.js +0 -98
- data/public/bcms/ckeditor/plugins/link/dialogs/link.js +0 -1217
- data/public/bcms/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/public/bcms/ckeditor/plugins/link/plugin.js +0 -188
- data/public/bcms/ckeditor/plugins/list/plugin.js +0 -570
- data/public/bcms/ckeditor/plugins/listblock/plugin.js +0 -231
- data/public/bcms/ckeditor/plugins/maximize/plugin.js +0 -267
- data/public/bcms/ckeditor/plugins/menu/plugin.js +0 -377
- data/public/bcms/ckeditor/plugins/menubutton/plugin.js +0 -93
- data/public/bcms/ckeditor/plugins/newpage/plugin.js +0 -65
- data/public/bcms/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/public/bcms/ckeditor/plugins/pagebreak/plugin.js +0 -96
- data/public/bcms/ckeditor/plugins/panel/plugin.js +0 -330
- data/public/bcms/ckeditor/plugins/panelbutton/plugin.js +0 -140
- data/public/bcms/ckeditor/plugins/pastefromword/dialogs/pastefromword.js +0 -307
- data/public/bcms/ckeditor/plugins/pastefromword/plugin.js +0 -54
- data/public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -65
- data/public/bcms/ckeditor/plugins/pastetext/plugin.js +0 -142
- data/public/bcms/ckeditor/plugins/popup/plugin.js +0 -62
- data/public/bcms/ckeditor/plugins/preview/plugin.js +0 -97
- data/public/bcms/ckeditor/plugins/print/plugin.js +0 -41
- data/public/bcms/ckeditor/plugins/removeformat/plugin.js +0 -132
- data/public/bcms/ckeditor/plugins/resize/plugin.js +0 -115
- data/public/bcms/ckeditor/plugins/richcombo/plugin.js +0 -357
- data/public/bcms/ckeditor/plugins/save/plugin.js +0 -55
- data/public/bcms/ckeditor/plugins/scayt/dialogs/options.js +0 -494
- data/public/bcms/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
- data/public/bcms/ckeditor/plugins/scayt/plugin.js +0 -511
- data/public/bcms/ckeditor/plugins/selection/plugin.js +0 -1072
- data/public/bcms/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/public/bcms/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/public/bcms/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/public/bcms/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/public/bcms/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/public/bcms/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/public/bcms/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/public/bcms/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/public/bcms/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/public/bcms/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/public/bcms/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/public/bcms/ckeditor/plugins/showblocks/plugin.js +0 -153
- data/public/bcms/ckeditor/plugins/smiley/dialogs/smiley.js +0 -219
- data/public/bcms/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/public/bcms/ckeditor/plugins/smiley/plugin.js +0 -74
- data/public/bcms/ckeditor/plugins/sourcearea/plugin.js +0 -185
- data/public/bcms/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -362
- data/public/bcms/ckeditor/plugins/specialchar/plugin.js +0 -29
- data/public/bcms/ckeditor/plugins/styles/plugin.js +0 -1242
- data/public/bcms/ckeditor/plugins/stylescombo/plugin.js +0 -295
- data/public/bcms/ckeditor/plugins/stylescombo/styles/default.js +0 -85
- data/public/bcms/ckeditor/plugins/tab/plugin.js +0 -266
- data/public/bcms/ckeditor/plugins/table/dialogs/table.js +0 -550
- data/public/bcms/ckeditor/plugins/table/plugin.js +0 -70
- data/public/bcms/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -328
- data/public/bcms/ckeditor/plugins/tabletools/plugin.js +0 -701
- data/public/bcms/ckeditor/plugins/templates/dialogs/templates.js +0 -170
- data/public/bcms/ckeditor/plugins/templates/plugin.js +0 -99
- data/public/bcms/ckeditor/plugins/templates/templates/default.js +0 -94
- data/public/bcms/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/public/bcms/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/public/bcms/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/public/bcms/ckeditor/plugins/toolbar/plugin.js +0 -412
- data/public/bcms/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -203
- data/public/bcms/ckeditor/plugins/uicolor/lang/en.js +0 -15
- data/public/bcms/ckeditor/plugins/uicolor/plugin.js +0 -35
- data/public/bcms/ckeditor/plugins/uicolor/uicolor.gif +0 -0
- data/public/bcms/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/public/bcms/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/public/bcms/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/public/bcms/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/public/bcms/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -15
- data/public/bcms/ckeditor/plugins/uicolor/yui/yui.js +0 -71
- data/public/bcms/ckeditor/plugins/undo/plugin.js +0 -490
- data/public/bcms/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
- data/public/bcms/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/public/bcms/ckeditor/plugins/wsc/dialogs/wsc.css +0 -83
- data/public/bcms/ckeditor/plugins/wsc/dialogs/wsc.js +0 -169
- data/public/bcms/ckeditor/plugins/wsc/plugin.js +0 -32
- data/public/bcms/ckeditor/plugins/wysiwygarea/plugin.js +0 -636
- data/public/bcms/ckeditor/skins/kama/dialog.css +0 -742
- data/public/bcms/ckeditor/skins/kama/editor.css +0 -21
- data/public/bcms/ckeditor/skins/kama/elementspath.css +0 -68
- data/public/bcms/ckeditor/skins/kama/icons.css +0 -309
- data/public/bcms/ckeditor/skins/kama/icons.png +0 -0
- data/public/bcms/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/public/bcms/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/public/bcms/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/public/bcms/ckeditor/skins/kama/images/mini.gif +0 -0
- data/public/bcms/ckeditor/skins/kama/images/noimage.png +0 -0
- data/public/bcms/ckeditor/skins/kama/images/sprites.png +0 -0
- data/public/bcms/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/public/bcms/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/public/bcms/ckeditor/skins/kama/mainui.css +0 -139
- data/public/bcms/ckeditor/skins/kama/menu.css +0 -179
- data/public/bcms/ckeditor/skins/kama/panel.css +0 -203
- data/public/bcms/ckeditor/skins/kama/presets.css +0 -49
- data/public/bcms/ckeditor/skins/kama/reset.css +0 -78
- data/public/bcms/ckeditor/skins/kama/richcombo.css +0 -260
- data/public/bcms/ckeditor/skins/kama/skin.js +0 -291
- data/public/bcms/ckeditor/skins/kama/templates.css +0 -71
- data/public/bcms/ckeditor/skins/kama/toolbar.css +0 -384
- data/public/bcms/ckeditor/skins/office2003/dialog.css +0 -643
- data/public/bcms/ckeditor/skins/office2003/editor.css +0 -21
- data/public/bcms/ckeditor/skins/office2003/elementspath.css +0 -68
- data/public/bcms/ckeditor/skins/office2003/icons.css +0 -309
- data/public/bcms/ckeditor/skins/office2003/icons.png +0 -0
- data/public/bcms/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
- data/public/bcms/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
- data/public/bcms/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/public/bcms/ckeditor/skins/office2003/images/mini.gif +0 -0
- data/public/bcms/ckeditor/skins/office2003/images/noimage.png +0 -0
- data/public/bcms/ckeditor/skins/office2003/images/sprites.png +0 -0
- data/public/bcms/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
- data/public/bcms/ckeditor/skins/office2003/mainui.css +0 -97
- data/public/bcms/ckeditor/skins/office2003/menu.css +0 -175
- data/public/bcms/ckeditor/skins/office2003/panel.css +0 -198
- data/public/bcms/ckeditor/skins/office2003/presets.css +0 -49
- data/public/bcms/ckeditor/skins/office2003/reset.css +0 -78
- data/public/bcms/ckeditor/skins/office2003/richcombo.css +0 -279
- data/public/bcms/ckeditor/skins/office2003/skin.js +0 -77
- data/public/bcms/ckeditor/skins/office2003/templates.css +0 -71
- data/public/bcms/ckeditor/skins/office2003/toolbar.css +0 -442
- data/public/bcms/ckeditor/skins/v2/dialog.css +0 -653
- data/public/bcms/ckeditor/skins/v2/editor.css +0 -21
- data/public/bcms/ckeditor/skins/v2/elementspath.css +0 -68
- data/public/bcms/ckeditor/skins/v2/icons.css +0 -309
- data/public/bcms/ckeditor/skins/v2/icons.png +0 -0
- data/public/bcms/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
- data/public/bcms/ckeditor/skins/v2/images/dialog_sides.png +0 -0
- data/public/bcms/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/public/bcms/ckeditor/skins/v2/images/mini.gif +0 -0
- data/public/bcms/ckeditor/skins/v2/images/noimage.png +0 -0
- data/public/bcms/ckeditor/skins/v2/images/sprites.png +0 -0
- data/public/bcms/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
- data/public/bcms/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
- data/public/bcms/ckeditor/skins/v2/mainui.css +0 -112
- data/public/bcms/ckeditor/skins/v2/menu.css +0 -178
- data/public/bcms/ckeditor/skins/v2/panel.css +0 -198
- data/public/bcms/ckeditor/skins/v2/presets.css +0 -50
- data/public/bcms/ckeditor/skins/v2/reset.css +0 -78
- data/public/bcms/ckeditor/skins/v2/richcombo.css +0 -275
- data/public/bcms/ckeditor/skins/v2/skin.js +0 -73
- data/public/bcms/ckeditor/skins/v2/templates.css +0 -71
- data/public/bcms/ckeditor/skins/v2/toolbar.css +0 -399
- data/public/bcms/ckeditor/tests/_assets/sample.css +0 -4
- data/public/bcms/ckeditor/tests/_assets/sample.js +0 -1
- data/public/bcms/ckeditor/tests/_assets/sample.txt +0 -1
- data/public/bcms/ckeditor/tests/_assets/sample.xml +0 -5
- data/public/bcms/ckeditor/tests/_assets/sample_xml.txt +0 -5
- data/public/bcms/ckeditor/tests/core/_editor/custom_config_1.js +0 -10
- data/public/bcms/ckeditor/tests/core/_editor/custom_config_2.js +0 -9
- data/public/bcms/ckeditor/tests/core/ajax.html +0 -163
- data/public/bcms/ckeditor/tests/core/bootstrap.html +0 -66
- data/public/bcms/ckeditor/tests/core/ckeditor.html +0 -160
- data/public/bcms/ckeditor/tests/core/dom/document.html +0 -126
- data/public/bcms/ckeditor/tests/core/dom/documentfragment.html +0 -292
- data/public/bcms/ckeditor/tests/core/dom/element.html +0 -637
- data/public/bcms/ckeditor/tests/core/dom/node.html +0 -164
- data/public/bcms/ckeditor/tests/core/dom/range.html +0 -2411
- data/public/bcms/ckeditor/tests/core/dom/text.html +0 -128
- data/public/bcms/ckeditor/tests/core/dom/walker.html +0 -340
- data/public/bcms/ckeditor/tests/core/dom/window.html +0 -53
- data/public/bcms/ckeditor/tests/core/editor.html +0 -123
- data/public/bcms/ckeditor/tests/core/env.html +0 -52
- data/public/bcms/ckeditor/tests/core/event.html +0 -487
- data/public/bcms/ckeditor/tests/core/htmlparser/fragment.html +0 -188
- data/public/bcms/ckeditor/tests/core/htmlparser/htmlparser.html +0 -91
- data/public/bcms/ckeditor/tests/core/plugins.html +0 -45
- data/public/bcms/ckeditor/tests/core/plugins/myplugins/sample/my_plugin.js +0 -3
- data/public/bcms/ckeditor/tests/core/scriptloader.html +0 -52
- data/public/bcms/ckeditor/tests/core/tools.html +0 -170
- data/public/bcms/ckeditor/tests/core/xml.html +0 -150
- data/public/bcms/ckeditor/tests/plugins/domiterator/domiterator.html +0 -236
- data/public/bcms/ckeditor/tests/plugins/htmldataprocessor/htmldataprocessor.html +0 -386
- data/public/bcms/ckeditor/tests/plugins/link/link.html +0 -123
- data/public/bcms/ckeditor/tests/plugins/list/list.html +0 -217
- data/public/bcms/ckeditor/tests/plugins/selection/selection.html +0 -49
- data/public/bcms/ckeditor/tests/plugins/styles/styles.html +0 -596
- data/public/bcms/ckeditor/tests/test.css +0 -81
- data/public/bcms/ckeditor/tests/test.js +0 -93
- data/public/bcms/ckeditor/tests/testall.html +0 -114
- data/public/bcms/ckeditor/tests/yuitest.js +0 -75
- data/public/bcms/ckeditor/themes/default/theme.js +0 -232
- data/public/bcms/content_syncing/README +0 -1
- data/public/favicon.ico +0 -0
- data/public/images/cms/administration/user_browser_bg.gif +0 -0
- data/public/images/cms/bg.png +0 -0
- data/public/images/cms/bl_curve.png +0 -0
- data/public/images/cms/bottom_cap.png +0 -0
- data/public/images/cms/bottom_cap_content.png +0 -0
- data/public/images/cms/browse.gif +0 -0
- data/public/images/cms/browser_media_logo.png +0 -0
- data/public/images/cms/browsercms_logo.png +0 -0
- data/public/images/cms/buttons/button.png +0 -0
- data/public/images/cms/buttons/button_bg.png +0 -0
- data/public/images/cms/buttons/button_cap.png +0 -0
- data/public/images/cms/buttons/button_cap_h.png +0 -0
- data/public/images/cms/buttons/button_cap_off.gif +0 -0
- data/public/images/cms/buttons/button_cap_off_middle.gif +0 -0
- data/public/images/cms/buttons/button_h.png +0 -0
- data/public/images/cms/buttons/button_left_bg.png +0 -0
- data/public/images/cms/buttons/button_off.png +0 -0
- data/public/images/cms/buttons/button_off_middle.png +0 -0
- data/public/images/cms/buttons/delete_x.png +0 -0
- data/public/images/cms/buttons/delete_x_disabled.png +0 -0
- data/public/images/cms/buttons/delete_x_h.png +0 -0
- data/public/images/cms/buttons/sm_button.gif +0 -0
- data/public/images/cms/buttons/sm_button_2.gif +0 -0
- data/public/images/cms/buttons/sm_button_2_h.gif +0 -0
- data/public/images/cms/buttons/sm_button_h.gif +0 -0
- data/public/images/cms/containers/add.gif +0 -0
- data/public/images/cms/containers/alpha.png +0 -0
- data/public/images/cms/containers/beta.png +0 -0
- data/public/images/cms/containers/delete.gif +0 -0
- data/public/images/cms/containers/down.gif +0 -0
- data/public/images/cms/containers/edit.gif +0 -0
- data/public/images/cms/containers/up.gif +0 -0
- data/public/images/cms/containers/view.gif +0 -0
- data/public/images/cms/content_bg.gif +0 -0
- data/public/images/cms/dashboard/bottom_cap.png +0 -0
- data/public/images/cms/dashboard/bottom_cap_content.png +0 -0
- data/public/images/cms/dashboard/header_bg.gif +0 -0
- data/public/images/cms/dashboard/header_left_bg.gif +0 -0
- data/public/images/cms/dashboard/table_header_bg.gif +0 -0
- data/public/images/cms/dashboard/top_cap.png +0 -0
- data/public/images/cms/dashed.gif +0 -0
- data/public/images/cms/datepicker/clear.gif +0 -0
- data/public/images/cms/datepicker/close.gif +0 -0
- data/public/images/cms/dk_button_l.gif +0 -0
- data/public/images/cms/dk_button_r.gif +0 -0
- data/public/images/cms/dot.png +0 -0
- data/public/images/cms/draft_status.gif +0 -0
- data/public/images/cms/gray_long_bg.gif +0 -0
- data/public/images/cms/icons/actions/add.png +0 -0
- data/public/images/cms/icons/actions/config.png +0 -0
- data/public/images/cms/icons/actions/connect.png +0 -0
- data/public/images/cms/icons/actions/delete.png +0 -0
- data/public/images/cms/icons/actions/down.png +0 -0
- data/public/images/cms/icons/actions/edit.png +0 -0
- data/public/images/cms/icons/actions/folder.png +0 -0
- data/public/images/cms/icons/actions/folder_add.png +0 -0
- data/public/images/cms/icons/actions/folder_delete.png +0 -0
- data/public/images/cms/icons/actions/folder_edit.png +0 -0
- data/public/images/cms/icons/actions/folder_move.png +0 -0
- data/public/images/cms/icons/actions/folder_open.png +0 -0
- data/public/images/cms/icons/actions/history.png +0 -0
- data/public/images/cms/icons/actions/home.png +0 -0
- data/public/images/cms/icons/actions/left.png +0 -0
- data/public/images/cms/icons/actions/link.png +0 -0
- data/public/images/cms/icons/actions/page.png +0 -0
- data/public/images/cms/icons/actions/page_add.png +0 -0
- data/public/images/cms/icons/actions/page_edit.png +0 -0
- data/public/images/cms/icons/actions/page_move.png +0 -0
- data/public/images/cms/icons/actions/redo.png +0 -0
- data/public/images/cms/icons/actions/refresh.png +0 -0
- data/public/images/cms/icons/actions/right.png +0 -0
- data/public/images/cms/icons/actions/root_folder.png +0 -0
- data/public/images/cms/icons/actions/root_link.png +0 -0
- data/public/images/cms/icons/actions/root_page.png +0 -0
- data/public/images/cms/icons/actions/undo.png +0 -0
- data/public/images/cms/icons/actions/up.png +0 -0
- data/public/images/cms/icons/actions/view.png +0 -0
- data/public/images/cms/icons/file_types/doc.png +0 -0
- data/public/images/cms/icons/file_types/file.png +0 -0
- data/public/images/cms/icons/file_types/gif.png +0 -0
- data/public/images/cms/icons/file_types/htm.png +0 -0
- data/public/images/cms/icons/file_types/pdf.png +0 -0
- data/public/images/cms/icons/file_types/ppt.png +0 -0
- data/public/images/cms/icons/file_types/swf.png +0 -0
- data/public/images/cms/icons/file_types/txt.png +0 -0
- data/public/images/cms/icons/file_types/xls.png +0 -0
- data/public/images/cms/icons/file_types/xml.png +0 -0
- data/public/images/cms/icons/file_types/zip.png +0 -0
- data/public/images/cms/icons/status/archived.gif +0 -0
- data/public/images/cms/icons/status/draft.gif +0 -0
- data/public/images/cms/icons/status/hidden.gif +0 -0
- data/public/images/cms/icons/status/locked.gif +0 -0
- data/public/images/cms/icons/status/published.gif +0 -0
- data/public/images/cms/icons/status/unlocked.gif +0 -0
- data/public/images/cms/icons/user.png +0 -0
- data/public/images/cms/login_bg.jpg +0 -0
- data/public/images/cms/login_bottom.jpg +0 -0
- data/public/images/cms/login_top.gif +0 -0
- data/public/images/cms/lt_button_bg.gif +0 -0
- data/public/images/cms/lt_button_l.gif +0 -0
- data/public/images/cms/lt_button_r.gif +0 -0
- data/public/images/cms/menu.png +0 -0
- data/public/images/cms/menu/block_cap_h.gif +0 -0
- data/public/images/cms/menu/bottom_cap.png +0 -0
- data/public/images/cms/menu/bottom_cap_menu.png +0 -0
- data/public/images/cms/menu/bottom_cap_menu_first.png +0 -0
- data/public/images/cms/menu/menu_header_first_bg.gif +0 -0
- data/public/images/cms/menu/selected_block_cap.gif +0 -0
- data/public/images/cms/menu/top_cap.png +0 -0
- data/public/images/cms/menu/top_cap_menu_header.png +0 -0
- data/public/images/cms/menu_h.gif +0 -0
- data/public/images/cms/menu_header.png +0 -0
- data/public/images/cms/menu_open.png +0 -0
- data/public/images/cms/menu_open_bg.gif +0 -0
- data/public/images/cms/nav.png +0 -0
- data/public/images/cms/nav/on_bg.gif +0 -0
- data/public/images/cms/nav_admin.gif +0 -0
- data/public/images/cms/nav_admin_h.gif +0 -0
- data/public/images/cms/nav_admin_on.gif +0 -0
- data/public/images/cms/nav_cap.png +0 -0
- data/public/images/cms/nav_cap_h.gif +0 -0
- data/public/images/cms/nav_content_library.gif +0 -0
- data/public/images/cms/nav_content_library_h.gif +0 -0
- data/public/images/cms/nav_content_library_on.gif +0 -0
- data/public/images/cms/nav_dash.gif +0 -0
- data/public/images/cms/nav_dash_h.gif +0 -0
- data/public/images/cms/nav_dash_on.gif +0 -0
- data/public/images/cms/nav_h.gif +0 -0
- data/public/images/cms/nav_sitemap.gif +0 -0
- data/public/images/cms/nav_sitemap_h.gif +0 -0
- data/public/images/cms/nav_sitemap_on.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_bg.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_inset_bg.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_inset_draft_bg.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_inset_draft_l.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_inset_draft_r.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_inset_l.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_inset_published_bg.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_inset_published_l.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_inset_published_r.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_inset_r.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_l.gif +0 -0
- data/public/images/cms/page_toolbar/page_toolbar_r.gif +0 -0
- data/public/images/cms/page_toolbar/status_draft_bg.gif +0 -0
- data/public/images/cms/page_toolbar/status_draft_l.gif +0 -0
- data/public/images/cms/page_toolbar/status_l.gif +0 -0
- data/public/images/cms/page_toolbar/status_published_bg.gif +0 -0
- data/public/images/cms/page_toolbar/status_published_l.gif +0 -0
- data/public/images/cms/page_toolbar/visual_editor_bg.gif +0 -0
- data/public/images/cms/page_toolbar/visual_editor_end.gif +0 -0
- data/public/images/cms/page_toolbar/visual_editor_r.gif +0 -0
- data/public/images/cms/page_toolbar/visual_editor_state_bg.gif +0 -0
- data/public/images/cms/pages/add_connectable.gif +0 -0
- data/public/images/cms/pages/connect_connectable.gif +0 -0
- data/public/images/cms/pages/container_border.gif +0 -0
- data/public/images/cms/pages/container_border_l.gif +0 -0
- data/public/images/cms/pages/container_border_r.gif +0 -0
- data/public/images/cms/pages/delete_connectable.gif +0 -0
- data/public/images/cms/pages/down_connectable.gif +0 -0
- data/public/images/cms/pages/down_connectable_disabled.gif +0 -0
- data/public/images/cms/pages/edit_connectable.gif +0 -0
- data/public/images/cms/pages/edit_connectable_2.gif +0 -0
- data/public/images/cms/pages/show_connectable.gif +0 -0
- data/public/images/cms/pages/up_connectable.gif +0 -0
- data/public/images/cms/pages/up_connectable_disabled.gif +0 -0
- data/public/images/cms/pagination/first.gif +0 -0
- data/public/images/cms/pagination/first_h.gif +0 -0
- data/public/images/cms/pagination/input.gif +0 -0
- data/public/images/cms/pagination/last.gif +0 -0
- data/public/images/cms/pagination/last_h.gif +0 -0
- data/public/images/cms/pagination/next.gif +0 -0
- data/public/images/cms/pagination/next_h.gif +0 -0
- data/public/images/cms/pagination/previous.gif +0 -0
- data/public/images/cms/pagination/previous_h.gif +0 -0
- data/public/images/cms/published_status.gif +0 -0
- data/public/images/cms/search.png +0 -0
- data/public/images/cms/search_submit.gif +0 -0
- data/public/images/cms/search_submit_h.gif +0 -0
- data/public/images/cms/searchbox_gradient.gif +0 -0
- data/public/images/cms/select_bg.gif +0 -0
- data/public/images/cms/select_bg_2.gif +0 -0
- data/public/images/cms/sitemap/bottom_cap.png +0 -0
- data/public/images/cms/sitemap/buffer_caps.png +0 -0
- data/public/images/cms/sitemap/contract.png +0 -0
- data/public/images/cms/sitemap/corners.gif +0 -0
- data/public/images/cms/sitemap/corners_hover.gif +0 -0
- data/public/images/cms/sitemap/divider.gif +0 -0
- data/public/images/cms/sitemap/expand.png +0 -0
- data/public/images/cms/sitemap/gradient.gif +0 -0
- data/public/images/cms/sitemap/gray_contract.png +0 -0
- data/public/images/cms/sitemap/gray_expand.png +0 -0
- data/public/images/cms/sitemap/no_contents.png +0 -0
- data/public/images/cms/sitemap/site_root_cap.png +0 -0
- data/public/images/cms/sitemap/tooltip.gif +0 -0
- data/public/images/cms/sitemap/top_cap_content.png +0 -0
- data/public/images/cms/solid.gif +0 -0
- data/public/images/cms/table/bl.gif +0 -0
- data/public/images/cms/table/br.gif +0 -0
- data/public/images/cms/table/divider.gif +0 -0
- data/public/images/cms/table/td_cap_first_h.gif +0 -0
- data/public/images/cms/table/td_cap_first_s.gif +0 -0
- data/public/images/cms/table/td_cap_last_h.gif +0 -0
- data/public/images/cms/table/td_cap_last_s.gif +0 -0
- data/public/images/cms/table/td_last_bg.gif +0 -0
- data/public/images/cms/table/th_bg.gif +0 -0
- data/public/images/cms/table/th_divider.gif +0 -0
- data/public/images/cms/table/th_last_bg.gif +0 -0
- data/public/images/cms/table/tl.gif +0 -0
- data/public/images/cms/table/tr.gif +0 -0
- data/public/images/cms/table/tr_bg.gif +0 -0
- data/public/images/cms/thickbox/loadingAnimation.gif +0 -0
- data/public/images/cms/thickbox/macFFBgHack.png +0 -0
- data/public/images/cms/toolbar_bg.png +0 -0
- data/public/images/cms/top_cap.png +0 -0
- data/public/images/cms/top_cap_content.png +0 -0
- data/public/images/cms/top_cap_menu_header.png +0 -0
- data/public/images/cms/user_search_submit.gif +0 -0
- data/public/images/cms/usercontrols_bg.png +0 -0
- data/public/images/cms/usercontrols_bg_cap.png +0 -0
- data/public/images/rails.png +0 -0
- data/public/javascripts/application.js +0 -2
- data/public/javascripts/cms/application.js +0 -148
- data/public/javascripts/cms/content_library.js +0 -36
- data/public/javascripts/cms/sitemap.js +0 -438
- data/public/javascripts/controls.js +0 -963
- data/public/javascripts/dragdrop.js +0 -973
- data/public/javascripts/effects.js +0 -1128
- data/public/javascripts/jquery-ui.js +0 -591
- data/public/javascripts/jquery.contextMenu.js +0 -211
- data/public/javascripts/jquery.cookie.js +0 -96
- data/public/javascripts/jquery.dimensions.js +0 -119
- data/public/javascripts/jquery.js +0 -11
- data/public/javascripts/jquery.selectbox-0.5.js +0 -209
- data/public/javascripts/jquery.taglist.js +0 -136
- data/public/javascripts/jquery.thickbox.js +0 -10
- data/public/javascripts/prototype.js +0 -4320
- data/public/robots.txt +0 -5
- data/public/site/customconfig.js +0 -1
- data/public/stylesheets/cms/administration.css +0 -91
- data/public/stylesheets/cms/application.css +0 -166
- data/public/stylesheets/cms/block.css +0 -26
- data/public/stylesheets/cms/buttons.css +0 -120
- data/public/stylesheets/cms/content_library.css +0 -139
- data/public/stylesheets/cms/content_types.css +0 -4
- data/public/stylesheets/cms/dashboard.css +0 -118
- data/public/stylesheets/cms/data_table.css +0 -156
- data/public/stylesheets/cms/date_picker.css +0 -73
- data/public/stylesheets/cms/form_layout.css +0 -279
- data/public/stylesheets/cms/jquery.contextMenu.css +0 -61
- data/public/stylesheets/cms/login.css +0 -78
- data/public/stylesheets/cms/menu.css +0 -116
- data/public/stylesheets/cms/nav.css +0 -99
- data/public/stylesheets/cms/page_toolbar.css +0 -135
- data/public/stylesheets/cms/reset.css +0 -46
- data/public/stylesheets/cms/selectbox.css +0 -56
- data/public/stylesheets/cms/sitemap.css +0 -390
- data/public/stylesheets/cms/taglist.css +0 -18
- data/public/stylesheets/cms/thickbox.css +0 -163
- data/script/about +0 -4
- data/script/console +0 -3
- data/script/dbconsole +0 -3
- data/script/destroy +0 -3
- data/script/generate +0 -3
- data/script/performance/benchmarker +0 -3
- data/script/performance/profiler +0 -3
- data/script/plugin +0 -3
- data/script/runner +0 -3
- data/script/server +0 -3
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @fileOverview Defines the {@link CKEDITOR.skins} object, which is used to
|
|
8
|
-
* manage skins loading.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Manages skins loading.
|
|
13
|
-
* @namespace
|
|
14
|
-
* @example
|
|
15
|
-
*/
|
|
16
|
-
CKEDITOR.skins = (function()
|
|
17
|
-
{
|
|
18
|
-
// Holds the list of loaded skins.
|
|
19
|
-
var loaded = {};
|
|
20
|
-
var preloaded = {};
|
|
21
|
-
var paths = {};
|
|
22
|
-
|
|
23
|
-
var loadedPart = function( skinName, part, callback )
|
|
24
|
-
{
|
|
25
|
-
// Get the skin definition.
|
|
26
|
-
var skinDefinition = loaded[ skinName ];
|
|
27
|
-
|
|
28
|
-
var appendSkinPath = function( fileNames )
|
|
29
|
-
{
|
|
30
|
-
for ( var n = 0 ; n < fileNames.length ; n++ )
|
|
31
|
-
{
|
|
32
|
-
fileNames[ n ] = CKEDITOR.getUrl( paths[ skinName ] + fileNames[ n ] );
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
// Check if we need to preload images from it.
|
|
37
|
-
if ( !preloaded[ skinName ] )
|
|
38
|
-
{
|
|
39
|
-
var preload = skinDefinition.preload;
|
|
40
|
-
if ( preload && preload.length > 0 )
|
|
41
|
-
{
|
|
42
|
-
appendSkinPath( preload );
|
|
43
|
-
CKEDITOR.imageCacher.load( preload, function()
|
|
44
|
-
{
|
|
45
|
-
preloaded[ skinName ] = 1;
|
|
46
|
-
loadedPart( skinName, part, callback );
|
|
47
|
-
} );
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Mark it as preloaded.
|
|
52
|
-
preloaded[ skinName ] = 1;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Get the part definition.
|
|
56
|
-
part = skinDefinition[ part ];
|
|
57
|
-
var partIsLoaded = !part || !!part._isLoaded;
|
|
58
|
-
|
|
59
|
-
// Call the callback immediately if already loaded.
|
|
60
|
-
if ( partIsLoaded )
|
|
61
|
-
callback && callback();
|
|
62
|
-
else
|
|
63
|
-
{
|
|
64
|
-
// Put the callback in a queue.
|
|
65
|
-
var pending = part._pending || ( part._pending = [] );
|
|
66
|
-
pending.push( callback );
|
|
67
|
-
|
|
68
|
-
// We may have more than one skin part load request. Just the first
|
|
69
|
-
// one must do the loading job.
|
|
70
|
-
if ( pending.length > 1 )
|
|
71
|
-
return;
|
|
72
|
-
|
|
73
|
-
// Check whether the "css" and "js" properties have been defined
|
|
74
|
-
// for that part.
|
|
75
|
-
var cssIsLoaded = !part.css || !part.css.length;
|
|
76
|
-
var jsIsLoaded = !part.js || !part.js.length;
|
|
77
|
-
|
|
78
|
-
// This is the function that will trigger the callback calls on
|
|
79
|
-
// load.
|
|
80
|
-
var checkIsLoaded = function()
|
|
81
|
-
{
|
|
82
|
-
if ( cssIsLoaded && jsIsLoaded )
|
|
83
|
-
{
|
|
84
|
-
// Mark the part as loaded.
|
|
85
|
-
part._isLoaded = 1;
|
|
86
|
-
|
|
87
|
-
// Call all pending callbacks.
|
|
88
|
-
for ( var i = 0 ; i < pending.length ; i++ )
|
|
89
|
-
{
|
|
90
|
-
if ( pending[ i ] )
|
|
91
|
-
pending[ i ]();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
// Load the "css" pieces.
|
|
97
|
-
if ( !cssIsLoaded )
|
|
98
|
-
{
|
|
99
|
-
appendSkinPath( part.css );
|
|
100
|
-
|
|
101
|
-
for ( var c = 0 ; c < part.css.length ; c++ )
|
|
102
|
-
CKEDITOR.document.appendStyleSheet( part.css[ c ] );
|
|
103
|
-
|
|
104
|
-
cssIsLoaded = 1;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Load the "js" pieces.
|
|
108
|
-
if ( !jsIsLoaded )
|
|
109
|
-
{
|
|
110
|
-
appendSkinPath( part.js );
|
|
111
|
-
CKEDITOR.scriptLoader.load( part.js, function()
|
|
112
|
-
{
|
|
113
|
-
jsIsLoaded = 1;
|
|
114
|
-
checkIsLoaded();
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// We may have nothing to load, so check it immediately.
|
|
119
|
-
checkIsLoaded();
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
return /** @lends CKEDITOR.skins */ {
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Registers a skin definition.
|
|
127
|
-
* @param {String} skinName The skin name.
|
|
128
|
-
* @param {Object} skinDefinition The skin definition.
|
|
129
|
-
* @example
|
|
130
|
-
*/
|
|
131
|
-
add : function( skinName, skinDefinition )
|
|
132
|
-
{
|
|
133
|
-
loaded[ skinName ] = skinDefinition;
|
|
134
|
-
|
|
135
|
-
skinDefinition.skinPath = paths[ skinName ]
|
|
136
|
-
|| ( paths[ skinName ] =
|
|
137
|
-
CKEDITOR.getUrl(
|
|
138
|
-
'skins/' + skinName + '/' ) );
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Loads a skin part. Skins are defined in parts, which are basically
|
|
143
|
-
* separated CSS files. This function is mainly used by the core code and
|
|
144
|
-
* should not have much use out of it.
|
|
145
|
-
* @param {String} skinName The name of the skin to be loaded.
|
|
146
|
-
* @param {String} skinPart The skin part to be loaded. Common skin parts
|
|
147
|
-
* are "editor" and "dialog".
|
|
148
|
-
* @param {Function} [callback] A function to be called once the skin
|
|
149
|
-
* part files are loaded.
|
|
150
|
-
* @example
|
|
151
|
-
*/
|
|
152
|
-
load : function( editor, skinPart, callback )
|
|
153
|
-
{
|
|
154
|
-
var skinName = editor.skinName,
|
|
155
|
-
skinPath = editor.skinPath;
|
|
156
|
-
|
|
157
|
-
if ( loaded[ skinName ] )
|
|
158
|
-
{
|
|
159
|
-
loadedPart( skinName, skinPart, callback );
|
|
160
|
-
|
|
161
|
-
// Get the skin definition.
|
|
162
|
-
var skinDefinition = loaded[ skinName ];
|
|
163
|
-
|
|
164
|
-
// Trigger init function if any.
|
|
165
|
-
if ( skinDefinition.init )
|
|
166
|
-
skinDefinition.init( editor );
|
|
167
|
-
}
|
|
168
|
-
else
|
|
169
|
-
{
|
|
170
|
-
paths[ skinName ] = skinPath;
|
|
171
|
-
CKEDITOR.scriptLoader.load( skinPath + 'skin.js', function()
|
|
172
|
-
{
|
|
173
|
-
loadedPart( skinName, skinPart, callback );
|
|
174
|
-
|
|
175
|
-
// Get the skin definition.
|
|
176
|
-
var skinDefinition = loaded[ skinName ];
|
|
177
|
-
|
|
178
|
-
// Trigger init function if any.
|
|
179
|
-
if ( skinDefinition.init )
|
|
180
|
-
skinDefinition.init( editor );
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
})();
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @fileOverview Defines the {@link CKEDITOR.test} object, which contains
|
|
8
|
-
* functions used at our testing environment.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/*jsl:import ../tests/yuitest.js*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Contains functions used at our testing environment. Currently,
|
|
15
|
-
* our testing system is based on the
|
|
16
|
-
* <a href="http://developer.yahoo.com/yui/yuitest/">YUI Test</a>.
|
|
17
|
-
* @namespace
|
|
18
|
-
* @example
|
|
19
|
-
*/
|
|
20
|
-
CKEDITOR.test =
|
|
21
|
-
{
|
|
22
|
-
/**
|
|
23
|
-
* The assertion namespace, containing all assertion functions. Currently,
|
|
24
|
-
* this is an alias for
|
|
25
|
-
* <a href="http://developer.yahoo.com/yui/docs/YAHOO.util.Assert.html">YAHOO.util.Assert</a>.
|
|
26
|
-
* @example
|
|
27
|
-
* <b>CKEDITOR.test.assert</b>.areEqual( '10', 10 ); // "true"
|
|
28
|
-
* <b>CKEDITOR.test.assert</b>.areSame( '10', 10 ); // "false"
|
|
29
|
-
* <b>CKEDITOR.test.assert</b>.isUndefined( window.test ); // "true"
|
|
30
|
-
*/
|
|
31
|
-
assert : YAHOO.util.Assert,
|
|
32
|
-
|
|
33
|
-
runner : YAHOO.tool.TestRunner,
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Adds a test case to the test runner.
|
|
37
|
-
* @param {Object} testCase The test case object. See other tests for
|
|
38
|
-
* examples.
|
|
39
|
-
* @example
|
|
40
|
-
* <b>CKEDITOR.test.addTestCase</b>((function()
|
|
41
|
-
* {
|
|
42
|
-
* // Local reference to the "assert" object.
|
|
43
|
-
* var assert = CKEDITOR.test.assert;
|
|
44
|
-
*
|
|
45
|
-
* return {
|
|
46
|
-
* test_example : function()
|
|
47
|
-
* {
|
|
48
|
-
* assert.areSame( '10', 10 ); // FAIL
|
|
49
|
-
* }
|
|
50
|
-
* };
|
|
51
|
-
* })());
|
|
52
|
-
*/
|
|
53
|
-
addTestCase : function( testCase )
|
|
54
|
-
{
|
|
55
|
-
YAHOO.tool.TestRunner.add( new YAHOO.tool.TestCase( testCase ) );
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Gets the inner HTML of an element, for testing purposes.
|
|
60
|
-
* @param {Boolean} stripLineBreaks Assign 'false' to avoid trimming line-breaks.
|
|
61
|
-
*/
|
|
62
|
-
getInnerHtml : function( elementOrId , stripLineBreaks )
|
|
63
|
-
{
|
|
64
|
-
var html;
|
|
65
|
-
|
|
66
|
-
if ( typeof elementOrId == 'string' )
|
|
67
|
-
html = document.getElementById( elementOrId ).innerHTML;
|
|
68
|
-
else if ( elementOrId.getHtml )
|
|
69
|
-
html = elementOrId.getHtml();
|
|
70
|
-
else
|
|
71
|
-
html = elementOrId.innerHTML // retrieve from innerHTML
|
|
72
|
-
|| elementOrId.value; // retrieve from value
|
|
73
|
-
|
|
74
|
-
return CKEDITOR.test.fixHtml( html, stripLineBreaks );
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
fixHtml : function( html, stripLineBreaks )
|
|
78
|
-
{
|
|
79
|
-
html = html.toLowerCase();
|
|
80
|
-
|
|
81
|
-
if ( stripLineBreaks !== false )
|
|
82
|
-
html = html.replace( /[\n\r]/g, '' );
|
|
83
|
-
else
|
|
84
|
-
html = html.replace( /\r/g, '' ); // Normalize CRLF.
|
|
85
|
-
|
|
86
|
-
function sorter( a, b )
|
|
87
|
-
{
|
|
88
|
-
var nameA = a[ 0 ];
|
|
89
|
-
var nameB = b[ 0 ];
|
|
90
|
-
return nameA < nameB ? -1 : nameA > nameB ? 1 : 0;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
html = html.replace( /<\w[^>]*/g, function( match )
|
|
94
|
-
{
|
|
95
|
-
var attribs = [];
|
|
96
|
-
var hasClass;
|
|
97
|
-
|
|
98
|
-
match = match.replace( /\s([^\s=]+)=((?:"[^"]*")|(?:'[^']*')|(?:[^\s]+))/g, function( match, attName, attValue )
|
|
99
|
-
{
|
|
100
|
-
if ( attName == 'style' )
|
|
101
|
-
{
|
|
102
|
-
// Reorganize the style rules so they are sorted by name.
|
|
103
|
-
|
|
104
|
-
var rules = [];
|
|
105
|
-
|
|
106
|
-
// Push all rules into an Array.
|
|
107
|
-
attValue.replace( /(?:"| |;|^ )\s*([^ :]+?)\s*:\s*([^;"]+?)\s*(?=;|"|$)/g, function( match, name, value )
|
|
108
|
-
{
|
|
109
|
-
rules.push( [ name, value ] );
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
// Sort the Array.
|
|
113
|
-
rules.sort( sorter );
|
|
114
|
-
|
|
115
|
-
// Transform each rule entry into a string name:value.
|
|
116
|
-
for ( var i = 0 ; i < rules.length ; i++ )
|
|
117
|
-
rules[ i ] = rules[ i ].join( ':' );
|
|
118
|
-
|
|
119
|
-
// Join all rules with commas, removing spaces and adding an extra comma to the end.
|
|
120
|
-
attValue = '"' + rules && ( rules.join( ';' ).replace( /\s+/g, '' ) + ';' );
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// IE may have 'class' more than once.
|
|
124
|
-
if ( attName == 'class' )
|
|
125
|
-
{
|
|
126
|
-
if ( hasClass )
|
|
127
|
-
return '';
|
|
128
|
-
|
|
129
|
-
hasClass = true;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
if ( attName != '_cke_expando' )
|
|
133
|
-
attribs.push( [ attName, attValue ] );
|
|
134
|
-
|
|
135
|
-
return '';
|
|
136
|
-
} );
|
|
137
|
-
|
|
138
|
-
attribs.sort( sorter );
|
|
139
|
-
|
|
140
|
-
var ret = match.replace( /\s{2,}/g, ' ' );
|
|
141
|
-
|
|
142
|
-
for ( var i = 0 ; i < attribs.length ; i++ )
|
|
143
|
-
{
|
|
144
|
-
ret += ' ' + attribs[i][0] + '=';
|
|
145
|
-
ret += (/^["']/).test( attribs[i][1] ) ? attribs[i][1] : '"' + attribs[i][1] + '"';
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return ret;
|
|
149
|
-
} );
|
|
150
|
-
|
|
151
|
-
return html;
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Wrapper of CKEDITOR.dom.element::getAttribute for style text normalization.
|
|
156
|
-
* @param element
|
|
157
|
-
* @param attrName
|
|
158
|
-
*/
|
|
159
|
-
getAttribute : function( element, attrName )
|
|
160
|
-
{
|
|
161
|
-
var retval = element.getAttribute( attrName );
|
|
162
|
-
if ( attrName == 'style' )
|
|
163
|
-
{
|
|
164
|
-
// 1. Lower case property name.
|
|
165
|
-
// 2. Add space after colon.
|
|
166
|
-
// 3. Strip whitepsaces around semicolon.
|
|
167
|
-
// 4. Always end with semicolon
|
|
168
|
-
return retval.replace( /(?:^|;)\s*([A-Z-_]+)(:\s*)/ig,
|
|
169
|
-
function( match, property, colon )
|
|
170
|
-
{
|
|
171
|
-
return property.toLowerCase() + ': ';
|
|
172
|
-
} )
|
|
173
|
-
.replace( /\s+(?:;\s*|$)/g, ';' )
|
|
174
|
-
.replace( /([^;])$/g, '$1;' );
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
return retval;
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Whether control the runner manually instead of running on window onload.
|
|
182
|
-
*/
|
|
183
|
-
deferRunner : false
|
|
184
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @fileOverview Defines the {@link CKEDITOR.themes} object, which is used to
|
|
8
|
-
* manage themes registration and loading.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Manages themes registration and loading.
|
|
13
|
-
* @namespace
|
|
14
|
-
* @augments CKEDITOR.resourceManager
|
|
15
|
-
* @example
|
|
16
|
-
*/
|
|
17
|
-
CKEDITOR.themes = new CKEDITOR.resourceManager(
|
|
18
|
-
'themes/', 'theme' );
|
|
@@ -1,531 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @fileOverview Defines the {@link CKEDITOR.tools} object, which contains
|
|
8
|
-
* utility functions.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
(function()
|
|
12
|
-
{
|
|
13
|
-
var functions = [];
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Utility functions.
|
|
17
|
-
* @namespace
|
|
18
|
-
* @example
|
|
19
|
-
*/
|
|
20
|
-
CKEDITOR.tools =
|
|
21
|
-
{
|
|
22
|
-
arrayCompare : function( arrayA, arrayB )
|
|
23
|
-
{
|
|
24
|
-
if ( !arrayA && !arrayB )
|
|
25
|
-
return true;
|
|
26
|
-
|
|
27
|
-
if ( !arrayA || !arrayB || arrayA.length != arrayB.length )
|
|
28
|
-
return false;
|
|
29
|
-
|
|
30
|
-
for ( var i = 0 ; i < arrayA.length ; i++ )
|
|
31
|
-
{
|
|
32
|
-
if ( arrayA[ i ] != arrayB[ i ] )
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return true;
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Creates a deep copy of an object.
|
|
41
|
-
* Attention: there is no support for recursive references.
|
|
42
|
-
* @param {Object} object The object to be cloned.
|
|
43
|
-
* @returns {Object} The object clone.
|
|
44
|
-
* @example
|
|
45
|
-
* var obj =
|
|
46
|
-
* {
|
|
47
|
-
* name : 'John',
|
|
48
|
-
* cars :
|
|
49
|
-
* {
|
|
50
|
-
* Mercedes : { color : 'blue' },
|
|
51
|
-
* Porsche : { color : 'red' }
|
|
52
|
-
* }
|
|
53
|
-
* };
|
|
54
|
-
* var clone = CKEDITOR.tools.clone( obj );
|
|
55
|
-
* clone.name = 'Paul';
|
|
56
|
-
* clone.cars.Porsche.color = 'silver';
|
|
57
|
-
* alert( obj.name ); // John
|
|
58
|
-
* alert( clone.name ); // Paul
|
|
59
|
-
* alert( obj.cars.Porsche.color ); // red
|
|
60
|
-
* alert( clone.cars.Porsche.color ); // silver
|
|
61
|
-
*/
|
|
62
|
-
clone : function( obj )
|
|
63
|
-
{
|
|
64
|
-
var clone;
|
|
65
|
-
|
|
66
|
-
// Array.
|
|
67
|
-
if ( obj && ( obj instanceof Array ) )
|
|
68
|
-
{
|
|
69
|
-
clone = [];
|
|
70
|
-
|
|
71
|
-
for ( var i = 0 ; i < obj.length ; i++ )
|
|
72
|
-
clone[ i ] = this.clone( obj[ i ] );
|
|
73
|
-
|
|
74
|
-
return clone;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// "Static" types.
|
|
78
|
-
if ( obj === null
|
|
79
|
-
|| ( typeof( obj ) != 'object' )
|
|
80
|
-
|| ( obj instanceof String )
|
|
81
|
-
|| ( obj instanceof Number )
|
|
82
|
-
|| ( obj instanceof Boolean )
|
|
83
|
-
|| ( obj instanceof Date ) )
|
|
84
|
-
{
|
|
85
|
-
return obj;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// Objects.
|
|
89
|
-
clone = new obj.constructor();
|
|
90
|
-
|
|
91
|
-
for ( var propertyName in obj )
|
|
92
|
-
{
|
|
93
|
-
var property = obj[ propertyName ];
|
|
94
|
-
clone[ propertyName ] = this.clone( property );
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return clone;
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Copy the properties from one object to another. By default, properties
|
|
102
|
-
* already present in the target object <strong>are not</strong> overwritten.
|
|
103
|
-
* @param {Object} target The object to be extended.
|
|
104
|
-
* @param {Object} source[,souce(n)] The objects from which copy
|
|
105
|
-
* properties. Any number of objects can be passed to this function.
|
|
106
|
-
* @param {Boolean} [overwrite] If 'true' is specified it indicates that
|
|
107
|
-
* properties already present in the target object could be
|
|
108
|
-
* overwritten by subsequent objects.
|
|
109
|
-
* @param {Object} [properties] Only properties within the specified names
|
|
110
|
-
* list will be received from the source object.
|
|
111
|
-
* @returns {Object} the extended object (target).
|
|
112
|
-
* @example
|
|
113
|
-
* // Create the sample object.
|
|
114
|
-
* var myObject =
|
|
115
|
-
* {
|
|
116
|
-
* prop1 : true
|
|
117
|
-
* };
|
|
118
|
-
*
|
|
119
|
-
* // Extend the above object with two properties.
|
|
120
|
-
* CKEDITOR.tools.extend( myObject,
|
|
121
|
-
* {
|
|
122
|
-
* prop2 : true,
|
|
123
|
-
* prop3 : true
|
|
124
|
-
* } );
|
|
125
|
-
*
|
|
126
|
-
* // Alert "prop1", "prop2" and "prop3".
|
|
127
|
-
* for ( var p in myObject )
|
|
128
|
-
* alert( p );
|
|
129
|
-
*/
|
|
130
|
-
extend : function( target )
|
|
131
|
-
{
|
|
132
|
-
var argsLength = arguments.length,
|
|
133
|
-
overwrite, propertiesList;
|
|
134
|
-
|
|
135
|
-
if ( typeof ( overwrite = arguments[ argsLength - 1 ] ) == 'boolean')
|
|
136
|
-
argsLength--;
|
|
137
|
-
else if ( typeof ( overwrite = arguments[ argsLength - 2 ] ) == 'boolean' )
|
|
138
|
-
{
|
|
139
|
-
propertiesList = arguments [ argsLength -1 ];
|
|
140
|
-
argsLength-=2;
|
|
141
|
-
}
|
|
142
|
-
for ( var i = 1 ; i < argsLength ; i++ )
|
|
143
|
-
{
|
|
144
|
-
var source = arguments[ i ];
|
|
145
|
-
for ( var propertyName in source )
|
|
146
|
-
{
|
|
147
|
-
// Only copy existed fields if in overwrite mode.
|
|
148
|
-
if ( overwrite === true || target[ propertyName ] == undefined )
|
|
149
|
-
{
|
|
150
|
-
// Only copy specified fields if list is provided.
|
|
151
|
-
if ( !propertiesList || ( propertyName in propertiesList ) )
|
|
152
|
-
target[ propertyName ] = source[ propertyName ];
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
return target;
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Creates an object which is an instance of a class which prototype is a
|
|
163
|
-
* predefined object. All properties defined in the source object are
|
|
164
|
-
* automatically inherited by the resulting object, including future
|
|
165
|
-
* changes to it.
|
|
166
|
-
* @param {Object} source The source object to be used as the prototype for
|
|
167
|
-
* the final object.
|
|
168
|
-
* @returns {Object} The resulting copy.
|
|
169
|
-
*/
|
|
170
|
-
prototypedCopy : function( source )
|
|
171
|
-
{
|
|
172
|
-
var copy = function()
|
|
173
|
-
{};
|
|
174
|
-
copy.prototype = source;
|
|
175
|
-
return new copy();
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Checks if an object is an Array.
|
|
180
|
-
* @param {Object} object The object to be checked.
|
|
181
|
-
* @type Boolean
|
|
182
|
-
* @returns <i>true</i> if the object is an Array, otherwise <i>false</i>.
|
|
183
|
-
* @example
|
|
184
|
-
* alert( CKEDITOR.tools.isArray( [] ) ); // "true"
|
|
185
|
-
* alert( CKEDITOR.tools.isArray( 'Test' ) ); // "false"
|
|
186
|
-
*/
|
|
187
|
-
isArray : function( object )
|
|
188
|
-
{
|
|
189
|
-
return ( !!object && object instanceof Array );
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Transforms a CSS property name to its relative DOM style name.
|
|
194
|
-
* @param {String} cssName The CSS property name.
|
|
195
|
-
* @returns {String} The transformed name.
|
|
196
|
-
* @example
|
|
197
|
-
* alert( CKEDITOR.tools.cssStyleToDomStyle( 'background-color' ) ); // "backgroundColor"
|
|
198
|
-
* alert( CKEDITOR.tools.cssStyleToDomStyle( 'float' ) ); // "cssFloat"
|
|
199
|
-
*/
|
|
200
|
-
cssStyleToDomStyle : function( cssName )
|
|
201
|
-
{
|
|
202
|
-
if ( cssName == 'float' )
|
|
203
|
-
return 'cssFloat';
|
|
204
|
-
else
|
|
205
|
-
{
|
|
206
|
-
return cssName.replace( /-./g, function( match )
|
|
207
|
-
{
|
|
208
|
-
return match.substr( 1 ).toUpperCase();
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Replace special HTML characters in a string with their relative HTML
|
|
215
|
-
* entity values.
|
|
216
|
-
* @param {String} text The string to be encoded.
|
|
217
|
-
* @returns {String} The encode string.
|
|
218
|
-
* @example
|
|
219
|
-
* alert( CKEDITOR.tools.htmlEncode( 'A > B & C < D' ) ); // "A &gt; B &amp; C &lt; D"
|
|
220
|
-
*/
|
|
221
|
-
htmlEncode : function( text )
|
|
222
|
-
{
|
|
223
|
-
var standard = function( text )
|
|
224
|
-
{
|
|
225
|
-
var span = new CKEDITOR.dom.element( 'span' );
|
|
226
|
-
span.setText( text );
|
|
227
|
-
return span.getHtml();
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
var fix1 = ( standard( '\n' ).toLowerCase() == '<br>' ) ?
|
|
231
|
-
function( text )
|
|
232
|
-
{
|
|
233
|
-
// #3874 IE and Safari encode line-break into <br>
|
|
234
|
-
return standard( text ).replace( /<br>/gi, '\n' );
|
|
235
|
-
} :
|
|
236
|
-
standard;
|
|
237
|
-
|
|
238
|
-
var fix2 = ( standard( '>' ) == '>' ) ?
|
|
239
|
-
function( text )
|
|
240
|
-
{
|
|
241
|
-
// WebKit does't encode the ">" character, which makes sense, but
|
|
242
|
-
// it's different than other browsers.
|
|
243
|
-
return fix1( text ).replace( />/g, '>' );
|
|
244
|
-
} :
|
|
245
|
-
fix1;
|
|
246
|
-
|
|
247
|
-
var fix3 = ( standard( ' ' ) == ' ' ) ?
|
|
248
|
-
function( text )
|
|
249
|
-
{
|
|
250
|
-
// #3785 IE8 changes spaces (>= 2) to
|
|
251
|
-
return fix2( text ).replace( / /g, ' ' );
|
|
252
|
-
} :
|
|
253
|
-
fix2;
|
|
254
|
-
|
|
255
|
-
this.htmlEncode = fix3;
|
|
256
|
-
|
|
257
|
-
return this.htmlEncode( text );
|
|
258
|
-
},
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Gets a unique number for this CKEDITOR execution session. It returns
|
|
262
|
-
* progressive numbers starting at 1.
|
|
263
|
-
* @function
|
|
264
|
-
* @returns {Number} A unique number.
|
|
265
|
-
* @example
|
|
266
|
-
* alert( CKEDITOR.tools.<b>getNextNumber()</b> ); // "1" (e.g.)
|
|
267
|
-
* alert( CKEDITOR.tools.<b>getNextNumber()</b> ); // "2"
|
|
268
|
-
*/
|
|
269
|
-
getNextNumber : (function()
|
|
270
|
-
{
|
|
271
|
-
var last = 0;
|
|
272
|
-
return function()
|
|
273
|
-
{
|
|
274
|
-
return ++last;
|
|
275
|
-
};
|
|
276
|
-
})(),
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Creates a function override.
|
|
280
|
-
* @param {Function} originalFunction The function to be overridden.
|
|
281
|
-
* @param {Function} functionBuilder A function that returns the new
|
|
282
|
-
* function. The original function reference will be passed to this
|
|
283
|
-
* function.
|
|
284
|
-
* @returns {Function} The new function.
|
|
285
|
-
* @example
|
|
286
|
-
* var example =
|
|
287
|
-
* {
|
|
288
|
-
* myFunction : function( name )
|
|
289
|
-
* {
|
|
290
|
-
* alert( 'Name: ' + name );
|
|
291
|
-
* }
|
|
292
|
-
* };
|
|
293
|
-
*
|
|
294
|
-
* example.myFunction = CKEDITOR.tools.override( example.myFunction, function( myFunctionOriginal )
|
|
295
|
-
* {
|
|
296
|
-
* return function( name )
|
|
297
|
-
* {
|
|
298
|
-
* alert( 'Override Name: ' + name );
|
|
299
|
-
* myFunctionOriginal.call( this, name );
|
|
300
|
-
* };
|
|
301
|
-
* });
|
|
302
|
-
*/
|
|
303
|
-
override : function( originalFunction, functionBuilder )
|
|
304
|
-
{
|
|
305
|
-
return functionBuilder( originalFunction );
|
|
306
|
-
},
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Executes a function after specified delay.
|
|
310
|
-
* @param {Function} func The function to be executed.
|
|
311
|
-
* @param {Number} [milliseconds] The amount of time (millisecods) to wait
|
|
312
|
-
* to fire the function execution. Defaults to zero.
|
|
313
|
-
* @param {Object} [scope] The object to hold the function execution scope
|
|
314
|
-
* (the "this" object). By default the "window" object.
|
|
315
|
-
* @param {Object|Array} [args] A single object, or an array of objects, to
|
|
316
|
-
* pass as arguments to the function.
|
|
317
|
-
* @param {Object} [ownerWindow] The window that will be used to set the
|
|
318
|
-
* timeout. By default the current "window".
|
|
319
|
-
* @returns {Object} A value that can be used to cancel the function execution.
|
|
320
|
-
* @example
|
|
321
|
-
* CKEDITOR.tools.<b>setTimeout(
|
|
322
|
-
* function()
|
|
323
|
-
* {
|
|
324
|
-
* alert( 'Executed after 2 seconds' );
|
|
325
|
-
* },
|
|
326
|
-
* 2000 )</b>;
|
|
327
|
-
*/
|
|
328
|
-
setTimeout : function( func, milliseconds, scope, args, ownerWindow )
|
|
329
|
-
{
|
|
330
|
-
if ( !ownerWindow )
|
|
331
|
-
ownerWindow = window;
|
|
332
|
-
|
|
333
|
-
if ( !scope )
|
|
334
|
-
scope = ownerWindow;
|
|
335
|
-
|
|
336
|
-
return ownerWindow.setTimeout(
|
|
337
|
-
function()
|
|
338
|
-
{
|
|
339
|
-
if ( args )
|
|
340
|
-
func.apply( scope, [].concat( args ) ) ;
|
|
341
|
-
else
|
|
342
|
-
func.apply( scope ) ;
|
|
343
|
-
},
|
|
344
|
-
milliseconds || 0 );
|
|
345
|
-
},
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Remove spaces from the start and the end of a string. The following
|
|
349
|
-
* characters are removed: space, tab, line break, line feed.
|
|
350
|
-
* @function
|
|
351
|
-
* @param {String} str The text from which remove the spaces.
|
|
352
|
-
* @returns {String} The modified string without the boundary spaces.
|
|
353
|
-
* @example
|
|
354
|
-
* alert( CKEDITOR.tools.trim( ' example ' ); // "example"
|
|
355
|
-
*/
|
|
356
|
-
trim : (function()
|
|
357
|
-
{
|
|
358
|
-
// We are not using \s because we don't want "non-breaking spaces" to be caught.
|
|
359
|
-
var trimRegex = /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;
|
|
360
|
-
return function( str )
|
|
361
|
-
{
|
|
362
|
-
return str.replace( trimRegex, '' ) ;
|
|
363
|
-
};
|
|
364
|
-
})(),
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* Remove spaces from the start (left) of a string. The following
|
|
368
|
-
* characters are removed: space, tab, line break, line feed.
|
|
369
|
-
* @function
|
|
370
|
-
* @param {String} str The text from which remove the spaces.
|
|
371
|
-
* @returns {String} The modified string excluding the removed spaces.
|
|
372
|
-
* @example
|
|
373
|
-
* alert( CKEDITOR.tools.ltrim( ' example ' ); // "example "
|
|
374
|
-
*/
|
|
375
|
-
ltrim : (function()
|
|
376
|
-
{
|
|
377
|
-
// We are not using \s because we don't want "non-breaking spaces" to be caught.
|
|
378
|
-
var trimRegex = /^[ \t\n\r]+/g;
|
|
379
|
-
return function( str )
|
|
380
|
-
{
|
|
381
|
-
return str.replace( trimRegex, '' ) ;
|
|
382
|
-
};
|
|
383
|
-
})(),
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Remove spaces from the end (right) of a string. The following
|
|
387
|
-
* characters are removed: space, tab, line break, line feed.
|
|
388
|
-
* @function
|
|
389
|
-
* @param {String} str The text from which remove the spaces.
|
|
390
|
-
* @returns {String} The modified string excluding the removed spaces.
|
|
391
|
-
* @example
|
|
392
|
-
* alert( CKEDITOR.tools.ltrim( ' example ' ); // " example"
|
|
393
|
-
*/
|
|
394
|
-
rtrim : (function()
|
|
395
|
-
{
|
|
396
|
-
// We are not using \s because we don't want "non-breaking spaces" to be caught.
|
|
397
|
-
var trimRegex = /[ \t\n\r]+$/g;
|
|
398
|
-
return function( str )
|
|
399
|
-
{
|
|
400
|
-
return str.replace( trimRegex, '' ) ;
|
|
401
|
-
};
|
|
402
|
-
})(),
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* Returns the index of an element in an array.
|
|
406
|
-
* @param {Array} array The array to be searched.
|
|
407
|
-
* @param {Object} entry The element to be found.
|
|
408
|
-
* @returns {Number} The (zero based) index of the first entry that matches
|
|
409
|
-
* the entry, or -1 if not found.
|
|
410
|
-
* @example
|
|
411
|
-
* var letters = [ 'a', 'b', 0, 'c', false ];
|
|
412
|
-
* alert( CKEDITOR.tools.indexOf( letters, '0' ) ); "-1" because 0 !== '0'
|
|
413
|
-
* alert( CKEDITOR.tools.indexOf( letters, false ) ); "4" because 0 !== false
|
|
414
|
-
*/
|
|
415
|
-
indexOf :
|
|
416
|
-
// #2514: We should try to use Array.indexOf if it does exist.
|
|
417
|
-
( Array.prototype.indexOf ) ?
|
|
418
|
-
function( array, entry )
|
|
419
|
-
{
|
|
420
|
-
return array.indexOf( entry );
|
|
421
|
-
}
|
|
422
|
-
:
|
|
423
|
-
function( array, entry )
|
|
424
|
-
{
|
|
425
|
-
for ( var i = 0, len = array.length ; i < len ; i++ )
|
|
426
|
-
{
|
|
427
|
-
if ( array[ i ] === entry )
|
|
428
|
-
return i;
|
|
429
|
-
}
|
|
430
|
-
return -1;
|
|
431
|
-
},
|
|
432
|
-
|
|
433
|
-
bind : function( func, obj )
|
|
434
|
-
{
|
|
435
|
-
return function() { return func.apply( obj, arguments ); };
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* Class creation based on prototype inheritance, with supports of the
|
|
440
|
-
* following features:
|
|
441
|
-
* <ul>
|
|
442
|
-
* <li> Static fields </li>
|
|
443
|
-
* <li> Private fields </li>
|
|
444
|
-
* <li> Public(prototype) fields </li>
|
|
445
|
-
* <li> Chainable base class constructor </li>
|
|
446
|
-
* </ul>
|
|
447
|
-
*
|
|
448
|
-
* @param {Object} definiton (Optional)The class definiton object.
|
|
449
|
-
*/
|
|
450
|
-
createClass : function( definition )
|
|
451
|
-
{
|
|
452
|
-
var $ = definition.$,
|
|
453
|
-
baseClass = definition.base,
|
|
454
|
-
privates = definition.privates || definition._,
|
|
455
|
-
proto = definition.proto,
|
|
456
|
-
statics = definition.statics;
|
|
457
|
-
|
|
458
|
-
if ( privates )
|
|
459
|
-
{
|
|
460
|
-
var originalConstructor = $;
|
|
461
|
-
$ = function()
|
|
462
|
-
{
|
|
463
|
-
// Create (and get) the private namespace.
|
|
464
|
-
var _ = this._ || ( this._ = {} );
|
|
465
|
-
|
|
466
|
-
// Make some magic so "this" will refer to the main
|
|
467
|
-
// instance when coding private functions.
|
|
468
|
-
for ( var privateName in privates )
|
|
469
|
-
{
|
|
470
|
-
var priv = privates[ privateName ];
|
|
471
|
-
|
|
472
|
-
_[ privateName ] =
|
|
473
|
-
( typeof priv == 'function' ) ? CKEDITOR.tools.bind( priv, this ) : priv;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
originalConstructor.apply( this, arguments );
|
|
477
|
-
};
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
if ( baseClass )
|
|
481
|
-
{
|
|
482
|
-
$.prototype = this.prototypedCopy( baseClass.prototype );
|
|
483
|
-
$.prototype.constructor = $;
|
|
484
|
-
$.prototype.base = function()
|
|
485
|
-
{
|
|
486
|
-
this.base = baseClass.prototype.base;
|
|
487
|
-
baseClass.apply( this, arguments );
|
|
488
|
-
this.base = arguments.callee;
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
if ( proto )
|
|
493
|
-
this.extend( $.prototype, proto, true );
|
|
494
|
-
|
|
495
|
-
if ( statics )
|
|
496
|
-
this.extend( $, statics, true );
|
|
497
|
-
|
|
498
|
-
return $;
|
|
499
|
-
},
|
|
500
|
-
|
|
501
|
-
addFunction : function( fn, scope )
|
|
502
|
-
{
|
|
503
|
-
return functions.push( function()
|
|
504
|
-
{
|
|
505
|
-
fn.apply( scope || this, arguments );
|
|
506
|
-
}) - 1;
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
callFunction : function( index )
|
|
510
|
-
{
|
|
511
|
-
var fn = functions[ index ];
|
|
512
|
-
return fn.apply( window, Array.prototype.slice.call( arguments, 1 ) );
|
|
513
|
-
},
|
|
514
|
-
|
|
515
|
-
cssLength : (function()
|
|
516
|
-
{
|
|
517
|
-
var decimalRegex = /^\d+(?:\.\d+)?$/;
|
|
518
|
-
return function( length )
|
|
519
|
-
{
|
|
520
|
-
return length + ( decimalRegex.test( length ) ? 'px' : '' );
|
|
521
|
-
};
|
|
522
|
-
})(),
|
|
523
|
-
|
|
524
|
-
repeat : function( str, times )
|
|
525
|
-
{
|
|
526
|
-
return new Array( times + 1 ).join( str );
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
})();
|
|
530
|
-
|
|
531
|
-
// PACKAGER_RENAME( CKEDITOR.tools )
|