bcms_fckeditor 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- metadata +5 -679
- data/.gitignore +0 -11
- data/COPYRIGHT.txt +0 -23
- data/GPL.txt +0 -674
- data/Rakefile +0 -36
- data/VERSION +0 -1
- data/app/controllers/application_controller.rb +0 -10
- data/app/helpers/application_helper.rb +0 -3
- data/bcms_fckeditor.gemspec +0 -1046
- 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/migrate/20080815014337_browsercms_3_0_0.rb +0 -274
- data/db/migrate/20081114172307_load_seed_data.rb +0 -92
- data/db/migrate/20091109175123_browsercms_3_0_5.rb +0 -9
- 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/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/dom.js +0 -21
- 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/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/htmlparser.js +0 -212
- 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 -50
- 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/myplugins/sample/my_plugin.js +0 -3
- data/public/bcms/ckeditor/tests/core/plugins.html +0 -45
- 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/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/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.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/on_bg.gif +0 -0
- data/public/images/cms/nav.png +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/editor.js +0 -50
- 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
- data/test/fixtures/content_type_groups.yml +0 -13
- data/test/fixtures/content_types.yml +0 -50
- data/test/fixtures/group_permissions.yml +0 -16
- data/test/fixtures/group_type_permissions.yml +0 -11
- data/test/fixtures/group_types.yml +0 -25
- data/test/fixtures/groups.yml +0 -25
- data/test/fixtures/permissions.yml +0 -28
- data/test/fixtures/user_group_memberships.yml +0 -11
- data/test/fixtures/users.yml +0 -15
@@ -1,49 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
-
<!--
|
3
|
-
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
4
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
-
-->
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title></title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
10
|
-
<script type="text/javascript">
|
11
|
-
|
12
|
-
function gup( name )
|
13
|
-
{
|
14
|
-
name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ) ;
|
15
|
-
var regexS = '[\\?&]' + name + '=([^&#]*)' ;
|
16
|
-
var regex = new RegExp( regexS ) ;
|
17
|
-
var results = regex.exec( window.location.href ) ;
|
18
|
-
|
19
|
-
if( results )
|
20
|
-
return results[ 1 ] ;
|
21
|
-
else
|
22
|
-
return '' ;
|
23
|
-
}
|
24
|
-
|
25
|
-
var interval;
|
26
|
-
|
27
|
-
function sendData2Master()
|
28
|
-
{
|
29
|
-
var destination = window.parent.parent ;
|
30
|
-
try
|
31
|
-
{
|
32
|
-
if ( destination.XDTMaster )
|
33
|
-
{
|
34
|
-
var t = destination.XDTMaster.read( [ gup( 'cmd' ), gup( 'data' ) ] ) ;
|
35
|
-
window.clearInterval( interval ) ;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
catch (e) {}
|
39
|
-
}
|
40
|
-
|
41
|
-
function onLoad()
|
42
|
-
{
|
43
|
-
interval = window.setInterval( sendData2Master, 100 );
|
44
|
-
}
|
45
|
-
|
46
|
-
</script>
|
47
|
-
</head>
|
48
|
-
<body onload="onLoad()"><p></p></body>
|
49
|
-
</html>
|
@@ -1,52 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
2
|
-
<!--
|
3
|
-
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
4
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
-
-->
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title></title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
10
|
-
<script type="text/javascript">
|
11
|
-
|
12
|
-
function doLoadScript( url )
|
13
|
-
{
|
14
|
-
if ( !url )
|
15
|
-
return false ;
|
16
|
-
|
17
|
-
var s = document.createElement( "script" ) ;
|
18
|
-
s.type = "text/javascript" ;
|
19
|
-
s.src = url ;
|
20
|
-
document.getElementsByTagName( "head" )[ 0 ].appendChild( s ) ;
|
21
|
-
|
22
|
-
return true ;
|
23
|
-
}
|
24
|
-
|
25
|
-
var opener;
|
26
|
-
function tryLoad()
|
27
|
-
{
|
28
|
-
opener = window.parent;
|
29
|
-
|
30
|
-
// get access to global parameters
|
31
|
-
var oParams = window.opener.oldFramesetPageParams;
|
32
|
-
|
33
|
-
// make frameset rows string prepare
|
34
|
-
var sFramesetRows = ( parseInt( oParams.firstframeh, 10 ) || '30') + ",*," + ( parseInt( oParams.thirdframeh, 10 ) || '150' ) + ',0' ;
|
35
|
-
document.getElementById( 'itFrameset' ).rows = sFramesetRows ;
|
36
|
-
|
37
|
-
// dynamic including init frames and crossdomain transport code
|
38
|
-
// from config sproxy_js_frameset url
|
39
|
-
var addScriptUrl = oParams.sproxy_js_frameset ;
|
40
|
-
doLoadScript( addScriptUrl ) ;
|
41
|
-
}
|
42
|
-
|
43
|
-
</script>
|
44
|
-
</head>
|
45
|
-
|
46
|
-
<frameset id="itFrameset" onload="tryLoad();" border="0" rows="30,*,*,0">
|
47
|
-
<frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="0" marginwidth="2" src="" name="navbar"></frame>
|
48
|
-
<frame scrolling="auto" framespacing="0" frameborder="0" noresize="noresize" marginheight="0" marginwidth="0" src="" name="mid"></frame>
|
49
|
-
<frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="1" marginwidth="1" src="" name="bot"></frame>
|
50
|
-
<frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="1" marginwidth="1" src="" name="spellsuggestall"></frame>
|
51
|
-
</frameset>
|
52
|
-
</html>
|
@@ -1,83 +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
|
-
html, body
|
7
|
-
{
|
8
|
-
background-color: transparent;
|
9
|
-
margin: 0px;
|
10
|
-
padding: 0px;
|
11
|
-
}
|
12
|
-
|
13
|
-
body
|
14
|
-
{
|
15
|
-
padding: 10px;
|
16
|
-
}
|
17
|
-
|
18
|
-
body, td, input, select, textarea
|
19
|
-
{
|
20
|
-
font-size: 11px;
|
21
|
-
font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana;
|
22
|
-
}
|
23
|
-
|
24
|
-
.midtext
|
25
|
-
{
|
26
|
-
padding:0px;
|
27
|
-
margin:10px;
|
28
|
-
}
|
29
|
-
|
30
|
-
.midtext p
|
31
|
-
{
|
32
|
-
padding:0px;
|
33
|
-
margin:10px;
|
34
|
-
}
|
35
|
-
|
36
|
-
.Button
|
37
|
-
{
|
38
|
-
border: #737357 1px solid;
|
39
|
-
color: #3b3b1f;
|
40
|
-
background-color: #c7c78f;
|
41
|
-
}
|
42
|
-
|
43
|
-
.PopupTabArea
|
44
|
-
{
|
45
|
-
color: #737357;
|
46
|
-
background-color: #e3e3c7;
|
47
|
-
}
|
48
|
-
|
49
|
-
.PopupTitleBorder
|
50
|
-
{
|
51
|
-
border-bottom: #d5d59d 1px solid;
|
52
|
-
}
|
53
|
-
.PopupTabEmptyArea
|
54
|
-
{
|
55
|
-
padding-left: 10px;
|
56
|
-
border-bottom: #d5d59d 1px solid;
|
57
|
-
}
|
58
|
-
|
59
|
-
.PopupTab, .PopupTabSelected
|
60
|
-
{
|
61
|
-
border-right: #d5d59d 1px solid;
|
62
|
-
border-top: #d5d59d 1px solid;
|
63
|
-
border-left: #d5d59d 1px solid;
|
64
|
-
padding: 3px 5px 3px 5px;
|
65
|
-
color: #737357;
|
66
|
-
}
|
67
|
-
|
68
|
-
.PopupTab
|
69
|
-
{
|
70
|
-
margin-top: 1px;
|
71
|
-
border-bottom: #d5d59d 1px solid;
|
72
|
-
cursor: pointer;
|
73
|
-
cursor: hand;
|
74
|
-
}
|
75
|
-
|
76
|
-
.PopupTabSelected
|
77
|
-
{
|
78
|
-
font-weight: bold;
|
79
|
-
cursor: default;
|
80
|
-
padding-top: 4px;
|
81
|
-
border-bottom: #f1f1e3 1px solid;
|
82
|
-
background-color: #f1f1e3;
|
83
|
-
}
|
@@ -1,169 +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
|
-
CKEDITOR.dialog.add( 'checkspell', function( editor )
|
7
|
-
{
|
8
|
-
var number = CKEDITOR.tools.getNextNumber(),
|
9
|
-
iframeId = 'cke_frame_' + number,
|
10
|
-
textareaId = 'cke_data_' + number,
|
11
|
-
errorBoxId = 'cke_error_' + number,
|
12
|
-
interval,
|
13
|
-
protocol = document.location.protocol || 'http:',
|
14
|
-
errorMsg = editor.lang.spellCheck.notAvailable;
|
15
|
-
|
16
|
-
var pasteArea = '<textarea'+
|
17
|
-
' style="display: none"' +
|
18
|
-
' id="' + textareaId + '"' +
|
19
|
-
' rows="10"' +
|
20
|
-
' cols="40">' +
|
21
|
-
' </textarea><div' +
|
22
|
-
' id="' + errorBoxId + '"' +
|
23
|
-
' style="display:none;color:red;font-size:16px;font-weight:bold;padding-top:160px;text-align:center;z-index:11;">' +
|
24
|
-
'</div><iframe' +
|
25
|
-
' src=""' +
|
26
|
-
' style="width:485px;background-color:#f1f1e3;height:380px"' +
|
27
|
-
' frameborder="0"' +
|
28
|
-
' name="' + iframeId + '"' +
|
29
|
-
' id="' + iframeId + '"' +
|
30
|
-
' allowtransparency="1">' +
|
31
|
-
'</iframe>';
|
32
|
-
|
33
|
-
var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol +
|
34
|
-
'//loader.spellchecker.net/sproxy_fck/sproxy.php'
|
35
|
-
+ '?plugin=fck2'
|
36
|
-
+ '&customerid=' + editor.config.wsc_customerId
|
37
|
-
+ '&cmd=script&doc=wsc&schema=22'
|
38
|
-
);
|
39
|
-
|
40
|
-
if ( editor.config.wsc_customLoaderScript )
|
41
|
-
errorMsg += '<p style="color:#000;font-size:11px;font-weight: normal;text-align:center;padding-top:10px">' +
|
42
|
-
editor.lang.spellCheck.errorLoading.replace( /%s/g, editor.config.wsc_customLoaderScript ) + '</p>';
|
43
|
-
|
44
|
-
function burnSpelling( dialog, errorMsg )
|
45
|
-
{
|
46
|
-
var i = 0;
|
47
|
-
return function ()
|
48
|
-
{
|
49
|
-
if ( typeof( window.doSpell ) == 'function' )
|
50
|
-
{
|
51
|
-
//Call from window.setInteval expected at once.
|
52
|
-
if ( typeof( interval ) != 'undefined' )
|
53
|
-
window.clearInterval( interval );
|
54
|
-
|
55
|
-
initAndSpell( dialog );
|
56
|
-
}
|
57
|
-
else if ( i++ == 180 ) // Timeout: 180 * 250ms = 45s.
|
58
|
-
window._cancelOnError( errorMsg );
|
59
|
-
};
|
60
|
-
}
|
61
|
-
|
62
|
-
window._cancelOnError = function( m )
|
63
|
-
{
|
64
|
-
if ( typeof( window.WSC_Error ) == 'undefined' )
|
65
|
-
{
|
66
|
-
CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'none' );
|
67
|
-
var errorBox = CKEDITOR.document.getById( errorBoxId );
|
68
|
-
errorBox.setStyle( 'display', 'block' );
|
69
|
-
errorBox.setHtml( m || editor.lang.spellCheck.notAvailable );
|
70
|
-
}
|
71
|
-
};
|
72
|
-
|
73
|
-
function initAndSpell( dialog )
|
74
|
-
{
|
75
|
-
var LangComparer = new window._SP_FCK_LangCompare(), // Language abbr standarts comparer.
|
76
|
-
pluginPath = CKEDITOR.getUrl( editor.plugins.wsc.path + 'dialogs/' ), // Service paths corecting/preparing.
|
77
|
-
framesetPath = pluginPath + 'tmpFrameset.html';
|
78
|
-
|
79
|
-
// global var is used in FCK specific core
|
80
|
-
// change on equal var used in fckplugin.js
|
81
|
-
window.gFCKPluginName = 'wsc';
|
82
|
-
|
83
|
-
LangComparer.setDefaulLangCode( editor.config.defaultLanguage );
|
84
|
-
|
85
|
-
window.doSpell({
|
86
|
-
ctrl : textareaId,
|
87
|
-
lang : LangComparer.getSPLangCode( editor.langCode ),
|
88
|
-
winType : iframeId, // If not defined app will run on winpopup.
|
89
|
-
|
90
|
-
// Callback binding section.
|
91
|
-
onCancel : function()
|
92
|
-
{
|
93
|
-
dialog.hide();
|
94
|
-
},
|
95
|
-
onFinish : function( dT )
|
96
|
-
{
|
97
|
-
editor.focus();
|
98
|
-
dialog.getParentEditor().setData( dT.value );
|
99
|
-
dialog.hide();
|
100
|
-
},
|
101
|
-
|
102
|
-
// Some manipulations with client static pages.
|
103
|
-
staticFrame : framesetPath,
|
104
|
-
framesetPath : framesetPath,
|
105
|
-
iframePath : pluginPath + 'ciframe.html',
|
106
|
-
|
107
|
-
// Styles defining.
|
108
|
-
schemaURI : pluginPath + 'wsc.css'
|
109
|
-
});
|
110
|
-
|
111
|
-
// Hide user message console (if application was loaded more then after timeout).
|
112
|
-
CKEDITOR.document.getById( errorBoxId ).setStyle( 'display', 'none' );
|
113
|
-
CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'block' );
|
114
|
-
}
|
115
|
-
|
116
|
-
return {
|
117
|
-
title : editor.lang.spellCheck.title,
|
118
|
-
minWidth : 485,
|
119
|
-
minHeight : 380,
|
120
|
-
buttons : [ CKEDITOR.dialog.cancelButton ],
|
121
|
-
onShow : function()
|
122
|
-
{
|
123
|
-
var contentArea = this.getContentElement( 'general', 'content' ).getElement();
|
124
|
-
contentArea.setHtml( pasteArea );
|
125
|
-
|
126
|
-
if ( typeof( window.doSpell ) != 'function' )
|
127
|
-
{
|
128
|
-
// Load script.
|
129
|
-
CKEDITOR.document.getHead().append(
|
130
|
-
CKEDITOR.document.createElement( 'script',
|
131
|
-
{
|
132
|
-
attributes :
|
133
|
-
{
|
134
|
-
type : 'text/javascript',
|
135
|
-
src : wscCoreUrl
|
136
|
-
}
|
137
|
-
})
|
138
|
-
);
|
139
|
-
}
|
140
|
-
|
141
|
-
var sData = editor.getData(); // Get the data to be checked.
|
142
|
-
CKEDITOR.document.getById( textareaId ).setValue( sData );
|
143
|
-
|
144
|
-
interval = window.setInterval( burnSpelling( this, errorMsg ), 250 );
|
145
|
-
},
|
146
|
-
onHide : function()
|
147
|
-
{
|
148
|
-
window.ooo = undefined;
|
149
|
-
window.int_framsetLoaded = undefined;
|
150
|
-
window.framesetLoaded = undefined;
|
151
|
-
window.is_window_opened = false;
|
152
|
-
},
|
153
|
-
contents : [
|
154
|
-
{
|
155
|
-
id : 'general',
|
156
|
-
label : editor.lang.spellCheck.title,
|
157
|
-
padding : 0,
|
158
|
-
elements : [
|
159
|
-
{
|
160
|
-
type : 'html',
|
161
|
-
id : 'content',
|
162
|
-
style : 'width:485;height:380px',
|
163
|
-
html : '<div></div>'
|
164
|
-
}
|
165
|
-
]
|
166
|
-
}
|
167
|
-
]
|
168
|
-
};
|
169
|
-
});
|
@@ -1,32 +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
|
-
* @file Spell checker
|
8
|
-
*/
|
9
|
-
|
10
|
-
// Register a plugin named "wsc".
|
11
|
-
CKEDITOR.plugins.add( 'wsc',
|
12
|
-
{
|
13
|
-
init : function( editor )
|
14
|
-
{
|
15
|
-
var commandName = 'checkspell';
|
16
|
-
|
17
|
-
var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) );
|
18
|
-
|
19
|
-
// SpellChecker doesn't work in Opera and with custom domain
|
20
|
-
command.modes = { wysiwyg : ( !CKEDITOR.env.opera && document.domain == window.location.hostname ) };
|
21
|
-
|
22
|
-
editor.ui.addButton( 'SpellChecker',
|
23
|
-
{
|
24
|
-
label : editor.lang.spellCheck.toolbar,
|
25
|
-
command : commandName
|
26
|
-
});
|
27
|
-
CKEDITOR.dialog.add( commandName, this.path + 'dialogs/wsc.js' );
|
28
|
-
}
|
29
|
-
});
|
30
|
-
|
31
|
-
CKEDITOR.config.wsc_customerId = CKEDITOR.config.wsc_customerId || '1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk' ;
|
32
|
-
CKEDITOR.config.wsc_customLoaderScript = CKEDITOR.config.wsc_customLoaderScript || null;
|
@@ -1,636 +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 The "wysiwygarea" plugin. It registers the "wysiwyg" editing
|
8
|
-
* mode, which handles the main editing area space.
|
9
|
-
*/
|
10
|
-
|
11
|
-
(function()
|
12
|
-
{
|
13
|
-
/**
|
14
|
-
* List of elements in which has no way to move editing focus outside.
|
15
|
-
*/
|
16
|
-
var nonExitableElementNames = { table:1,pre:1 };
|
17
|
-
// Matching an empty paragraph at the end of document.
|
18
|
-
var emptyParagraphRegexp = /\s*<(p|div|address|h\d|center)[^>]*>\s*(?:<br[^>]*>| | )\s*(:?<\/\1>)?\s*$/gi;
|
19
|
-
|
20
|
-
function onInsertHtml( evt )
|
21
|
-
{
|
22
|
-
if ( this.mode == 'wysiwyg' )
|
23
|
-
{
|
24
|
-
this.focus();
|
25
|
-
|
26
|
-
var selection = this.getSelection(),
|
27
|
-
data = evt.data;
|
28
|
-
|
29
|
-
if ( this.dataProcessor )
|
30
|
-
data = this.dataProcessor.toHtml( data );
|
31
|
-
|
32
|
-
if ( CKEDITOR.env.ie )
|
33
|
-
{
|
34
|
-
var selIsLocked = selection.isLocked;
|
35
|
-
|
36
|
-
if ( selIsLocked )
|
37
|
-
selection.unlock();
|
38
|
-
|
39
|
-
var $sel = selection.getNative();
|
40
|
-
if ( $sel.type == 'Control' )
|
41
|
-
$sel.clear();
|
42
|
-
$sel.createRange().pasteHTML( data );
|
43
|
-
|
44
|
-
if ( selIsLocked )
|
45
|
-
this.getSelection().lock();
|
46
|
-
}
|
47
|
-
else
|
48
|
-
this.document.$.execCommand( 'inserthtml', false, data );
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
function onInsertElement( evt )
|
53
|
-
{
|
54
|
-
if ( this.mode == 'wysiwyg' )
|
55
|
-
{
|
56
|
-
this.focus();
|
57
|
-
this.fire( 'saveSnapshot' );
|
58
|
-
|
59
|
-
var element = evt.data,
|
60
|
-
elementName = element.getName(),
|
61
|
-
isBlock = CKEDITOR.dtd.$block[ elementName ];
|
62
|
-
|
63
|
-
var selection = this.getSelection(),
|
64
|
-
ranges = selection.getRanges();
|
65
|
-
|
66
|
-
var selIsLocked = selection.isLocked;
|
67
|
-
|
68
|
-
if ( selIsLocked )
|
69
|
-
selection.unlock();
|
70
|
-
|
71
|
-
var range, clone, lastElement, bookmark;
|
72
|
-
|
73
|
-
for ( var i = ranges.length - 1 ; i >= 0 ; i-- )
|
74
|
-
{
|
75
|
-
range = ranges[ i ];
|
76
|
-
|
77
|
-
// Remove the original contents.
|
78
|
-
range.deleteContents();
|
79
|
-
|
80
|
-
clone = !i && element || element.clone( true );
|
81
|
-
|
82
|
-
// If we're inserting a block at dtd-violated position, split
|
83
|
-
// the parent blocks until we reach blockLimit.
|
84
|
-
var parent, dtd;
|
85
|
-
if ( this.config.enterMode != CKEDITOR.ENTER_BR && isBlock )
|
86
|
-
{
|
87
|
-
while( ( parent = range.getCommonAncestor( false, true ) )
|
88
|
-
&& ( dtd = CKEDITOR.dtd[ parent.getName() ] )
|
89
|
-
&& !( dtd && dtd [ elementName ] ) )
|
90
|
-
{
|
91
|
-
range.splitBlock();
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
// Insert the new node.
|
96
|
-
range.insertNode( clone );
|
97
|
-
|
98
|
-
// Save the last element reference so we can make the
|
99
|
-
// selection later.
|
100
|
-
if ( !lastElement )
|
101
|
-
lastElement = clone;
|
102
|
-
}
|
103
|
-
|
104
|
-
range.moveToPosition( lastElement, CKEDITOR.POSITION_AFTER_END );
|
105
|
-
|
106
|
-
var next = lastElement.getNextSourceNode( true );
|
107
|
-
if ( next && next.type == CKEDITOR.NODE_ELEMENT )
|
108
|
-
range.moveToElementEditStart( next );
|
109
|
-
|
110
|
-
selection.selectRanges( [ range ] );
|
111
|
-
|
112
|
-
if ( selIsLocked )
|
113
|
-
this.getSelection().lock();
|
114
|
-
|
115
|
-
// Save snaps after the whole execution completed.
|
116
|
-
// This's a workaround for make DOM modification's happened after
|
117
|
-
// 'insertElement' to be included either, e.g. Form-based dialogs' 'commitContents'
|
118
|
-
// call.
|
119
|
-
CKEDITOR.tools.setTimeout( function(){
|
120
|
-
this.fire( 'saveSnapshot' );
|
121
|
-
}, 0, this );
|
122
|
-
}
|
123
|
-
}
|
124
|
-
|
125
|
-
/**
|
126
|
-
* Auto-fixing block-less content by wrapping paragraph (#3190), prevent
|
127
|
-
* non-exitable-block by padding extra br.(#3189)
|
128
|
-
*/
|
129
|
-
function onSelectionChangeFixBody( evt )
|
130
|
-
{
|
131
|
-
var editor = evt.editor,
|
132
|
-
path = evt.data.path,
|
133
|
-
blockLimit = path.blockLimit,
|
134
|
-
selection = evt.data.selection,
|
135
|
-
range = selection.getRanges()[0],
|
136
|
-
body = editor.document.getBody(),
|
137
|
-
enterMode = editor.config.enterMode;
|
138
|
-
|
139
|
-
// When enterMode set to block, we'll establing new paragraph only if we're
|
140
|
-
// selecting inline contents right under body. (#3657)
|
141
|
-
if ( enterMode != CKEDITOR.ENTER_BR
|
142
|
-
&& range.collapsed
|
143
|
-
&& blockLimit.getName() == 'body'
|
144
|
-
&& !path.block )
|
145
|
-
{
|
146
|
-
var bms = selection.createBookmarks(),
|
147
|
-
fixedBlock = range.fixBlock( true,
|
148
|
-
editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' );
|
149
|
-
|
150
|
-
// For IE, we'll be removing any bogus br ( introduce by fixing body )
|
151
|
-
// right now to prevent it introducing visual line break.
|
152
|
-
if ( CKEDITOR.env.ie )
|
153
|
-
{
|
154
|
-
var brNodeList = fixedBlock.getElementsByTag( 'br' ), brNode;
|
155
|
-
for ( var i = 0 ; i < brNodeList.count() ; i++ )
|
156
|
-
{
|
157
|
-
if( ( brNode = brNodeList.getItem( i ) ) && brNode.hasAttribute( '_cke_bogus' ) )
|
158
|
-
brNode.remove();
|
159
|
-
}
|
160
|
-
}
|
161
|
-
|
162
|
-
selection.selectBookmarks( bms );
|
163
|
-
|
164
|
-
// If the fixed block is blank and is already followed by a exitable
|
165
|
-
// block, we should drop it and move to the exist block(#3684).
|
166
|
-
var children = fixedBlock.getChildren(),
|
167
|
-
count = children.count(),
|
168
|
-
firstChild,
|
169
|
-
whitespaceGuard = CKEDITOR.dom.walker.whitespaces( true ),
|
170
|
-
previousElement = fixedBlock.getPrevious( whitespaceGuard ),
|
171
|
-
nextElement = fixedBlock.getNext( whitespaceGuard ),
|
172
|
-
enterBlock;
|
173
|
-
if ( previousElement && previousElement.getName
|
174
|
-
&& !( previousElement.getName() in nonExitableElementNames ) )
|
175
|
-
enterBlock = previousElement;
|
176
|
-
else if ( nextElement && nextElement.getName
|
177
|
-
&& !( nextElement.getName() in nonExitableElementNames ) )
|
178
|
-
enterBlock = nextElement;
|
179
|
-
|
180
|
-
// Not all blocks are editable, e.g. <hr />, further checking it.(#3994)
|
181
|
-
if( ( !count
|
182
|
-
|| ( firstChild = children.getItem( 0 ) ) && firstChild.is && firstChild.is( 'br' ) )
|
183
|
-
&& enterBlock
|
184
|
-
&& range.moveToElementEditStart( enterBlock ) )
|
185
|
-
{
|
186
|
-
fixedBlock.remove();
|
187
|
-
range.select();
|
188
|
-
}
|
189
|
-
}
|
190
|
-
|
191
|
-
// Inserting the padding-br before body if it's preceded by an
|
192
|
-
// unexitable block.
|
193
|
-
var lastNode = body.getLast( CKEDITOR.dom.walker.whitespaces( true ) );
|
194
|
-
if ( lastNode && lastNode.getName && ( lastNode.getName() in nonExitableElementNames ) )
|
195
|
-
{
|
196
|
-
var paddingBlock = editor.document.createElement(
|
197
|
-
( CKEDITOR.env.ie && enterMode != CKEDITOR.ENTER_BR ) ?
|
198
|
-
'<br _cke_bogus="true" />' : 'br' );
|
199
|
-
body.append( paddingBlock );
|
200
|
-
}
|
201
|
-
}
|
202
|
-
|
203
|
-
CKEDITOR.plugins.add( 'wysiwygarea',
|
204
|
-
{
|
205
|
-
requires : [ 'editingblock' ],
|
206
|
-
|
207
|
-
init : function( editor )
|
208
|
-
{
|
209
|
-
var fixForBody = ( editor.config.enterMode != CKEDITOR.ENTER_BR )
|
210
|
-
? editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' : false;
|
211
|
-
|
212
|
-
editor.on( 'editingBlockReady', function()
|
213
|
-
{
|
214
|
-
var mainElement,
|
215
|
-
fieldset,
|
216
|
-
iframe,
|
217
|
-
isLoadingData,
|
218
|
-
isPendingFocus,
|
219
|
-
frameLoaded,
|
220
|
-
fireMode;
|
221
|
-
|
222
|
-
// Support for custom document.domain in IE.
|
223
|
-
var isCustomDomain = CKEDITOR.env.isCustomDomain();
|
224
|
-
|
225
|
-
// Creates the iframe that holds the editable document.
|
226
|
-
var createIFrame = function()
|
227
|
-
{
|
228
|
-
if ( iframe )
|
229
|
-
iframe.remove();
|
230
|
-
if ( fieldset )
|
231
|
-
fieldset.remove();
|
232
|
-
|
233
|
-
frameLoaded = 0;
|
234
|
-
// The document domain must be set within the src
|
235
|
-
// attribute;
|
236
|
-
// Defer the script execution until iframe
|
237
|
-
// has been added to main window, this is needed for some
|
238
|
-
// browsers which will begin to load the frame content
|
239
|
-
// prior to it's presentation in DOM.(#3894)
|
240
|
-
var src = 'void( '
|
241
|
-
+ ( CKEDITOR.env.gecko ? 'setTimeout' : '' ) + '( function(){' +
|
242
|
-
'document.open();' +
|
243
|
-
( CKEDITOR.env.ie && isCustomDomain ? 'document.domain="' + document.domain + '";' : '' ) +
|
244
|
-
'document.write( window.parent[ "_cke_htmlToLoad_' + editor.name + '" ] );' +
|
245
|
-
'document.close();' +
|
246
|
-
'window.parent[ "_cke_htmlToLoad_' + editor.name + '" ] = null;' +
|
247
|
-
'}'
|
248
|
-
+ ( CKEDITOR.env.gecko ? ', 0 )' : ')()' )
|
249
|
-
+ ' )';
|
250
|
-
|
251
|
-
// Loading via src attribute does not work in Opera.
|
252
|
-
if ( CKEDITOR.env.opera )
|
253
|
-
src = 'void(0);';
|
254
|
-
|
255
|
-
iframe = CKEDITOR.dom.element.createFromHtml( '<iframe' +
|
256
|
-
' style="width:100%;height:100%"' +
|
257
|
-
' frameBorder="0"' +
|
258
|
-
' tabIndex="-1"' +
|
259
|
-
' allowTransparency="true"' +
|
260
|
-
' src="javascript:' + encodeURIComponent( src ) + '"' +
|
261
|
-
'></iframe>' );
|
262
|
-
|
263
|
-
var accTitle = editor.lang.editorTitle.replace( '%1', editor.name );
|
264
|
-
|
265
|
-
if ( CKEDITOR.env.gecko )
|
266
|
-
{
|
267
|
-
// Double checking the iframe will be loaded properly(#4058).
|
268
|
-
iframe.on( 'load', function( ev )
|
269
|
-
{
|
270
|
-
ev.removeListener();
|
271
|
-
contentDomReady( iframe.$.contentWindow );
|
272
|
-
} );
|
273
|
-
|
274
|
-
// Accessibility attributes for Firefox.
|
275
|
-
mainElement.setAttributes(
|
276
|
-
{
|
277
|
-
role : 'region',
|
278
|
-
title : accTitle
|
279
|
-
} );
|
280
|
-
iframe.setAttributes(
|
281
|
-
{
|
282
|
-
role : 'region',
|
283
|
-
title : ' '
|
284
|
-
} );
|
285
|
-
}
|
286
|
-
else if ( CKEDITOR.env.webkit )
|
287
|
-
{
|
288
|
-
iframe.setAttribute( 'title', accTitle ); // Safari 4
|
289
|
-
iframe.setAttribute( 'name', accTitle ); // Safari 3
|
290
|
-
}
|
291
|
-
else if ( CKEDITOR.env.ie )
|
292
|
-
{
|
293
|
-
// Accessibility label for IE.
|
294
|
-
fieldset = CKEDITOR.dom.element.createFromHtml(
|
295
|
-
'<fieldset style="height:100%' +
|
296
|
-
( CKEDITOR.env.ie && CKEDITOR.env.quirks ? ';position:relative' : '' ) +
|
297
|
-
'">' +
|
298
|
-
'<legend style="display:block;width:0;height:0;overflow:hidden;' +
|
299
|
-
( CKEDITOR.env.ie && CKEDITOR.env.quirks ? 'position:absolute' : '' ) +
|
300
|
-
'">' +
|
301
|
-
CKEDITOR.tools.htmlEncode( accTitle ) +
|
302
|
-
'</legend>' +
|
303
|
-
'</fieldset>'
|
304
|
-
, CKEDITOR.document );
|
305
|
-
iframe.appendTo( fieldset );
|
306
|
-
fieldset.appendTo( mainElement );
|
307
|
-
}
|
308
|
-
|
309
|
-
if ( !CKEDITOR.env.ie )
|
310
|
-
mainElement.append( iframe );
|
311
|
-
};
|
312
|
-
|
313
|
-
// The script that is appended to the data being loaded. It
|
314
|
-
// enables editing, and makes some
|
315
|
-
var activationScript =
|
316
|
-
'<script id="cke_actscrpt" type="text/javascript">' +
|
317
|
-
'window.onload = function()' +
|
318
|
-
'{' +
|
319
|
-
// Call the temporary function for the editing
|
320
|
-
// boostrap.
|
321
|
-
'window.parent.CKEDITOR._["contentDomReady' + editor.name + '"]( window );' +
|
322
|
-
'}' +
|
323
|
-
'</script>';
|
324
|
-
|
325
|
-
// Editing area bootstrap code.
|
326
|
-
var contentDomReady = function( domWindow )
|
327
|
-
{
|
328
|
-
if ( frameLoaded )
|
329
|
-
return;
|
330
|
-
|
331
|
-
frameLoaded = 1;
|
332
|
-
|
333
|
-
var domDocument = domWindow.document,
|
334
|
-
body = domDocument.body;
|
335
|
-
|
336
|
-
// Remove this script from the DOM.
|
337
|
-
var script = domDocument.getElementById( "cke_actscrpt" );
|
338
|
-
script.parentNode.removeChild( script );
|
339
|
-
|
340
|
-
delete CKEDITOR._[ 'contentDomReady' + editor.name ];
|
341
|
-
|
342
|
-
body.spellcheck = !editor.config.disableNativeSpellChecker;
|
343
|
-
|
344
|
-
if ( CKEDITOR.env.ie )
|
345
|
-
{
|
346
|
-
// Don't display the focus border.
|
347
|
-
body.hideFocus = true;
|
348
|
-
|
349
|
-
// Disable and re-enable the body to avoid IE from
|
350
|
-
// taking the editing focus at startup. (#141 / #523)
|
351
|
-
body.disabled = true;
|
352
|
-
body.contentEditable = true;
|
353
|
-
body.removeAttribute( 'disabled' );
|
354
|
-
}
|
355
|
-
else
|
356
|
-
domDocument.designMode = 'on';
|
357
|
-
|
358
|
-
// IE, Opera and Safari may not support it and throw
|
359
|
-
// errors.
|
360
|
-
try { domDocument.execCommand( 'enableObjectResizing', false, !editor.config.disableObjectResizing ) ; } catch(e) {}
|
361
|
-
try { domDocument.execCommand( 'enableInlineTableEditing', false, !editor.config.disableNativeTableHandles ) ; } catch(e) {}
|
362
|
-
|
363
|
-
domWindow = editor.window = new CKEDITOR.dom.window( domWindow );
|
364
|
-
domDocument = editor.document = new CKEDITOR.dom.document( domDocument );
|
365
|
-
|
366
|
-
// Gecko need a key event to 'wake up' the editing
|
367
|
-
// ability when document is empty.(#3864)
|
368
|
-
var firstNode = domDocument.getBody().getFirst();
|
369
|
-
if ( CKEDITOR.env.gecko
|
370
|
-
&& firstNode && firstNode.is
|
371
|
-
&& firstNode.is( 'br' ) && firstNode.hasAttribute( '_moz_editor_bogus_node' ) )
|
372
|
-
{
|
373
|
-
var keyEventSimulate = domDocument.$.createEvent( "KeyEvents" );
|
374
|
-
keyEventSimulate.initKeyEvent( 'keypress', true, true, domWindow.$, false,
|
375
|
-
false, false, false, 0, 32 );
|
376
|
-
domDocument.$.dispatchEvent( keyEventSimulate );
|
377
|
-
var bogusText = domDocument.getBody().getFirst() ;
|
378
|
-
// Compensate the line maintaining <br> if enterMode is not block.
|
379
|
-
if ( editor.config.enterMode == CKEDITOR.ENTER_BR )
|
380
|
-
domDocument.createElement( 'br', { attributes: { '_moz_dirty' : "" } } )
|
381
|
-
.replace( bogusText );
|
382
|
-
else
|
383
|
-
bogusText.remove();
|
384
|
-
}
|
385
|
-
|
386
|
-
// Gecko/Webkit need some help when selecting control type elements. (#3448)
|
387
|
-
if ( !( CKEDITOR.env.ie || CKEDITOR.env.opera) )
|
388
|
-
{
|
389
|
-
domDocument.on( 'mousedown', function( ev )
|
390
|
-
{
|
391
|
-
var control = ev.data.getTarget();
|
392
|
-
if ( control.is( 'img', 'hr', 'input', 'textarea', 'select' ) )
|
393
|
-
editor.getSelection().selectElement( control );
|
394
|
-
} );
|
395
|
-
}
|
396
|
-
|
397
|
-
// Webkit: avoid from editing form control elements content.
|
398
|
-
if ( CKEDITOR.env.webkit )
|
399
|
-
{
|
400
|
-
// Prevent from tick checkbox/radiobox/select
|
401
|
-
domDocument.on( 'click', function( ev )
|
402
|
-
{
|
403
|
-
if ( ev.data.getTarget().is( 'input', 'select' ) )
|
404
|
-
ev.data.preventDefault();
|
405
|
-
} );
|
406
|
-
|
407
|
-
// Prevent from editig textfield/textarea value.
|
408
|
-
domDocument.on( 'mouseup', function( ev )
|
409
|
-
{
|
410
|
-
if ( ev.data.getTarget().is( 'input', 'textarea' ) )
|
411
|
-
ev.data.preventDefault();
|
412
|
-
} );
|
413
|
-
}
|
414
|
-
|
415
|
-
var focusTarget = ( CKEDITOR.env.ie || CKEDITOR.env.safari ) ?
|
416
|
-
domWindow : domDocument;
|
417
|
-
|
418
|
-
focusTarget.on( 'blur', function()
|
419
|
-
{
|
420
|
-
editor.focusManager.blur();
|
421
|
-
});
|
422
|
-
|
423
|
-
focusTarget.on( 'focus', function()
|
424
|
-
{
|
425
|
-
editor.focusManager.focus();
|
426
|
-
});
|
427
|
-
|
428
|
-
var keystrokeHandler = editor.keystrokeHandler;
|
429
|
-
if ( keystrokeHandler )
|
430
|
-
keystrokeHandler.attach( domDocument );
|
431
|
-
|
432
|
-
// Adds the document body as a context menu target.
|
433
|
-
if ( editor.contextMenu )
|
434
|
-
editor.contextMenu.addTarget( domDocument );
|
435
|
-
|
436
|
-
setTimeout( function()
|
437
|
-
{
|
438
|
-
editor.fire( 'contentDom' );
|
439
|
-
|
440
|
-
if ( fireMode )
|
441
|
-
{
|
442
|
-
editor.mode = 'wysiwyg';
|
443
|
-
editor.fire( 'mode' );
|
444
|
-
fireMode = false;
|
445
|
-
}
|
446
|
-
|
447
|
-
isLoadingData = false;
|
448
|
-
|
449
|
-
if ( isPendingFocus )
|
450
|
-
{
|
451
|
-
editor.focus();
|
452
|
-
isPendingFocus = false;
|
453
|
-
}
|
454
|
-
|
455
|
-
/*
|
456
|
-
* IE BUG: IE might have rendered the iframe with invisible contents.
|
457
|
-
* (#3623). Push some inconsequential CSS style changes to force IE to
|
458
|
-
* refresh it.
|
459
|
-
*
|
460
|
-
* Also, for some unknown reasons, short timeouts (e.g. 100ms) do not
|
461
|
-
* fix the problem. :(
|
462
|
-
*/
|
463
|
-
if ( CKEDITOR.env.ie )
|
464
|
-
{
|
465
|
-
setTimeout( function()
|
466
|
-
{
|
467
|
-
if ( editor.document )
|
468
|
-
{
|
469
|
-
var $body = editor.document.$.body;
|
470
|
-
$body.runtimeStyle.marginBottom = '0px';
|
471
|
-
$body.runtimeStyle.marginBottom = '';
|
472
|
-
}
|
473
|
-
}, 1000 );
|
474
|
-
}
|
475
|
-
},
|
476
|
-
0 );
|
477
|
-
};
|
478
|
-
|
479
|
-
editor.addMode( 'wysiwyg',
|
480
|
-
{
|
481
|
-
load : function( holderElement, data, isSnapshot )
|
482
|
-
{
|
483
|
-
mainElement = holderElement;
|
484
|
-
|
485
|
-
if ( CKEDITOR.env.ie && CKEDITOR.env.quirks )
|
486
|
-
holderElement.setStyle( 'position', 'relative' );
|
487
|
-
|
488
|
-
// The editor data "may be dirty" after this
|
489
|
-
// point.
|
490
|
-
editor.mayBeDirty = true;
|
491
|
-
|
492
|
-
fireMode = true;
|
493
|
-
|
494
|
-
if ( isSnapshot )
|
495
|
-
this.loadSnapshotData( data );
|
496
|
-
else
|
497
|
-
this.loadData( data );
|
498
|
-
},
|
499
|
-
|
500
|
-
loadData : function( data )
|
501
|
-
{
|
502
|
-
isLoadingData = true;
|
503
|
-
|
504
|
-
// Get the HTML version of the data.
|
505
|
-
if ( editor.dataProcessor )
|
506
|
-
{
|
507
|
-
data = editor.dataProcessor.toHtml( data, fixForBody );
|
508
|
-
}
|
509
|
-
|
510
|
-
data =
|
511
|
-
editor.config.docType +
|
512
|
-
'<html dir="' + editor.config.contentsLangDirection + '">' +
|
513
|
-
'<head>' +
|
514
|
-
'<link href="' + editor.config.contentsCss + '" type="text/css" rel="stylesheet" _fcktemp="true"/>' +
|
515
|
-
'<style type="text/css" _fcktemp="true">' +
|
516
|
-
editor._.styles.join( '\n' ) +
|
517
|
-
'</style>'+
|
518
|
-
'</head>' +
|
519
|
-
'<body>' +
|
520
|
-
data +
|
521
|
-
'</body>' +
|
522
|
-
'</html>' +
|
523
|
-
activationScript;
|
524
|
-
|
525
|
-
window[ '_cke_htmlToLoad_' + editor.name ] = data;
|
526
|
-
CKEDITOR._[ 'contentDomReady' + editor.name ] = contentDomReady;
|
527
|
-
createIFrame();
|
528
|
-
|
529
|
-
// Opera must use the old method for loading contents.
|
530
|
-
if ( CKEDITOR.env.opera )
|
531
|
-
{
|
532
|
-
var doc = iframe.$.contentWindow.document;
|
533
|
-
doc.open();
|
534
|
-
doc.write( data );
|
535
|
-
doc.close();
|
536
|
-
}
|
537
|
-
},
|
538
|
-
|
539
|
-
getData : function()
|
540
|
-
{
|
541
|
-
var data = iframe.getFrameDocument().getBody().getHtml();
|
542
|
-
|
543
|
-
if ( editor.dataProcessor )
|
544
|
-
data = editor.dataProcessor.toDataFormat( data, fixForBody );
|
545
|
-
|
546
|
-
// Strip the last blank paragraph within document.
|
547
|
-
if ( editor.config.ignoreEmptyParagraph )
|
548
|
-
data = data.replace( emptyParagraphRegexp, '' );
|
549
|
-
|
550
|
-
return data;
|
551
|
-
},
|
552
|
-
|
553
|
-
getSnapshotData : function()
|
554
|
-
{
|
555
|
-
return iframe.getFrameDocument().getBody().getHtml();
|
556
|
-
},
|
557
|
-
|
558
|
-
loadSnapshotData : function( data )
|
559
|
-
{
|
560
|
-
iframe.getFrameDocument().getBody().setHtml( data );
|
561
|
-
},
|
562
|
-
|
563
|
-
unload : function( holderElement )
|
564
|
-
{
|
565
|
-
editor.window = editor.document = iframe = mainElement = isPendingFocus = null;
|
566
|
-
|
567
|
-
editor.fire( 'contentDomUnload' );
|
568
|
-
},
|
569
|
-
|
570
|
-
focus : function()
|
571
|
-
{
|
572
|
-
if ( isLoadingData )
|
573
|
-
isPendingFocus = true;
|
574
|
-
else if ( editor.window )
|
575
|
-
{
|
576
|
-
editor.window.focus();
|
577
|
-
editor.selectionChange();
|
578
|
-
}
|
579
|
-
}
|
580
|
-
});
|
581
|
-
|
582
|
-
editor.on( 'insertHtml', onInsertHtml, null, null, 20 );
|
583
|
-
editor.on( 'insertElement', onInsertElement, null, null, 20 );
|
584
|
-
// Auto fixing on some document structure weakness to enhance usabilities. (#3190 and #3189)
|
585
|
-
editor.on( 'selectionChange', onSelectionChangeFixBody, null, null, 1 );
|
586
|
-
});
|
587
|
-
}
|
588
|
-
});
|
589
|
-
})();
|
590
|
-
|
591
|
-
/**
|
592
|
-
* Disables the ability of resize objects (image and tables) in the editing
|
593
|
-
* area.
|
594
|
-
* @type Boolean
|
595
|
-
* @default false
|
596
|
-
* @example
|
597
|
-
* config.disableObjectResizing = true;
|
598
|
-
*/
|
599
|
-
CKEDITOR.config.disableObjectResizing = false;
|
600
|
-
|
601
|
-
/**
|
602
|
-
* Disables the "table tools" offered natively by the browser (currently
|
603
|
-
* Firefox only) to make quick table editing operations, like adding or
|
604
|
-
* deleting rows and columns.
|
605
|
-
* @type Boolean
|
606
|
-
* @default true
|
607
|
-
* @example
|
608
|
-
* config.disableNativeTableHandles = false;
|
609
|
-
*/
|
610
|
-
CKEDITOR.config.disableNativeTableHandles = true;
|
611
|
-
|
612
|
-
/**
|
613
|
-
* Disables the built-in spell checker while typing natively available in the
|
614
|
-
* browser (currently Firefox and Safari only).<br /><br />
|
615
|
-
*
|
616
|
-
* Even if word suggestions will not appear in the CKEditor context menu, this
|
617
|
-
* feature is useful to help quickly identifying misspelled words.<br /><br />
|
618
|
-
*
|
619
|
-
* This setting is currently compatible with Firefox only due to limitations in
|
620
|
-
* other browsers.
|
621
|
-
* @type Boolean
|
622
|
-
* @default true
|
623
|
-
* @example
|
624
|
-
* config.disableNativeSpellChecker = false;
|
625
|
-
*/
|
626
|
-
CKEDITOR.config.disableNativeSpellChecker = true;
|
627
|
-
|
628
|
-
/**
|
629
|
-
* Whether the editor must output an empty value ("") if it's contents is made
|
630
|
-
* by an empty paragraph only.
|
631
|
-
* @type Boolean
|
632
|
-
* @default true
|
633
|
-
* @example
|
634
|
-
* config.ignoreEmptyParagraph = false;
|
635
|
-
*/
|
636
|
-
CKEDITOR.config.ignoreEmptyParagraph = true;
|