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,35 +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 Horizontal Rule plugin.
|
8
|
-
*/
|
9
|
-
|
10
|
-
(function()
|
11
|
-
{
|
12
|
-
var horizontalruleCmd =
|
13
|
-
{
|
14
|
-
exec : function( editor )
|
15
|
-
{
|
16
|
-
editor.insertElement( editor.document.createElement( 'hr' ) );
|
17
|
-
}
|
18
|
-
};
|
19
|
-
|
20
|
-
var pluginName = 'horizontalrule';
|
21
|
-
|
22
|
-
// Register a plugin named "horizontalrule".
|
23
|
-
CKEDITOR.plugins.add( pluginName,
|
24
|
-
{
|
25
|
-
init : function( editor )
|
26
|
-
{
|
27
|
-
editor.addCommand( pluginName, horizontalruleCmd );
|
28
|
-
editor.ui.addButton( 'HorizontalRule',
|
29
|
-
{
|
30
|
-
label : editor.lang.horizontalrule,
|
31
|
-
command : pluginName
|
32
|
-
});
|
33
|
-
}
|
34
|
-
});
|
35
|
-
})();
|
@@ -1,373 +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
|
-
(function()
|
7
|
-
{
|
8
|
-
// Regex to scan for at the end of blocks, which are actually placeholders.
|
9
|
-
// Safari transforms the to \xa0. (#4172)
|
10
|
-
var tailNbspRegex = /^[\t\r\n ]*(?: |\xa0)$/;
|
11
|
-
|
12
|
-
var protectedSourceMarker = '{cke_protected}';
|
13
|
-
|
14
|
-
function trimFillers( block, fromSource )
|
15
|
-
{
|
16
|
-
// If the current node is a block, and if we're converting from source or
|
17
|
-
// we're not in IE then search for and remove any tailing BR node.
|
18
|
-
//
|
19
|
-
// Also, any at the end of blocks are fillers, remove them as well.
|
20
|
-
// (#2886)
|
21
|
-
var children = block.children;
|
22
|
-
var lastChild = children[ children.length - 1 ];
|
23
|
-
if ( lastChild )
|
24
|
-
{
|
25
|
-
if ( ( fromSource || !CKEDITOR.env.ie ) && lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.name == 'br' )
|
26
|
-
children.pop();
|
27
|
-
if ( lastChild.type == CKEDITOR.NODE_TEXT && tailNbspRegex.test( lastChild.value ) )
|
28
|
-
children.pop();
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
function blockNeedsExtension( block )
|
33
|
-
{
|
34
|
-
if ( block.children.length < 1 )
|
35
|
-
return true;
|
36
|
-
|
37
|
-
var lastChild = block.children[ block.children.length - 1 ];
|
38
|
-
return lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.name == 'br';
|
39
|
-
}
|
40
|
-
|
41
|
-
function extendBlockForDisplay( block )
|
42
|
-
{
|
43
|
-
trimFillers( block, true );
|
44
|
-
|
45
|
-
if ( blockNeedsExtension( block ) )
|
46
|
-
{
|
47
|
-
if ( CKEDITOR.env.ie )
|
48
|
-
block.add( new CKEDITOR.htmlParser.text( '\xa0' ) );
|
49
|
-
else
|
50
|
-
block.add( new CKEDITOR.htmlParser.element( 'br', {} ) );
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
function extendBlockForOutput( block )
|
55
|
-
{
|
56
|
-
trimFillers( block );
|
57
|
-
|
58
|
-
if ( blockNeedsExtension( block ) )
|
59
|
-
block.add( new CKEDITOR.htmlParser.text( '\xa0' ) );
|
60
|
-
}
|
61
|
-
|
62
|
-
var dtd = CKEDITOR.dtd;
|
63
|
-
|
64
|
-
// Find out the list of block-like tags that can contain <br>.
|
65
|
-
var blockLikeTags = CKEDITOR.tools.extend( {}, dtd.$block, dtd.$listItem, dtd.$tableContent );
|
66
|
-
for ( var i in blockLikeTags )
|
67
|
-
{
|
68
|
-
if ( ! ( 'br' in dtd[i] ) )
|
69
|
-
delete blockLikeTags[i];
|
70
|
-
}
|
71
|
-
// We just avoid filler in <pre> right now.
|
72
|
-
// TODO: Support filler for <pre>, line break is also occupy line height.
|
73
|
-
delete blockLikeTags.pre;
|
74
|
-
var defaultDataFilterRules =
|
75
|
-
{
|
76
|
-
attributeNames :
|
77
|
-
[
|
78
|
-
// Event attributes (onXYZ) must not be directly set. They can become
|
79
|
-
// active in the editing area (IE|WebKit).
|
80
|
-
[ ( /^on/ ), '_cke_pa_on' ]
|
81
|
-
]
|
82
|
-
};
|
83
|
-
|
84
|
-
var defaultDataBlockFilterRules = { elements : {} };
|
85
|
-
|
86
|
-
for ( i in blockLikeTags )
|
87
|
-
defaultDataBlockFilterRules.elements[ i ] = extendBlockForDisplay;
|
88
|
-
|
89
|
-
var defaultHtmlFilterRules =
|
90
|
-
{
|
91
|
-
elementNames :
|
92
|
-
[
|
93
|
-
// Remove the "cke:" namespace prefix.
|
94
|
-
[ ( /^cke:/ ), '' ],
|
95
|
-
|
96
|
-
// Ignore <?xml:namespace> tags.
|
97
|
-
[ ( /^\?xml:namespace$/ ), '' ]
|
98
|
-
],
|
99
|
-
|
100
|
-
attributeNames :
|
101
|
-
[
|
102
|
-
// Attributes saved for changes and protected attributes.
|
103
|
-
[ ( /^_cke_(saved|pa)_/ ), '' ],
|
104
|
-
|
105
|
-
// All "_cke" attributes are to be ignored.
|
106
|
-
[ ( /^_cke.*/ ), '' ]
|
107
|
-
],
|
108
|
-
|
109
|
-
elements :
|
110
|
-
{
|
111
|
-
$ : function( element )
|
112
|
-
{
|
113
|
-
// Remove duplicated attributes - #3789.
|
114
|
-
var attribs = element.attributes;
|
115
|
-
|
116
|
-
if ( attribs )
|
117
|
-
{
|
118
|
-
var attributeNames = [ 'name', 'href', 'src' ],
|
119
|
-
savedAttributeName;
|
120
|
-
for ( var i = 0 ; i < attributeNames.length ; i++ )
|
121
|
-
{
|
122
|
-
savedAttributeName = '_cke_saved_' + attributeNames[ i ];
|
123
|
-
savedAttributeName in attribs && ( delete attribs[ attributeNames[ i ] ] );
|
124
|
-
}
|
125
|
-
}
|
126
|
-
},
|
127
|
-
|
128
|
-
embed : function( element )
|
129
|
-
{
|
130
|
-
var parent = element.parent;
|
131
|
-
|
132
|
-
// If the <embed> is child of a <object>, copy the width
|
133
|
-
// and height attributes from it.
|
134
|
-
if ( parent && parent.name == 'object' )
|
135
|
-
{
|
136
|
-
var parentWidth = parent.attributes.width,
|
137
|
-
parentHeight = parent.attributes.height;
|
138
|
-
parentWidth && ( element.attributes.width = parentWidth );
|
139
|
-
parentHeight && ( element.attributes.height = parentHeight );
|
140
|
-
}
|
141
|
-
},
|
142
|
-
// Restore param elements into self-closing.
|
143
|
-
param : function( param )
|
144
|
-
{
|
145
|
-
param.children = [];
|
146
|
-
param.isEmpty = true;
|
147
|
-
return param;
|
148
|
-
},
|
149
|
-
|
150
|
-
// Remove empty link but not empty anchor.(#3829)
|
151
|
-
a : function( element )
|
152
|
-
{
|
153
|
-
if ( !( element.children.length ||
|
154
|
-
element.attributes.name ||
|
155
|
-
element.attributes._cke_saved_name ) )
|
156
|
-
{
|
157
|
-
return false;
|
158
|
-
}
|
159
|
-
}
|
160
|
-
},
|
161
|
-
|
162
|
-
attributes :
|
163
|
-
{
|
164
|
-
'class' : function( value, element )
|
165
|
-
{
|
166
|
-
// Remove all class names starting with "cke_".
|
167
|
-
return CKEDITOR.tools.ltrim( value.replace( /(?:^|\s+)cke_[^\s]*/g, '' ) ) || false;
|
168
|
-
}
|
169
|
-
},
|
170
|
-
|
171
|
-
comment : function( contents )
|
172
|
-
{
|
173
|
-
if ( contents.substr( 0, protectedSourceMarker.length ) == protectedSourceMarker )
|
174
|
-
return new CKEDITOR.htmlParser.cdata( decodeURIComponent( contents.substr( protectedSourceMarker.length ) ) );
|
175
|
-
|
176
|
-
return contents;
|
177
|
-
}
|
178
|
-
};
|
179
|
-
|
180
|
-
var defaultHtmlBlockFilterRules = { elements : {} };
|
181
|
-
|
182
|
-
for ( i in blockLikeTags )
|
183
|
-
defaultHtmlBlockFilterRules.elements[ i ] = extendBlockForOutput;
|
184
|
-
|
185
|
-
if ( CKEDITOR.env.ie )
|
186
|
-
{
|
187
|
-
// IE outputs style attribute in capital letters. We should convert
|
188
|
-
// them back to lower case.
|
189
|
-
defaultHtmlFilterRules.attributes.style = function( value, element )
|
190
|
-
{
|
191
|
-
return value.toLowerCase();
|
192
|
-
};
|
193
|
-
}
|
194
|
-
|
195
|
-
var protectAttributeRegex = /<(?:a|area|img|input).*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi;
|
196
|
-
|
197
|
-
function protectAttributes( html )
|
198
|
-
{
|
199
|
-
return html.replace( protectAttributeRegex, '$& _cke_saved_$1' );
|
200
|
-
}
|
201
|
-
|
202
|
-
var protectStyleTagsRegex = /<(style)(?=[ >])[^>]*>[^<]*<\/\1>/gi;
|
203
|
-
var encodedTagsRegex = /<cke:encoded>([^<]*)<\/cke:encoded>/gi;
|
204
|
-
var protectElementNamesRegex = /(<\/?)((?:object|embed|param).*?>)/gi;
|
205
|
-
var protectSelfClosingRegex = /<cke:param(.*?)\/>/gi;
|
206
|
-
|
207
|
-
function protectStyleTagsMatch( match )
|
208
|
-
{
|
209
|
-
return '<cke:encoded>' + encodeURIComponent( match ) + '</cke:encoded>';
|
210
|
-
}
|
211
|
-
|
212
|
-
function protectStyleTags( html )
|
213
|
-
{
|
214
|
-
return html.replace( protectStyleTagsRegex, protectStyleTagsMatch );
|
215
|
-
}
|
216
|
-
function protectElementsNames( html )
|
217
|
-
{
|
218
|
-
return html.replace( protectElementNamesRegex, '$1cke:$2');
|
219
|
-
}
|
220
|
-
function protectSelfClosingElements( html )
|
221
|
-
{
|
222
|
-
return html.replace( protectSelfClosingRegex, '<cke:param$1></cke:param>' );
|
223
|
-
}
|
224
|
-
|
225
|
-
function unprotectEncodedTagsMatch( match, encoded )
|
226
|
-
{
|
227
|
-
return decodeURIComponent( encoded );
|
228
|
-
}
|
229
|
-
|
230
|
-
function unprotectEncodedTags( html )
|
231
|
-
{
|
232
|
-
return html.replace( encodedTagsRegex, unprotectEncodedTagsMatch );
|
233
|
-
}
|
234
|
-
|
235
|
-
function protectSource( data, protectRegexes )
|
236
|
-
{
|
237
|
-
var protectedHtml = [],
|
238
|
-
tempRegex = /<\!--\{cke_temp\}(\d*?)-->/g;
|
239
|
-
var regexes =
|
240
|
-
[
|
241
|
-
// First of any other protection, we must protect all comments
|
242
|
-
// to avoid loosing them (of course, IE related).
|
243
|
-
(/<!--[\s\S]*?-->/g),
|
244
|
-
|
245
|
-
// Script tags will also be forced to be protected, otherwise
|
246
|
-
// IE will execute them.
|
247
|
-
/<script[\s\S]*?<\/script>/gi,
|
248
|
-
|
249
|
-
// <noscript> tags (get lost in IE and messed up in FF).
|
250
|
-
/<noscript[\s\S]*?<\/noscript>/gi
|
251
|
-
]
|
252
|
-
.concat( protectRegexes );
|
253
|
-
|
254
|
-
for ( var i = 0 ; i < regexes.length ; i++ )
|
255
|
-
{
|
256
|
-
data = data.replace( regexes[i], function( match )
|
257
|
-
{
|
258
|
-
match = match.replace( tempRegex, // There could be protected source inside another one. (#3869).
|
259
|
-
function( $, id )
|
260
|
-
{
|
261
|
-
return protectedHtml[ id ];
|
262
|
-
}
|
263
|
-
);
|
264
|
-
return '<!--{cke_temp}' + ( protectedHtml.push( match ) - 1 ) + '-->';
|
265
|
-
});
|
266
|
-
}
|
267
|
-
data = data.replace( tempRegex, function( $, id )
|
268
|
-
{
|
269
|
-
return '<!--' + protectedSourceMarker +
|
270
|
-
encodeURIComponent( protectedHtml[ id ] ).replace( /--/g, '%2D%2D' ) +
|
271
|
-
'-->';
|
272
|
-
}
|
273
|
-
);
|
274
|
-
return data;
|
275
|
-
}
|
276
|
-
|
277
|
-
CKEDITOR.plugins.add( 'htmldataprocessor',
|
278
|
-
{
|
279
|
-
requires : [ 'htmlwriter' ],
|
280
|
-
|
281
|
-
init : function( editor )
|
282
|
-
{
|
283
|
-
var dataProcessor = editor.dataProcessor = new CKEDITOR.htmlDataProcessor( editor );
|
284
|
-
|
285
|
-
dataProcessor.writer.forceSimpleAmpersand = editor.config.forceSimpleAmpersand;
|
286
|
-
|
287
|
-
dataProcessor.dataFilter.addRules( defaultDataFilterRules );
|
288
|
-
dataProcessor.dataFilter.addRules( defaultDataBlockFilterRules );
|
289
|
-
dataProcessor.htmlFilter.addRules( defaultHtmlFilterRules );
|
290
|
-
dataProcessor.htmlFilter.addRules( defaultHtmlBlockFilterRules );
|
291
|
-
}
|
292
|
-
});
|
293
|
-
|
294
|
-
CKEDITOR.htmlDataProcessor = function( editor )
|
295
|
-
{
|
296
|
-
this.editor = editor;
|
297
|
-
|
298
|
-
this.writer = new CKEDITOR.htmlWriter();
|
299
|
-
this.dataFilter = new CKEDITOR.htmlParser.filter();
|
300
|
-
this.htmlFilter = new CKEDITOR.htmlParser.filter();
|
301
|
-
};
|
302
|
-
|
303
|
-
CKEDITOR.htmlDataProcessor.prototype =
|
304
|
-
{
|
305
|
-
toHtml : function( data, fixForBody )
|
306
|
-
{
|
307
|
-
// The source data is already HTML, but we need to clean
|
308
|
-
// it up and apply the filter.
|
309
|
-
|
310
|
-
data = protectSource( data, this.editor.config.protectedSource );
|
311
|
-
|
312
|
-
// Before anything, we must protect the URL attributes as the
|
313
|
-
// browser may changing them when setting the innerHTML later in
|
314
|
-
// the code.
|
315
|
-
data = protectAttributes( data );
|
316
|
-
|
317
|
-
// IE remvoes style tags from innerHTML. (#3710).
|
318
|
-
if ( CKEDITOR.env.ie )
|
319
|
-
data = protectStyleTags( data );
|
320
|
-
|
321
|
-
// Certain elements has problem to go through DOM operation, protect
|
322
|
-
// them by prefixing 'cke' namespace.(#3591)
|
323
|
-
data = protectElementsNames( data );
|
324
|
-
|
325
|
-
// All none-IE browsers ignore self-closed custom elements,
|
326
|
-
// protecting them into open-close.(#3591)
|
327
|
-
data = protectSelfClosingElements( data );
|
328
|
-
|
329
|
-
// Call the browser to help us fixing a possibly invalid HTML
|
330
|
-
// structure.
|
331
|
-
var div = document.createElement( 'div' );
|
332
|
-
// Add fake character to workaround IE comments bug. (#3801)
|
333
|
-
div.innerHTML = 'a' + data;
|
334
|
-
data = div.innerHTML.substr( 1 );
|
335
|
-
|
336
|
-
if ( CKEDITOR.env.ie )
|
337
|
-
data = unprotectEncodedTags( data );
|
338
|
-
|
339
|
-
// Now use our parser to make further fixes to the structure, as
|
340
|
-
// well as apply the filter.
|
341
|
-
var fragment = CKEDITOR.htmlParser.fragment.fromHtml( data, fixForBody ),
|
342
|
-
writer = new CKEDITOR.htmlParser.basicWriter();
|
343
|
-
|
344
|
-
fragment.writeHtml( writer, this.dataFilter );
|
345
|
-
|
346
|
-
return writer.getHtml( true );
|
347
|
-
},
|
348
|
-
|
349
|
-
toDataFormat : function( html, fixForBody )
|
350
|
-
{
|
351
|
-
var writer = this.writer,
|
352
|
-
fragment = CKEDITOR.htmlParser.fragment.fromHtml( html, fixForBody );
|
353
|
-
|
354
|
-
writer.reset();
|
355
|
-
|
356
|
-
fragment.writeHtml( writer, this.htmlFilter );
|
357
|
-
|
358
|
-
return writer.getHtml( true );
|
359
|
-
}
|
360
|
-
};
|
361
|
-
})();
|
362
|
-
|
363
|
-
/**
|
364
|
-
* Whether to force using "&" instead of "&amp;" in elements attributes
|
365
|
-
* values. It's not recommended to change this setting for compliance with the
|
366
|
-
* W3C XHTML 1.0 standards
|
367
|
-
* (<a href="http://www.w3.org/TR/xhtml1/#C_12">C.12, XHTML 1.0</a>).
|
368
|
-
* @type Boolean
|
369
|
-
* @default false
|
370
|
-
* @example
|
371
|
-
* config.forceSimpleAmpersand = false;
|
372
|
-
*/
|
373
|
-
CKEDITOR.config.forceSimpleAmpersand = false;
|
@@ -1,289 +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.plugins.add( 'htmlwriter' );
|
7
|
-
|
8
|
-
/**
|
9
|
-
* Class used to write HTML data.
|
10
|
-
* @constructor
|
11
|
-
* @example
|
12
|
-
* var writer = new CKEDITOR.htmlWriter();
|
13
|
-
* writer.openTag( 'p' );
|
14
|
-
* writer.attribute( 'class', 'MyClass' );
|
15
|
-
* writer.openTagClose( 'p' );
|
16
|
-
* writer.text( 'Hello' );
|
17
|
-
* writer.closeTag( 'p' );
|
18
|
-
* alert( writer.getHtml() ); "<p class="MyClass">Hello</p>"
|
19
|
-
*/
|
20
|
-
CKEDITOR.htmlWriter = CKEDITOR.tools.createClass(
|
21
|
-
{
|
22
|
-
base : CKEDITOR.htmlParser.basicWriter,
|
23
|
-
|
24
|
-
$ : function()
|
25
|
-
{
|
26
|
-
// Call the base contructor.
|
27
|
-
this.base();
|
28
|
-
|
29
|
-
/**
|
30
|
-
* The characters to be used for each identation step.
|
31
|
-
* @type String
|
32
|
-
* @default "\t" (tab)
|
33
|
-
* @example
|
34
|
-
* // Use two spaces for indentation.
|
35
|
-
* editorInstance.dataProcessor.writer.indentationChars = ' ';
|
36
|
-
*/
|
37
|
-
this.indentationChars = '\t';
|
38
|
-
|
39
|
-
/**
|
40
|
-
* The characters to be used to close "self-closing" elements, like "br" or
|
41
|
-
* "img".
|
42
|
-
* @type String
|
43
|
-
* @default " />"
|
44
|
-
* @example
|
45
|
-
* // Use HTML4 notation for self-closing elements.
|
46
|
-
* editorInstance.dataProcessor.writer.selfClosingEnd = '>';
|
47
|
-
*/
|
48
|
-
this.selfClosingEnd = ' />';
|
49
|
-
|
50
|
-
/**
|
51
|
-
* The characters to be used for line breaks.
|
52
|
-
* @type String
|
53
|
-
* @default "\n" (LF)
|
54
|
-
* @example
|
55
|
-
* // Use CRLF for line breaks.
|
56
|
-
* editorInstance.dataProcessor.writer.lineBreakChars = '\r\n';
|
57
|
-
*/
|
58
|
-
this.lineBreakChars = '\n';
|
59
|
-
|
60
|
-
this.forceSimpleAmpersand = false;
|
61
|
-
|
62
|
-
this.sortAttributes = true;
|
63
|
-
|
64
|
-
this._.indent = false;
|
65
|
-
this._.indentation = '';
|
66
|
-
this._.rules = {};
|
67
|
-
|
68
|
-
var dtd = CKEDITOR.dtd;
|
69
|
-
|
70
|
-
for ( var e in CKEDITOR.tools.extend( {}, dtd.$block, dtd.$listItem, dtd.$tableContent ) )
|
71
|
-
{
|
72
|
-
this.setRules( e,
|
73
|
-
{
|
74
|
-
indent : true,
|
75
|
-
breakBeforeOpen : true,
|
76
|
-
breakAfterOpen : true,
|
77
|
-
breakBeforeClose : !dtd[ e ][ '#' ],
|
78
|
-
breakAfterClose : true
|
79
|
-
});
|
80
|
-
}
|
81
|
-
this.setRules( 'br',
|
82
|
-
{
|
83
|
-
breakAfterOpen : true
|
84
|
-
});
|
85
|
-
// Disable indentation on <pre>.
|
86
|
-
this.setRules( 'pre',
|
87
|
-
{
|
88
|
-
indent: false
|
89
|
-
} );
|
90
|
-
},
|
91
|
-
|
92
|
-
proto :
|
93
|
-
{
|
94
|
-
/**
|
95
|
-
* Writes the tag opening part for a opener tag.
|
96
|
-
* @param {String} tagName The element name for this tag.
|
97
|
-
* @param {Object} attributes The attributes defined for this tag. The
|
98
|
-
* attributes could be used to inspect the tag.
|
99
|
-
* @example
|
100
|
-
* // Writes "<p".
|
101
|
-
* writer.openTag( 'p', { class : 'MyClass', id : 'MyId' } );
|
102
|
-
*/
|
103
|
-
openTag : function( tagName, attributes )
|
104
|
-
{
|
105
|
-
var rules = this._.rules[ tagName ];
|
106
|
-
|
107
|
-
if ( this._.indent )
|
108
|
-
this.indentation();
|
109
|
-
// Do not break if indenting.
|
110
|
-
else if ( rules && rules.breakBeforeOpen )
|
111
|
-
{
|
112
|
-
this.lineBreak();
|
113
|
-
this.indentation();
|
114
|
-
}
|
115
|
-
|
116
|
-
this._.output.push( '<', tagName );
|
117
|
-
},
|
118
|
-
|
119
|
-
/**
|
120
|
-
* Writes the tag closing part for a opener tag.
|
121
|
-
* @param {String} tagName The element name for this tag.
|
122
|
-
* @param {Boolean} isSelfClose Indicates that this is a self-closing tag,
|
123
|
-
* like "br" or "img".
|
124
|
-
* @example
|
125
|
-
* // Writes ">".
|
126
|
-
* writer.openTagClose( 'p', false );
|
127
|
-
* @example
|
128
|
-
* // Writes " />".
|
129
|
-
* writer.openTagClose( 'br', true );
|
130
|
-
*/
|
131
|
-
openTagClose : function( tagName, isSelfClose )
|
132
|
-
{
|
133
|
-
var rules = this._.rules[ tagName ];
|
134
|
-
|
135
|
-
if ( isSelfClose )
|
136
|
-
this._.output.push( this.selfClosingEnd );
|
137
|
-
else
|
138
|
-
{
|
139
|
-
this._.output.push( '>' );
|
140
|
-
|
141
|
-
if ( rules && rules.indent )
|
142
|
-
this._.indentation += this.indentationChars;
|
143
|
-
}
|
144
|
-
|
145
|
-
if ( rules && rules.breakAfterOpen )
|
146
|
-
this.lineBreak();
|
147
|
-
},
|
148
|
-
|
149
|
-
/**
|
150
|
-
* Writes an attribute. This function should be called after opening the
|
151
|
-
* tag with {@link #openTagClose}.
|
152
|
-
* @param {String} attName The attribute name.
|
153
|
-
* @param {String} attValue The attribute value.
|
154
|
-
* @example
|
155
|
-
* // Writes ' class="MyClass"'.
|
156
|
-
* writer.attribute( 'class', 'MyClass' );
|
157
|
-
*/
|
158
|
-
attribute : function( attName, attValue )
|
159
|
-
{
|
160
|
-
if ( this.forceSimpleAmpersand )
|
161
|
-
attValue = attValue.replace( /&/, '&' );
|
162
|
-
|
163
|
-
this._.output.push( ' ', attName, '="', attValue, '"' );
|
164
|
-
},
|
165
|
-
|
166
|
-
/**
|
167
|
-
* Writes a closer tag.
|
168
|
-
* @param {String} tagName The element name for this tag.
|
169
|
-
* @example
|
170
|
-
* // Writes "</p>".
|
171
|
-
* writer.closeTag( 'p' );
|
172
|
-
*/
|
173
|
-
closeTag : function( tagName )
|
174
|
-
{
|
175
|
-
var rules = this._.rules[ tagName ];
|
176
|
-
|
177
|
-
if ( rules && rules.indent )
|
178
|
-
this._.indentation = this._.indentation.substr( this.indentationChars.length );
|
179
|
-
|
180
|
-
if ( this._.indent )
|
181
|
-
this.indentation();
|
182
|
-
// Do not break if indenting.
|
183
|
-
else if ( rules && rules.breakBeforeClose )
|
184
|
-
{
|
185
|
-
this.lineBreak();
|
186
|
-
this.indentation();
|
187
|
-
}
|
188
|
-
|
189
|
-
this._.output.push( '</', tagName, '>' );
|
190
|
-
|
191
|
-
if ( rules && rules.breakAfterClose )
|
192
|
-
this.lineBreak();
|
193
|
-
},
|
194
|
-
|
195
|
-
/**
|
196
|
-
* Writes text.
|
197
|
-
* @param {String} text The text value
|
198
|
-
* @example
|
199
|
-
* // Writes "Hello Word".
|
200
|
-
* writer.text( 'Hello Word' );
|
201
|
-
*/
|
202
|
-
text : function( text )
|
203
|
-
{
|
204
|
-
if ( this._.indent )
|
205
|
-
{
|
206
|
-
this.indentation();
|
207
|
-
text = CKEDITOR.tools.ltrim( text );
|
208
|
-
}
|
209
|
-
|
210
|
-
this._.output.push( text );
|
211
|
-
},
|
212
|
-
|
213
|
-
/**
|
214
|
-
* Writes a comment.
|
215
|
-
* @param {String} comment The comment text.
|
216
|
-
* @example
|
217
|
-
* // Writes "<!-- My comment -->".
|
218
|
-
* writer.comment( ' My comment ' );
|
219
|
-
*/
|
220
|
-
comment : function( comment )
|
221
|
-
{
|
222
|
-
if ( this._.indent )
|
223
|
-
this.indentation();
|
224
|
-
|
225
|
-
this._.output.push( '<!--', comment, '-->' );
|
226
|
-
},
|
227
|
-
|
228
|
-
/**
|
229
|
-
* Writes a line break. It uses the {@link #lineBreakChars} property for it.
|
230
|
-
* @example
|
231
|
-
* // Writes "\n" (e.g.).
|
232
|
-
* writer.lineBreak();
|
233
|
-
*/
|
234
|
-
lineBreak : function()
|
235
|
-
{
|
236
|
-
if ( this._.output.length > 0 )
|
237
|
-
this._.output.push( this.lineBreakChars );
|
238
|
-
this._.indent = true;
|
239
|
-
},
|
240
|
-
|
241
|
-
/**
|
242
|
-
* Writes the current indentation chars. It uses the
|
243
|
-
* {@link #indentationChars} property, repeating it for the current
|
244
|
-
* indentation steps.
|
245
|
-
* @example
|
246
|
-
* // Writes "\t" (e.g.).
|
247
|
-
* writer.indentation();
|
248
|
-
*/
|
249
|
-
indentation : function()
|
250
|
-
{
|
251
|
-
this._.output.push( this._.indentation );
|
252
|
-
this._.indent = false;
|
253
|
-
},
|
254
|
-
|
255
|
-
/**
|
256
|
-
* Sets formatting rules for a give element. The possible rules are:
|
257
|
-
* <ul>
|
258
|
-
* <li><b>indent</b>: indent the element contents.</li>
|
259
|
-
* <li><b>breakBeforeOpen</b>: break line before the opener tag for this element.</li>
|
260
|
-
* <li><b>breakAfterOpen</b>: break line after the opener tag for this element.</li>
|
261
|
-
* <li><b>breakBeforeClose</b>: break line before the closer tag for this element.</li>
|
262
|
-
* <li><b>breakAfterClose</b>: break line after the closer tag for this element.</li>
|
263
|
-
* </ul>
|
264
|
-
*
|
265
|
-
* All rules default to "false".
|
266
|
-
*
|
267
|
-
* By default, all elements available in the {@link CKEDITOR.dtd.$block),
|
268
|
-
* {@link CKEDITOR.dtd.$listItem} and {@link CKEDITOR.dtd.$tableContent}
|
269
|
-
* lists have all the above rules set to "true". Additionaly, the "br"
|
270
|
-
* element has the "breakAfterOpen" set to "true".
|
271
|
-
* @param {String} tagName The element name to which set the rules.
|
272
|
-
* @param {Object} rules An object containing the element rules.
|
273
|
-
* @example
|
274
|
-
* // Break line before and after "img" tags.
|
275
|
-
* writer.setRules( 'img',
|
276
|
-
* {
|
277
|
-
* breakBeforeOpen : true
|
278
|
-
* breakAfterOpen : true
|
279
|
-
* });
|
280
|
-
* @example
|
281
|
-
* // Reset the rules for the "h1" tag.
|
282
|
-
* writer.setRules( 'h1', {} );
|
283
|
-
*/
|
284
|
-
setRules : function( tagName, rules )
|
285
|
-
{
|
286
|
-
this._.rules[ tagName ] = rules;
|
287
|
-
}
|
288
|
-
}
|
289
|
-
});
|