radiant-ck_editor_filter-extension 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +21 -0
- data/README.markdown +55 -0
- data/Rakefile +138 -0
- data/VERSION +1 -0
- data/app/models/ckeditor_interface.rb +15 -0
- data/app/views/admin/assets/_asset.html.haml +19 -0
- data/app/views/admin/pages/_editor_control.html.haml +1 -0
- data/ck_editor_filter_extension.rb +25 -0
- data/ckeditor.html +0 -0
- data/cucumber.yml +1 -0
- data/features/support/env.rb +16 -0
- data/features/support/paths.rb +14 -0
- data/lib/ck_editor_filter.rb +7 -0
- data/lib/tasks/ck_editor_filter_extension_tasks.rake +28 -0
- data/public/images/admin/tmp_thumbnail_icon.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/.htaccess +24 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/CHANGES.html +538 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/INSTALL.html +92 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/LICENSE.html +1334 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ajax.html +100 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/api.html +152 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/api_dialog.html +181 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/api_dialog/my_dialog.js +28 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/divreplace.html +137 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/enterkey.html +88 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/fullpage.html +62 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/index.html +53 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/jqueryadapter.html +73 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/advanced.php +93 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/events.php +130 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/replace.php +63 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/replaceall.php +68 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/standalone.php +64 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/replacebyclass.html +49 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/replacebycode.html +80 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sample.css +81 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sample.js +65 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sample_posteddata.php +59 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sharedspaces.html +131 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/skins.html +83 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ui_color.html +87 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ui_languages.html +104 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/adapters/jquery.js +297 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/_bootstrap.js +84 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ajax.js +143 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor.js +103 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor_base.js +190 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor_basic.js +241 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/command.js +73 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/commanddefinition.js +86 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/config.js +307 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dataprocessor.js +66 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom.js +21 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/comment.js +32 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/document.js +224 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/documentfragment.js +49 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/domobject.js +210 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/element.js +1441 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/elementpath.js +104 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/event.js +142 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/node.js +662 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/nodelist.js +23 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/range.js +1735 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/text.js +123 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/walker.js +451 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/window.js +96 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dtd.js +233 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/editor.js +720 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/editor_basic.js +179 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/env.js +219 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/event.js +336 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/eventInfo.js +120 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/focusmanager.js +137 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser.js +212 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/basicwriter.js +145 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/cdata.js +43 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/comment.js +60 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/element.js +240 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/filter.js +262 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/fragment.js +495 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/text.js +55 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/imagecacher.js +58 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/lang.js +152 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/loader.js +242 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/plugindefinition.js +66 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/plugins.js +85 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/resourcemanager.js +238 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/scriptloader.js +198 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/skins.js +204 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/themes.js +19 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/tools.js +685 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ui.js +116 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/xml.js +165 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/_languages.js +83 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/_translationstatus.txt +60 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/af.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ar.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bg.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bn.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bs.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ca.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/cs.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/cy.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/da.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/de.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/el.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-au.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-ca.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-gb.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/eo.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/es.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/et.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/eu.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fa.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fi.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fo.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fr-ca.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fr.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/gl.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/gu.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/he.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hi.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hr.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hu.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/is.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/it.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ja.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/km.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ko.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/lt.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/lv.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/mn.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ms.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/nb.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/nl.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/no.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pl.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pt-br.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pt.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ro.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ru.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sk.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sl.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sr-latn.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sr.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sv.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/th.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/tr.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/uk.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/vi.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/zh-cn.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/zh.js +699 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +211 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/lang/en.js +108 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/plugin.js +46 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/about/dialogs/about.js +73 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/about/plugin.js +23 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/basicstyles/plugin.js +93 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/blockquote/plugin.js +301 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/button/plugin.js +270 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/clipboard/dialogs/paste.js +186 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/clipboard/plugin.js +382 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colorbutton/plugin.js +227 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +191 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colordialog/plugin.js +13 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/contextmenu/plugin.js +274 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialog/dialogDefinition.js +315 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialog/plugin.js +2884 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialogui/plugin.js +1408 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/div/dialogs/div.js +535 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/div/plugin.js +121 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/domiterator/plugin.js +355 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/editingblock/plugin.js +224 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/elementspath/plugin.js +189 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/enterkey/plugin.js +329 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/entities/plugin.js +200 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/fakeobjects/plugin.js +120 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/filebrowser/plugin.js +479 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/find/dialogs/find.js +853 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/find/plugin.js +46 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/flash/dialogs/flash.js +690 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/flash/images/placeholder.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/flash/plugin.js +165 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/floatpanel/plugin.js +376 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/font/plugin.js +233 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/format/plugin.js +193 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/button.js +135 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/checkbox.js +143 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/form.js +177 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +91 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/radio.js +135 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/select.js +556 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/textarea.js +114 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/textfield.js +193 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/plugin.js +217 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/horizontalrule/plugin.js +36 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/htmldataprocessor/plugin.js +458 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/htmlwriter/plugin.js +314 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframedialog/plugin.js +136 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/image/dialogs/image.js +1378 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/image/plugin.js +64 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/indent/plugin.js +349 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/justify/plugin.js +168 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/keystrokes/plugin.js +229 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/dialogs/anchor.js +99 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/dialogs/link.js +1421 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/images/anchor.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/plugin.js +188 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/list/plugin.js +643 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/listblock/plugin.js +252 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/maximize/plugin.js +283 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/menu/plugin.js +406 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/menubutton/plugin.js +93 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/newpage/plugin.js +54 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pagebreak/plugin.js +98 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/panel/plugin.js +379 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/panelbutton/plugin.js +147 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastefromword/filter/default.js +1179 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastefromword/plugin.js +120 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +77 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastetext/plugin.js +162 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/popup/plugin.js +62 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/preview/plugin.js +108 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/print/plugin.js +41 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/removeformat/plugin.js +132 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/resize/plugin.js +115 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/richcombo/plugin.js +367 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/save/plugin.js +55 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/scayt/dialogs/options.js +533 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/scayt/dialogs/toolbar.css +71 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/scayt/plugin.js +603 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/selection/plugin.js +1103 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/plugin.js +154 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showborders/plugin.js +170 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/dialogs/smiley.js +215 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/angel_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/angry_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/broken_heart.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/confused_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/cry_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/devil_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/envelope.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/heart.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/kiss.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/lightbulb.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/omg_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/regular_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/sad_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/shades_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/teeth_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/thumbs_down.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/thumbs_up.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/tounge_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/wink_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/plugin.js +85 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/sourcearea/plugin.js +205 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +373 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/specialchar/plugin.js +29 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/styles/plugin.js +1258 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/stylescombo/plugin.js +282 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/stylescombo/styles/default.js +85 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tab/plugin.js +261 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/table/dialogs/table.js +589 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/table/plugin.js +70 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +523 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tabletools/plugin.js +1022 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/dialogs/templates.js +229 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/plugin.js +100 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/templates/default.js +94 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/templates/images/template1.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/templates/images/template2.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/templates/images/template3.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/toolbar/plugin.js +474 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +204 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/lang/en.js +15 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/plugin.js +37 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/uicolor.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +15 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/yui.js +71 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/undo/plugin.js +519 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +49 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/wsc.css +83 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/wsc.js +176 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/plugin.js +33 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wysiwygarea/plugin.js +851 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/dialog.css +822 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/editor.css +25 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/elementspath.css +72 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/icons.css +326 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/mini.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/noimage.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/sprites.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/mainui.css +183 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/menu.css +211 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/panel.css +216 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/presets.css +49 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/reset.css +78 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/richcombo.css +270 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/skin.js +268 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/templates.css +84 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/toolbar.css +421 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/dialog.css +728 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/editor.css +25 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/elementspath.css +73 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/icons.css +324 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/dialog_sides.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/dialog_sides.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/mini.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/noimage.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/sprites.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/sprites_ie6.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/mainui.css +127 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/menu.css +207 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/panel.css +211 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/presets.css +49 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/reset.css +78 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/richcombo.css +289 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/skin.js +81 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/templates.css +81 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/toolbar.css +475 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/dialog.css +743 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/editor.css +25 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/elementspath.css +73 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/icons.css +324 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/dialog_sides.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/dialog_sides.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/mini.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/noimage.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/sprites.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/sprites_ie6.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/toolbar_start.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/mainui.css +142 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/menu.css +210 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/panel.css +211 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/presets.css +50 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/reset.css +78 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/richcombo.css +289 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/skin.js +77 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/templates.css +81 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/toolbar.css +425 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/themes/default/theme.js +334 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/adapters/jquery.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.js +121 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.pack +205 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.php +29 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_basic.js +8 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_basic_source.js +20 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_php4.php +593 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_php5.php +583 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_source.js +25 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/config.js +11 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/contents.css +35 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/images/spacer.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/_languages.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/_translationstatus.txt +60 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/af.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ar.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bg.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bn.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bs.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ca.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/cs.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/cy.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/da.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/de.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/el.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-au.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-ca.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-gb.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/eo.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/es.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/et.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/eu.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fa.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fi.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fo.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fr-ca.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fr.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/gl.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/gu.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/he.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hi.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hr.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hu.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/is.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/it.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ja.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/km.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ko.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/lt.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/lv.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/mn.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ms.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/nb.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/nl.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/no.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pl.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pt-br.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pt.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ro.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ru.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sk.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sl.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sr-latn.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sr.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sv.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/th.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/tr.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/uk.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/vi.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/zh-cn.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/zh.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/MediaEmbed/dialogs/mediaembed.html +14 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/MediaEmbed/images/icon.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/MediaEmbed/plugin.js +61 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +7 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/lang/en.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/about/dialogs/about.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/clipboard/dialogs/paste.js +7 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/colordialog/dialogs/colordialog.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/div/dialogs/div.js +7 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/find/dialogs/find.js +9 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/flash/dialogs/flash.js +9 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/button.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/checkbox.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/form.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/hiddenfield.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/radio.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/select.js +9 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/textarea.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/textfield.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/iframedialog/plugin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/image/dialogs/image.js +13 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/dialogs/anchor.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/dialogs/link.js +11 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/paperclipped/images/icon.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/paperclipped/plugin.js +21 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/pastefromword/filter/default.js +10 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/pastetext/dialogs/pastetext.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/scayt/dialogs/options.js +8 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/scayt/dialogs/toolbar.css +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/dialogs/smiley.js +7 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/specialchar.js +7 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/stylescombo/styles/default.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/table/dialogs/table.js +9 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/tabletools/dialogs/tableCell.js +8 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/dialogs/templates.js +7 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/templates/default.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/dialogs/uicolor.js +7 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/lang/en.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/plugin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/uicolor.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/yui.css +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/yui.js +76 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/wsc.css +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/wsc.js +7 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/dialog.css +9 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/editor.css +12 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/mini.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/noimage.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/sprites.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/skin.js +7 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/templates.css +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/dialog.css +9 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/editor.css +13 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/mini.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/noimage.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/sprites.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/skin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/templates.css +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/dialog.css +8 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/editor.css +12 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/dialog_sides.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/mini.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/noimage.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/sprites.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/skin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/templates.css +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/themes/default/theme.js +8 -0
- data/public/javascripts/extensions/ck_editor_filter/radiant.ckeditor.js +83 -0
- data/spec/spec.opts +6 -0
- data/spec/spec_helper.rb +36 -0
- metadata +658 -0
data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/editingblock/plugin.js
ADDED
@@ -0,0 +1,224 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
+
*/
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @fileOverview The default editing block plugin, which holds the editing area
|
8
|
+
* and source view.
|
9
|
+
*/
|
10
|
+
|
11
|
+
(function()
|
12
|
+
{
|
13
|
+
var getMode = function( editor, mode )
|
14
|
+
{
|
15
|
+
return editor._.modes && editor._.modes[ mode || editor.mode ];
|
16
|
+
};
|
17
|
+
|
18
|
+
// This is a semaphore used to avoid recursive calls between
|
19
|
+
// the following data handling functions.
|
20
|
+
var isHandlingData;
|
21
|
+
|
22
|
+
CKEDITOR.plugins.add( 'editingblock',
|
23
|
+
{
|
24
|
+
init : function( editor )
|
25
|
+
{
|
26
|
+
if ( !editor.config.editingBlock )
|
27
|
+
return;
|
28
|
+
|
29
|
+
editor.on( 'themeSpace', function( event )
|
30
|
+
{
|
31
|
+
if ( event.data.space == 'contents' )
|
32
|
+
event.data.html += '<br>';
|
33
|
+
});
|
34
|
+
|
35
|
+
editor.on( 'themeLoaded', function()
|
36
|
+
{
|
37
|
+
editor.fireOnce( 'editingBlockReady' );
|
38
|
+
});
|
39
|
+
|
40
|
+
editor.on( 'uiReady', function()
|
41
|
+
{
|
42
|
+
editor.setMode( editor.config.startupMode );
|
43
|
+
});
|
44
|
+
|
45
|
+
editor.on( 'afterSetData', function()
|
46
|
+
{
|
47
|
+
if ( !isHandlingData )
|
48
|
+
{
|
49
|
+
function setData()
|
50
|
+
{
|
51
|
+
isHandlingData = true;
|
52
|
+
getMode( editor ).loadData( editor.getData() );
|
53
|
+
isHandlingData = false;
|
54
|
+
}
|
55
|
+
|
56
|
+
if ( editor.mode )
|
57
|
+
setData();
|
58
|
+
else
|
59
|
+
{
|
60
|
+
editor.on( 'mode', function()
|
61
|
+
{
|
62
|
+
setData();
|
63
|
+
editor.removeListener( 'mode', arguments.callee );
|
64
|
+
});
|
65
|
+
}
|
66
|
+
}
|
67
|
+
});
|
68
|
+
|
69
|
+
editor.on( 'beforeGetData', function()
|
70
|
+
{
|
71
|
+
if ( !isHandlingData && editor.mode )
|
72
|
+
{
|
73
|
+
isHandlingData = true;
|
74
|
+
editor.setData( getMode( editor ).getData() );
|
75
|
+
isHandlingData = false;
|
76
|
+
}
|
77
|
+
});
|
78
|
+
|
79
|
+
editor.on( 'getSnapshot', function( event )
|
80
|
+
{
|
81
|
+
if ( editor.mode )
|
82
|
+
event.data = getMode( editor ).getSnapshotData();
|
83
|
+
});
|
84
|
+
|
85
|
+
editor.on( 'loadSnapshot', function( event )
|
86
|
+
{
|
87
|
+
if ( editor.mode )
|
88
|
+
getMode( editor ).loadSnapshotData( event.data );
|
89
|
+
});
|
90
|
+
|
91
|
+
// For the first "mode" call, we'll also fire the "instanceReady"
|
92
|
+
// event.
|
93
|
+
editor.on( 'mode', function( event )
|
94
|
+
{
|
95
|
+
// Do that once only.
|
96
|
+
event.removeListener();
|
97
|
+
|
98
|
+
if ( editor.config.startupFocus )
|
99
|
+
editor.focus();
|
100
|
+
|
101
|
+
// Fire instanceReady for both the editor and CKEDITOR, but
|
102
|
+
// defer this until the whole execution has completed
|
103
|
+
// to guarantee the editor is fully responsible.
|
104
|
+
setTimeout( function(){
|
105
|
+
editor.fireOnce( 'instanceReady' );
|
106
|
+
CKEDITOR.fire( 'instanceReady', null, editor );
|
107
|
+
} );
|
108
|
+
});
|
109
|
+
}
|
110
|
+
});
|
111
|
+
|
112
|
+
/**
|
113
|
+
* The current editing mode. An editing mode is basically a viewport for
|
114
|
+
* editing or content viewing. By default the possible values for this
|
115
|
+
* property are "wysiwyg" and "source".
|
116
|
+
* @type String
|
117
|
+
* @example
|
118
|
+
* alert( CKEDITOR.instances.editor1.mode ); // "wysiwyg" (e.g.)
|
119
|
+
*/
|
120
|
+
CKEDITOR.editor.prototype.mode = '';
|
121
|
+
|
122
|
+
/**
|
123
|
+
* Registers an editing mode. This function is to be used mainly by plugins.
|
124
|
+
* @param {String} mode The mode name.
|
125
|
+
* @param {Object} modeEditor The mode editor definition.
|
126
|
+
* @example
|
127
|
+
*/
|
128
|
+
CKEDITOR.editor.prototype.addMode = function( mode, modeEditor )
|
129
|
+
{
|
130
|
+
modeEditor.name = mode;
|
131
|
+
( this._.modes || ( this._.modes = {} ) )[ mode ] = modeEditor;
|
132
|
+
};
|
133
|
+
|
134
|
+
/**
|
135
|
+
* Sets the current editing mode in this editor instance.
|
136
|
+
* @param {String} mode A registered mode name.
|
137
|
+
* @example
|
138
|
+
* // Switch to "source" view.
|
139
|
+
* CKEDITOR.instances.editor1.setMode( 'source' );
|
140
|
+
*/
|
141
|
+
CKEDITOR.editor.prototype.setMode = function( mode )
|
142
|
+
{
|
143
|
+
var data,
|
144
|
+
holderElement = this.getThemeSpace( 'contents' ),
|
145
|
+
isDirty = this.checkDirty();
|
146
|
+
|
147
|
+
// Unload the previous mode.
|
148
|
+
if ( this.mode )
|
149
|
+
{
|
150
|
+
if ( mode == this.mode )
|
151
|
+
return;
|
152
|
+
|
153
|
+
this.fire( 'beforeModeUnload' );
|
154
|
+
|
155
|
+
var currentMode = getMode( this );
|
156
|
+
data = currentMode.getData();
|
157
|
+
currentMode.unload( holderElement );
|
158
|
+
this.mode = '';
|
159
|
+
}
|
160
|
+
|
161
|
+
holderElement.setHtml( '' );
|
162
|
+
|
163
|
+
// Load required mode.
|
164
|
+
var modeEditor = getMode( this, mode );
|
165
|
+
if ( !modeEditor )
|
166
|
+
throw '[CKEDITOR.editor.setMode] Unknown mode "' + mode + '".';
|
167
|
+
|
168
|
+
if ( !isDirty )
|
169
|
+
{
|
170
|
+
this.on( 'mode', function()
|
171
|
+
{
|
172
|
+
this.resetDirty();
|
173
|
+
this.removeListener( 'mode', arguments.callee );
|
174
|
+
});
|
175
|
+
}
|
176
|
+
|
177
|
+
modeEditor.load( holderElement, ( typeof data ) != 'string' ? this.getData() : data);
|
178
|
+
};
|
179
|
+
|
180
|
+
/**
|
181
|
+
* Moves the selection focus to the editing are space in the editor.
|
182
|
+
*/
|
183
|
+
CKEDITOR.editor.prototype.focus = function()
|
184
|
+
{
|
185
|
+
var mode = getMode( this );
|
186
|
+
if ( mode )
|
187
|
+
mode.focus();
|
188
|
+
};
|
189
|
+
})();
|
190
|
+
|
191
|
+
/**
|
192
|
+
* The mode to load at the editor startup. It depends on the plugins
|
193
|
+
* loaded. By default, the "wysiwyg" and "source" modes are available.
|
194
|
+
* @type String
|
195
|
+
* @default 'wysiwyg'
|
196
|
+
* @example
|
197
|
+
* config.startupMode = 'source';
|
198
|
+
*/
|
199
|
+
CKEDITOR.config.startupMode = 'wysiwyg';
|
200
|
+
|
201
|
+
/**
|
202
|
+
* Sets whether the editor should have the focus when the page loads.
|
203
|
+
* @type Boolean
|
204
|
+
* @default false
|
205
|
+
* @example
|
206
|
+
* config.startupFocus = true;
|
207
|
+
*/
|
208
|
+
CKEDITOR.config.startupFocus = false;
|
209
|
+
|
210
|
+
/**
|
211
|
+
* Whether to render or not the editing block area in the editor interface.
|
212
|
+
* @type Boolean
|
213
|
+
* @default true
|
214
|
+
* @example
|
215
|
+
* config.editingBlock = false;
|
216
|
+
*/
|
217
|
+
CKEDITOR.config.editingBlock = true;
|
218
|
+
|
219
|
+
/**
|
220
|
+
* Fired when a CKEDITOR instance is created, fully initialized and ready for interaction.
|
221
|
+
* @name CKEDITOR#instanceReady
|
222
|
+
* @event
|
223
|
+
* @param {CKEDITOR.editor} editor The editor instance that has been created.
|
224
|
+
*/
|
data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/elementspath/plugin.js
ADDED
@@ -0,0 +1,189 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
+
*/
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @fileOverview The "elementspath" plugin. It shows all elements in the DOM
|
8
|
+
* parent tree relative to the current selection in the editing area.
|
9
|
+
*/
|
10
|
+
|
11
|
+
(function()
|
12
|
+
{
|
13
|
+
var commands =
|
14
|
+
{
|
15
|
+
toolbarFocus :
|
16
|
+
{
|
17
|
+
exec : function( editor )
|
18
|
+
{
|
19
|
+
var idBase = editor._.elementsPath.idBase;
|
20
|
+
var element = CKEDITOR.document.getById( idBase + '0' );
|
21
|
+
|
22
|
+
if ( element )
|
23
|
+
element.focus();
|
24
|
+
}
|
25
|
+
}
|
26
|
+
};
|
27
|
+
|
28
|
+
var emptyHtml = '<span class="cke_empty"> </span>';
|
29
|
+
|
30
|
+
CKEDITOR.plugins.add( 'elementspath',
|
31
|
+
{
|
32
|
+
requires : [ 'selection' ],
|
33
|
+
|
34
|
+
init : function( editor )
|
35
|
+
{
|
36
|
+
var spaceId = 'cke_path_' + editor.name;
|
37
|
+
var spaceElement;
|
38
|
+
var getSpaceElement = function()
|
39
|
+
{
|
40
|
+
if ( !spaceElement )
|
41
|
+
spaceElement = CKEDITOR.document.getById( spaceId );
|
42
|
+
return spaceElement;
|
43
|
+
};
|
44
|
+
|
45
|
+
var idBase = 'cke_elementspath_' + CKEDITOR.tools.getNextNumber() + '_';
|
46
|
+
|
47
|
+
editor._.elementsPath = { idBase : idBase };
|
48
|
+
|
49
|
+
editor.on( 'themeSpace', function( event )
|
50
|
+
{
|
51
|
+
if ( event.data.space == 'bottom' )
|
52
|
+
{
|
53
|
+
event.data.html +=
|
54
|
+
'<span id="' + spaceId + '_label" class="cke_voice_label">' + editor.lang.elementsPath.eleLabel + '</span>' +
|
55
|
+
'<div id="' + spaceId + '" class="cke_path" role="group" aria-labelledby="' + spaceId + '_label">' + emptyHtml + '</div>';
|
56
|
+
}
|
57
|
+
});
|
58
|
+
|
59
|
+
editor.on( 'selectionChange', function( ev )
|
60
|
+
{
|
61
|
+
var env = CKEDITOR.env;
|
62
|
+
|
63
|
+
var selection = ev.data.selection;
|
64
|
+
|
65
|
+
var element = selection.getStartElement(),
|
66
|
+
html = [],
|
67
|
+
elementsList = this._.elementsPath.list = [];
|
68
|
+
|
69
|
+
while ( element )
|
70
|
+
{
|
71
|
+
var index = elementsList.push( element ) - 1;
|
72
|
+
var name;
|
73
|
+
if ( element.getAttribute( '_cke_real_element_type' ) )
|
74
|
+
name = element.getAttribute( '_cke_real_element_type' );
|
75
|
+
else
|
76
|
+
name = element.getName();
|
77
|
+
|
78
|
+
// Use this variable to add conditional stuff to the
|
79
|
+
// HTML (because we are doing it in reverse order... unshift).
|
80
|
+
var extra = '';
|
81
|
+
|
82
|
+
// Some browsers don't cancel key events in the keydown but in the
|
83
|
+
// keypress.
|
84
|
+
// TODO: Check if really needed for Gecko+Mac.
|
85
|
+
if ( env.opera || ( env.gecko && env.mac ) )
|
86
|
+
extra += ' onkeypress="return false;"';
|
87
|
+
|
88
|
+
// With Firefox, we need to force the button to redraw, otherwise it
|
89
|
+
// will remain in the focus state.
|
90
|
+
if ( env.gecko )
|
91
|
+
extra += ' onblur="this.style.cssText = this.style.cssText;"';
|
92
|
+
|
93
|
+
var label = editor.lang.elementsPath.eleTitle.replace( /%1/, name );
|
94
|
+
html.unshift(
|
95
|
+
'<a' +
|
96
|
+
' id="', idBase, index, '"' +
|
97
|
+
' href="javascript:void(\'', name, '\')"' +
|
98
|
+
' tabindex="-1"' +
|
99
|
+
' title="', label, '"' +
|
100
|
+
( ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) ?
|
101
|
+
' onfocus="event.preventBubble();"' : '' ) +
|
102
|
+
' hidefocus="true" ' +
|
103
|
+
' onkeydown="return CKEDITOR._.elementsPath.keydown(\'', this.name, '\',', index, ', event);"' +
|
104
|
+
extra ,
|
105
|
+
' onclick="return CKEDITOR._.elementsPath.click(\'', this.name, '\',', index, ');"',
|
106
|
+
' role="button" aria-labelledby="' + idBase + index + '_label">',
|
107
|
+
name,
|
108
|
+
'<span id="', idBase, index, '_label" class="cke_label">' + label + '</span>',
|
109
|
+
'</a>' );
|
110
|
+
|
111
|
+
if ( name == 'body' )
|
112
|
+
break;
|
113
|
+
|
114
|
+
element = element.getParent();
|
115
|
+
}
|
116
|
+
|
117
|
+
getSpaceElement().setHtml( html.join('') + emptyHtml );
|
118
|
+
});
|
119
|
+
|
120
|
+
editor.on( 'contentDomUnload', function()
|
121
|
+
{
|
122
|
+
getSpaceElement().setHtml( emptyHtml );
|
123
|
+
});
|
124
|
+
|
125
|
+
editor.addCommand( 'elementsPathFocus', commands.toolbarFocus );
|
126
|
+
}
|
127
|
+
});
|
128
|
+
})();
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Handles the click on an element in the element path.
|
132
|
+
* @private
|
133
|
+
*/
|
134
|
+
CKEDITOR._.elementsPath =
|
135
|
+
{
|
136
|
+
click : function( instanceName, elementIndex )
|
137
|
+
{
|
138
|
+
var editor = CKEDITOR.instances[ instanceName ];
|
139
|
+
editor.focus();
|
140
|
+
|
141
|
+
var element = editor._.elementsPath.list[ elementIndex ];
|
142
|
+
editor.getSelection().selectElement( element );
|
143
|
+
|
144
|
+
return false;
|
145
|
+
},
|
146
|
+
|
147
|
+
keydown : function( instanceName, elementIndex, ev )
|
148
|
+
{
|
149
|
+
var instance = CKEDITOR.ui.button._.instances[ elementIndex ];
|
150
|
+
var editor = CKEDITOR.instances[ instanceName ];
|
151
|
+
var idBase = editor._.elementsPath.idBase;
|
152
|
+
|
153
|
+
var element;
|
154
|
+
|
155
|
+
ev = new CKEDITOR.dom.event( ev );
|
156
|
+
|
157
|
+
switch ( ev.getKeystroke() )
|
158
|
+
{
|
159
|
+
case 37 : // LEFT-ARROW
|
160
|
+
case 9 : // TAB
|
161
|
+
element = CKEDITOR.document.getById( idBase + ( elementIndex + 1 ) );
|
162
|
+
if ( !element )
|
163
|
+
element = CKEDITOR.document.getById( idBase + '0' );
|
164
|
+
element.focus();
|
165
|
+
return false;
|
166
|
+
|
167
|
+
case 39 : // RIGHT-ARROW
|
168
|
+
case CKEDITOR.SHIFT + 9 : // SHIFT + TAB
|
169
|
+
element = CKEDITOR.document.getById( idBase + ( elementIndex - 1 ) );
|
170
|
+
if ( !element )
|
171
|
+
element = CKEDITOR.document.getById( idBase + ( editor._.elementsPath.list.length - 1 ) );
|
172
|
+
element.focus();
|
173
|
+
return false;
|
174
|
+
|
175
|
+
case 27 : // ESC
|
176
|
+
editor.focus();
|
177
|
+
return false;
|
178
|
+
|
179
|
+
case 13 : // ENTER // Opera
|
180
|
+
case 32 : // SPACE
|
181
|
+
this.click( instanceName, elementIndex );
|
182
|
+
return false;
|
183
|
+
|
184
|
+
//default :
|
185
|
+
// alert( ev.getKeystroke() );
|
186
|
+
}
|
187
|
+
return true;
|
188
|
+
}
|
189
|
+
};
|
data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/enterkey/plugin.js
ADDED
@@ -0,0 +1,329 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
+
*/
|
5
|
+
|
6
|
+
(function()
|
7
|
+
{
|
8
|
+
CKEDITOR.plugins.add( 'enterkey',
|
9
|
+
{
|
10
|
+
requires : [ 'keystrokes', 'indent' ],
|
11
|
+
|
12
|
+
init : function( editor )
|
13
|
+
{
|
14
|
+
var specialKeys = editor.specialKeys;
|
15
|
+
specialKeys[ 13 ] = enter;
|
16
|
+
specialKeys[ CKEDITOR.SHIFT + 13 ] = shiftEnter;
|
17
|
+
}
|
18
|
+
});
|
19
|
+
|
20
|
+
CKEDITOR.plugins.enterkey =
|
21
|
+
{
|
22
|
+
enterBlock : function( editor, mode, range, forceMode )
|
23
|
+
{
|
24
|
+
// Get the range for the current selection.
|
25
|
+
range = range || getRange( editor );
|
26
|
+
|
27
|
+
var doc = range.document;
|
28
|
+
|
29
|
+
// Determine the block element to be used.
|
30
|
+
var blockTag = ( mode == CKEDITOR.ENTER_DIV ? 'div' : 'p' );
|
31
|
+
|
32
|
+
// Split the range.
|
33
|
+
var splitInfo = range.splitBlock( blockTag );
|
34
|
+
|
35
|
+
if ( !splitInfo )
|
36
|
+
return;
|
37
|
+
|
38
|
+
// Get the current blocks.
|
39
|
+
var previousBlock = splitInfo.previousBlock,
|
40
|
+
nextBlock = splitInfo.nextBlock;
|
41
|
+
|
42
|
+
var isStartOfBlock = splitInfo.wasStartOfBlock,
|
43
|
+
isEndOfBlock = splitInfo.wasEndOfBlock;
|
44
|
+
|
45
|
+
var node;
|
46
|
+
|
47
|
+
// If this is a block under a list item, split it as well. (#1647)
|
48
|
+
if ( nextBlock )
|
49
|
+
{
|
50
|
+
node = nextBlock.getParent();
|
51
|
+
if ( node.is( 'li' ) )
|
52
|
+
{
|
53
|
+
nextBlock.breakParent( node );
|
54
|
+
nextBlock.move( nextBlock.getNext(), true );
|
55
|
+
}
|
56
|
+
}
|
57
|
+
else if ( previousBlock && ( node = previousBlock.getParent() ) && node.is( 'li' ) )
|
58
|
+
{
|
59
|
+
previousBlock.breakParent( node );
|
60
|
+
range.moveToElementEditStart( previousBlock.getNext() );
|
61
|
+
previousBlock.move( previousBlock.getPrevious() );
|
62
|
+
}
|
63
|
+
|
64
|
+
// If we have both the previous and next blocks, it means that the
|
65
|
+
// boundaries were on separated blocks, or none of them where on the
|
66
|
+
// block limits (start/end).
|
67
|
+
if ( !isStartOfBlock && !isEndOfBlock )
|
68
|
+
{
|
69
|
+
// If the next block is an <li> with another list tree as the first
|
70
|
+
// child, we'll need to append a filler (<br>/NBSP) or the list item
|
71
|
+
// wouldn't be editable. (#1420)
|
72
|
+
if ( nextBlock.is( 'li' )
|
73
|
+
&& ( node = nextBlock.getFirst( CKEDITOR.dom.walker.invisible( true ) ) )
|
74
|
+
&& node.is && node.is( 'ul', 'ol' ) )
|
75
|
+
( CKEDITOR.env.ie ? doc.createText( '\xa0' ) : doc.createElement( 'br' ) ).insertBefore( node );
|
76
|
+
|
77
|
+
// Move the selection to the end block.
|
78
|
+
if ( nextBlock )
|
79
|
+
range.moveToElementEditStart( nextBlock );
|
80
|
+
}
|
81
|
+
else
|
82
|
+
{
|
83
|
+
|
84
|
+
if ( isStartOfBlock && isEndOfBlock && previousBlock.is( 'li' ) )
|
85
|
+
{
|
86
|
+
editor.execCommand( 'outdent' );
|
87
|
+
return;
|
88
|
+
}
|
89
|
+
|
90
|
+
var newBlock;
|
91
|
+
|
92
|
+
if ( previousBlock )
|
93
|
+
{
|
94
|
+
// Do not enter this block if it's a header tag, or we are in
|
95
|
+
// a Shift+Enter (#77). Create a new block element instead
|
96
|
+
// (later in the code).
|
97
|
+
if ( !forceMode && !headerTagRegex.test( previousBlock.getName() ) )
|
98
|
+
{
|
99
|
+
// Otherwise, duplicate the previous block.
|
100
|
+
newBlock = previousBlock.clone();
|
101
|
+
}
|
102
|
+
}
|
103
|
+
else if ( nextBlock )
|
104
|
+
newBlock = nextBlock.clone();
|
105
|
+
|
106
|
+
if ( !newBlock )
|
107
|
+
newBlock = doc.createElement( blockTag );
|
108
|
+
|
109
|
+
// Recreate the inline elements tree, which was available
|
110
|
+
// before hitting enter, so the same styles will be available in
|
111
|
+
// the new block.
|
112
|
+
var elementPath = splitInfo.elementPath;
|
113
|
+
if ( elementPath )
|
114
|
+
{
|
115
|
+
for ( var i = 0, len = elementPath.elements.length ; i < len ; i++ )
|
116
|
+
{
|
117
|
+
var element = elementPath.elements[ i ];
|
118
|
+
|
119
|
+
if ( element.equals( elementPath.block ) || element.equals( elementPath.blockLimit ) )
|
120
|
+
break;
|
121
|
+
|
122
|
+
if ( CKEDITOR.dtd.$removeEmpty[ element.getName() ] )
|
123
|
+
{
|
124
|
+
element = element.clone();
|
125
|
+
newBlock.moveChildren( element );
|
126
|
+
newBlock.append( element );
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
if ( !CKEDITOR.env.ie )
|
132
|
+
newBlock.appendBogus();
|
133
|
+
|
134
|
+
range.insertNode( newBlock );
|
135
|
+
|
136
|
+
// This is tricky, but to make the new block visible correctly
|
137
|
+
// we must select it.
|
138
|
+
// The previousBlock check has been included because it may be
|
139
|
+
// empty if we have fixed a block-less space (like ENTER into an
|
140
|
+
// empty table cell).
|
141
|
+
if ( CKEDITOR.env.ie && isStartOfBlock && ( !isEndOfBlock || !previousBlock.getChildCount() ) )
|
142
|
+
{
|
143
|
+
// Move the selection to the new block.
|
144
|
+
range.moveToElementEditStart( isEndOfBlock ? previousBlock : newBlock );
|
145
|
+
range.select();
|
146
|
+
}
|
147
|
+
|
148
|
+
// Move the selection to the new block.
|
149
|
+
range.moveToElementEditStart( isStartOfBlock && !isEndOfBlock ? nextBlock : newBlock );
|
150
|
+
}
|
151
|
+
|
152
|
+
if ( !CKEDITOR.env.ie )
|
153
|
+
{
|
154
|
+
if ( nextBlock )
|
155
|
+
{
|
156
|
+
// If we have split the block, adds a temporary span at the
|
157
|
+
// range position and scroll relatively to it.
|
158
|
+
var tmpNode = doc.createElement( 'span' );
|
159
|
+
|
160
|
+
// We need some content for Safari.
|
161
|
+
tmpNode.setHtml( ' ' );
|
162
|
+
|
163
|
+
range.insertNode( tmpNode );
|
164
|
+
tmpNode.scrollIntoView();
|
165
|
+
range.deleteContents();
|
166
|
+
}
|
167
|
+
else
|
168
|
+
{
|
169
|
+
// We may use the above scroll logic for the new block case
|
170
|
+
// too, but it gives some weird result with Opera.
|
171
|
+
newBlock.scrollIntoView();
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
range.select();
|
176
|
+
},
|
177
|
+
|
178
|
+
enterBr : function( editor, mode, range, forceMode )
|
179
|
+
{
|
180
|
+
// Get the range for the current selection.
|
181
|
+
range = range || getRange( editor );
|
182
|
+
|
183
|
+
var doc = range.document;
|
184
|
+
|
185
|
+
// Determine the block element to be used.
|
186
|
+
var blockTag = ( mode == CKEDITOR.ENTER_DIV ? 'div' : 'p' );
|
187
|
+
|
188
|
+
var isEndOfBlock = range.checkEndOfBlock();
|
189
|
+
|
190
|
+
var elementPath = new CKEDITOR.dom.elementPath( editor.getSelection().getStartElement() );
|
191
|
+
|
192
|
+
var startBlock = elementPath.block,
|
193
|
+
startBlockTag = startBlock && elementPath.block.getName();
|
194
|
+
|
195
|
+
var isPre = false;
|
196
|
+
|
197
|
+
if ( !forceMode && startBlockTag == 'li' )
|
198
|
+
{
|
199
|
+
enterBlock( editor, mode, range, forceMode );
|
200
|
+
return;
|
201
|
+
}
|
202
|
+
|
203
|
+
// If we are at the end of a header block.
|
204
|
+
if ( !forceMode && isEndOfBlock && headerTagRegex.test( startBlockTag ) )
|
205
|
+
{
|
206
|
+
// Insert a <br> after the current paragraph.
|
207
|
+
doc.createElement( 'br' ).insertAfter( startBlock );
|
208
|
+
|
209
|
+
// A text node is required by Gecko only to make the cursor blink.
|
210
|
+
if ( CKEDITOR.env.gecko )
|
211
|
+
doc.createText( '' ).insertAfter( startBlock );
|
212
|
+
|
213
|
+
// IE has different behaviors regarding position.
|
214
|
+
range.setStartAt( startBlock.getNext(), CKEDITOR.env.ie ? CKEDITOR.POSITION_BEFORE_START : CKEDITOR.POSITION_AFTER_START );
|
215
|
+
}
|
216
|
+
else
|
217
|
+
{
|
218
|
+
var lineBreak;
|
219
|
+
|
220
|
+
isPre = ( startBlockTag == 'pre' );
|
221
|
+
|
222
|
+
if ( isPre )
|
223
|
+
lineBreak = doc.createText( CKEDITOR.env.ie ? '\r' : '\n' );
|
224
|
+
else
|
225
|
+
lineBreak = doc.createElement( 'br' );
|
226
|
+
|
227
|
+
range.deleteContents();
|
228
|
+
range.insertNode( lineBreak );
|
229
|
+
|
230
|
+
// A text node is required by Gecko only to make the cursor blink.
|
231
|
+
// We need some text inside of it, so the bogus <br> is properly
|
232
|
+
// created.
|
233
|
+
if ( !CKEDITOR.env.ie )
|
234
|
+
doc.createText( '\ufeff' ).insertAfter( lineBreak );
|
235
|
+
|
236
|
+
// If we are at the end of a block, we must be sure the bogus node is available in that block.
|
237
|
+
if ( isEndOfBlock && !CKEDITOR.env.ie )
|
238
|
+
lineBreak.getParent().appendBogus();
|
239
|
+
|
240
|
+
// Now we can remove the text node contents, so the caret doesn't
|
241
|
+
// stop on it.
|
242
|
+
if ( !CKEDITOR.env.ie )
|
243
|
+
lineBreak.getNext().$.nodeValue = '';
|
244
|
+
// IE has different behavior regarding position.
|
245
|
+
if ( CKEDITOR.env.ie )
|
246
|
+
range.setStartAt( lineBreak, CKEDITOR.POSITION_AFTER_END );
|
247
|
+
else
|
248
|
+
range.setStartAt( lineBreak.getNext(), CKEDITOR.POSITION_AFTER_START );
|
249
|
+
|
250
|
+
// Scroll into view, for non IE.
|
251
|
+
if ( !CKEDITOR.env.ie )
|
252
|
+
{
|
253
|
+
var dummy = null;
|
254
|
+
|
255
|
+
// BR is not positioned in Opera and Webkit.
|
256
|
+
if ( !CKEDITOR.env.gecko )
|
257
|
+
{
|
258
|
+
dummy = doc.createElement( 'span' );
|
259
|
+
// We need have some contents for Webkit to position it
|
260
|
+
// under parent node. ( #3681)
|
261
|
+
dummy.setHtml(' ');
|
262
|
+
}
|
263
|
+
else
|
264
|
+
dummy = doc.createElement( 'br' );
|
265
|
+
|
266
|
+
dummy.insertBefore( lineBreak.getNext() );
|
267
|
+
dummy.scrollIntoView();
|
268
|
+
dummy.remove();
|
269
|
+
}
|
270
|
+
}
|
271
|
+
|
272
|
+
// This collapse guarantees the cursor will be blinking.
|
273
|
+
range.collapse( true );
|
274
|
+
|
275
|
+
range.select( isPre );
|
276
|
+
}
|
277
|
+
};
|
278
|
+
|
279
|
+
var plugin = CKEDITOR.plugins.enterkey,
|
280
|
+
enterBr = plugin.enterBr,
|
281
|
+
enterBlock = plugin.enterBlock,
|
282
|
+
headerTagRegex = /^h[1-6]$/;
|
283
|
+
|
284
|
+
function shiftEnter( editor )
|
285
|
+
{
|
286
|
+
// On SHIFT+ENTER we want to enforce the mode to be respected, instead
|
287
|
+
// of cloning the current block. (#77)
|
288
|
+
return enter( editor, editor.config.shiftEnterMode, true );
|
289
|
+
}
|
290
|
+
|
291
|
+
function enter( editor, mode, forceMode )
|
292
|
+
{
|
293
|
+
// Only effective within document.
|
294
|
+
if ( editor.mode != 'wysiwyg' )
|
295
|
+
return false;
|
296
|
+
|
297
|
+
if ( !mode )
|
298
|
+
mode = editor.config.enterMode;
|
299
|
+
|
300
|
+
// Use setTimout so the keys get cancelled immediatelly.
|
301
|
+
setTimeout( function()
|
302
|
+
{
|
303
|
+
editor.fire( 'saveSnapshot' ); // Save undo step.
|
304
|
+
if ( mode == CKEDITOR.ENTER_BR || editor.getSelection().getStartElement().hasAscendant( 'pre', true ) )
|
305
|
+
enterBr( editor, mode, null, forceMode );
|
306
|
+
else
|
307
|
+
enterBlock( editor, mode, null, forceMode );
|
308
|
+
|
309
|
+
}, 0 );
|
310
|
+
|
311
|
+
return true;
|
312
|
+
}
|
313
|
+
|
314
|
+
|
315
|
+
function getRange( editor )
|
316
|
+
{
|
317
|
+
// Get the selection ranges.
|
318
|
+
var ranges = editor.getSelection().getRanges();
|
319
|
+
|
320
|
+
// Delete the contents of all ranges except the first one.
|
321
|
+
for ( var i = ranges.length - 1 ; i > 0 ; i-- )
|
322
|
+
{
|
323
|
+
ranges[ i ].deleteContents();
|
324
|
+
}
|
325
|
+
|
326
|
+
// Return the first range.
|
327
|
+
return ranges[ 0 ];
|
328
|
+
}
|
329
|
+
})();
|