ckeditor 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +15 -0
- data/README.textile +225 -0
- data/Rakefile +44 -0
- data/TODO +3 -0
- data/app/controllers/ckeditor_controller.rb +87 -0
- data/app/helpers/ckeditor_helper.rb +37 -0
- data/app/views/ckeditor/_file.html.erb +15 -0
- data/app/views/ckeditor/_image.html.erb +15 -0
- data/app/views/ckeditor/_swfupload.html.erb +51 -0
- data/app/views/ckeditor/files.html.erb +91 -0
- data/app/views/ckeditor/images.html.erb +91 -0
- data/app/views/layouts/ckeditor.html.erb +30 -0
- data/config/routes.rb +5 -0
- data/examples/migrations/attachment_fu/create_assets.rb +30 -0
- data/examples/migrations/paperclip/create_assets.rb +25 -0
- data/examples/models/attachment_fu/asset.rb +45 -0
- data/examples/models/attachment_fu/attachment_file.rb +46 -0
- data/examples/models/attachment_fu/picture.rb +46 -0
- data/examples/models/paperclip/asset.rb +65 -0
- data/examples/models/paperclip/attachment_file.rb +22 -0
- data/examples/models/paperclip/picture.rb +39 -0
- data/examples/s3/attachment_file.rb +23 -0
- data/examples/s3/picture.rb +41 -0
- data/lib/ckeditor.rb +57 -0
- data/lib/ckeditor/engine.rb +10 -0
- data/lib/ckeditor/file_storage.rb +178 -0
- data/lib/ckeditor/form_builder.rb +22 -0
- data/lib/ckeditor/utils.rb +15 -0
- data/lib/ckeditor/version.rb +11 -0
- data/lib/ckeditor/view_helper.rb +119 -0
- data/lib/generators/ckeditor_generator.rb +23 -0
- data/lib/generators/templates/ckeditor.rb +51 -0
- data/lib/generators/templates/ckeditor.yml +28 -0
- data/lib/generators/templates/ckeditor/CHANGES.html +642 -0
- data/lib/generators/templates/ckeditor/INSTALL.html +92 -0
- data/lib/generators/templates/ckeditor/LICENSE.html +1334 -0
- data/lib/generators/templates/ckeditor/_samples/ajax.html +87 -0
- data/lib/generators/templates/ckeditor/_samples/api.html +152 -0
- data/lib/generators/templates/ckeditor/_samples/api_dialog.html +181 -0
- data/lib/generators/templates/ckeditor/_samples/api_dialog/my_dialog.js +28 -0
- data/lib/generators/templates/ckeditor/_samples/assets/output_xhtml.css +204 -0
- data/lib/generators/templates/ckeditor/_samples/divreplace.html +137 -0
- data/lib/generators/templates/ckeditor/_samples/enterkey.html +88 -0
- data/lib/generators/templates/ckeditor/_samples/fullpage.html +62 -0
- data/lib/generators/templates/ckeditor/_samples/index.html +54 -0
- data/lib/generators/templates/ckeditor/_samples/jqueryadapter.html +73 -0
- data/lib/generators/templates/ckeditor/_samples/output_xhtml.html +159 -0
- data/lib/generators/templates/ckeditor/_samples/php/advanced.php +93 -0
- data/lib/generators/templates/ckeditor/_samples/php/events.php +130 -0
- data/lib/generators/templates/ckeditor/_samples/php/replace.php +63 -0
- data/lib/generators/templates/ckeditor/_samples/php/replaceall.php +68 -0
- data/lib/generators/templates/ckeditor/_samples/php/standalone.php +64 -0
- data/lib/generators/templates/ckeditor/_samples/replacebyclass.html +49 -0
- data/lib/generators/templates/ckeditor/_samples/replacebycode.html +80 -0
- data/lib/generators/templates/ckeditor/_samples/sample.css +81 -0
- data/lib/generators/templates/ckeditor/_samples/sample.js +65 -0
- data/lib/generators/templates/ckeditor/_samples/sample_posteddata.php +59 -0
- data/lib/generators/templates/ckeditor/_samples/sharedspaces.html +131 -0
- data/lib/generators/templates/ckeditor/_samples/skins.html +83 -0
- data/lib/generators/templates/ckeditor/_samples/ui_color.html +87 -0
- data/lib/generators/templates/ckeditor/_samples/ui_languages.html +103 -0
- data/lib/generators/templates/ckeditor/_source/adapters/jquery.js +297 -0
- data/lib/generators/templates/ckeditor/_source/core/_bootstrap.js +91 -0
- data/lib/generators/templates/ckeditor/_source/core/ajax.js +143 -0
- data/lib/generators/templates/ckeditor/_source/core/ckeditor.js +103 -0
- data/lib/generators/templates/ckeditor/_source/core/ckeditor_base.js +193 -0
- data/lib/generators/templates/ckeditor/_source/core/ckeditor_basic.js +242 -0
- data/lib/generators/templates/ckeditor/_source/core/command.js +73 -0
- data/lib/generators/templates/ckeditor/_source/core/commanddefinition.js +102 -0
- data/lib/generators/templates/ckeditor/_source/core/config.js +319 -0
- data/lib/generators/templates/ckeditor/_source/core/dataprocessor.js +66 -0
- data/lib/generators/templates/ckeditor/_source/core/dom.js +21 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/comment.js +32 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/document.js +224 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/documentfragment.js +49 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/domobject.js +246 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/element.js +1441 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/elementpath.js +104 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/event.js +142 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/node.js +662 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/nodelist.js +23 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/range.js +1836 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/text.js +123 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/walker.js +451 -0
- data/lib/generators/templates/ckeditor/_source/core/dom/window.js +96 -0
- data/lib/generators/templates/ckeditor/_source/core/dtd.js +233 -0
- data/lib/generators/templates/ckeditor/_source/core/editor.js +756 -0
- data/lib/generators/templates/ckeditor/_source/core/editor_basic.js +182 -0
- data/lib/generators/templates/ckeditor/_source/core/env.js +222 -0
- data/lib/generators/templates/ckeditor/_source/core/event.js +336 -0
- data/lib/generators/templates/ckeditor/_source/core/eventInfo.js +120 -0
- data/lib/generators/templates/ckeditor/_source/core/focusmanager.js +137 -0
- data/lib/generators/templates/ckeditor/_source/core/htmlparser.js +212 -0
- data/lib/generators/templates/ckeditor/_source/core/htmlparser/basicwriter.js +145 -0
- data/lib/generators/templates/ckeditor/_source/core/htmlparser/cdata.js +43 -0
- data/lib/generators/templates/ckeditor/_source/core/htmlparser/comment.js +60 -0
- data/lib/generators/templates/ckeditor/_source/core/htmlparser/element.js +240 -0
- data/lib/generators/templates/ckeditor/_source/core/htmlparser/filter.js +262 -0
- data/lib/generators/templates/ckeditor/_source/core/htmlparser/fragment.js +496 -0
- data/lib/generators/templates/ckeditor/_source/core/htmlparser/text.js +55 -0
- data/lib/generators/templates/ckeditor/_source/core/imagecacher.js +59 -0
- data/lib/generators/templates/ckeditor/_source/core/lang.js +152 -0
- data/lib/generators/templates/ckeditor/_source/core/loader.js +242 -0
- data/lib/generators/templates/ckeditor/_source/core/plugindefinition.js +66 -0
- data/lib/generators/templates/ckeditor/_source/core/plugins.js +85 -0
- data/lib/generators/templates/ckeditor/_source/core/resourcemanager.js +238 -0
- data/lib/generators/templates/ckeditor/_source/core/scriptloader.js +198 -0
- data/lib/generators/templates/ckeditor/_source/core/skins.js +204 -0
- data/lib/generators/templates/ckeditor/_source/core/themes.js +19 -0
- data/lib/generators/templates/ckeditor/_source/core/tools.js +698 -0
- data/lib/generators/templates/ckeditor/_source/core/ui.js +116 -0
- data/lib/generators/templates/ckeditor/_source/core/xml.js +165 -0
- data/lib/generators/templates/ckeditor/_source/lang/_languages.js +83 -0
- data/lib/generators/templates/ckeditor/_source/lang/_translationstatus.txt +60 -0
- data/lib/generators/templates/ckeditor/_source/lang/af.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/ar.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/bg.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/bn.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/bs.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/ca.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/cs.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/cy.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/da.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/de.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/el.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/en-au.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/en-ca.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/en-gb.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/en.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/eo.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/es.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/et.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/eu.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/fa.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/fi.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/fo.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/fr-ca.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/fr.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/gl.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/gu.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/he.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/hi.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/hr.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/hu.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/is.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/it.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/ja.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/km.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/ko.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/lt.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/lv.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/mn.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/ms.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/nb.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/nl.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/no.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/pl.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/pt-br.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/pt.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/ro.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/ru.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/sk.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/sl.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/sr-latn.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/sr.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/sv.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/th.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/tr.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/uk.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/vi.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/zh-cn.js +708 -0
- data/lib/generators/templates/ckeditor/_source/lang/zh.js +708 -0
- data/lib/generators/templates/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +211 -0
- data/lib/generators/templates/ckeditor/_source/plugins/a11yhelp/lang/en.js +108 -0
- data/lib/generators/templates/ckeditor/_source/plugins/a11yhelp/plugin.js +46 -0
- data/lib/generators/templates/ckeditor/_source/plugins/about/dialogs/about.js +73 -0
- data/lib/generators/templates/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/about/plugin.js +23 -0
- data/lib/generators/templates/ckeditor/_source/plugins/attachment/dialogs/attachment.js +384 -0
- data/lib/generators/templates/ckeditor/_source/plugins/attachment/images/attachment.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/attachment/lang/en.js +10 -0
- data/lib/generators/templates/ckeditor/_source/plugins/attachment/lang/ru.js +10 -0
- data/lib/generators/templates/ckeditor/_source/plugins/attachment/lang/uk.js +10 -0
- data/lib/generators/templates/ckeditor/_source/plugins/attachment/plugin.js +44 -0
- data/lib/generators/templates/ckeditor/_source/plugins/basicstyles/plugin.js +101 -0
- data/lib/generators/templates/ckeditor/_source/plugins/blockquote/plugin.js +301 -0
- data/lib/generators/templates/ckeditor/_source/plugins/button/plugin.js +272 -0
- data/lib/generators/templates/ckeditor/_source/plugins/clipboard/dialogs/paste.js +186 -0
- data/lib/generators/templates/ckeditor/_source/plugins/clipboard/plugin.js +379 -0
- data/lib/generators/templates/ckeditor/_source/plugins/colorbutton/plugin.js +247 -0
- data/lib/generators/templates/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +191 -0
- data/lib/generators/templates/ckeditor/_source/plugins/colordialog/plugin.js +13 -0
- data/lib/generators/templates/ckeditor/_source/plugins/contextmenu/plugin.js +274 -0
- data/lib/generators/templates/ckeditor/_source/plugins/dialog/dialogDefinition.js +315 -0
- data/lib/generators/templates/ckeditor/_source/plugins/dialog/plugin.js +2913 -0
- data/lib/generators/templates/ckeditor/_source/plugins/dialogui/plugin.js +1408 -0
- data/lib/generators/templates/ckeditor/_source/plugins/div/dialogs/div.js +529 -0
- data/lib/generators/templates/ckeditor/_source/plugins/div/plugin.js +121 -0
- data/lib/generators/templates/ckeditor/_source/plugins/domiterator/plugin.js +355 -0
- data/lib/generators/templates/ckeditor/_source/plugins/editingblock/plugin.js +224 -0
- data/lib/generators/templates/ckeditor/_source/plugins/elementspath/plugin.js +203 -0
- data/lib/generators/templates/ckeditor/_source/plugins/embed/dialogs/embed.js +65 -0
- data/lib/generators/templates/ckeditor/_source/plugins/embed/images/embed.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/embed/lang/en.js +9 -0
- data/lib/generators/templates/ckeditor/_source/plugins/embed/lang/ru.js +9 -0
- data/lib/generators/templates/ckeditor/_source/plugins/embed/lang/uk.js +9 -0
- data/lib/generators/templates/ckeditor/_source/plugins/embed/plugin.js +43 -0
- data/lib/generators/templates/ckeditor/_source/plugins/enterkey/plugin.js +339 -0
- data/lib/generators/templates/ckeditor/_source/plugins/entities/plugin.js +200 -0
- data/lib/generators/templates/ckeditor/_source/plugins/fakeobjects/plugin.js +120 -0
- data/lib/generators/templates/ckeditor/_source/plugins/filebrowser/plugin.js +479 -0
- data/lib/generators/templates/ckeditor/_source/plugins/find/dialogs/find.js +867 -0
- data/lib/generators/templates/ckeditor/_source/plugins/find/plugin.js +46 -0
- data/lib/generators/templates/ckeditor/_source/plugins/flash/dialogs/flash.js +698 -0
- data/lib/generators/templates/ckeditor/_source/plugins/flash/images/placeholder.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/flash/plugin.js +165 -0
- data/lib/generators/templates/ckeditor/_source/plugins/floatpanel/plugin.js +376 -0
- data/lib/generators/templates/ckeditor/_source/plugins/font/plugin.js +234 -0
- data/lib/generators/templates/ckeditor/_source/plugins/format/plugin.js +193 -0
- data/lib/generators/templates/ckeditor/_source/plugins/forms/dialogs/button.js +135 -0
- data/lib/generators/templates/ckeditor/_source/plugins/forms/dialogs/checkbox.js +155 -0
- data/lib/generators/templates/ckeditor/_source/plugins/forms/dialogs/form.js +177 -0
- data/lib/generators/templates/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +91 -0
- data/lib/generators/templates/ckeditor/_source/plugins/forms/dialogs/radio.js +135 -0
- data/lib/generators/templates/ckeditor/_source/plugins/forms/dialogs/select.js +556 -0
- data/lib/generators/templates/ckeditor/_source/plugins/forms/dialogs/textarea.js +114 -0
- data/lib/generators/templates/ckeditor/_source/plugins/forms/dialogs/textfield.js +193 -0
- data/lib/generators/templates/ckeditor/_source/plugins/forms/plugin.js +217 -0
- data/lib/generators/templates/ckeditor/_source/plugins/horizontalrule/plugin.js +36 -0
- data/lib/generators/templates/ckeditor/_source/plugins/htmldataprocessor/plugin.js +463 -0
- data/lib/generators/templates/ckeditor/_source/plugins/htmlwriter/plugin.js +314 -0
- data/lib/generators/templates/ckeditor/_source/plugins/iframedialog/plugin.js +136 -0
- data/lib/generators/templates/ckeditor/_source/plugins/image/dialogs/image.js +1380 -0
- data/lib/generators/templates/ckeditor/_source/plugins/image/plugin.js +73 -0
- data/lib/generators/templates/ckeditor/_source/plugins/indent/plugin.js +381 -0
- data/lib/generators/templates/ckeditor/_source/plugins/justify/plugin.js +168 -0
- data/lib/generators/templates/ckeditor/_source/plugins/keystrokes/plugin.js +229 -0
- data/lib/generators/templates/ckeditor/_source/plugins/link/dialogs/anchor.js +99 -0
- data/lib/generators/templates/ckeditor/_source/plugins/link/dialogs/link.js +1413 -0
- data/lib/generators/templates/ckeditor/_source/plugins/link/images/anchor.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/link/plugin.js +219 -0
- data/lib/generators/templates/ckeditor/_source/plugins/list/plugin.js +645 -0
- data/lib/generators/templates/ckeditor/_source/plugins/listblock/plugin.js +257 -0
- data/lib/generators/templates/ckeditor/_source/plugins/maximize/plugin.js +305 -0
- data/lib/generators/templates/ckeditor/_source/plugins/menu/plugin.js +406 -0
- data/lib/generators/templates/ckeditor/_source/plugins/menubutton/plugin.js +94 -0
- data/lib/generators/templates/ckeditor/_source/plugins/newpage/plugin.js +54 -0
- data/lib/generators/templates/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/pagebreak/plugin.js +103 -0
- data/lib/generators/templates/ckeditor/_source/plugins/panel/plugin.js +397 -0
- data/lib/generators/templates/ckeditor/_source/plugins/panelbutton/plugin.js +147 -0
- data/lib/generators/templates/ckeditor/_source/plugins/pastefromword/filter/default.js +1179 -0
- data/lib/generators/templates/ckeditor/_source/plugins/pastefromword/plugin.js +120 -0
- data/lib/generators/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +77 -0
- data/lib/generators/templates/ckeditor/_source/plugins/pastetext/plugin.js +162 -0
- data/lib/generators/templates/ckeditor/_source/plugins/popup/plugin.js +62 -0
- data/lib/generators/templates/ckeditor/_source/plugins/preview/plugin.js +108 -0
- data/lib/generators/templates/ckeditor/_source/plugins/print/plugin.js +41 -0
- data/lib/generators/templates/ckeditor/_source/plugins/removeformat/plugin.js +132 -0
- data/lib/generators/templates/ckeditor/_source/plugins/resize/plugin.js +117 -0
- data/lib/generators/templates/ckeditor/_source/plugins/richcombo/plugin.js +370 -0
- data/lib/generators/templates/ckeditor/_source/plugins/save/plugin.js +55 -0
- data/lib/generators/templates/ckeditor/_source/plugins/scayt/dialogs/options.js +533 -0
- data/lib/generators/templates/ckeditor/_source/plugins/scayt/dialogs/toolbar.css +71 -0
- data/lib/generators/templates/ckeditor/_source/plugins/scayt/plugin.js +767 -0
- data/lib/generators/templates/ckeditor/_source/plugins/selection/plugin.js +1145 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showblocks/plugin.js +154 -0
- data/lib/generators/templates/ckeditor/_source/plugins/showborders/plugin.js +167 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/dialogs/smiley.js +216 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/angel_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/angry_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/broken_heart.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/confused_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/cry_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/devil_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/envelope.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/heart.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/kiss.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/lightbulb.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/omg_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/regular_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/sad_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/shades_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/teeth_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/thumbs_down.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/thumbs_up.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/tounge_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/images/wink_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/plugin.js +84 -0
- data/lib/generators/templates/ckeditor/_source/plugins/sourcearea/plugin.js +206 -0
- data/lib/generators/templates/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +403 -0
- data/lib/generators/templates/ckeditor/_source/plugins/specialchar/plugin.js +29 -0
- data/lib/generators/templates/ckeditor/_source/plugins/styles/plugin.js +1442 -0
- data/lib/generators/templates/ckeditor/_source/plugins/styles/styles/default.js +88 -0
- data/lib/generators/templates/ckeditor/_source/plugins/stylescombo/plugin.js +204 -0
- data/lib/generators/templates/ckeditor/_source/plugins/tab/plugin.js +261 -0
- data/lib/generators/templates/ckeditor/_source/plugins/table/dialogs/table.js +591 -0
- data/lib/generators/templates/ckeditor/_source/plugins/table/plugin.js +70 -0
- data/lib/generators/templates/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +528 -0
- data/lib/generators/templates/ckeditor/_source/plugins/tabletools/plugin.js +1068 -0
- data/lib/generators/templates/ckeditor/_source/plugins/templates/dialogs/templates.js +230 -0
- data/lib/generators/templates/ckeditor/_source/plugins/templates/plugin.js +100 -0
- data/lib/generators/templates/ckeditor/_source/plugins/templates/templates/default.js +94 -0
- data/lib/generators/templates/ckeditor/_source/plugins/templates/templates/images/template1.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/templates/templates/images/template2.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/templates/templates/images/template3.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/toolbar/plugin.js +479 -0
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +204 -0
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/lang/en.js +15 -0
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/plugin.js +37 -0
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/uicolor.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +15 -0
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/yui/yui.js +71 -0
- data/lib/generators/templates/ckeditor/_source/plugins/undo/plugin.js +519 -0
- data/lib/generators/templates/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +49 -0
- data/lib/generators/templates/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/lib/generators/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.css +83 -0
- data/lib/generators/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.js +176 -0
- data/lib/generators/templates/ckeditor/_source/plugins/wsc/plugin.js +33 -0
- data/lib/generators/templates/ckeditor/_source/plugins/wysiwygarea/plugin.js +882 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/dialog.css +835 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/editor.css +25 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/elementspath.css +72 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/icons.css +326 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/icons.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/images/mini.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/images/noimage.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/images/sprites.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/mainui.css +183 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/menu.css +197 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/panel.css +216 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/presets.css +49 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/reset.css +78 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/richcombo.css +270 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/skin.js +268 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/templates.css +84 -0
- data/lib/generators/templates/ckeditor/_source/skins/kama/toolbar.css +409 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/dialog.css +738 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/editor.css +25 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/elementspath.css +73 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/icons.css +324 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/icons.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/images/dialog_sides.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/images/dialog_sides.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/images/mini.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/images/noimage.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/images/sprites.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/images/sprites_ie6.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/mainui.css +133 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/menu.css +194 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/panel.css +211 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/presets.css +49 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/reset.css +78 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/richcombo.css +289 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/skin.js +81 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/templates.css +81 -0
- data/lib/generators/templates/ckeditor/_source/skins/office2003/toolbar.css +463 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/dialog.css +753 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/editor.css +25 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/elementspath.css +73 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/icons.css +324 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/icons.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/images/dialog_sides.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/images/dialog_sides.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/images/mini.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/images/noimage.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/images/sprites.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/images/sprites_ie6.png +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/images/toolbar_start.gif +0 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/mainui.css +142 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/menu.css +196 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/panel.css +211 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/presets.css +50 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/reset.css +78 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/richcombo.css +289 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/skin.js +77 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/templates.css +81 -0
- data/lib/generators/templates/ckeditor/_source/skins/v2/toolbar.css +415 -0
- data/lib/generators/templates/ckeditor/_source/themes/default/theme.js +335 -0
- data/lib/generators/templates/ckeditor/adapters/jquery.js +6 -0
- data/lib/generators/templates/ckeditor/ckeditor.js +124 -0
- data/lib/generators/templates/ckeditor/ckeditor.pack +205 -0
- data/lib/generators/templates/ckeditor/ckeditor_basic.js +8 -0
- data/lib/generators/templates/ckeditor/ckeditor_basic_source.js +20 -0
- data/lib/generators/templates/ckeditor/ckeditor_source.js +25 -0
- data/lib/generators/templates/ckeditor/config.js +42 -0
- data/lib/generators/templates/ckeditor/contents.css +35 -0
- data/lib/generators/templates/ckeditor/css/ckfinder.css +299 -0
- data/lib/generators/templates/ckeditor/css/fck_dialog.css +119 -0
- data/lib/generators/templates/ckeditor/css/fck_editor.css +448 -0
- data/lib/generators/templates/ckeditor/css/swfupload.css +94 -0
- data/lib/generators/templates/ckeditor/images/add.gif +0 -0
- data/lib/generators/templates/ckeditor/images/cancelbutton.gif +0 -0
- data/lib/generators/templates/ckeditor/images/ckfnothumb.gif +0 -0
- data/lib/generators/templates/ckeditor/images/doc.gif +0 -0
- data/lib/generators/templates/ckeditor/images/mp3.gif +0 -0
- data/lib/generators/templates/ckeditor/images/pdf.gif +0 -0
- data/lib/generators/templates/ckeditor/images/rar.gif +0 -0
- data/lib/generators/templates/ckeditor/images/refresh.gif +0 -0
- data/lib/generators/templates/ckeditor/images/select_files.png +0 -0
- data/lib/generators/templates/ckeditor/images/spacer.gif +0 -0
- data/lib/generators/templates/ckeditor/images/swf.gif +0 -0
- data/lib/generators/templates/ckeditor/images/toolbar.start.gif +0 -0
- data/lib/generators/templates/ckeditor/images/xls.gif +0 -0
- data/lib/generators/templates/ckeditor/lang/_languages.js +6 -0
- data/lib/generators/templates/ckeditor/lang/_translationstatus.txt +60 -0
- data/lib/generators/templates/ckeditor/lang/af.js +6 -0
- data/lib/generators/templates/ckeditor/lang/ar.js +6 -0
- data/lib/generators/templates/ckeditor/lang/bg.js +6 -0
- data/lib/generators/templates/ckeditor/lang/bn.js +6 -0
- data/lib/generators/templates/ckeditor/lang/bs.js +6 -0
- data/lib/generators/templates/ckeditor/lang/ca.js +6 -0
- data/lib/generators/templates/ckeditor/lang/cs.js +6 -0
- data/lib/generators/templates/ckeditor/lang/cy.js +6 -0
- data/lib/generators/templates/ckeditor/lang/da.js +6 -0
- data/lib/generators/templates/ckeditor/lang/de.js +6 -0
- data/lib/generators/templates/ckeditor/lang/el.js +6 -0
- data/lib/generators/templates/ckeditor/lang/en-au.js +6 -0
- data/lib/generators/templates/ckeditor/lang/en-ca.js +6 -0
- data/lib/generators/templates/ckeditor/lang/en-gb.js +6 -0
- data/lib/generators/templates/ckeditor/lang/en.js +6 -0
- data/lib/generators/templates/ckeditor/lang/eo.js +6 -0
- data/lib/generators/templates/ckeditor/lang/es.js +6 -0
- data/lib/generators/templates/ckeditor/lang/et.js +6 -0
- data/lib/generators/templates/ckeditor/lang/eu.js +6 -0
- data/lib/generators/templates/ckeditor/lang/fa.js +6 -0
- data/lib/generators/templates/ckeditor/lang/fi.js +6 -0
- data/lib/generators/templates/ckeditor/lang/fo.js +6 -0
- data/lib/generators/templates/ckeditor/lang/fr-ca.js +6 -0
- data/lib/generators/templates/ckeditor/lang/fr.js +6 -0
- data/lib/generators/templates/ckeditor/lang/gl.js +6 -0
- data/lib/generators/templates/ckeditor/lang/gu.js +6 -0
- data/lib/generators/templates/ckeditor/lang/he.js +6 -0
- data/lib/generators/templates/ckeditor/lang/hi.js +6 -0
- data/lib/generators/templates/ckeditor/lang/hr.js +6 -0
- data/lib/generators/templates/ckeditor/lang/hu.js +6 -0
- data/lib/generators/templates/ckeditor/lang/is.js +6 -0
- data/lib/generators/templates/ckeditor/lang/it.js +6 -0
- data/lib/generators/templates/ckeditor/lang/ja.js +6 -0
- data/lib/generators/templates/ckeditor/lang/km.js +6 -0
- data/lib/generators/templates/ckeditor/lang/ko.js +6 -0
- data/lib/generators/templates/ckeditor/lang/lt.js +6 -0
- data/lib/generators/templates/ckeditor/lang/lv.js +6 -0
- data/lib/generators/templates/ckeditor/lang/mn.js +6 -0
- data/lib/generators/templates/ckeditor/lang/ms.js +6 -0
- data/lib/generators/templates/ckeditor/lang/nb.js +6 -0
- data/lib/generators/templates/ckeditor/lang/nl.js +6 -0
- data/lib/generators/templates/ckeditor/lang/no.js +6 -0
- data/lib/generators/templates/ckeditor/lang/pl.js +6 -0
- data/lib/generators/templates/ckeditor/lang/pt-br.js +6 -0
- data/lib/generators/templates/ckeditor/lang/pt.js +6 -0
- data/lib/generators/templates/ckeditor/lang/ro.js +6 -0
- data/lib/generators/templates/ckeditor/lang/ru.js +6 -0
- data/lib/generators/templates/ckeditor/lang/sk.js +6 -0
- data/lib/generators/templates/ckeditor/lang/sl.js +6 -0
- data/lib/generators/templates/ckeditor/lang/sr-latn.js +6 -0
- data/lib/generators/templates/ckeditor/lang/sr.js +6 -0
- data/lib/generators/templates/ckeditor/lang/sv.js +6 -0
- data/lib/generators/templates/ckeditor/lang/th.js +6 -0
- data/lib/generators/templates/ckeditor/lang/tr.js +6 -0
- data/lib/generators/templates/ckeditor/lang/uk.js +6 -0
- data/lib/generators/templates/ckeditor/lang/vi.js +6 -0
- data/lib/generators/templates/ckeditor/lang/zh-cn.js +6 -0
- data/lib/generators/templates/ckeditor/lang/zh.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +7 -0
- data/lib/generators/templates/ckeditor/plugins/a11yhelp/lang/en.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/about/dialogs/about.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/attachment/dialogs/attachment.js +1 -0
- data/lib/generators/templates/ckeditor/plugins/attachment/images/attachment.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/attachment/lang/en.js +1 -0
- data/lib/generators/templates/ckeditor/plugins/attachment/lang/ru.js +1 -0
- data/lib/generators/templates/ckeditor/plugins/attachment/lang/uk.js +1 -0
- data/lib/generators/templates/ckeditor/plugins/attachment/plugin.js +1 -0
- data/lib/generators/templates/ckeditor/plugins/clipboard/dialogs/paste.js +7 -0
- data/lib/generators/templates/ckeditor/plugins/colordialog/dialogs/colordialog.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/lib/generators/templates/ckeditor/plugins/div/dialogs/div.js +7 -0
- data/lib/generators/templates/ckeditor/plugins/embed/dialogs/embed.js +1 -0
- data/lib/generators/templates/ckeditor/plugins/embed/images/embed.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/embed/lang/en.js +1 -0
- data/lib/generators/templates/ckeditor/plugins/embed/lang/ru.js +1 -0
- data/lib/generators/templates/ckeditor/plugins/embed/lang/uk.js +1 -0
- data/lib/generators/templates/ckeditor/plugins/embed/plugin.js +1 -0
- data/lib/generators/templates/ckeditor/plugins/find/dialogs/find.js +9 -0
- data/lib/generators/templates/ckeditor/plugins/flash/dialogs/flash.js +9 -0
- data/lib/generators/templates/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/forms/dialogs/button.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/forms/dialogs/checkbox.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/forms/dialogs/form.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/forms/dialogs/hiddenfield.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/forms/dialogs/radio.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/forms/dialogs/select.js +9 -0
- data/lib/generators/templates/ckeditor/plugins/forms/dialogs/textarea.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/forms/dialogs/textfield.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/iframedialog/plugin.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/image/dialogs/image.js +13 -0
- data/lib/generators/templates/ckeditor/plugins/link/dialogs/anchor.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/link/dialogs/link.js +11 -0
- data/lib/generators/templates/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/pastefromword/filter/default.js +10 -0
- data/lib/generators/templates/ckeditor/plugins/pastetext/dialogs/pastetext.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/scayt/dialogs/options.js +8 -0
- data/lib/generators/templates/ckeditor/plugins/scayt/dialogs/toolbar.css +6 -0
- data/lib/generators/templates/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/dialogs/smiley.js +7 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/specialchar/dialogs/specialchar.js +7 -0
- data/lib/generators/templates/ckeditor/plugins/styles/styles/default.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/table/dialogs/table.js +9 -0
- data/lib/generators/templates/ckeditor/plugins/tabletools/dialogs/tableCell.js +8 -0
- data/lib/generators/templates/ckeditor/plugins/templates/dialogs/templates.js +7 -0
- data/lib/generators/templates/ckeditor/plugins/templates/templates/default.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/uicolor/dialogs/uicolor.js +7 -0
- data/lib/generators/templates/ckeditor/plugins/uicolor/lang/en.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/uicolor/plugin.js +6 -0
- data/lib/generators/templates/ckeditor/plugins/uicolor/uicolor.gif +0 -0
- data/lib/generators/templates/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/uicolor/yui/assets/yui.css +6 -0
- data/lib/generators/templates/ckeditor/plugins/uicolor/yui/yui.js +76 -0
- data/lib/generators/templates/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
- data/lib/generators/templates/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/lib/generators/templates/ckeditor/plugins/wsc/dialogs/wsc.css +6 -0
- data/lib/generators/templates/ckeditor/plugins/wsc/dialogs/wsc.js +7 -0
- data/lib/generators/templates/ckeditor/skins/kama/dialog.css +9 -0
- data/lib/generators/templates/ckeditor/skins/kama/editor.css +12 -0
- data/lib/generators/templates/ckeditor/skins/kama/icons.png +0 -0
- data/lib/generators/templates/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/lib/generators/templates/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/lib/generators/templates/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/templates/ckeditor/skins/kama/images/mini.gif +0 -0
- data/lib/generators/templates/ckeditor/skins/kama/images/noimage.png +0 -0
- data/lib/generators/templates/ckeditor/skins/kama/images/sprites.png +0 -0
- data/lib/generators/templates/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/lib/generators/templates/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/lib/generators/templates/ckeditor/skins/kama/skin.js +7 -0
- data/lib/generators/templates/ckeditor/skins/kama/templates.css +6 -0
- data/lib/generators/templates/ckeditor/skins/office2003/dialog.css +9 -0
- data/lib/generators/templates/ckeditor/skins/office2003/editor.css +13 -0
- data/lib/generators/templates/ckeditor/skins/office2003/icons.png +0 -0
- data/lib/generators/templates/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
- data/lib/generators/templates/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
- data/lib/generators/templates/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/templates/ckeditor/skins/office2003/images/mini.gif +0 -0
- data/lib/generators/templates/ckeditor/skins/office2003/images/noimage.png +0 -0
- data/lib/generators/templates/ckeditor/skins/office2003/images/sprites.png +0 -0
- data/lib/generators/templates/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
- data/lib/generators/templates/ckeditor/skins/office2003/skin.js +6 -0
- data/lib/generators/templates/ckeditor/skins/office2003/templates.css +6 -0
- data/lib/generators/templates/ckeditor/skins/v2/dialog.css +8 -0
- data/lib/generators/templates/ckeditor/skins/v2/editor.css +12 -0
- data/lib/generators/templates/ckeditor/skins/v2/icons.png +0 -0
- data/lib/generators/templates/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
- data/lib/generators/templates/ckeditor/skins/v2/images/dialog_sides.png +0 -0
- data/lib/generators/templates/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/templates/ckeditor/skins/v2/images/mini.gif +0 -0
- data/lib/generators/templates/ckeditor/skins/v2/images/noimage.png +0 -0
- data/lib/generators/templates/ckeditor/skins/v2/images/sprites.png +0 -0
- data/lib/generators/templates/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
- data/lib/generators/templates/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
- data/lib/generators/templates/ckeditor/skins/v2/skin.js +6 -0
- data/lib/generators/templates/ckeditor/skins/v2/templates.css +6 -0
- data/lib/generators/templates/ckeditor/swfupload/fileprogress.js +290 -0
- data/lib/generators/templates/ckeditor/swfupload/handlers.js +170 -0
- data/lib/generators/templates/ckeditor/swfupload/mootools-1.2.3-core-yc.js +356 -0
- data/lib/generators/templates/ckeditor/swfupload/querystring.js +40 -0
- data/lib/generators/templates/ckeditor/swfupload/swfupload.js +980 -0
- data/lib/generators/templates/ckeditor/swfupload/swfupload.queue.js +98 -0
- data/lib/generators/templates/ckeditor/swfupload/swfupload.swf +0 -0
- data/lib/generators/templates/ckeditor/swfupload/swfupload.swfobject.js +111 -0
- data/lib/generators/templates/ckeditor/themes/default/theme.js +8 -0
- data/lib/tasks/ckeditor_tasks.rake +3 -0
- metadata +694 -0
@@ -0,0 +1,182 @@
|
|
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
|
+
if ( !CKEDITOR.editor )
|
7
|
+
{
|
8
|
+
/**
|
9
|
+
* No element is linked to the editor instance.
|
10
|
+
* @constant
|
11
|
+
* @example
|
12
|
+
*/
|
13
|
+
CKEDITOR.ELEMENT_MODE_NONE = 0;
|
14
|
+
|
15
|
+
/**
|
16
|
+
* The element is to be replaced by the editor instance.
|
17
|
+
* @constant
|
18
|
+
* @example
|
19
|
+
*/
|
20
|
+
CKEDITOR.ELEMENT_MODE_REPLACE = 1;
|
21
|
+
|
22
|
+
/**
|
23
|
+
* The editor is to be created inside the element.
|
24
|
+
* @constant
|
25
|
+
* @example
|
26
|
+
*/
|
27
|
+
CKEDITOR.ELEMENT_MODE_APPENDTO = 2;
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Represents an editor instance. This constructor should be rarely used,
|
31
|
+
* being the {@link CKEDITOR} methods preferible.
|
32
|
+
* @constructor
|
33
|
+
* @param {Object} instanceConfig Configuration values for this specific
|
34
|
+
* instance.
|
35
|
+
* @param {CKEDITOR.dom.element} [element] The element linked to this
|
36
|
+
* instance.
|
37
|
+
* @param {Number} [mode] The mode in which the element is linked to this
|
38
|
+
* instance.
|
39
|
+
* @param {String} [data] Since 3.3. Initial value for the instance.
|
40
|
+
* @augments CKEDITOR.event
|
41
|
+
* @example
|
42
|
+
*/
|
43
|
+
CKEDITOR.editor = function( instanceConfig, element, mode, data )
|
44
|
+
{
|
45
|
+
this._ =
|
46
|
+
{
|
47
|
+
// Save the config to be processed later by the full core code.
|
48
|
+
instanceConfig : instanceConfig,
|
49
|
+
element : element,
|
50
|
+
data : data
|
51
|
+
};
|
52
|
+
|
53
|
+
/**
|
54
|
+
* The mode in which the {@link #element} is linked to this editor
|
55
|
+
* instance. It can be any of the following values:
|
56
|
+
* <ul>
|
57
|
+
* <li><b>CKEDITOR.ELEMENT_MODE_NONE</b>: No element is linked to the
|
58
|
+
* editor instance.</li>
|
59
|
+
* <li><b>CKEDITOR.ELEMENT_MODE_REPLACE</b>: The element is to be
|
60
|
+
* replaced by the editor instance.</li>
|
61
|
+
* <li><b>CKEDITOR.ELEMENT_MODE_APPENDTO</b>: The editor is to be
|
62
|
+
* created inside the element.</li>
|
63
|
+
* </ul>
|
64
|
+
* @name CKEDITOR.editor.prototype.elementMode
|
65
|
+
* @type Number
|
66
|
+
* @example
|
67
|
+
* var editor = CKEDITOR.replace( 'editor1' );
|
68
|
+
* alert( <b>editor.elementMode</b> ); "1"
|
69
|
+
*/
|
70
|
+
this.elementMode = mode || CKEDITOR.ELEMENT_MODE_NONE;
|
71
|
+
|
72
|
+
// Call the CKEDITOR.event constructor to initialize this instance.
|
73
|
+
CKEDITOR.event.call( this );
|
74
|
+
|
75
|
+
this._init();
|
76
|
+
};
|
77
|
+
|
78
|
+
/**
|
79
|
+
* Replaces a <textarea> or a DOM element (DIV) with a CKEditor
|
80
|
+
* instance. For textareas, the initial value in the editor will be the
|
81
|
+
* textarea value. For DOM elements, their innerHTML will be used
|
82
|
+
* instead. We recommend using TEXTAREA and DIV elements only. Do not use
|
83
|
+
* this function directly. Use {@link CKEDITOR.replace} instead.
|
84
|
+
* @param {Object|String} elementOrIdOrName The DOM element (textarea), its
|
85
|
+
* ID or name.
|
86
|
+
* @param {Object} [config] The specific configurations to apply to this
|
87
|
+
* editor instance. Configurations set here will override global CKEditor
|
88
|
+
* settings.
|
89
|
+
* @returns {CKEDITOR.editor} The editor instance created.
|
90
|
+
* @example
|
91
|
+
*/
|
92
|
+
CKEDITOR.editor.replace = function( elementOrIdOrName, config )
|
93
|
+
{
|
94
|
+
var element = elementOrIdOrName;
|
95
|
+
|
96
|
+
if ( typeof element != 'object' )
|
97
|
+
{
|
98
|
+
// Look for the element by id. We accept any kind of element here.
|
99
|
+
element = document.getElementById( elementOrIdOrName );
|
100
|
+
|
101
|
+
// If not found, look for elements by name. In this case we accept only
|
102
|
+
// textareas.
|
103
|
+
if ( !element )
|
104
|
+
{
|
105
|
+
var i = 0,
|
106
|
+
textareasByName = document.getElementsByName( elementOrIdOrName );
|
107
|
+
|
108
|
+
while ( ( element = textareasByName[ i++ ] ) && element.tagName.toLowerCase() != 'textarea' )
|
109
|
+
{ /*jsl:pass*/ }
|
110
|
+
}
|
111
|
+
|
112
|
+
if ( !element )
|
113
|
+
throw '[CKEDITOR.editor.replace] The element with id or name "' + elementOrIdOrName + '" was not found.';
|
114
|
+
}
|
115
|
+
|
116
|
+
// Do not replace the textarea right now, just hide it. The effective
|
117
|
+
// replacement will be done by the _init function.
|
118
|
+
element.style.visibility = 'hidden';
|
119
|
+
|
120
|
+
// Create the editor instance.
|
121
|
+
return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_REPLACE );
|
122
|
+
};
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Creates a new editor instance inside a specific DOM element. Do not use
|
126
|
+
* this function directly. Use {@link CKEDITOR.appendTo} instead.
|
127
|
+
* @param {Object|String} elementOrId The DOM element or its ID.
|
128
|
+
* @param {Object} [config] The specific configurations to apply to this
|
129
|
+
* editor instance. Configurations set here will override global CKEditor
|
130
|
+
* settings.
|
131
|
+
* @param {String} [data] Since 3.3. Initial value for the instance.
|
132
|
+
* @returns {CKEDITOR.editor} The editor instance created.
|
133
|
+
* @example
|
134
|
+
*/
|
135
|
+
CKEDITOR.editor.appendTo = function( elementOrId, config, data )
|
136
|
+
{
|
137
|
+
var element = elementOrId;
|
138
|
+
if ( typeof element != 'object' )
|
139
|
+
{
|
140
|
+
element = document.getElementById( elementOrId );
|
141
|
+
|
142
|
+
if ( !element )
|
143
|
+
throw '[CKEDITOR.editor.appendTo] The element with id "' + elementOrId + '" was not found.';
|
144
|
+
}
|
145
|
+
|
146
|
+
// Create the editor instance.
|
147
|
+
return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_APPENDTO, data );
|
148
|
+
};
|
149
|
+
|
150
|
+
CKEDITOR.editor.prototype =
|
151
|
+
{
|
152
|
+
/**
|
153
|
+
* Initializes the editor instance. This function will be overriden by the
|
154
|
+
* full CKEDITOR.editor implementation (editor.js).
|
155
|
+
* @private
|
156
|
+
*/
|
157
|
+
_init : function()
|
158
|
+
{
|
159
|
+
var pending = CKEDITOR.editor._pending || ( CKEDITOR.editor._pending = [] );
|
160
|
+
pending.push( this );
|
161
|
+
},
|
162
|
+
|
163
|
+
// Both fire and fireOnce will always pass this editor instance as the
|
164
|
+
// "editor" param in CKEDITOR.event.fire. So, we override it to do that
|
165
|
+
// automaticaly.
|
166
|
+
|
167
|
+
/** @ignore */
|
168
|
+
fire : function( eventName, data )
|
169
|
+
{
|
170
|
+
return CKEDITOR.event.prototype.fire.call( this, eventName, data, this );
|
171
|
+
},
|
172
|
+
|
173
|
+
/** @ignore */
|
174
|
+
fireOnce : function( eventName, data )
|
175
|
+
{
|
176
|
+
return CKEDITOR.event.prototype.fireOnce.call( this, eventName, data, this );
|
177
|
+
}
|
178
|
+
};
|
179
|
+
|
180
|
+
// "Inherit" (copy actually) from CKEDITOR.event.
|
181
|
+
CKEDITOR.event.implementOn( CKEDITOR.editor.prototype, true );
|
182
|
+
}
|
@@ -0,0 +1,222 @@
|
|
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 Defines the {@link CKEDITOR.env} object, which constains
|
8
|
+
* environment and browser information.
|
9
|
+
*/
|
10
|
+
|
11
|
+
if ( !CKEDITOR.env )
|
12
|
+
{
|
13
|
+
/**
|
14
|
+
* Environment and browser information.
|
15
|
+
* @namespace
|
16
|
+
* @example
|
17
|
+
*/
|
18
|
+
CKEDITOR.env = (function()
|
19
|
+
{
|
20
|
+
var agent = navigator.userAgent.toLowerCase();
|
21
|
+
var opera = window.opera;
|
22
|
+
|
23
|
+
var env =
|
24
|
+
/** @lends CKEDITOR.env */
|
25
|
+
{
|
26
|
+
/**
|
27
|
+
* Indicates that CKEditor is running on Internet Explorer.
|
28
|
+
* @type Boolean
|
29
|
+
* @example
|
30
|
+
* if ( CKEDITOR.env.ie )
|
31
|
+
* alert( "I'm on IE!" );
|
32
|
+
*/
|
33
|
+
ie : /*@cc_on!@*/false,
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Indicates that CKEditor is running on Opera.
|
37
|
+
* @type Boolean
|
38
|
+
* @example
|
39
|
+
* if ( CKEDITOR.env.opera )
|
40
|
+
* alert( "I'm on Opera!" );
|
41
|
+
*/
|
42
|
+
opera : ( !!opera && opera.version ),
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Indicates that CKEditor is running on a WebKit based browser, like
|
46
|
+
* Safari.
|
47
|
+
* @type Boolean
|
48
|
+
* @example
|
49
|
+
* if ( CKEDITOR.env.webkit )
|
50
|
+
* alert( "I'm on WebKit!" );
|
51
|
+
*/
|
52
|
+
webkit : ( agent.indexOf( ' applewebkit/' ) > -1 ),
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Indicates that CKEditor is running on Adobe AIR.
|
56
|
+
* @type Boolean
|
57
|
+
* @example
|
58
|
+
* if ( CKEDITOR.env.air )
|
59
|
+
* alert( "I'm on AIR!" );
|
60
|
+
*/
|
61
|
+
air : ( agent.indexOf( ' adobeair/' ) > -1 ),
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Indicates that CKEditor is running on Macintosh.
|
65
|
+
* @type Boolean
|
66
|
+
* @example
|
67
|
+
* if ( CKEDITOR.env.mac )
|
68
|
+
* alert( "I love apples!" );
|
69
|
+
*/
|
70
|
+
mac : ( agent.indexOf( 'macintosh' ) > -1 ),
|
71
|
+
|
72
|
+
quirks : ( document.compatMode == 'BackCompat' ),
|
73
|
+
|
74
|
+
mobile : ( agent.indexOf( 'mobile' ) > -1 ),
|
75
|
+
|
76
|
+
isCustomDomain : function()
|
77
|
+
{
|
78
|
+
return this.ie && document.domain != window.location.hostname;
|
79
|
+
}
|
80
|
+
};
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Indicates that CKEditor is running on a Gecko based browser, like
|
84
|
+
* Firefox.
|
85
|
+
* @name CKEDITOR.env.gecko
|
86
|
+
* @type Boolean
|
87
|
+
* @example
|
88
|
+
* if ( CKEDITOR.env.gecko )
|
89
|
+
* alert( "I'm riding a gecko!" );
|
90
|
+
*/
|
91
|
+
env.gecko = ( navigator.product == 'Gecko' && !env.webkit && !env.opera );
|
92
|
+
|
93
|
+
var version = 0;
|
94
|
+
|
95
|
+
// Internet Explorer 6.0+
|
96
|
+
if ( env.ie )
|
97
|
+
{
|
98
|
+
version = parseFloat( agent.match( /msie (\d+)/ )[1] );
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Indicate IE8 browser.
|
102
|
+
*/
|
103
|
+
env.ie8 = !!document.documentMode;
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Indicte IE8 document mode.
|
107
|
+
*/
|
108
|
+
env.ie8Compat = document.documentMode == 8;
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Indicates that CKEditor is running on an IE7-like environment, which
|
112
|
+
* includes IE7 itself and IE8's IE7 document mode.
|
113
|
+
* @type Boolean
|
114
|
+
*/
|
115
|
+
env.ie7Compat = ( ( version == 7 && !document.documentMode )
|
116
|
+
|| document.documentMode == 7 );
|
117
|
+
|
118
|
+
/**
|
119
|
+
* Indicates that CKEditor is running on an IE6-like environment, which
|
120
|
+
* includes IE6 itself and IE7 and IE8 quirks mode.
|
121
|
+
* @type Boolean
|
122
|
+
* @example
|
123
|
+
* if ( CKEDITOR.env.ie6Compat )
|
124
|
+
* alert( "I'm on IE6 or quirks mode!" );
|
125
|
+
*/
|
126
|
+
env.ie6Compat = ( version < 7 || env.quirks );
|
127
|
+
|
128
|
+
}
|
129
|
+
|
130
|
+
// Gecko.
|
131
|
+
if ( env.gecko )
|
132
|
+
{
|
133
|
+
var geckoRelease = agent.match( /rv:([\d\.]+)/ );
|
134
|
+
if ( geckoRelease )
|
135
|
+
{
|
136
|
+
geckoRelease = geckoRelease[1].split( '.' );
|
137
|
+
version = geckoRelease[0] * 10000 + ( geckoRelease[1] || 0 ) * 100 + ( geckoRelease[2] || 0 ) * 1;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
// Opera 9.50+
|
142
|
+
if ( env.opera )
|
143
|
+
version = parseFloat( opera.version() );
|
144
|
+
|
145
|
+
// Adobe AIR 1.0+
|
146
|
+
// Checked before Safari because AIR have the WebKit rich text editor
|
147
|
+
// features from Safari 3.0.4, but the version reported is 420.
|
148
|
+
if ( env.air )
|
149
|
+
version = parseFloat( agent.match( / adobeair\/(\d+)/ )[1] );
|
150
|
+
|
151
|
+
// WebKit 522+ (Safari 3+)
|
152
|
+
if ( env.webkit )
|
153
|
+
version = parseFloat( agent.match( / applewebkit\/(\d+)/ )[1] );
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Contains the browser version.
|
157
|
+
*
|
158
|
+
* For gecko based browsers (like Firefox) it contains the revision
|
159
|
+
* number with first three parts concatenated with a padding zero
|
160
|
+
* (e.g. for revision 1.9.0.2 we have 10900).
|
161
|
+
*
|
162
|
+
* For webkit based browser (like Safari and Chrome) it contains the
|
163
|
+
* WebKit build version (e.g. 522).
|
164
|
+
* @name CKEDITOR.env.version
|
165
|
+
* @type Boolean
|
166
|
+
* @example
|
167
|
+
* if ( CKEDITOR.env.ie && <b>CKEDITOR.env.version</b> <= 6 )
|
168
|
+
* alert( "Ouch!" );
|
169
|
+
*/
|
170
|
+
env.version = version;
|
171
|
+
|
172
|
+
/**
|
173
|
+
* Indicates that CKEditor is running on a compatible browser.
|
174
|
+
* @name CKEDITOR.env.isCompatible
|
175
|
+
* @type Boolean
|
176
|
+
* @example
|
177
|
+
* if ( CKEDITOR.env.isCompatible )
|
178
|
+
* alert( "Your browser is pretty cool!" );
|
179
|
+
*/
|
180
|
+
env.isCompatible =
|
181
|
+
!env.mobile && (
|
182
|
+
( env.ie && version >= 6 ) ||
|
183
|
+
( env.gecko && version >= 10801 ) ||
|
184
|
+
( env.opera && version >= 9.5 ) ||
|
185
|
+
( env.air && version >= 1 ) ||
|
186
|
+
( env.webkit && version >= 522 ) ||
|
187
|
+
false );
|
188
|
+
|
189
|
+
// The CSS class to be appended on the main UI containers, making it
|
190
|
+
// easy to apply browser specific styles to it.
|
191
|
+
env.cssClass =
|
192
|
+
'cke_browser_' + (
|
193
|
+
env.ie ? 'ie' :
|
194
|
+
env.gecko ? 'gecko' :
|
195
|
+
env.opera ? 'opera' :
|
196
|
+
env.air ? 'air' :
|
197
|
+
env.webkit ? 'webkit' :
|
198
|
+
'unknown' );
|
199
|
+
|
200
|
+
if ( env.quirks )
|
201
|
+
env.cssClass += ' cke_browser_quirks';
|
202
|
+
|
203
|
+
if ( env.ie )
|
204
|
+
{
|
205
|
+
env.cssClass += ' cke_browser_ie' + (
|
206
|
+
env.version < 7 ? '6' :
|
207
|
+
env.version >= 8 ? '8' :
|
208
|
+
'7' );
|
209
|
+
|
210
|
+
if ( env.quirks )
|
211
|
+
env.cssClass += ' cke_browser_iequirks';
|
212
|
+
}
|
213
|
+
|
214
|
+
if ( env.gecko && version < 10900 )
|
215
|
+
env.cssClass += ' cke_browser_gecko18';
|
216
|
+
|
217
|
+
return env;
|
218
|
+
})();
|
219
|
+
}
|
220
|
+
|
221
|
+
// PACKAGER_RENAME( CKEDITOR.env )
|
222
|
+
// PACKAGER_RENAME( CKEDITOR.env.ie )
|
@@ -0,0 +1,336 @@
|
|
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 Defines the {@link CKEDITOR.event} class, which serves as the
|
8
|
+
* base for classes and objects that require event handling features.
|
9
|
+
*/
|
10
|
+
|
11
|
+
if ( !CKEDITOR.event )
|
12
|
+
{
|
13
|
+
/**
|
14
|
+
* This is a base class for classes and objects that require event handling
|
15
|
+
* features.
|
16
|
+
* @constructor
|
17
|
+
* @example
|
18
|
+
*/
|
19
|
+
CKEDITOR.event = function()
|
20
|
+
{};
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Implements the {@link CKEDITOR.event} features in an object.
|
24
|
+
* @param {Object} targetObject The object in which implement the features.
|
25
|
+
* @example
|
26
|
+
* var myObject = { message : 'Example' };
|
27
|
+
* <b>CKEDITOR.event.implementOn( myObject }</b>;
|
28
|
+
* myObject.on( 'testEvent', function()
|
29
|
+
* {
|
30
|
+
* alert( this.message ); // "Example"
|
31
|
+
* });
|
32
|
+
* myObject.fire( 'testEvent' );
|
33
|
+
*/
|
34
|
+
CKEDITOR.event.implementOn = function( targetObject, isTargetPrototype )
|
35
|
+
{
|
36
|
+
var eventProto = CKEDITOR.event.prototype;
|
37
|
+
|
38
|
+
for ( var prop in eventProto )
|
39
|
+
{
|
40
|
+
if ( targetObject[ prop ] == undefined )
|
41
|
+
targetObject[ prop ] = eventProto[ prop ];
|
42
|
+
}
|
43
|
+
};
|
44
|
+
|
45
|
+
CKEDITOR.event.prototype = (function()
|
46
|
+
{
|
47
|
+
// Returns the private events object for a given object.
|
48
|
+
var getPrivate = function( obj )
|
49
|
+
{
|
50
|
+
var _ = ( obj.getPrivate && obj.getPrivate() ) || obj._ || ( obj._ = {} );
|
51
|
+
return _.events || ( _.events = {} );
|
52
|
+
};
|
53
|
+
|
54
|
+
var eventEntry = function( eventName )
|
55
|
+
{
|
56
|
+
this.name = eventName;
|
57
|
+
this.listeners = [];
|
58
|
+
};
|
59
|
+
|
60
|
+
eventEntry.prototype =
|
61
|
+
{
|
62
|
+
// Get the listener index for a specified function.
|
63
|
+
// Returns -1 if not found.
|
64
|
+
getListenerIndex : function( listenerFunction )
|
65
|
+
{
|
66
|
+
for ( var i = 0, listeners = this.listeners ; i < listeners.length ; i++ )
|
67
|
+
{
|
68
|
+
if ( listeners[i].fn == listenerFunction )
|
69
|
+
return i;
|
70
|
+
}
|
71
|
+
return -1;
|
72
|
+
}
|
73
|
+
};
|
74
|
+
|
75
|
+
return /** @lends CKEDITOR.event.prototype */ {
|
76
|
+
/**
|
77
|
+
* Registers a listener to a specific event in the current object.
|
78
|
+
* @param {String} eventName The event name to which listen.
|
79
|
+
* @param {Function} listenerFunction The function listening to the
|
80
|
+
* event. A single {@link CKEDITOR.eventInfo} object instanced
|
81
|
+
* is passed to this function containing all the event data.
|
82
|
+
* @param {Object} [scopeObj] The object used to scope the listener
|
83
|
+
* call (the this object. If omitted, the current object is used.
|
84
|
+
* @param {Object} [listenerData] Data to be sent as the
|
85
|
+
* {@link CKEDITOR.eventInfo#listenerData} when calling the
|
86
|
+
* listener.
|
87
|
+
* @param {Number} [priority] The listener priority. Lower priority
|
88
|
+
* listeners are called first. Listeners with the same priority
|
89
|
+
* value are called in registration order. Defaults to 10.
|
90
|
+
* @example
|
91
|
+
* someObject.on( 'someEvent', function()
|
92
|
+
* {
|
93
|
+
* alert( this == someObject ); // "true"
|
94
|
+
* });
|
95
|
+
* @example
|
96
|
+
* someObject.on( 'someEvent', function()
|
97
|
+
* {
|
98
|
+
* alert( this == anotherObject ); // "true"
|
99
|
+
* }
|
100
|
+
* , anotherObject );
|
101
|
+
* @example
|
102
|
+
* someObject.on( 'someEvent', function( event )
|
103
|
+
* {
|
104
|
+
* alert( event.listenerData ); // "Example"
|
105
|
+
* }
|
106
|
+
* , null, 'Example' );
|
107
|
+
* @example
|
108
|
+
* someObject.on( 'someEvent', function() { ... } ); // 2nd called
|
109
|
+
* someObject.on( 'someEvent', function() { ... }, null, null, 100 ); // 3rd called
|
110
|
+
* someObject.on( 'someEvent', function() { ... }, null, null, 1 ); // 1st called
|
111
|
+
*/
|
112
|
+
on : function( eventName, listenerFunction, scopeObj, listenerData, priority )
|
113
|
+
{
|
114
|
+
// Get the event entry (create it if needed).
|
115
|
+
var events = getPrivate( this ),
|
116
|
+
event = events[ eventName ] || ( events[ eventName ] = new eventEntry( eventName ) );
|
117
|
+
|
118
|
+
if ( event.getListenerIndex( listenerFunction ) < 0 )
|
119
|
+
{
|
120
|
+
// Get the listeners.
|
121
|
+
var listeners = event.listeners;
|
122
|
+
|
123
|
+
// Fill the scope.
|
124
|
+
if ( !scopeObj )
|
125
|
+
scopeObj = this;
|
126
|
+
|
127
|
+
// Default the priority, if needed.
|
128
|
+
if ( isNaN( priority ) )
|
129
|
+
priority = 10;
|
130
|
+
|
131
|
+
var me = this;
|
132
|
+
|
133
|
+
// Create the function to be fired for this listener.
|
134
|
+
var listenerFirer = function( editor, publisherData, stopFn, cancelFn )
|
135
|
+
{
|
136
|
+
var ev =
|
137
|
+
{
|
138
|
+
name : eventName,
|
139
|
+
sender : this,
|
140
|
+
editor : editor,
|
141
|
+
data : publisherData,
|
142
|
+
listenerData : listenerData,
|
143
|
+
stop : stopFn,
|
144
|
+
cancel : cancelFn,
|
145
|
+
removeListener : function()
|
146
|
+
{
|
147
|
+
me.removeListener( eventName, listenerFunction );
|
148
|
+
}
|
149
|
+
};
|
150
|
+
|
151
|
+
listenerFunction.call( scopeObj, ev );
|
152
|
+
|
153
|
+
return ev.data;
|
154
|
+
};
|
155
|
+
listenerFirer.fn = listenerFunction;
|
156
|
+
listenerFirer.priority = priority;
|
157
|
+
|
158
|
+
// Search for the right position for this new listener, based on its
|
159
|
+
// priority.
|
160
|
+
for ( var i = listeners.length - 1 ; i >= 0 ; i-- )
|
161
|
+
{
|
162
|
+
// Find the item which should be before the new one.
|
163
|
+
if ( listeners[ i ].priority <= priority )
|
164
|
+
{
|
165
|
+
// Insert the listener in the array.
|
166
|
+
listeners.splice( i + 1, 0, listenerFirer );
|
167
|
+
return;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
// If no position has been found (or zero length), put it in
|
172
|
+
// the front of list.
|
173
|
+
listeners.unshift( listenerFirer );
|
174
|
+
}
|
175
|
+
},
|
176
|
+
|
177
|
+
/**
|
178
|
+
* Fires an specific event in the object. All registered listeners are
|
179
|
+
* called at this point.
|
180
|
+
* @function
|
181
|
+
* @param {String} eventName The event name to fire.
|
182
|
+
* @param {Object} [data] Data to be sent as the
|
183
|
+
* {@link CKEDITOR.eventInfo#data} when calling the
|
184
|
+
* listeners.
|
185
|
+
* @param {CKEDITOR.editor} [editor] The editor instance to send as the
|
186
|
+
* {@link CKEDITOR.eventInfo#editor} when calling the
|
187
|
+
* listener.
|
188
|
+
* @returns {Boolean|Object} A booloan indicating that the event is to be
|
189
|
+
* canceled, or data returned by one of the listeners.
|
190
|
+
* @example
|
191
|
+
* someObject.on( 'someEvent', function() { ... } );
|
192
|
+
* someObject.on( 'someEvent', function() { ... } );
|
193
|
+
* <b>someObject.fire( 'someEvent' )</b>; // both listeners are called
|
194
|
+
* @example
|
195
|
+
* someObject.on( 'someEvent', function( event )
|
196
|
+
* {
|
197
|
+
* alert( event.data ); // "Example"
|
198
|
+
* });
|
199
|
+
* <b>someObject.fire( 'someEvent', 'Example' )</b>;
|
200
|
+
*/
|
201
|
+
fire : (function()
|
202
|
+
{
|
203
|
+
// Create the function that marks the event as stopped.
|
204
|
+
var stopped = false;
|
205
|
+
var stopEvent = function()
|
206
|
+
{
|
207
|
+
stopped = true;
|
208
|
+
};
|
209
|
+
|
210
|
+
// Create the function that marks the event as canceled.
|
211
|
+
var canceled = false;
|
212
|
+
var cancelEvent = function()
|
213
|
+
{
|
214
|
+
canceled = true;
|
215
|
+
};
|
216
|
+
|
217
|
+
return function( eventName, data, editor )
|
218
|
+
{
|
219
|
+
// Get the event entry.
|
220
|
+
var event = getPrivate( this )[ eventName ];
|
221
|
+
|
222
|
+
// Save the previous stopped and cancelled states. We may
|
223
|
+
// be nesting fire() calls.
|
224
|
+
var previousStopped = stopped,
|
225
|
+
previousCancelled = canceled;
|
226
|
+
|
227
|
+
// Reset the stopped and canceled flags.
|
228
|
+
stopped = canceled = false;
|
229
|
+
|
230
|
+
if ( event )
|
231
|
+
{
|
232
|
+
var listeners = event.listeners;
|
233
|
+
|
234
|
+
if ( listeners.length )
|
235
|
+
{
|
236
|
+
// As some listeners may remove themselves from the
|
237
|
+
// event, the original array length is dinamic. So,
|
238
|
+
// let's make a copy of all listeners, so we are
|
239
|
+
// sure we'll call all of them.
|
240
|
+
listeners = listeners.slice( 0 );
|
241
|
+
|
242
|
+
// Loop through all listeners.
|
243
|
+
for ( var i = 0 ; i < listeners.length ; i++ )
|
244
|
+
{
|
245
|
+
// Call the listener, passing the event data.
|
246
|
+
var retData = listeners[i].call( this, editor, data, stopEvent, cancelEvent );
|
247
|
+
|
248
|
+
if ( typeof retData != 'undefined' )
|
249
|
+
data = retData;
|
250
|
+
|
251
|
+
// No further calls is stopped or canceled.
|
252
|
+
if ( stopped || canceled )
|
253
|
+
break;
|
254
|
+
}
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
258
|
+
var ret = canceled || ( typeof data == 'undefined' ? false : data );
|
259
|
+
|
260
|
+
// Restore the previous stopped and canceled states.
|
261
|
+
stopped = previousStopped;
|
262
|
+
canceled = previousCancelled;
|
263
|
+
|
264
|
+
return ret;
|
265
|
+
};
|
266
|
+
})(),
|
267
|
+
|
268
|
+
/**
|
269
|
+
* Fires an specific event in the object, releasing all listeners
|
270
|
+
* registered to that event. The same listeners are not called again on
|
271
|
+
* successive calls of it or of {@link #fire}.
|
272
|
+
* @param {String} eventName The event name to fire.
|
273
|
+
* @param {Object} [data] Data to be sent as the
|
274
|
+
* {@link CKEDITOR.eventInfo#data} when calling the
|
275
|
+
* listeners.
|
276
|
+
* @param {CKEDITOR.editor} [editor] The editor instance to send as the
|
277
|
+
* {@link CKEDITOR.eventInfo#editor} when calling the
|
278
|
+
* listener.
|
279
|
+
* @returns {Boolean|Object} A booloan indicating that the event is to be
|
280
|
+
* canceled, or data returned by one of the listeners.
|
281
|
+
* @example
|
282
|
+
* someObject.on( 'someEvent', function() { ... } );
|
283
|
+
* someObject.fire( 'someEvent' ); // above listener called
|
284
|
+
* <b>someObject.fireOnce( 'someEvent' )</b>; // above listener called
|
285
|
+
* someObject.fire( 'someEvent' ); // no listeners called
|
286
|
+
*/
|
287
|
+
fireOnce : function( eventName, data, editor )
|
288
|
+
{
|
289
|
+
var ret = this.fire( eventName, data, editor );
|
290
|
+
delete getPrivate( this )[ eventName ];
|
291
|
+
return ret;
|
292
|
+
},
|
293
|
+
|
294
|
+
/**
|
295
|
+
* Unregisters a listener function from being called at the specified
|
296
|
+
* event. No errors are thrown if the listener has not been
|
297
|
+
* registered previously.
|
298
|
+
* @param {String} eventName The event name.
|
299
|
+
* @param {Function} listenerFunction The listener function to unregister.
|
300
|
+
* @example
|
301
|
+
* var myListener = function() { ... };
|
302
|
+
* someObject.on( 'someEvent', myListener );
|
303
|
+
* someObject.fire( 'someEvent' ); // myListener called
|
304
|
+
* <b>someObject.removeListener( 'someEvent', myListener )</b>;
|
305
|
+
* someObject.fire( 'someEvent' ); // myListener not called
|
306
|
+
*/
|
307
|
+
removeListener : function( eventName, listenerFunction )
|
308
|
+
{
|
309
|
+
// Get the event entry.
|
310
|
+
var event = getPrivate( this )[ eventName ];
|
311
|
+
|
312
|
+
if ( event )
|
313
|
+
{
|
314
|
+
var index = event.getListenerIndex( listenerFunction );
|
315
|
+
if ( index >= 0 )
|
316
|
+
event.listeners.splice( index, 1 );
|
317
|
+
}
|
318
|
+
},
|
319
|
+
|
320
|
+
/**
|
321
|
+
* Checks if there is any listener registered to a given event.
|
322
|
+
* @param {String} eventName The event name.
|
323
|
+
* @example
|
324
|
+
* var myListener = function() { ... };
|
325
|
+
* someObject.on( 'someEvent', myListener );
|
326
|
+
* alert( someObject.<b>hasListeners( 'someEvent' )</b> ); // "true"
|
327
|
+
* alert( someObject.<b>hasListeners( 'noEvent' )</b> ); // "false"
|
328
|
+
*/
|
329
|
+
hasListeners : function( eventName )
|
330
|
+
{
|
331
|
+
var event = getPrivate( this )[ eventName ];
|
332
|
+
return ( event && event.listeners.length > 0 ) ;
|
333
|
+
}
|
334
|
+
};
|
335
|
+
})();
|
336
|
+
}
|