bcms_content_syncing 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +13 -0
- data/COPYRIGHT.txt +23 -0
- data/GPL.txt +674 -0
- data/LICENSE.txt +165 -0
- data/README +60 -0
- data/Rakefile +34 -0
- data/VERSION +1 -0
- data/app/controllers/application_controller.rb +10 -0
- data/app/helpers/application_helper.rb +3 -0
- data/bcms_content_syncing.gemspec +710 -0
- data/config/boot.rb +110 -0
- data/config/database.yml +22 -0
- data/config/environment.rb +42 -0
- data/config/environments/development.rb +18 -0
- data/config/environments/production.rb +31 -0
- data/config/environments/test.rb +29 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/inflections.rb +10 -0
- data/config/initializers/init_module.rb +1 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/new_rails_defaults.rb +21 -0
- data/config/initializers/session_store.rb +15 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +45 -0
- data/db/seeds.rb +7 -0
- data/doc/README_FOR_APP +2 -0
- data/lib/bcms_content_syncing/cap_tasks.rb +35 -0
- data/lib/bcms_content_syncing/database.rb +74 -0
- data/lib/bcms_content_syncing/rake_tasks.rb +10 -0
- data/lib/bcms_content_syncing/routes.rb +7 -0
- data/lib/bcms_content_syncing.rb +2 -0
- data/lib/tasks/backup.rake +17 -0
- data/public/404.html +30 -0
- data/public/422.html +30 -0
- data/public/500.html +30 -0
- data/public/bcms/ckeditor/ckeditor.js +108 -0
- data/public/bcms/ckeditor/config.js +18 -0
- data/public/bcms/ckeditor/core/_bootstrap.js +64 -0
- data/public/bcms/ckeditor/core/ajax.js +143 -0
- data/public/bcms/ckeditor/core/ckeditor.js +96 -0
- data/public/bcms/ckeditor/core/ckeditor_base.js +190 -0
- data/public/bcms/ckeditor/core/ckeditor_basic.js +241 -0
- data/public/bcms/ckeditor/core/command.js +70 -0
- data/public/bcms/ckeditor/core/commanddefinition.js +72 -0
- data/public/bcms/ckeditor/core/config.js +287 -0
- data/public/bcms/ckeditor/core/dom/document.js +210 -0
- data/public/bcms/ckeditor/core/dom/documentfragment.js +49 -0
- data/public/bcms/ckeditor/core/dom/domobject.js +204 -0
- data/public/bcms/ckeditor/core/dom/element.js +1384 -0
- data/public/bcms/ckeditor/core/dom/elementpath.js +104 -0
- data/public/bcms/ckeditor/core/dom/event.js +137 -0
- data/public/bcms/ckeditor/core/dom/node.js +649 -0
- data/public/bcms/ckeditor/core/dom/nodelist.js +23 -0
- data/public/bcms/ckeditor/core/dom/range.js +1668 -0
- data/public/bcms/ckeditor/core/dom/text.js +123 -0
- data/public/bcms/ckeditor/core/dom/walker.js +411 -0
- data/public/bcms/ckeditor/core/dom/window.js +96 -0
- data/public/bcms/ckeditor/core/dom.js +21 -0
- data/public/bcms/ckeditor/core/dtd.js +200 -0
- data/public/bcms/ckeditor/core/editor.js +650 -0
- data/public/bcms/ckeditor/core/editor_basic.js +178 -0
- data/public/bcms/ckeditor/core/env.js +219 -0
- data/public/bcms/ckeditor/core/event.js +335 -0
- data/public/bcms/ckeditor/core/eventInfo.js +120 -0
- data/public/bcms/ckeditor/core/focusmanager.js +123 -0
- data/public/bcms/ckeditor/core/htmlparser/basicwriter.js +140 -0
- data/public/bcms/ckeditor/core/htmlparser/cdata.js +44 -0
- data/public/bcms/ckeditor/core/htmlparser/comment.js +59 -0
- data/public/bcms/ckeditor/core/htmlparser/element.js +196 -0
- data/public/bcms/ckeditor/core/htmlparser/filter.js +233 -0
- data/public/bcms/ckeditor/core/htmlparser/fragment.js +434 -0
- data/public/bcms/ckeditor/core/htmlparser/text.js +55 -0
- data/public/bcms/ckeditor/core/htmlparser.js +212 -0
- data/public/bcms/ckeditor/core/imagecacher.js +58 -0
- data/public/bcms/ckeditor/core/lang.js +147 -0
- data/public/bcms/ckeditor/core/loader.js +238 -0
- data/public/bcms/ckeditor/core/plugindefinition.js +66 -0
- data/public/bcms/ckeditor/core/plugins.js +82 -0
- data/public/bcms/ckeditor/core/resourcemanager.js +233 -0
- data/public/bcms/ckeditor/core/scriptloader.js +194 -0
- data/public/bcms/ckeditor/core/skins.js +185 -0
- data/public/bcms/ckeditor/core/test.js +184 -0
- data/public/bcms/ckeditor/core/themes.js +18 -0
- data/public/bcms/ckeditor/core/tools.js +531 -0
- data/public/bcms/ckeditor/core/ui.js +106 -0
- data/public/bcms/ckeditor/core/xml.js +165 -0
- data/public/bcms/ckeditor/editor.js +51 -0
- data/public/bcms/ckeditor/lang/_languages.js +82 -0
- data/public/bcms/ckeditor/lang/_translationstatus.txt +59 -0
- data/public/bcms/ckeditor/lang/af.js +674 -0
- data/public/bcms/ckeditor/lang/ar.js +674 -0
- data/public/bcms/ckeditor/lang/bg.js +674 -0
- data/public/bcms/ckeditor/lang/bn.js +674 -0
- data/public/bcms/ckeditor/lang/bs.js +674 -0
- data/public/bcms/ckeditor/lang/ca.js +674 -0
- data/public/bcms/ckeditor/lang/cs.js +674 -0
- data/public/bcms/ckeditor/lang/da.js +674 -0
- data/public/bcms/ckeditor/lang/de.js +674 -0
- data/public/bcms/ckeditor/lang/el.js +674 -0
- data/public/bcms/ckeditor/lang/en-au.js +674 -0
- data/public/bcms/ckeditor/lang/en-ca.js +674 -0
- data/public/bcms/ckeditor/lang/en-uk.js +674 -0
- data/public/bcms/ckeditor/lang/en.js +674 -0
- data/public/bcms/ckeditor/lang/eo.js +674 -0
- data/public/bcms/ckeditor/lang/es.js +674 -0
- data/public/bcms/ckeditor/lang/et.js +674 -0
- data/public/bcms/ckeditor/lang/eu.js +674 -0
- data/public/bcms/ckeditor/lang/fa.js +674 -0
- data/public/bcms/ckeditor/lang/fi.js +674 -0
- data/public/bcms/ckeditor/lang/fo.js +674 -0
- data/public/bcms/ckeditor/lang/fr-ca.js +674 -0
- data/public/bcms/ckeditor/lang/fr.js +674 -0
- data/public/bcms/ckeditor/lang/gl.js +674 -0
- data/public/bcms/ckeditor/lang/gu.js +674 -0
- data/public/bcms/ckeditor/lang/he.js +674 -0
- data/public/bcms/ckeditor/lang/hi.js +674 -0
- data/public/bcms/ckeditor/lang/hr.js +674 -0
- data/public/bcms/ckeditor/lang/hu.js +674 -0
- data/public/bcms/ckeditor/lang/is.js +674 -0
- data/public/bcms/ckeditor/lang/it.js +674 -0
- data/public/bcms/ckeditor/lang/ja.js +674 -0
- data/public/bcms/ckeditor/lang/km.js +674 -0
- data/public/bcms/ckeditor/lang/ko.js +674 -0
- data/public/bcms/ckeditor/lang/lt.js +674 -0
- data/public/bcms/ckeditor/lang/lv.js +674 -0
- data/public/bcms/ckeditor/lang/mn.js +674 -0
- data/public/bcms/ckeditor/lang/ms.js +674 -0
- data/public/bcms/ckeditor/lang/nb.js +674 -0
- data/public/bcms/ckeditor/lang/nl.js +674 -0
- data/public/bcms/ckeditor/lang/no.js +674 -0
- data/public/bcms/ckeditor/lang/pl.js +674 -0
- data/public/bcms/ckeditor/lang/pt-br.js +674 -0
- data/public/bcms/ckeditor/lang/pt.js +674 -0
- data/public/bcms/ckeditor/lang/ro.js +674 -0
- data/public/bcms/ckeditor/lang/ru.js +674 -0
- data/public/bcms/ckeditor/lang/sk.js +674 -0
- data/public/bcms/ckeditor/lang/sl.js +674 -0
- data/public/bcms/ckeditor/lang/sr-latn.js +674 -0
- data/public/bcms/ckeditor/lang/sr.js +674 -0
- data/public/bcms/ckeditor/lang/sv.js +674 -0
- data/public/bcms/ckeditor/lang/th.js +674 -0
- data/public/bcms/ckeditor/lang/tr.js +674 -0
- data/public/bcms/ckeditor/lang/uk.js +674 -0
- data/public/bcms/ckeditor/lang/vi.js +674 -0
- data/public/bcms/ckeditor/lang/zh-cn.js +674 -0
- data/public/bcms/ckeditor/lang/zh.js +674 -0
- data/public/bcms/ckeditor/plugins/about/dialogs/about.js +73 -0
- data/public/bcms/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/public/bcms/ckeditor/plugins/about/plugin.js +22 -0
- data/public/bcms/ckeditor/plugins/basicstyles/plugin.js +50 -0
- data/public/bcms/ckeditor/plugins/blockquote/plugin.js +301 -0
- data/public/bcms/ckeditor/plugins/button/plugin.js +264 -0
- data/public/bcms/ckeditor/plugins/clipboard/dialogs/paste.js +167 -0
- data/public/bcms/ckeditor/plugins/clipboard/plugin.js +208 -0
- data/public/bcms/ckeditor/plugins/colorbutton/plugin.js +202 -0
- data/public/bcms/ckeditor/plugins/contextmenu/plugin.js +178 -0
- data/public/bcms/ckeditor/plugins/dialog/dialogDefinition.js +315 -0
- data/public/bcms/ckeditor/plugins/dialog/plugin.js +2742 -0
- data/public/bcms/ckeditor/plugins/dialogui/plugin.js +1319 -0
- data/public/bcms/ckeditor/plugins/domiterator/plugin.js +354 -0
- data/public/bcms/ckeditor/plugins/editingblock/plugin.js +236 -0
- data/public/bcms/ckeditor/plugins/elementspath/plugin.js +182 -0
- data/public/bcms/ckeditor/plugins/enterkey/plugin.js +324 -0
- data/public/bcms/ckeditor/plugins/entities/plugin.js +200 -0
- data/public/bcms/ckeditor/plugins/fakeobjects/plugin.js +111 -0
- data/public/bcms/ckeditor/plugins/filebrowser/plugin.js +383 -0
- data/public/bcms/ckeditor/plugins/find/dialogs/find.js +843 -0
- data/public/bcms/ckeditor/plugins/find/plugin.js +46 -0
- data/public/bcms/ckeditor/plugins/flash/dialogs/flash.js +682 -0
- data/public/bcms/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/public/bcms/ckeditor/plugins/flash/plugin.js +165 -0
- data/public/bcms/ckeditor/plugins/floatpanel/plugin.js +325 -0
- data/public/bcms/ckeditor/plugins/font/plugin.js +227 -0
- data/public/bcms/ckeditor/plugins/format/plugin.js +191 -0
- data/public/bcms/ckeditor/plugins/forms/dialogs/button.js +135 -0
- data/public/bcms/ckeditor/plugins/forms/dialogs/checkbox.js +138 -0
- data/public/bcms/ckeditor/plugins/forms/dialogs/form.js +177 -0
- data/public/bcms/ckeditor/plugins/forms/dialogs/hiddenfield.js +91 -0
- data/public/bcms/ckeditor/plugins/forms/dialogs/radio.js +135 -0
- data/public/bcms/ckeditor/plugins/forms/dialogs/select.js +541 -0
- data/public/bcms/ckeditor/plugins/forms/dialogs/textarea.js +114 -0
- data/public/bcms/ckeditor/plugins/forms/dialogs/textfield.js +193 -0
- data/public/bcms/ckeditor/plugins/forms/plugin.js +193 -0
- data/public/bcms/ckeditor/plugins/horizontalrule/plugin.js +35 -0
- data/public/bcms/ckeditor/plugins/htmldataprocessor/plugin.js +373 -0
- data/public/bcms/ckeditor/plugins/htmlwriter/plugin.js +289 -0
- data/public/bcms/ckeditor/plugins/iframedialog/plugin.js +136 -0
- data/public/bcms/ckeditor/plugins/image/dialogs/image.js +1225 -0
- data/public/bcms/ckeditor/plugins/image/plugin.js +64 -0
- data/public/bcms/ckeditor/plugins/indent/plugin.js +323 -0
- data/public/bcms/ckeditor/plugins/justify/plugin.js +164 -0
- data/public/bcms/ckeditor/plugins/keystrokes/plugin.js +217 -0
- data/public/bcms/ckeditor/plugins/link/dialogs/anchor.js +98 -0
- data/public/bcms/ckeditor/plugins/link/dialogs/link.js +1217 -0
- data/public/bcms/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/public/bcms/ckeditor/plugins/link/plugin.js +188 -0
- data/public/bcms/ckeditor/plugins/list/plugin.js +570 -0
- data/public/bcms/ckeditor/plugins/listblock/plugin.js +231 -0
- data/public/bcms/ckeditor/plugins/maximize/plugin.js +267 -0
- data/public/bcms/ckeditor/plugins/menu/plugin.js +377 -0
- data/public/bcms/ckeditor/plugins/menubutton/plugin.js +93 -0
- data/public/bcms/ckeditor/plugins/newpage/plugin.js +65 -0
- data/public/bcms/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/public/bcms/ckeditor/plugins/pagebreak/plugin.js +96 -0
- data/public/bcms/ckeditor/plugins/panel/plugin.js +330 -0
- data/public/bcms/ckeditor/plugins/panelbutton/plugin.js +140 -0
- data/public/bcms/ckeditor/plugins/pastefromword/dialogs/pastefromword.js +307 -0
- data/public/bcms/ckeditor/plugins/pastefromword/plugin.js +54 -0
- data/public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js +65 -0
- data/public/bcms/ckeditor/plugins/pastetext/plugin.js +142 -0
- data/public/bcms/ckeditor/plugins/popup/plugin.js +62 -0
- data/public/bcms/ckeditor/plugins/preview/plugin.js +97 -0
- data/public/bcms/ckeditor/plugins/print/plugin.js +41 -0
- data/public/bcms/ckeditor/plugins/removeformat/plugin.js +132 -0
- data/public/bcms/ckeditor/plugins/resize/plugin.js +115 -0
- data/public/bcms/ckeditor/plugins/richcombo/plugin.js +357 -0
- data/public/bcms/ckeditor/plugins/save/plugin.js +55 -0
- data/public/bcms/ckeditor/plugins/scayt/dialogs/options.js +494 -0
- data/public/bcms/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/public/bcms/ckeditor/plugins/scayt/plugin.js +511 -0
- data/public/bcms/ckeditor/plugins/selection/plugin.js +1072 -0
- 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 +153 -0
- data/public/bcms/ckeditor/plugins/smiley/dialogs/smiley.js +219 -0
- 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 +74 -0
- data/public/bcms/ckeditor/plugins/sourcearea/plugin.js +185 -0
- data/public/bcms/ckeditor/plugins/specialchar/dialogs/specialchar.js +362 -0
- data/public/bcms/ckeditor/plugins/specialchar/plugin.js +29 -0
- data/public/bcms/ckeditor/plugins/styles/plugin.js +1242 -0
- data/public/bcms/ckeditor/plugins/stylescombo/plugin.js +295 -0
- data/public/bcms/ckeditor/plugins/stylescombo/styles/default.js +85 -0
- data/public/bcms/ckeditor/plugins/tab/plugin.js +266 -0
- data/public/bcms/ckeditor/plugins/table/dialogs/table.js +550 -0
- data/public/bcms/ckeditor/plugins/table/plugin.js +70 -0
- data/public/bcms/ckeditor/plugins/tabletools/dialogs/tableCell.js +328 -0
- data/public/bcms/ckeditor/plugins/tabletools/plugin.js +701 -0
- data/public/bcms/ckeditor/plugins/templates/dialogs/templates.js +170 -0
- data/public/bcms/ckeditor/plugins/templates/plugin.js +99 -0
- data/public/bcms/ckeditor/plugins/templates/templates/default.js +94 -0
- 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 +412 -0
- data/public/bcms/ckeditor/plugins/uicolor/dialogs/uicolor.js +203 -0
- data/public/bcms/ckeditor/plugins/uicolor/lang/en.js +15 -0
- data/public/bcms/ckeditor/plugins/uicolor/plugin.js +35 -0
- 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 +15 -0
- data/public/bcms/ckeditor/plugins/uicolor/yui/yui.js +71 -0
- data/public/bcms/ckeditor/plugins/undo/plugin.js +490 -0
- data/public/bcms/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
- data/public/bcms/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/public/bcms/ckeditor/plugins/wsc/dialogs/wsc.css +83 -0
- data/public/bcms/ckeditor/plugins/wsc/dialogs/wsc.js +169 -0
- data/public/bcms/ckeditor/plugins/wsc/plugin.js +32 -0
- data/public/bcms/ckeditor/plugins/wysiwygarea/plugin.js +636 -0
- data/public/bcms/ckeditor/skins/kama/dialog.css +742 -0
- data/public/bcms/ckeditor/skins/kama/editor.css +21 -0
- data/public/bcms/ckeditor/skins/kama/elementspath.css +68 -0
- data/public/bcms/ckeditor/skins/kama/icons.css +309 -0
- 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 +139 -0
- data/public/bcms/ckeditor/skins/kama/menu.css +179 -0
- data/public/bcms/ckeditor/skins/kama/panel.css +203 -0
- data/public/bcms/ckeditor/skins/kama/presets.css +49 -0
- data/public/bcms/ckeditor/skins/kama/reset.css +78 -0
- data/public/bcms/ckeditor/skins/kama/richcombo.css +260 -0
- data/public/bcms/ckeditor/skins/kama/skin.js +291 -0
- data/public/bcms/ckeditor/skins/kama/templates.css +71 -0
- data/public/bcms/ckeditor/skins/kama/toolbar.css +384 -0
- data/public/bcms/ckeditor/skins/office2003/dialog.css +643 -0
- data/public/bcms/ckeditor/skins/office2003/editor.css +21 -0
- data/public/bcms/ckeditor/skins/office2003/elementspath.css +68 -0
- data/public/bcms/ckeditor/skins/office2003/icons.css +309 -0
- 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 +97 -0
- data/public/bcms/ckeditor/skins/office2003/menu.css +175 -0
- data/public/bcms/ckeditor/skins/office2003/panel.css +198 -0
- data/public/bcms/ckeditor/skins/office2003/presets.css +49 -0
- data/public/bcms/ckeditor/skins/office2003/reset.css +78 -0
- data/public/bcms/ckeditor/skins/office2003/richcombo.css +279 -0
- data/public/bcms/ckeditor/skins/office2003/skin.js +77 -0
- data/public/bcms/ckeditor/skins/office2003/templates.css +71 -0
- data/public/bcms/ckeditor/skins/office2003/toolbar.css +442 -0
- data/public/bcms/ckeditor/skins/v2/dialog.css +653 -0
- data/public/bcms/ckeditor/skins/v2/editor.css +21 -0
- data/public/bcms/ckeditor/skins/v2/elementspath.css +68 -0
- data/public/bcms/ckeditor/skins/v2/icons.css +309 -0
- 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 +112 -0
- data/public/bcms/ckeditor/skins/v2/menu.css +178 -0
- data/public/bcms/ckeditor/skins/v2/panel.css +198 -0
- data/public/bcms/ckeditor/skins/v2/presets.css +50 -0
- data/public/bcms/ckeditor/skins/v2/reset.css +78 -0
- data/public/bcms/ckeditor/skins/v2/richcombo.css +275 -0
- data/public/bcms/ckeditor/skins/v2/skin.js +73 -0
- data/public/bcms/ckeditor/skins/v2/templates.css +71 -0
- data/public/bcms/ckeditor/skins/v2/toolbar.css +399 -0
- data/public/bcms/ckeditor/tests/_assets/sample.css +4 -0
- data/public/bcms/ckeditor/tests/_assets/sample.js +1 -0
- data/public/bcms/ckeditor/tests/_assets/sample.txt +1 -0
- data/public/bcms/ckeditor/tests/_assets/sample.xml +5 -0
- data/public/bcms/ckeditor/tests/_assets/sample_xml.txt +5 -0
- data/public/bcms/ckeditor/tests/core/_editor/custom_config_1.js +10 -0
- data/public/bcms/ckeditor/tests/core/_editor/custom_config_2.js +9 -0
- data/public/bcms/ckeditor/tests/core/ajax.html +163 -0
- data/public/bcms/ckeditor/tests/core/bootstrap.html +66 -0
- data/public/bcms/ckeditor/tests/core/ckeditor.html +160 -0
- data/public/bcms/ckeditor/tests/core/dom/document.html +126 -0
- data/public/bcms/ckeditor/tests/core/dom/documentfragment.html +292 -0
- data/public/bcms/ckeditor/tests/core/dom/element.html +637 -0
- data/public/bcms/ckeditor/tests/core/dom/node.html +164 -0
- data/public/bcms/ckeditor/tests/core/dom/range.html +2411 -0
- data/public/bcms/ckeditor/tests/core/dom/text.html +128 -0
- data/public/bcms/ckeditor/tests/core/dom/walker.html +340 -0
- data/public/bcms/ckeditor/tests/core/dom/window.html +53 -0
- data/public/bcms/ckeditor/tests/core/editor.html +123 -0
- data/public/bcms/ckeditor/tests/core/env.html +52 -0
- data/public/bcms/ckeditor/tests/core/event.html +487 -0
- data/public/bcms/ckeditor/tests/core/htmlparser/fragment.html +188 -0
- data/public/bcms/ckeditor/tests/core/htmlparser/htmlparser.html +91 -0
- data/public/bcms/ckeditor/tests/core/plugins/myplugins/sample/my_plugin.js +3 -0
- data/public/bcms/ckeditor/tests/core/plugins.html +45 -0
- data/public/bcms/ckeditor/tests/core/scriptloader.html +52 -0
- data/public/bcms/ckeditor/tests/core/tools.html +170 -0
- data/public/bcms/ckeditor/tests/core/xml.html +150 -0
- data/public/bcms/ckeditor/tests/plugins/domiterator/domiterator.html +236 -0
- data/public/bcms/ckeditor/tests/plugins/htmldataprocessor/htmldataprocessor.html +386 -0
- data/public/bcms/ckeditor/tests/plugins/link/link.html +123 -0
- data/public/bcms/ckeditor/tests/plugins/list/list.html +217 -0
- data/public/bcms/ckeditor/tests/plugins/selection/selection.html +49 -0
- data/public/bcms/ckeditor/tests/plugins/styles/styles.html +596 -0
- data/public/bcms/ckeditor/tests/test.css +81 -0
- data/public/bcms/ckeditor/tests/test.js +93 -0
- data/public/bcms/ckeditor/tests/testall.html +114 -0
- data/public/bcms/ckeditor/tests/yuitest.js +75 -0
- data/public/bcms/ckeditor/themes/default/theme.js +232 -0
- data/public/bcms/content_syncing/README +1 -0
- 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 +2 -0
- data/public/javascripts/cms/application.js +148 -0
- data/public/javascripts/cms/content_library.js +36 -0
- data/public/javascripts/cms/sitemap.js +438 -0
- data/public/javascripts/controls.js +963 -0
- data/public/javascripts/dragdrop.js +973 -0
- data/public/javascripts/effects.js +1128 -0
- data/public/javascripts/jquery-ui.js +591 -0
- data/public/javascripts/jquery.contextMenu.js +211 -0
- data/public/javascripts/jquery.cookie.js +96 -0
- data/public/javascripts/jquery.dimensions.js +119 -0
- data/public/javascripts/jquery.js +11 -0
- data/public/javascripts/jquery.selectbox-0.5.js +209 -0
- data/public/javascripts/jquery.taglist.js +136 -0
- data/public/javascripts/jquery.thickbox.js +10 -0
- data/public/javascripts/prototype.js +4320 -0
- data/public/robots.txt +5 -0
- data/public/site/customconfig.js +1 -0
- data/public/stylesheets/cms/administration.css +91 -0
- data/public/stylesheets/cms/application.css +166 -0
- data/public/stylesheets/cms/block.css +26 -0
- data/public/stylesheets/cms/buttons.css +120 -0
- data/public/stylesheets/cms/content_library.css +139 -0
- data/public/stylesheets/cms/content_types.css +4 -0
- data/public/stylesheets/cms/dashboard.css +118 -0
- data/public/stylesheets/cms/data_table.css +156 -0
- data/public/stylesheets/cms/date_picker.css +73 -0
- data/public/stylesheets/cms/form_layout.css +279 -0
- data/public/stylesheets/cms/jquery.contextMenu.css +61 -0
- data/public/stylesheets/cms/login.css +78 -0
- data/public/stylesheets/cms/menu.css +116 -0
- data/public/stylesheets/cms/nav.css +99 -0
- data/public/stylesheets/cms/page_toolbar.css +135 -0
- data/public/stylesheets/cms/reset.css +46 -0
- data/public/stylesheets/cms/selectbox.css +56 -0
- data/public/stylesheets/cms/sitemap.css +390 -0
- data/public/stylesheets/cms/taglist.css +18 -0
- data/public/stylesheets/cms/thickbox.css +163 -0
- data/rails/init.rb +5 -0
- data/script/about +4 -0
- data/script/console +3 -0
- data/script/dbconsole +3 -0
- data/script/destroy +3 -0
- data/script/generate +3 -0
- data/script/performance/benchmarker +3 -0
- data/script/performance/profiler +3 -0
- data/script/plugin +3 -0
- data/script/runner +3 -0
- data/script/server +3 -0
- data/test/performance/browsing_test.rb +9 -0
- data/test/test_helper.rb +38 -0
- metadata +736 -0
|
@@ -0,0 +1,241 @@
|
|
|
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 Contains the second part of the {@link CKEDITOR} object
|
|
8
|
+
* definition, which defines the basic editor features to be available in
|
|
9
|
+
* the root ckeditor_basic.js file.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
if ( CKEDITOR.status == 'unloaded' )
|
|
13
|
+
{
|
|
14
|
+
(function()
|
|
15
|
+
{
|
|
16
|
+
CKEDITOR.event.implementOn( CKEDITOR );
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Forces the full CKEditor core code, in the case only the basic code has been
|
|
20
|
+
* loaded (ckeditor_basic.js). This method self-destroys (becomes undefined) in
|
|
21
|
+
* the first call or as soon as the full code is available.
|
|
22
|
+
* @example
|
|
23
|
+
* // Check if the full core code has been loaded and load it.
|
|
24
|
+
* if ( CKEDITOR.loadFullCore )
|
|
25
|
+
* <b>CKEDITOR.loadFullCore()</b>;
|
|
26
|
+
*/
|
|
27
|
+
CKEDITOR.loadFullCore = function()
|
|
28
|
+
{
|
|
29
|
+
// If not the basic code is not ready it, just mark it to be loaded.
|
|
30
|
+
if ( CKEDITOR.status != 'basic_ready' )
|
|
31
|
+
{
|
|
32
|
+
CKEDITOR.loadFullCore._load = true;
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Destroy this function.
|
|
37
|
+
delete CKEDITOR.loadFullCore;
|
|
38
|
+
|
|
39
|
+
// Append the script to the head.
|
|
40
|
+
var script = document.createElement( 'script' );
|
|
41
|
+
script.type = 'text/javascript';
|
|
42
|
+
script.src = CKEDITOR.basePath + 'ckeditor.js';
|
|
43
|
+
|
|
44
|
+
document.getElementsByTagName( 'head' )[0].appendChild( script );
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The time to wait (in seconds) to load the full editor code after the
|
|
49
|
+
* page load, if the "ckeditor_basic" file is used. If set to zero, the
|
|
50
|
+
* editor is loaded on demand, as soon as an instance is created.
|
|
51
|
+
*
|
|
52
|
+
* This value must be set on the page before the page load completion.
|
|
53
|
+
* @type Number
|
|
54
|
+
* @default 0 (zero)
|
|
55
|
+
* @example
|
|
56
|
+
* // Loads the full source after five seconds.
|
|
57
|
+
* CKEDITOR.loadFullCoreTimeout = 5;
|
|
58
|
+
*/
|
|
59
|
+
CKEDITOR.loadFullCoreTimeout = 0;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The class name used to identify <textarea> elements to be replace
|
|
63
|
+
* by CKEditor instances.
|
|
64
|
+
* @type String
|
|
65
|
+
* @default 'ckeditor'
|
|
66
|
+
* @example
|
|
67
|
+
* <b>CKEDITOR.replaceClass</b> = 'rich_editor';
|
|
68
|
+
*/
|
|
69
|
+
CKEDITOR.replaceClass = 'ckeditor';
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Enables the replacement of all textareas with class name matching
|
|
73
|
+
* {@link CKEDITOR.replaceClass}.
|
|
74
|
+
* @type Boolean
|
|
75
|
+
* @default true
|
|
76
|
+
* @example
|
|
77
|
+
* // Disable the auto-replace feature.
|
|
78
|
+
* <b>CKEDITOR.replaceByClassEnabled</b> = false;
|
|
79
|
+
*/
|
|
80
|
+
CKEDITOR.replaceByClassEnabled = true;
|
|
81
|
+
|
|
82
|
+
var createInstance = function( elementOrIdOrName, config, creationFunction )
|
|
83
|
+
{
|
|
84
|
+
if ( CKEDITOR.env.isCompatible )
|
|
85
|
+
{
|
|
86
|
+
// Load the full core.
|
|
87
|
+
if ( CKEDITOR.loadFullCore )
|
|
88
|
+
CKEDITOR.loadFullCore();
|
|
89
|
+
|
|
90
|
+
var editor = creationFunction( elementOrIdOrName, config );
|
|
91
|
+
CKEDITOR.add( editor );
|
|
92
|
+
return editor;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return null;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Replaces a <textarea> or a DOM element (DIV) with a CKEditor
|
|
100
|
+
* instance. For textareas, the initial value in the editor will be the
|
|
101
|
+
* textarea value. For DOM elements, their innerHTML will be used
|
|
102
|
+
* instead. We recommend using TEXTAREA and DIV elements only.
|
|
103
|
+
* @param {Object|String} elementOrIdOrName The DOM element (textarea), its
|
|
104
|
+
* ID or name.
|
|
105
|
+
* @param {Object} [config] The specific configurations to apply to this
|
|
106
|
+
* editor instance. Configurations set here will override global CKEditor
|
|
107
|
+
* settings.
|
|
108
|
+
* @returns {CKEDITOR.editor} The editor instance created.
|
|
109
|
+
* @example
|
|
110
|
+
* <textarea id="myfield" name="myfield"><:/textarea>
|
|
111
|
+
* ...
|
|
112
|
+
* <b>CKEDITOR.replace( 'myfield' )</b>;
|
|
113
|
+
* @example
|
|
114
|
+
* var textarea = document.body.appendChild( document.createElement( 'textarea' ) );
|
|
115
|
+
* <b>CKEDITOR.replace( textarea )</b>;
|
|
116
|
+
*/
|
|
117
|
+
CKEDITOR.replace = function( elementOrIdOrName, config )
|
|
118
|
+
{
|
|
119
|
+
return createInstance( elementOrIdOrName, config, CKEDITOR.editor.replace );
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Creates a new editor instance inside a specific DOM element.
|
|
124
|
+
* @param {Object|String} elementOrId The DOM element or its ID.
|
|
125
|
+
* @param {Object} [config] The specific configurations to apply to this
|
|
126
|
+
* editor instance. Configurations set here will override global CKEditor
|
|
127
|
+
* settings.
|
|
128
|
+
* @returns {CKEDITOR.editor} The editor instance created.
|
|
129
|
+
* @example
|
|
130
|
+
* <div id="editorSpace"><:/div>
|
|
131
|
+
* ...
|
|
132
|
+
* <b>CKEDITOR.appendTo( 'editorSpace' )</b>;
|
|
133
|
+
*/
|
|
134
|
+
CKEDITOR.appendTo = function( elementOrId, config )
|
|
135
|
+
{
|
|
136
|
+
return createInstance( elementOrId, config, CKEDITOR.editor.appendTo );
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @ignore
|
|
141
|
+
* Documented at ckeditor.js.
|
|
142
|
+
*/
|
|
143
|
+
CKEDITOR.add = function( editor )
|
|
144
|
+
{
|
|
145
|
+
// For now, just put the editor in the pending list. It will be
|
|
146
|
+
// processed as soon as the full code gets loaded.
|
|
147
|
+
var pending = this._.pending || ( this._.pending = [] );
|
|
148
|
+
pending.push( editor );
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Replace all <textarea> elements available in the document with
|
|
153
|
+
* editor instances.
|
|
154
|
+
* @example
|
|
155
|
+
* // Replace all <textarea> elements in the page.
|
|
156
|
+
* CKEDITOR.replaceAll();
|
|
157
|
+
* @example
|
|
158
|
+
* // Replace all <textarea class="myClassName"> elements in the page.
|
|
159
|
+
* CKEDITOR.replaceAll( 'myClassName' );
|
|
160
|
+
* @example
|
|
161
|
+
* // Selectively replace <textarea> elements, based on custom assertions.
|
|
162
|
+
* CKEDITOR.replaceAll( function( textarea, config )
|
|
163
|
+
* {
|
|
164
|
+
* // Custom code to evaluate the replace, returning false
|
|
165
|
+
* // if it must not be done.
|
|
166
|
+
* // It also passes the "config" parameter, so the
|
|
167
|
+
* // developer can customize the instance.
|
|
168
|
+
* } );
|
|
169
|
+
*/
|
|
170
|
+
CKEDITOR.replaceAll = function()
|
|
171
|
+
{
|
|
172
|
+
var textareas = document.getElementsByTagName( 'textarea' );
|
|
173
|
+
|
|
174
|
+
for ( var i = 0 ; i < textareas.length ; i++ )
|
|
175
|
+
{
|
|
176
|
+
var config = null;
|
|
177
|
+
var textarea = textareas[i];
|
|
178
|
+
var name = textarea.name;
|
|
179
|
+
|
|
180
|
+
// The "name" and/or "id" attribute must exist.
|
|
181
|
+
if ( !textarea.name && !textarea.id )
|
|
182
|
+
continue;
|
|
183
|
+
|
|
184
|
+
if ( typeof arguments[0] == 'string' )
|
|
185
|
+
{
|
|
186
|
+
// The textarea class name could be passed as the function
|
|
187
|
+
// parameter.
|
|
188
|
+
|
|
189
|
+
var classRegex = new RegExp( '(?:^| )' + arguments[0] + '(?:$| )' );
|
|
190
|
+
|
|
191
|
+
if ( !classRegex.test( textarea.className ) )
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
else if ( typeof arguments[0] == 'function' )
|
|
195
|
+
{
|
|
196
|
+
// An assertion function could be passed as the function parameter.
|
|
197
|
+
// It must explicitly return "false" to ignore a specific <textarea>.
|
|
198
|
+
config = {};
|
|
199
|
+
if ( arguments[0]( textarea, config ) === false )
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
this.replace( textarea, config );
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
(function()
|
|
208
|
+
{
|
|
209
|
+
var onload = function()
|
|
210
|
+
{
|
|
211
|
+
var loadFullCore = CKEDITOR.loadFullCore,
|
|
212
|
+
loadFullCoreTimeout = CKEDITOR.loadFullCoreTimeout;
|
|
213
|
+
|
|
214
|
+
// Replace all textareas with the default class name.
|
|
215
|
+
if ( CKEDITOR.replaceByClassEnabled )
|
|
216
|
+
CKEDITOR.replaceAll( CKEDITOR.replaceClass );
|
|
217
|
+
|
|
218
|
+
CKEDITOR.status = 'basic_ready';
|
|
219
|
+
|
|
220
|
+
if ( loadFullCore && loadFullCore._load )
|
|
221
|
+
loadFullCore();
|
|
222
|
+
else if ( loadFullCoreTimeout )
|
|
223
|
+
{
|
|
224
|
+
setTimeout( function()
|
|
225
|
+
{
|
|
226
|
+
if ( CKEDITOR.loadFullCore )
|
|
227
|
+
CKEDITOR.loadFullCore();
|
|
228
|
+
}
|
|
229
|
+
, loadFullCoreTimeout * 1000 );
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
if ( window.addEventListener )
|
|
234
|
+
window.addEventListener( 'load', onload, false );
|
|
235
|
+
else if ( window.attachEvent )
|
|
236
|
+
window.attachEvent( 'onload', onload );
|
|
237
|
+
})();
|
|
238
|
+
|
|
239
|
+
CKEDITOR.status = 'basic_loaded';
|
|
240
|
+
})();
|
|
241
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.command = function( editor, commandDefinition )
|
|
7
|
+
{
|
|
8
|
+
this.exec = function( data )
|
|
9
|
+
{
|
|
10
|
+
if ( this.state == CKEDITOR.TRISTATE_DISABLED )
|
|
11
|
+
return false;
|
|
12
|
+
|
|
13
|
+
// The editor will always have the focus when executing a command.
|
|
14
|
+
editor.focus();
|
|
15
|
+
|
|
16
|
+
return ( commandDefinition.exec.call( this, editor, data ) !== false );
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
CKEDITOR.tools.extend( this, commandDefinition,
|
|
20
|
+
// Defaults
|
|
21
|
+
{
|
|
22
|
+
modes : { wysiwyg : 1 },
|
|
23
|
+
state : CKEDITOR.TRISTATE_OFF
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
// Call the CKEDITOR.event constructor to initialize this instance.
|
|
27
|
+
CKEDITOR.event.call( this );
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
CKEDITOR.command.prototype =
|
|
31
|
+
{
|
|
32
|
+
enable : function()
|
|
33
|
+
{
|
|
34
|
+
if ( this.state == CKEDITOR.TRISTATE_DISABLED )
|
|
35
|
+
this.setState( ( !this.preserveState || ( typeof this.previousState == 'undefined' ) ) ? CKEDITOR.TRISTATE_OFF : this.previousState );
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
disable : function()
|
|
39
|
+
{
|
|
40
|
+
this.setState( CKEDITOR.TRISTATE_DISABLED );
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
setState : function( newState )
|
|
44
|
+
{
|
|
45
|
+
// Do nothing if there is no state change.
|
|
46
|
+
if ( this.state == newState )
|
|
47
|
+
return false;
|
|
48
|
+
|
|
49
|
+
this.previousState = this.state;
|
|
50
|
+
|
|
51
|
+
// Set the new state.
|
|
52
|
+
this.state = newState;
|
|
53
|
+
|
|
54
|
+
// Fire the "state" event, so other parts of the code can react to the
|
|
55
|
+
// change.
|
|
56
|
+
this.fire( 'state' );
|
|
57
|
+
|
|
58
|
+
return true;
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
toggleState : function()
|
|
62
|
+
{
|
|
63
|
+
if ( this.state == CKEDITOR.TRISTATE_OFF )
|
|
64
|
+
this.setState( CKEDITOR.TRISTATE_ON );
|
|
65
|
+
else if ( this.state == CKEDITOR.TRISTATE_ON )
|
|
66
|
+
this.setState( CKEDITOR.TRISTATE_OFF );
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
CKEDITOR.event.implementOn( CKEDITOR.command.prototype, true );
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @fileOverview Defines the "virtual" {@link CKEDITOR.commandDefinition} class,
|
|
8
|
+
* which contains the defintion of a command. This file is for
|
|
9
|
+
* documentation purposes only.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* (Virtual Class) Do not call this constructor. This class is not really part
|
|
14
|
+
* of the API. It just illustrates the features of command objects to be
|
|
15
|
+
* passed to the {@link CKEDITOR.editor.prototype.addCommand} function.
|
|
16
|
+
* @name CKEDITOR.commandDefinition
|
|
17
|
+
* @constructor
|
|
18
|
+
* @example
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Executes the command.
|
|
23
|
+
* @name CKEDITOR.commandDefinition.prototype.exec
|
|
24
|
+
* @function
|
|
25
|
+
* @param {CKEDITOR.editor} editor The editor within which run the command.
|
|
26
|
+
* @param {Object} [data] Additional data to be used to execute the command.
|
|
27
|
+
* @returns {Boolean} Whether the command has been successfully executed.
|
|
28
|
+
* Defaults to "true", if nothing is returned.
|
|
29
|
+
* @example
|
|
30
|
+
* editorInstance.addCommand( 'sample',
|
|
31
|
+
* {
|
|
32
|
+
* exec : function( editor )
|
|
33
|
+
* {
|
|
34
|
+
* alert( 'Executing a command for the editor name "' + editor.name + '"!' );
|
|
35
|
+
* }
|
|
36
|
+
* });
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Whether the command need to be hooked into the redo/undo system.
|
|
41
|
+
* @name CKEDITOR.commandDefinition.canUndo
|
|
42
|
+
* @type {Boolean} If not defined or 'true' both hook into undo system, set it
|
|
43
|
+
* to 'false' explicitly keep it out.
|
|
44
|
+
* @field
|
|
45
|
+
* @example
|
|
46
|
+
* editorInstance.addCommand( 'alertName',
|
|
47
|
+
* {
|
|
48
|
+
* exec : function( editor )
|
|
49
|
+
* {
|
|
50
|
+
* alert( editor.name );
|
|
51
|
+
* },
|
|
52
|
+
* canUndo : false // No support for undo/redo
|
|
53
|
+
* });
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Whether the command is asynchronous, which means the 'afterCommandExec' event
|
|
58
|
+
* will be fired by the command itself manually, and the 'exec' function return value
|
|
59
|
+
* of this command is not to be returned.
|
|
60
|
+
* @name CKEDITOR.commandDefinition.async
|
|
61
|
+
* @type {Boolean} If defined as 'true', the command is asynchronous.
|
|
62
|
+
* @example
|
|
63
|
+
* editorInstance.addCommand( 'alertName',
|
|
64
|
+
* {
|
|
65
|
+
* exec : function( editor )
|
|
66
|
+
* {
|
|
67
|
+
* // Asynchronous operation below.
|
|
68
|
+
* CKEDITOR.ajax.loadXml( 'data.xml' );
|
|
69
|
+
* },
|
|
70
|
+
* async : true // The command need some time to complete after exec function returns.
|
|
71
|
+
* });
|
|
72
|
+
*/
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @fileOverview Defines the {@link CKEDITOR.config} object, which holds the
|
|
8
|
+
* default configuration settings.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
CKEDITOR.ENTER_P = 1;
|
|
12
|
+
CKEDITOR.ENTER_BR = 2;
|
|
13
|
+
CKEDITOR.ENTER_DIV = 3;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Holds the default configuration settings. Changes to this object are
|
|
17
|
+
* reflected in all editor instances, if not specificaly specified for those
|
|
18
|
+
* instances.
|
|
19
|
+
* @namespace
|
|
20
|
+
* @example
|
|
21
|
+
* // All editor created after the following setting will not load custom
|
|
22
|
+
* // configuration files.
|
|
23
|
+
* CKEDITOR.config.customConfig = '';
|
|
24
|
+
*/
|
|
25
|
+
CKEDITOR.config =
|
|
26
|
+
{
|
|
27
|
+
/**
|
|
28
|
+
* The URL path for the custom configuration file to be loaded. If not
|
|
29
|
+
* overloaded with inline configurations, it defaults to the "config.js"
|
|
30
|
+
* file present in the root of the CKEditor installation directory.<br /><br />
|
|
31
|
+
*
|
|
32
|
+
* CKEditor will recursively load custom configuration files defined inside
|
|
33
|
+
* other custom configuration files.
|
|
34
|
+
* @type String
|
|
35
|
+
* @default '<CKEditor folder>/config.js'
|
|
36
|
+
* @example
|
|
37
|
+
* // Load a specific configuration file.
|
|
38
|
+
* CKEDITOR.replace( 'myfiled', { customConfig : '/myconfig.js' } );
|
|
39
|
+
* @example
|
|
40
|
+
* // Do not load any custom configuration file.
|
|
41
|
+
* CKEDITOR.replace( 'myfiled', { customConfig : '' } );
|
|
42
|
+
*/
|
|
43
|
+
customConfig : CKEDITOR.getUrl( 'config.js' ),
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Whether the replaced element (usually a textarea) is to be updated
|
|
47
|
+
* automatically when posting the form containing the editor.
|
|
48
|
+
* @type Boolean
|
|
49
|
+
* @default true
|
|
50
|
+
* @example
|
|
51
|
+
* config.autoUpdateElement = true;
|
|
52
|
+
*/
|
|
53
|
+
autoUpdateElement : true,
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The base href URL used to resolve relative and absolute URLs in the
|
|
57
|
+
* editor content.
|
|
58
|
+
* @type String
|
|
59
|
+
* @default '' (empty string)
|
|
60
|
+
* @example
|
|
61
|
+
* config.baseHref = 'http://www.example.com/path/';
|
|
62
|
+
*/
|
|
63
|
+
baseHref : '',
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The CSS file to be used to apply style to the contents. It should
|
|
67
|
+
* reflect the CSS used in the final pages where the contents are to be
|
|
68
|
+
* used.
|
|
69
|
+
* @type String
|
|
70
|
+
* @default '<CKEditor folder>/contents.css'
|
|
71
|
+
* @example
|
|
72
|
+
* config.contentsCss = '/css/mysitestyles.css';
|
|
73
|
+
*/
|
|
74
|
+
contentsCss : CKEDITOR.basePath + 'contents.css',
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The writting direction of the language used to write the editor
|
|
78
|
+
* contents. Allowed values are 'ltr' for Left-To-Right language (like
|
|
79
|
+
* English), or 'rtl' for Right-To-Left languages (like Arabic).
|
|
80
|
+
* @default 'ltr'
|
|
81
|
+
* @type String
|
|
82
|
+
* @example
|
|
83
|
+
* config.contentsLangDirection = 'rtl';
|
|
84
|
+
*/
|
|
85
|
+
contentsLangDirection : 'ltr',
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The user interface language localization to use. If empty, the editor
|
|
89
|
+
* automatically localize the editor to the user language, if supported,
|
|
90
|
+
* otherwise the {@link CKEDITOR.config.defaultLanguage} language is used.
|
|
91
|
+
* @default true
|
|
92
|
+
* @type Boolean
|
|
93
|
+
* @example
|
|
94
|
+
* // Load the German interface.
|
|
95
|
+
* config.language = 'de';
|
|
96
|
+
*/
|
|
97
|
+
language : '',
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The language to be used if {@link CKEDITOR.config.language} is left empty and it's not
|
|
101
|
+
* possible to localize the editor to the user language.
|
|
102
|
+
* @default 'en'
|
|
103
|
+
* @type String
|
|
104
|
+
* @example
|
|
105
|
+
* config.defaultLanguage = 'it';
|
|
106
|
+
*/
|
|
107
|
+
defaultLanguage : 'en',
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Sets the behavior for the ENTER key. It also dictates other behaviour
|
|
111
|
+
* rules in the editor, like whether the <br> element is to be used
|
|
112
|
+
* as a paragraph separator when indenting text.
|
|
113
|
+
* The allowed values are the following constants, and their relative
|
|
114
|
+
* behavior:
|
|
115
|
+
* <ul>
|
|
116
|
+
* <li>{@link CKEDITOR.ENTER_P} (1): new <p> paragraphs are created;</li>
|
|
117
|
+
* <li>{@link CKEDITOR.ENTER_BR} (2): lines are broken with <br> elements;</li>
|
|
118
|
+
* <li>{@link CKEDITOR.ENTER_DIV} (3): new <div> blocks are created.</li>
|
|
119
|
+
* </ul>
|
|
120
|
+
* <strong>Note</strong>: It's recommended to use the
|
|
121
|
+
* {@link CKEDITOR.ENTER_P} value because of its semantic value and
|
|
122
|
+
* correctness. The editor is optimized for this value.
|
|
123
|
+
* @type Number
|
|
124
|
+
* @default {@link CKEDITOR.ENTER_P}
|
|
125
|
+
* @example
|
|
126
|
+
* // Not recommended.
|
|
127
|
+
* config.enterMode = CKEDITOR.ENTER_BR;
|
|
128
|
+
*/
|
|
129
|
+
enterMode : CKEDITOR.ENTER_P,
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Just like the {@link CKEDITOR.config.enterMode} setting, it defines the behavior for the SHIFT+ENTER key.
|
|
133
|
+
* The allowed values are the following constants, and their relative
|
|
134
|
+
* behavior:
|
|
135
|
+
* <ul>
|
|
136
|
+
* <li>{@link CKEDITOR.ENTER_P} (1): new <p> paragraphs are created;</li>
|
|
137
|
+
* <li>{@link CKEDITOR.ENTER_BR} (2): lines are broken with <br> elements;</li>
|
|
138
|
+
* <li>{@link CKEDITOR.ENTER_DIV} (3): new <div> blocks are created.</li>
|
|
139
|
+
* </ul>
|
|
140
|
+
* @type Number
|
|
141
|
+
* @default {@link CKEDITOR.ENTER_BR}
|
|
142
|
+
* @example
|
|
143
|
+
* config.shiftEnterMode = CKEDITOR.ENTER_P;
|
|
144
|
+
*/
|
|
145
|
+
shiftEnterMode : CKEDITOR.ENTER_BR,
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* A comma separated list of plugins that are not related to editor
|
|
149
|
+
* instances. Reserved to plugins that extend the core code only.<br /><br />
|
|
150
|
+
*
|
|
151
|
+
* There are no ways to override this setting, except by editing the source
|
|
152
|
+
* code of CKEditor (_source/core/config.js).
|
|
153
|
+
* @type String
|
|
154
|
+
* @example
|
|
155
|
+
*/
|
|
156
|
+
corePlugins : '',
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Sets the doctype to be used when loading the editor content as HTML.
|
|
160
|
+
* @type String
|
|
161
|
+
* @default '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
|
|
162
|
+
* @example
|
|
163
|
+
* // Set the doctype to the HTML 4 (quirks) mode.
|
|
164
|
+
* config.docType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';
|
|
165
|
+
*/
|
|
166
|
+
docType : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Indicates whether the contents to be edited are being inputted as a full
|
|
170
|
+
* HTML page. A full page includes the <html>, <head> and
|
|
171
|
+
* <body> tags. The final output will also reflect this setting,
|
|
172
|
+
* including the <body> contents only if this setting is disabled.
|
|
173
|
+
* @type Boolean
|
|
174
|
+
* @default false
|
|
175
|
+
* @example
|
|
176
|
+
* config.fullPage = true;
|
|
177
|
+
*/
|
|
178
|
+
fullPage : false,
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The editor height, in CSS size format or pixel integer.
|
|
182
|
+
* @type Number|String
|
|
183
|
+
* @default '200'
|
|
184
|
+
* @example
|
|
185
|
+
* config.height = 500;
|
|
186
|
+
* @example
|
|
187
|
+
* config.height = '25em';
|
|
188
|
+
*/
|
|
189
|
+
height : 200,
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Comma separated list of plugins to load and initialize for an editor
|
|
193
|
+
* instance. This should be rarely changed, using instead the
|
|
194
|
+
* {@link CKEDITOR.config.extraPlugins} and
|
|
195
|
+
* {@link CKEDITOR.config.removePlugins} for customizations.
|
|
196
|
+
* @type String
|
|
197
|
+
* @example
|
|
198
|
+
*/
|
|
199
|
+
plugins : 'about,basicstyles,blockquote,button,clipboard,colorbutton,contextmenu,elementspath,enterkey,entities,filebrowser,find,flash,font,format,forms,horizontalrule,htmldataprocessor,image,indent,justify,keystrokes,link,list,maximize,newpage,pagebreak,pastefromword,pastetext,popup,preview,print,removeformat,resize,save,scayt,smiley,showblocks,sourcearea,stylescombo,table,tabletools,specialchar,tab,templates,toolbar,undo,wysiwygarea,wsc',
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* List of additional plugins to be loaded. This is a tool setting which
|
|
203
|
+
* makes it easier to add new plugins, whithout having to touch and
|
|
204
|
+
* possibly breaking the {@link CKEDITOR.config.plugins} setting.
|
|
205
|
+
* @type String
|
|
206
|
+
* @example
|
|
207
|
+
* config.extraPlugins = 'myplugin,anotherplugin';
|
|
208
|
+
*/
|
|
209
|
+
extraPlugins : '',
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* List of plugins that must not be loaded. This is a tool setting which
|
|
213
|
+
* makes it easier to avoid loading plugins definied in the
|
|
214
|
+
* {@link CKEDITOR.config.plugins} setting, whithout having to touch it and
|
|
215
|
+
* potentially breaking it.
|
|
216
|
+
* @type String
|
|
217
|
+
* @example
|
|
218
|
+
* config.removePlugins = 'elementspath,save,font';
|
|
219
|
+
*/
|
|
220
|
+
removePlugins : '',
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* List of regular expressions to be executed over the input HTML,
|
|
224
|
+
* indicating code that must stay untouched.
|
|
225
|
+
* @type Array
|
|
226
|
+
* @default [] (empty array)
|
|
227
|
+
* @example
|
|
228
|
+
* config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // PHP Code
|
|
229
|
+
* config.protectedSource.push( /<%[\s\S]*?%>/g ); // ASP Code
|
|
230
|
+
* config.protectedSource.push( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ); // ASP.Net Code
|
|
231
|
+
*/
|
|
232
|
+
protectedSource : [],
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* The editor tabindex value.
|
|
236
|
+
* @type Number
|
|
237
|
+
* @default 0 (zero)
|
|
238
|
+
* @example
|
|
239
|
+
* config.tabIndex = 1;
|
|
240
|
+
*/
|
|
241
|
+
tabIndex : 0,
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* The theme to be used to build the UI.
|
|
245
|
+
* @type String
|
|
246
|
+
* @default 'default'
|
|
247
|
+
* @see CKEDITOR.config.skin
|
|
248
|
+
* @example
|
|
249
|
+
* config.theme = 'default';
|
|
250
|
+
*/
|
|
251
|
+
theme : 'default',
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* The skin to load. It may be the name of the skin folder inside the
|
|
255
|
+
* editor installation path, or the name and the path separated by a comma.
|
|
256
|
+
* @type String
|
|
257
|
+
* @default 'default'
|
|
258
|
+
* @example
|
|
259
|
+
* config.skin = 'v2';
|
|
260
|
+
* @example
|
|
261
|
+
* config.skin = 'myskin,/customstuff/myskin/';
|
|
262
|
+
*/
|
|
263
|
+
skin : 'kama',
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The editor width in CSS size format or pixel integer.
|
|
267
|
+
* @type String|Number
|
|
268
|
+
* @default '' (empty)
|
|
269
|
+
* @example
|
|
270
|
+
* config.width = 850;
|
|
271
|
+
* @example
|
|
272
|
+
* config.width = '75%';
|
|
273
|
+
*/
|
|
274
|
+
width : '',
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* The base Z-index for floating dialogs and popups.
|
|
278
|
+
* @type Number
|
|
279
|
+
* @default 10000
|
|
280
|
+
* @example
|
|
281
|
+
* config.baseFloatZIndex = 2000
|
|
282
|
+
*/
|
|
283
|
+
baseFloatZIndex : 10000
|
|
284
|
+
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
// PACKAGER_RENAME( CKEDITOR.config )
|