ckeditor 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,186 @@
|
|
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
|
+
CKEDITOR.dialog.add( 'paste', function( editor )
|
7
|
+
{
|
8
|
+
var lang = editor.lang.clipboard;
|
9
|
+
var isCustomDomain = CKEDITOR.env.isCustomDomain();
|
10
|
+
|
11
|
+
function onPasteFrameLoad( win )
|
12
|
+
{
|
13
|
+
var doc = new CKEDITOR.dom.document( win.document ),
|
14
|
+
$ = doc.$;
|
15
|
+
|
16
|
+
doc.getById( "cke_actscrpt" ).remove();
|
17
|
+
|
18
|
+
CKEDITOR.env.ie ?
|
19
|
+
$.body.contentEditable = "true" :
|
20
|
+
$.designMode = "on";
|
21
|
+
|
22
|
+
CKEDITOR.env.ie && doc.getWindow().on( 'blur', function()
|
23
|
+
{
|
24
|
+
$.body.contentEditable = "false";
|
25
|
+
} );
|
26
|
+
|
27
|
+
doc.on( "keydown", function( e )
|
28
|
+
{
|
29
|
+
var domEvent = e.data,
|
30
|
+
key = domEvent.getKeystroke(),
|
31
|
+
processed;
|
32
|
+
|
33
|
+
switch( key )
|
34
|
+
{
|
35
|
+
case 27 :
|
36
|
+
this.hide();
|
37
|
+
processed = 1;
|
38
|
+
break;
|
39
|
+
|
40
|
+
case 9 :
|
41
|
+
case CKEDITOR.SHIFT + 9 :
|
42
|
+
this.changeFocus( true );
|
43
|
+
processed = 1;
|
44
|
+
}
|
45
|
+
|
46
|
+
processed && domEvent.preventDefault();
|
47
|
+
}, this );
|
48
|
+
|
49
|
+
editor.fire( 'ariaWidget', new CKEDITOR.dom.element( win.frameElement ) );
|
50
|
+
}
|
51
|
+
|
52
|
+
return {
|
53
|
+
title : lang.title,
|
54
|
+
|
55
|
+
minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 370 : 350,
|
56
|
+
minHeight : CKEDITOR.env.quirks ? 250 : 245,
|
57
|
+
onShow : function()
|
58
|
+
{
|
59
|
+
// FIREFOX BUG: Force the browser to render the dialog to make the to-be-
|
60
|
+
// inserted iframe editable. (#3366)
|
61
|
+
this.parts.dialog.$.offsetHeight;
|
62
|
+
|
63
|
+
var htmlToLoad = '<!doctype html><html><head><style>body { margin: 3px; height: 95%; } </style></head><body>' +
|
64
|
+
'<script id="cke_actscrpt" type="text/javascript">' +
|
65
|
+
'window.parent.CKEDITOR.tools.callFunction( ' + CKEDITOR.tools.addFunction( onPasteFrameLoad, this ) + ', this );' +
|
66
|
+
'</script></body></html>';
|
67
|
+
|
68
|
+
var iframe = CKEDITOR.dom.element.createFromHtml(
|
69
|
+
'<iframe' +
|
70
|
+
' frameborder="0" ' +
|
71
|
+
' allowTransparency="true"' +
|
72
|
+
// Support for custom document.domain in IE.
|
73
|
+
( isCustomDomain ?
|
74
|
+
' src="javascript:void((function(){' +
|
75
|
+
'document.open();' +
|
76
|
+
'document.domain=\'' + document.domain + '\';' +
|
77
|
+
'document.close();' +
|
78
|
+
'})())"' : '' ) +
|
79
|
+
' role="region"' +
|
80
|
+
' aria-label="' + lang.pasteArea + '"' +
|
81
|
+
' aria-describedby="' + this.getContentElement( 'general', 'pasteMsg' ).domId + '"' +
|
82
|
+
' aria-multiple="true"' +
|
83
|
+
'></iframe>' );
|
84
|
+
|
85
|
+
iframe.on( 'load', function( e )
|
86
|
+
{
|
87
|
+
e.removeListener();
|
88
|
+
var doc = iframe.getFrameDocument().$;
|
89
|
+
// Custom domain handling is needed after each document.open().
|
90
|
+
doc.open();
|
91
|
+
if ( isCustomDomain )
|
92
|
+
doc.domain = document.domain;
|
93
|
+
doc.write( htmlToLoad );
|
94
|
+
doc.close();
|
95
|
+
}, this );
|
96
|
+
|
97
|
+
iframe.setStyles(
|
98
|
+
{
|
99
|
+
width : '346px',
|
100
|
+
height : '130px',
|
101
|
+
'background-color' : 'white',
|
102
|
+
border : '1px solid black'
|
103
|
+
} );
|
104
|
+
iframe.setCustomData( 'dialog', this );
|
105
|
+
|
106
|
+
var field = this.getContentElement( 'general', 'editing_area' ),
|
107
|
+
container = field.getElement();
|
108
|
+
container.setHtml( '' );
|
109
|
+
container.append( iframe );
|
110
|
+
|
111
|
+
field.getInputElement = function(){ return iframe; };
|
112
|
+
|
113
|
+
// Force container to scale in IE.
|
114
|
+
if ( CKEDITOR.env.ie )
|
115
|
+
{
|
116
|
+
container.setStyle( 'display', 'block' );
|
117
|
+
container.setStyle( 'height', ( iframe.$.offsetHeight + 2 ) + 'px' );
|
118
|
+
}
|
119
|
+
},
|
120
|
+
|
121
|
+
onHide : function()
|
122
|
+
{
|
123
|
+
if ( CKEDITOR.env.ie )
|
124
|
+
this.getParentEditor().document.getBody().$.contentEditable = 'true';
|
125
|
+
},
|
126
|
+
|
127
|
+
onLoad : function()
|
128
|
+
{
|
129
|
+
if ( ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) && editor.lang.dir == 'rtl' )
|
130
|
+
this.parts.contents.setStyle( 'overflow', 'hidden' );
|
131
|
+
},
|
132
|
+
|
133
|
+
onOk : function()
|
134
|
+
{
|
135
|
+
var container = this.getContentElement( 'general', 'editing_area' ).getElement(),
|
136
|
+
iframe = container.getElementsByTag( 'iframe' ).getItem( 0 ),
|
137
|
+
editor = this.getParentEditor(),
|
138
|
+
html = iframe.$.contentWindow.document.body.innerHTML;
|
139
|
+
|
140
|
+
setTimeout( function(){
|
141
|
+
editor.fire( 'paste', { 'html' : html } );
|
142
|
+
}, 0 );
|
143
|
+
|
144
|
+
},
|
145
|
+
|
146
|
+
contents : [
|
147
|
+
{
|
148
|
+
id : 'general',
|
149
|
+
label : editor.lang.common.generalTab,
|
150
|
+
elements : [
|
151
|
+
{
|
152
|
+
type : 'html',
|
153
|
+
id : 'securityMsg',
|
154
|
+
html : '<div style="white-space:normal;width:340px;">' + lang.securityMsg + '</div>'
|
155
|
+
},
|
156
|
+
{
|
157
|
+
type : 'html',
|
158
|
+
id : 'pasteMsg',
|
159
|
+
html : '<div style="white-space:normal;width:340px;">'+lang.pasteMsg +'</div>'
|
160
|
+
},
|
161
|
+
{
|
162
|
+
type : 'html',
|
163
|
+
id : 'editing_area',
|
164
|
+
style : 'width: 100%; height: 100%;',
|
165
|
+
html : '',
|
166
|
+
focus : function()
|
167
|
+
{
|
168
|
+
var win = this.getInputElement().$.contentWindow,
|
169
|
+
body = win && win.document.body;
|
170
|
+
|
171
|
+
// #3291 : JAWS needs the 500ms delay to detect that the editor iframe
|
172
|
+
// iframe is no longer editable. So that it will put the focus into the
|
173
|
+
// Paste from Word dialog's editable area instead.
|
174
|
+
setTimeout( function()
|
175
|
+
{
|
176
|
+
// Reactivate design mode for IE to make the cursor blinking.
|
177
|
+
CKEDITOR.env.ie && body && ( body.contentEditable = "true" );
|
178
|
+
win.focus();
|
179
|
+
}, 500 );
|
180
|
+
}
|
181
|
+
}
|
182
|
+
]
|
183
|
+
}
|
184
|
+
]
|
185
|
+
};
|
186
|
+
});
|
@@ -0,0 +1,379 @@
|
|
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
|
+
* @file Clipboard support
|
8
|
+
*/
|
9
|
+
|
10
|
+
(function()
|
11
|
+
{
|
12
|
+
// Tries to execute any of the paste, cut or copy commands in IE. Returns a
|
13
|
+
// boolean indicating that the operation succeeded.
|
14
|
+
var execIECommand = function( editor, command )
|
15
|
+
{
|
16
|
+
var doc = editor.document,
|
17
|
+
body = doc.getBody();
|
18
|
+
|
19
|
+
var enabled = false;
|
20
|
+
var onExec = function()
|
21
|
+
{
|
22
|
+
enabled = true;
|
23
|
+
};
|
24
|
+
|
25
|
+
// The following seems to be the only reliable way to detect that
|
26
|
+
// clipboard commands are enabled in IE. It will fire the
|
27
|
+
// onpaste/oncut/oncopy events only if the security settings allowed
|
28
|
+
// the command to execute.
|
29
|
+
body.on( command, onExec );
|
30
|
+
|
31
|
+
// IE6/7: document.execCommand has problem to paste into positioned element.
|
32
|
+
( CKEDITOR.env.version > 7 ? doc.$ : doc.$.selection.createRange() ) [ 'execCommand' ]( command );
|
33
|
+
|
34
|
+
body.removeListener( command, onExec );
|
35
|
+
|
36
|
+
return enabled;
|
37
|
+
};
|
38
|
+
|
39
|
+
// Attempts to execute the Cut and Copy operations.
|
40
|
+
var tryToCutCopy =
|
41
|
+
CKEDITOR.env.ie ?
|
42
|
+
function( editor, type )
|
43
|
+
{
|
44
|
+
return execIECommand( editor, type );
|
45
|
+
}
|
46
|
+
: // !IE.
|
47
|
+
function( editor, type )
|
48
|
+
{
|
49
|
+
try
|
50
|
+
{
|
51
|
+
// Other browsers throw an error if the command is disabled.
|
52
|
+
return editor.document.$.execCommand( type );
|
53
|
+
}
|
54
|
+
catch( e )
|
55
|
+
{
|
56
|
+
return false;
|
57
|
+
}
|
58
|
+
};
|
59
|
+
|
60
|
+
// A class that represents one of the cut or copy commands.
|
61
|
+
var cutCopyCmd = function( type )
|
62
|
+
{
|
63
|
+
this.type = type;
|
64
|
+
this.canUndo = ( this.type == 'cut' ); // We can't undo copy to clipboard.
|
65
|
+
};
|
66
|
+
|
67
|
+
cutCopyCmd.prototype =
|
68
|
+
{
|
69
|
+
exec : function( editor, data )
|
70
|
+
{
|
71
|
+
var success = tryToCutCopy( editor, this.type );
|
72
|
+
|
73
|
+
if ( !success )
|
74
|
+
alert( editor.lang.clipboard[ this.type + 'Error' ] ); // Show cutError or copyError.
|
75
|
+
|
76
|
+
return success;
|
77
|
+
}
|
78
|
+
};
|
79
|
+
|
80
|
+
// Paste command.
|
81
|
+
var pasteCmd =
|
82
|
+
{
|
83
|
+
canUndo : false,
|
84
|
+
|
85
|
+
exec :
|
86
|
+
CKEDITOR.env.ie ?
|
87
|
+
function( editor )
|
88
|
+
{
|
89
|
+
// Prevent IE from pasting at the begining of the document.
|
90
|
+
editor.focus();
|
91
|
+
|
92
|
+
if ( !editor.document.getBody().fire( 'beforepaste' )
|
93
|
+
&& !execIECommand( editor, 'paste' ) )
|
94
|
+
{
|
95
|
+
editor.fire( 'pasteDialog' );
|
96
|
+
return false;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
:
|
100
|
+
function( editor )
|
101
|
+
{
|
102
|
+
try
|
103
|
+
{
|
104
|
+
if ( !editor.document.getBody().fire( 'beforepaste' )
|
105
|
+
&& !editor.document.$.execCommand( 'Paste', false, null ) )
|
106
|
+
{
|
107
|
+
throw 0;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
catch ( e )
|
111
|
+
{
|
112
|
+
setTimeout( function()
|
113
|
+
{
|
114
|
+
editor.fire( 'pasteDialog' );
|
115
|
+
}, 0 );
|
116
|
+
return false;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
};
|
120
|
+
|
121
|
+
// Listens for some clipboard related keystrokes, so they get customized.
|
122
|
+
var onKey = function( event )
|
123
|
+
{
|
124
|
+
if ( this.mode != 'wysiwyg' )
|
125
|
+
return;
|
126
|
+
|
127
|
+
switch ( event.data.keyCode )
|
128
|
+
{
|
129
|
+
// Paste
|
130
|
+
case CKEDITOR.CTRL + 86 : // CTRL+V
|
131
|
+
case CKEDITOR.SHIFT + 45 : // SHIFT+INS
|
132
|
+
|
133
|
+
var body = this.document.getBody();
|
134
|
+
|
135
|
+
// Simulate 'beforepaste' event for all none-IEs.
|
136
|
+
if ( !CKEDITOR.env.ie && body.fire( 'beforepaste' ) )
|
137
|
+
event.cancel();
|
138
|
+
// Simulate 'paste' event for Opera/Firefox2.
|
139
|
+
else if ( CKEDITOR.env.opera
|
140
|
+
|| CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 )
|
141
|
+
body.fire( 'paste' );
|
142
|
+
return;
|
143
|
+
|
144
|
+
// Cut
|
145
|
+
case CKEDITOR.CTRL + 88 : // CTRL+X
|
146
|
+
case CKEDITOR.SHIFT + 46 : // SHIFT+DEL
|
147
|
+
|
148
|
+
// Save Undo snapshot.
|
149
|
+
var editor = this;
|
150
|
+
this.fire( 'saveSnapshot' ); // Save before paste
|
151
|
+
setTimeout( function()
|
152
|
+
{
|
153
|
+
editor.fire( 'saveSnapshot' ); // Save after paste
|
154
|
+
}, 0 );
|
155
|
+
}
|
156
|
+
};
|
157
|
+
|
158
|
+
// Allow to peek clipboard content by redirecting the
|
159
|
+
// pasting content into a temporary bin and grab the content of it.
|
160
|
+
function getClipboardData( evt, mode, callback )
|
161
|
+
{
|
162
|
+
var doc = this.document;
|
163
|
+
|
164
|
+
// Avoid recursions on 'paste' event for IE.
|
165
|
+
if ( CKEDITOR.env.ie && doc.getById( 'cke_pastebin' ) )
|
166
|
+
return;
|
167
|
+
|
168
|
+
// If the browser supports it, get the data directly
|
169
|
+
if (mode == 'text' && evt.data && evt.data.$.clipboardData)
|
170
|
+
{
|
171
|
+
// evt.data.$.clipboardData.types contains all the flavours in Mac's Safari, but not on windows.
|
172
|
+
var plain = evt.data.$.clipboardData.getData( 'text/plain' );
|
173
|
+
if (plain)
|
174
|
+
{
|
175
|
+
evt.data.preventDefault();
|
176
|
+
callback( plain );
|
177
|
+
return;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
|
181
|
+
var sel = this.getSelection(),
|
182
|
+
range = new CKEDITOR.dom.range( doc );
|
183
|
+
|
184
|
+
// Create container to paste into
|
185
|
+
var pastebin = new CKEDITOR.dom.element( mode == 'text' ? 'textarea' : 'div', doc );
|
186
|
+
pastebin.setAttribute( 'id', 'cke_pastebin' );
|
187
|
+
// Safari requires a filler node inside the div to have the content pasted into it. (#4882)
|
188
|
+
CKEDITOR.env.webkit && pastebin.append( doc.createText( '\xa0' ) );
|
189
|
+
doc.getBody().append( pastebin );
|
190
|
+
|
191
|
+
// It's definitely a better user experience if we make the paste-bin pretty unnoticed
|
192
|
+
// by pulling it off the screen.
|
193
|
+
pastebin.setStyles(
|
194
|
+
{
|
195
|
+
position : 'absolute',
|
196
|
+
left : '-1000px',
|
197
|
+
// Position the bin exactly at the position of the selected element
|
198
|
+
// to avoid any subsequent document scroll.
|
199
|
+
top : sel.getStartElement().getDocumentPosition().y + 'px',
|
200
|
+
width : '1px',
|
201
|
+
height : '1px',
|
202
|
+
overflow : 'hidden'
|
203
|
+
});
|
204
|
+
|
205
|
+
var bms = sel.createBookmarks();
|
206
|
+
|
207
|
+
// Turn off design mode temporarily before give focus to the paste bin.
|
208
|
+
if ( mode == 'text' )
|
209
|
+
{
|
210
|
+
if ( CKEDITOR.env.ie )
|
211
|
+
{
|
212
|
+
var ieRange = doc.getBody().$.createTextRange();
|
213
|
+
ieRange.moveToElementText( pastebin.$ );
|
214
|
+
ieRange.execCommand( 'Paste' );
|
215
|
+
evt.data.preventDefault();
|
216
|
+
}
|
217
|
+
else
|
218
|
+
{
|
219
|
+
doc.$.designMode = 'off';
|
220
|
+
pastebin.$.focus();
|
221
|
+
}
|
222
|
+
}
|
223
|
+
else
|
224
|
+
{
|
225
|
+
range.setStartAt( pastebin, CKEDITOR.POSITION_AFTER_START );
|
226
|
+
range.setEndAt( pastebin, CKEDITOR.POSITION_BEFORE_END );
|
227
|
+
range.select( true );
|
228
|
+
}
|
229
|
+
|
230
|
+
// Wait a while and grab the pasted contents
|
231
|
+
window.setTimeout( function()
|
232
|
+
{
|
233
|
+
mode == 'text' && !CKEDITOR.env.ie && ( doc.$.designMode = 'on' );
|
234
|
+
pastebin.remove();
|
235
|
+
|
236
|
+
// Grab the HTML contents.
|
237
|
+
// We need to look for a apple style wrapper on webkit it also adds
|
238
|
+
// a div wrapper if you copy/paste the body of the editor.
|
239
|
+
// Remove hidden div and restore selection.
|
240
|
+
var bogusSpan;
|
241
|
+
pastebin = ( CKEDITOR.env.webkit
|
242
|
+
&& ( bogusSpan = pastebin.getFirst() )
|
243
|
+
&& ( bogusSpan.is && bogusSpan.hasClass( 'Apple-style-span' ) ) ?
|
244
|
+
bogusSpan : pastebin );
|
245
|
+
|
246
|
+
sel.selectBookmarks( bms );
|
247
|
+
callback( pastebin[ 'get' + ( mode == 'text' ? 'Value' : 'Html' ) ]() );
|
248
|
+
}, 0 );
|
249
|
+
}
|
250
|
+
|
251
|
+
// Register the plugin.
|
252
|
+
CKEDITOR.plugins.add( 'clipboard',
|
253
|
+
{
|
254
|
+
requires : [ 'dialog', 'htmldataprocessor' ],
|
255
|
+
init : function( editor )
|
256
|
+
{
|
257
|
+
// Inserts processed data into the editor at the end of the
|
258
|
+
// events chain.
|
259
|
+
editor.on( 'paste', function( evt )
|
260
|
+
{
|
261
|
+
var data = evt.data;
|
262
|
+
if ( data[ 'html' ] )
|
263
|
+
editor.insertHtml( data[ 'html' ] );
|
264
|
+
else if ( data[ 'text' ] )
|
265
|
+
editor.insertText( data[ 'text' ] );
|
266
|
+
|
267
|
+
}, null, null, 1000 );
|
268
|
+
|
269
|
+
editor.on( 'pasteDialog', function( evt )
|
270
|
+
{
|
271
|
+
setTimeout( function()
|
272
|
+
{
|
273
|
+
// Open default paste dialog.
|
274
|
+
editor.openDialog( 'paste' );
|
275
|
+
}, 0 );
|
276
|
+
});
|
277
|
+
|
278
|
+
function addButtonCommand( buttonName, commandName, command, ctxMenuOrder )
|
279
|
+
{
|
280
|
+
var lang = editor.lang[ commandName ];
|
281
|
+
|
282
|
+
editor.addCommand( commandName, command );
|
283
|
+
editor.ui.addButton( buttonName,
|
284
|
+
{
|
285
|
+
label : lang,
|
286
|
+
command : commandName
|
287
|
+
});
|
288
|
+
|
289
|
+
// If the "menu" plugin is loaded, register the menu item.
|
290
|
+
if ( editor.addMenuItems )
|
291
|
+
{
|
292
|
+
editor.addMenuItem( commandName,
|
293
|
+
{
|
294
|
+
label : lang,
|
295
|
+
command : commandName,
|
296
|
+
group : 'clipboard',
|
297
|
+
order : ctxMenuOrder
|
298
|
+
});
|
299
|
+
}
|
300
|
+
}
|
301
|
+
|
302
|
+
addButtonCommand( 'Cut', 'cut', new cutCopyCmd( 'cut' ), 1 );
|
303
|
+
addButtonCommand( 'Copy', 'copy', new cutCopyCmd( 'copy' ), 4 );
|
304
|
+
addButtonCommand( 'Paste', 'paste', pasteCmd, 8 );
|
305
|
+
|
306
|
+
CKEDITOR.dialog.add( 'paste', CKEDITOR.getUrl( this.path + 'dialogs/paste.js' ) );
|
307
|
+
|
308
|
+
editor.on( 'key', onKey, editor );
|
309
|
+
|
310
|
+
var mode = editor.config.forcePasteAsPlainText ? 'text' : 'html';
|
311
|
+
|
312
|
+
// We'll be catching all pasted content in one line, regardless of whether the
|
313
|
+
// it's introduced by a document command execution (e.g. toolbar buttons) or
|
314
|
+
// user paste behaviors. (e.g. Ctrl-V)
|
315
|
+
editor.on( 'contentDom', function()
|
316
|
+
{
|
317
|
+
var body = editor.document.getBody();
|
318
|
+
body.on( ( (mode == 'text' && CKEDITOR.env.ie) || CKEDITOR.env.webkit ) ? 'paste' : 'beforepaste',
|
319
|
+
function( evt )
|
320
|
+
{
|
321
|
+
if ( depressBeforePasteEvent )
|
322
|
+
return;
|
323
|
+
|
324
|
+
getClipboardData.call( editor, evt, mode, function ( data )
|
325
|
+
{
|
326
|
+
// The very last guard to make sure the
|
327
|
+
// paste has successfully happened.
|
328
|
+
if ( !data )
|
329
|
+
return;
|
330
|
+
|
331
|
+
var dataTransfer = {};
|
332
|
+
dataTransfer[ mode ] = data;
|
333
|
+
editor.fire( 'paste', dataTransfer );
|
334
|
+
} );
|
335
|
+
});
|
336
|
+
|
337
|
+
});
|
338
|
+
|
339
|
+
// If the "contextmenu" plugin is loaded, register the listeners.
|
340
|
+
if ( editor.contextMenu )
|
341
|
+
{
|
342
|
+
var depressBeforePasteEvent;
|
343
|
+
function stateFromNamedCommand( command )
|
344
|
+
{
|
345
|
+
// IE Bug: queryCommandEnabled('paste') fires also 'beforepaste',
|
346
|
+
// guard to distinguish from the ordinary sources( either
|
347
|
+
// keyboard paste or execCommand ) (#4874).
|
348
|
+
CKEDITOR.env.ie && command == 'Paste'&& ( depressBeforePasteEvent = 1 );
|
349
|
+
|
350
|
+
var retval = editor.document.$.queryCommandEnabled( command ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED;
|
351
|
+
depressBeforePasteEvent = 0;
|
352
|
+
return retval;
|
353
|
+
}
|
354
|
+
|
355
|
+
editor.contextMenu.addListener( function()
|
356
|
+
{
|
357
|
+
return {
|
358
|
+
cut : stateFromNamedCommand( 'Cut' ),
|
359
|
+
|
360
|
+
// Browser bug: 'Cut' has the correct states for both Copy and Cut.
|
361
|
+
copy : stateFromNamedCommand( 'Cut' ),
|
362
|
+
paste : CKEDITOR.env.webkit ? CKEDITOR.TRISTATE_OFF : stateFromNamedCommand( 'Paste' )
|
363
|
+
};
|
364
|
+
});
|
365
|
+
}
|
366
|
+
}
|
367
|
+
});
|
368
|
+
})();
|
369
|
+
|
370
|
+
/**
|
371
|
+
* Fired when a clipboard operation is about to be taken into the editor.
|
372
|
+
* Listeners can manipulate the data to be pasted before having it effectively
|
373
|
+
* inserted into the document.
|
374
|
+
* @name CKEDITOR.editor#paste
|
375
|
+
* @since 3.1
|
376
|
+
* @event
|
377
|
+
* @param {String} [data.html] The HTML data to be pasted. If not available, e.data.text will be defined.
|
378
|
+
* @param {String} [data.text] The plain text data to be pasted, available when plain text operations are to used. If not available, e.data.html will be defined.
|
379
|
+
*/
|