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,101 @@
|
|
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.plugins.add( 'basicstyles',
|
7
|
+
{
|
8
|
+
requires : [ 'styles', 'button' ],
|
9
|
+
|
10
|
+
init : function( editor )
|
11
|
+
{
|
12
|
+
// All buttons use the same code to register. So, to avoid
|
13
|
+
// duplications, let's use this tool function.
|
14
|
+
var addButtonCommand = function( buttonName, buttonLabel, commandName, styleDefiniton )
|
15
|
+
{
|
16
|
+
var style = new CKEDITOR.style( styleDefiniton );
|
17
|
+
|
18
|
+
editor.attachStyleStateChange( style, function( state )
|
19
|
+
{
|
20
|
+
editor.getCommand( commandName ).setState( state );
|
21
|
+
});
|
22
|
+
|
23
|
+
editor.addCommand( commandName, new CKEDITOR.styleCommand( style ) );
|
24
|
+
|
25
|
+
editor.ui.addButton( buttonName,
|
26
|
+
{
|
27
|
+
label : buttonLabel,
|
28
|
+
command : commandName
|
29
|
+
});
|
30
|
+
};
|
31
|
+
|
32
|
+
var config = editor.config;
|
33
|
+
var lang = editor.lang;
|
34
|
+
|
35
|
+
addButtonCommand( 'Bold' , lang.bold , 'bold' , config.coreStyles_bold );
|
36
|
+
addButtonCommand( 'Italic' , lang.italic , 'italic' , config.coreStyles_italic );
|
37
|
+
addButtonCommand( 'Underline' , lang.underline , 'underline' , config.coreStyles_underline );
|
38
|
+
addButtonCommand( 'Strike' , lang.strike , 'strike' , config.coreStyles_strike );
|
39
|
+
addButtonCommand( 'Subscript' , lang.subscript , 'subscript' , config.coreStyles_subscript );
|
40
|
+
addButtonCommand( 'Superscript' , lang.superscript , 'superscript' , config.coreStyles_superscript );
|
41
|
+
}
|
42
|
+
});
|
43
|
+
|
44
|
+
// Basic Inline Styles.
|
45
|
+
|
46
|
+
/**
|
47
|
+
* The style definition to be used to apply the bold style in the text.
|
48
|
+
* @type Object
|
49
|
+
* @example
|
50
|
+
* config.coreStyles_bold = { element : 'b', overrides : 'strong' };
|
51
|
+
* @example
|
52
|
+
* config.coreStyles_bold = { element : 'span', attributes : {'class': 'Bold'} };
|
53
|
+
*/
|
54
|
+
CKEDITOR.config.coreStyles_bold = { element : 'strong', overrides : 'b' };
|
55
|
+
|
56
|
+
/**
|
57
|
+
* The style definition to be used to apply the italic style in the text.
|
58
|
+
* @type Object
|
59
|
+
* @default { element : 'em', overrides : 'i' }
|
60
|
+
* @example
|
61
|
+
* config.coreStyles_bold = { element : 'i', overrides : 'em' };
|
62
|
+
* @example
|
63
|
+
* CKEDITOR.config.coreStyles_italic = { element : 'span', attributes : {'class': 'Italic'} };
|
64
|
+
*/
|
65
|
+
CKEDITOR.config.coreStyles_italic = { element : 'em', overrides : 'i' };
|
66
|
+
|
67
|
+
/**
|
68
|
+
* The style definition to be used to apply the underline style in the text.
|
69
|
+
* @type Object
|
70
|
+
* @default { element : 'u' }
|
71
|
+
* @example
|
72
|
+
* CKEDITOR.config.coreStyles_underline = { element : 'span', attributes : {'class': 'Underline'}};
|
73
|
+
*/
|
74
|
+
CKEDITOR.config.coreStyles_underline = { element : 'u' };
|
75
|
+
|
76
|
+
/**
|
77
|
+
* The style definition to be used to apply the strike style in the text.
|
78
|
+
* @type Object
|
79
|
+
* @default { element : 'strike' }
|
80
|
+
* @example
|
81
|
+
* CKEDITOR.config.coreStyles_strike = { element : 'span', attributes : {'class': 'StrikeThrough'}, overrides : 'strike' };
|
82
|
+
*/
|
83
|
+
CKEDITOR.config.coreStyles_strike = { element : 'strike' };
|
84
|
+
|
85
|
+
/**
|
86
|
+
* The style definition to be used to apply the subscript style in the text.
|
87
|
+
* @type Object
|
88
|
+
* @default { element : 'sub' }
|
89
|
+
* @example
|
90
|
+
* CKEDITOR.config.coreStyles_subscript = { element : 'span', attributes : {'class': 'Subscript'}, overrides : 'sub' };
|
91
|
+
*/
|
92
|
+
CKEDITOR.config.coreStyles_subscript = { element : 'sub' };
|
93
|
+
|
94
|
+
/**
|
95
|
+
* The style definition to be used to apply the superscript style in the text.
|
96
|
+
* @type Object
|
97
|
+
* @default { element : 'sup' }
|
98
|
+
* @example
|
99
|
+
* CKEDITOR.config.coreStyles_superscript = { element : 'span', attributes : {'class': 'Superscript'}, overrides : 'sup' };
|
100
|
+
*/
|
101
|
+
CKEDITOR.config.coreStyles_superscript = { element : 'sup' };
|
@@ -0,0 +1,301 @@
|
|
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 Blockquote.
|
8
|
+
*/
|
9
|
+
|
10
|
+
(function()
|
11
|
+
{
|
12
|
+
function getState( editor, path )
|
13
|
+
{
|
14
|
+
var firstBlock = path.block || path.blockLimit;
|
15
|
+
|
16
|
+
if ( !firstBlock || firstBlock.getName() == 'body' )
|
17
|
+
return CKEDITOR.TRISTATE_OFF;
|
18
|
+
|
19
|
+
// See if the first block has a blockquote parent.
|
20
|
+
if ( firstBlock.getAscendant( 'blockquote', true ) )
|
21
|
+
return CKEDITOR.TRISTATE_ON;
|
22
|
+
|
23
|
+
return CKEDITOR.TRISTATE_OFF;
|
24
|
+
}
|
25
|
+
|
26
|
+
function onSelectionChange( evt )
|
27
|
+
{
|
28
|
+
var editor = evt.editor,
|
29
|
+
command = editor.getCommand( 'blockquote' );
|
30
|
+
command.state = getState( editor, evt.data.path );
|
31
|
+
command.fire( 'state' );
|
32
|
+
}
|
33
|
+
|
34
|
+
function noBlockLeft( bqBlock )
|
35
|
+
{
|
36
|
+
for ( var i = 0, length = bqBlock.getChildCount(), child ; i < length && ( child = bqBlock.getChild( i ) ) ; i++ )
|
37
|
+
{
|
38
|
+
if ( child.type == CKEDITOR.NODE_ELEMENT && child.isBlockBoundary() )
|
39
|
+
return false;
|
40
|
+
}
|
41
|
+
return true;
|
42
|
+
}
|
43
|
+
|
44
|
+
var commandObject =
|
45
|
+
{
|
46
|
+
exec : function( editor )
|
47
|
+
{
|
48
|
+
var state = editor.getCommand( 'blockquote' ).state,
|
49
|
+
selection = editor.getSelection(),
|
50
|
+
range = selection && selection.getRanges()[0];
|
51
|
+
|
52
|
+
if ( !range )
|
53
|
+
return;
|
54
|
+
|
55
|
+
var bookmarks = selection.createBookmarks();
|
56
|
+
|
57
|
+
// Kludge for #1592: if the bookmark nodes are in the beginning of
|
58
|
+
// blockquote, then move them to the nearest block element in the
|
59
|
+
// blockquote.
|
60
|
+
if ( CKEDITOR.env.ie )
|
61
|
+
{
|
62
|
+
var bookmarkStart = bookmarks[0].startNode,
|
63
|
+
bookmarkEnd = bookmarks[0].endNode,
|
64
|
+
cursor;
|
65
|
+
|
66
|
+
if ( bookmarkStart && bookmarkStart.getParent().getName() == 'blockquote' )
|
67
|
+
{
|
68
|
+
cursor = bookmarkStart;
|
69
|
+
while ( ( cursor = cursor.getNext() ) )
|
70
|
+
{
|
71
|
+
if ( cursor.type == CKEDITOR.NODE_ELEMENT &&
|
72
|
+
cursor.isBlockBoundary() )
|
73
|
+
{
|
74
|
+
bookmarkStart.move( cursor, true );
|
75
|
+
break;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
if ( bookmarkEnd
|
81
|
+
&& bookmarkEnd.getParent().getName() == 'blockquote' )
|
82
|
+
{
|
83
|
+
cursor = bookmarkEnd;
|
84
|
+
while ( ( cursor = cursor.getPrevious() ) )
|
85
|
+
{
|
86
|
+
if ( cursor.type == CKEDITOR.NODE_ELEMENT &&
|
87
|
+
cursor.isBlockBoundary() )
|
88
|
+
{
|
89
|
+
bookmarkEnd.move( cursor );
|
90
|
+
break;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
var iterator = range.createIterator(),
|
97
|
+
block;
|
98
|
+
|
99
|
+
if ( state == CKEDITOR.TRISTATE_OFF )
|
100
|
+
{
|
101
|
+
var paragraphs = [];
|
102
|
+
while ( ( block = iterator.getNextParagraph() ) )
|
103
|
+
paragraphs.push( block );
|
104
|
+
|
105
|
+
// If no paragraphs, create one from the current selection position.
|
106
|
+
if ( paragraphs.length < 1 )
|
107
|
+
{
|
108
|
+
var para = editor.document.createElement( editor.config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ),
|
109
|
+
firstBookmark = bookmarks.shift();
|
110
|
+
range.insertNode( para );
|
111
|
+
para.append( new CKEDITOR.dom.text( '\ufeff', editor.document ) );
|
112
|
+
range.moveToBookmark( firstBookmark );
|
113
|
+
range.selectNodeContents( para );
|
114
|
+
range.collapse( true );
|
115
|
+
firstBookmark = range.createBookmark();
|
116
|
+
paragraphs.push( para );
|
117
|
+
bookmarks.unshift( firstBookmark );
|
118
|
+
}
|
119
|
+
|
120
|
+
// Make sure all paragraphs have the same parent.
|
121
|
+
var commonParent = paragraphs[0].getParent(),
|
122
|
+
tmp = [];
|
123
|
+
for ( var i = 0 ; i < paragraphs.length ; i++ )
|
124
|
+
{
|
125
|
+
block = paragraphs[i];
|
126
|
+
commonParent = commonParent.getCommonAncestor( block.getParent() );
|
127
|
+
}
|
128
|
+
|
129
|
+
// The common parent must not be the following tags: table, tbody, tr, ol, ul.
|
130
|
+
var denyTags = { table : 1, tbody : 1, tr : 1, ol : 1, ul : 1 };
|
131
|
+
while ( denyTags[ commonParent.getName() ] )
|
132
|
+
commonParent = commonParent.getParent();
|
133
|
+
|
134
|
+
// Reconstruct the block list to be processed such that all resulting blocks
|
135
|
+
// satisfy parentNode.equals( commonParent ).
|
136
|
+
var lastBlock = null;
|
137
|
+
while ( paragraphs.length > 0 )
|
138
|
+
{
|
139
|
+
block = paragraphs.shift();
|
140
|
+
while ( !block.getParent().equals( commonParent ) )
|
141
|
+
block = block.getParent();
|
142
|
+
if ( !block.equals( lastBlock ) )
|
143
|
+
tmp.push( block );
|
144
|
+
lastBlock = block;
|
145
|
+
}
|
146
|
+
|
147
|
+
// If any of the selected blocks is a blockquote, remove it to prevent
|
148
|
+
// nested blockquotes.
|
149
|
+
while ( tmp.length > 0 )
|
150
|
+
{
|
151
|
+
block = tmp.shift();
|
152
|
+
if ( block.getName() == 'blockquote' )
|
153
|
+
{
|
154
|
+
var docFrag = new CKEDITOR.dom.documentFragment( editor.document );
|
155
|
+
while ( block.getFirst() )
|
156
|
+
{
|
157
|
+
docFrag.append( block.getFirst().remove() );
|
158
|
+
paragraphs.push( docFrag.getLast() );
|
159
|
+
}
|
160
|
+
|
161
|
+
docFrag.replace( block );
|
162
|
+
}
|
163
|
+
else
|
164
|
+
paragraphs.push( block );
|
165
|
+
}
|
166
|
+
|
167
|
+
// Now we have all the blocks to be included in a new blockquote node.
|
168
|
+
var bqBlock = editor.document.createElement( 'blockquote' );
|
169
|
+
bqBlock.insertBefore( paragraphs[0] );
|
170
|
+
while ( paragraphs.length > 0 )
|
171
|
+
{
|
172
|
+
block = paragraphs.shift();
|
173
|
+
bqBlock.append( block );
|
174
|
+
}
|
175
|
+
}
|
176
|
+
else if ( state == CKEDITOR.TRISTATE_ON )
|
177
|
+
{
|
178
|
+
var moveOutNodes = [],
|
179
|
+
database = {};
|
180
|
+
|
181
|
+
while ( ( block = iterator.getNextParagraph() ) )
|
182
|
+
{
|
183
|
+
var bqParent = null,
|
184
|
+
bqChild = null;
|
185
|
+
while ( block.getParent() )
|
186
|
+
{
|
187
|
+
if ( block.getParent().getName() == 'blockquote' )
|
188
|
+
{
|
189
|
+
bqParent = block.getParent();
|
190
|
+
bqChild = block;
|
191
|
+
break;
|
192
|
+
}
|
193
|
+
block = block.getParent();
|
194
|
+
}
|
195
|
+
|
196
|
+
// Remember the blocks that were recorded down in the moveOutNodes array
|
197
|
+
// to prevent duplicates.
|
198
|
+
if ( bqParent && bqChild && !bqChild.getCustomData( 'blockquote_moveout' ) )
|
199
|
+
{
|
200
|
+
moveOutNodes.push( bqChild );
|
201
|
+
CKEDITOR.dom.element.setMarker( database, bqChild, 'blockquote_moveout', true );
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
CKEDITOR.dom.element.clearAllMarkers( database );
|
206
|
+
|
207
|
+
var movedNodes = [],
|
208
|
+
processedBlockquoteBlocks = [];
|
209
|
+
|
210
|
+
database = {};
|
211
|
+
while ( moveOutNodes.length > 0 )
|
212
|
+
{
|
213
|
+
var node = moveOutNodes.shift();
|
214
|
+
bqBlock = node.getParent();
|
215
|
+
|
216
|
+
// If the node is located at the beginning or the end, just take it out
|
217
|
+
// without splitting. Otherwise, split the blockquote node and move the
|
218
|
+
// paragraph in between the two blockquote nodes.
|
219
|
+
if ( !node.getPrevious() )
|
220
|
+
node.remove().insertBefore( bqBlock );
|
221
|
+
else if ( !node.getNext() )
|
222
|
+
node.remove().insertAfter( bqBlock );
|
223
|
+
else
|
224
|
+
{
|
225
|
+
node.breakParent( node.getParent() );
|
226
|
+
processedBlockquoteBlocks.push( node.getNext() );
|
227
|
+
}
|
228
|
+
|
229
|
+
// Remember the blockquote node so we can clear it later (if it becomes empty).
|
230
|
+
if ( !bqBlock.getCustomData( 'blockquote_processed' ) )
|
231
|
+
{
|
232
|
+
processedBlockquoteBlocks.push( bqBlock );
|
233
|
+
CKEDITOR.dom.element.setMarker( database, bqBlock, 'blockquote_processed', true );
|
234
|
+
}
|
235
|
+
|
236
|
+
movedNodes.push( node );
|
237
|
+
}
|
238
|
+
|
239
|
+
CKEDITOR.dom.element.clearAllMarkers( database );
|
240
|
+
|
241
|
+
// Clear blockquote nodes that have become empty.
|
242
|
+
for ( i = processedBlockquoteBlocks.length - 1 ; i >= 0 ; i-- )
|
243
|
+
{
|
244
|
+
bqBlock = processedBlockquoteBlocks[i];
|
245
|
+
if ( noBlockLeft( bqBlock ) )
|
246
|
+
bqBlock.remove();
|
247
|
+
}
|
248
|
+
|
249
|
+
if ( editor.config.enterMode == CKEDITOR.ENTER_BR )
|
250
|
+
{
|
251
|
+
var firstTime = true;
|
252
|
+
while ( movedNodes.length )
|
253
|
+
{
|
254
|
+
node = movedNodes.shift();
|
255
|
+
|
256
|
+
if ( node.getName() == 'div' )
|
257
|
+
{
|
258
|
+
docFrag = new CKEDITOR.dom.documentFragment( editor.document );
|
259
|
+
var needBeginBr = firstTime && node.getPrevious() &&
|
260
|
+
!( node.getPrevious().type == CKEDITOR.NODE_ELEMENT && node.getPrevious().isBlockBoundary() );
|
261
|
+
if ( needBeginBr )
|
262
|
+
docFrag.append( editor.document.createElement( 'br' ) );
|
263
|
+
|
264
|
+
var needEndBr = node.getNext() &&
|
265
|
+
!( node.getNext().type == CKEDITOR.NODE_ELEMENT && node.getNext().isBlockBoundary() );
|
266
|
+
while ( node.getFirst() )
|
267
|
+
node.getFirst().remove().appendTo( docFrag );
|
268
|
+
|
269
|
+
if ( needEndBr )
|
270
|
+
docFrag.append( editor.document.createElement( 'br' ) );
|
271
|
+
|
272
|
+
docFrag.replace( node );
|
273
|
+
firstTime = false;
|
274
|
+
}
|
275
|
+
}
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
selection.selectBookmarks( bookmarks );
|
280
|
+
editor.focus();
|
281
|
+
}
|
282
|
+
};
|
283
|
+
|
284
|
+
CKEDITOR.plugins.add( 'blockquote',
|
285
|
+
{
|
286
|
+
init : function( editor )
|
287
|
+
{
|
288
|
+
editor.addCommand( 'blockquote', commandObject );
|
289
|
+
|
290
|
+
editor.ui.addButton( 'Blockquote',
|
291
|
+
{
|
292
|
+
label : editor.lang.blockquote,
|
293
|
+
command : 'blockquote'
|
294
|
+
} );
|
295
|
+
|
296
|
+
editor.on( 'selectionChange', onSelectionChange );
|
297
|
+
},
|
298
|
+
|
299
|
+
requires : [ 'domiterator' ]
|
300
|
+
} );
|
301
|
+
})();
|
@@ -0,0 +1,272 @@
|
|
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.plugins.add( 'button',
|
7
|
+
{
|
8
|
+
beforeInit : function( editor )
|
9
|
+
{
|
10
|
+
editor.ui.addHandler( CKEDITOR.UI_BUTTON, CKEDITOR.ui.button.handler );
|
11
|
+
}
|
12
|
+
});
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Button UI element.
|
16
|
+
* @constant
|
17
|
+
* @example
|
18
|
+
*/
|
19
|
+
CKEDITOR.UI_BUTTON = 1;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Represents a button UI element. This class should not be called directly. To
|
23
|
+
* create new buttons use {@link CKEDITOR.ui.prototype.addButton} instead.
|
24
|
+
* @constructor
|
25
|
+
* @param {Object} definition The button definition.
|
26
|
+
* @example
|
27
|
+
*/
|
28
|
+
CKEDITOR.ui.button = function( definition )
|
29
|
+
{
|
30
|
+
// Copy all definition properties to this object.
|
31
|
+
CKEDITOR.tools.extend( this, definition,
|
32
|
+
// Set defaults.
|
33
|
+
{
|
34
|
+
title : definition.label,
|
35
|
+
className : definition.className || ( definition.command && 'cke_button_' + definition.command ) || '',
|
36
|
+
click : definition.click || function( editor )
|
37
|
+
{
|
38
|
+
editor.execCommand( definition.command );
|
39
|
+
}
|
40
|
+
});
|
41
|
+
|
42
|
+
this._ = {};
|
43
|
+
};
|
44
|
+
|
45
|
+
/**
|
46
|
+
* Transforms a button definition in a {@link CKEDITOR.ui.button} instance.
|
47
|
+
* @type Object
|
48
|
+
* @example
|
49
|
+
*/
|
50
|
+
CKEDITOR.ui.button.handler =
|
51
|
+
{
|
52
|
+
create : function( definition )
|
53
|
+
{
|
54
|
+
return new CKEDITOR.ui.button( definition );
|
55
|
+
}
|
56
|
+
};
|
57
|
+
|
58
|
+
CKEDITOR.ui.button.prototype =
|
59
|
+
{
|
60
|
+
canGroup : true,
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Renders the button.
|
64
|
+
* @param {CKEDITOR.editor} editor The editor instance which this button is
|
65
|
+
* to be used by.
|
66
|
+
* @param {Array} output The output array to which append the HTML relative
|
67
|
+
* to this button.
|
68
|
+
* @example
|
69
|
+
*/
|
70
|
+
render : function( editor, output )
|
71
|
+
{
|
72
|
+
var env = CKEDITOR.env,
|
73
|
+
id = this._.id = 'cke_' + CKEDITOR.tools.getNextNumber(),
|
74
|
+
classes = '',
|
75
|
+
command = this.command, // Get the command name.
|
76
|
+
clickFn,
|
77
|
+
index;
|
78
|
+
|
79
|
+
this._.editor = editor;
|
80
|
+
|
81
|
+
var instance =
|
82
|
+
{
|
83
|
+
id : id,
|
84
|
+
button : this,
|
85
|
+
editor : editor,
|
86
|
+
focus : function()
|
87
|
+
{
|
88
|
+
var element = CKEDITOR.document.getById( id );
|
89
|
+
element.focus();
|
90
|
+
},
|
91
|
+
execute : function()
|
92
|
+
{
|
93
|
+
this.button.click( editor );
|
94
|
+
}
|
95
|
+
};
|
96
|
+
|
97
|
+
instance.clickFn = clickFn = CKEDITOR.tools.addFunction( instance.execute, instance );
|
98
|
+
|
99
|
+
instance.index = index = CKEDITOR.ui.button._.instances.push( instance ) - 1;
|
100
|
+
|
101
|
+
if ( this.modes )
|
102
|
+
{
|
103
|
+
editor.on( 'mode', function()
|
104
|
+
{
|
105
|
+
this.setState( this.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
|
106
|
+
}, this);
|
107
|
+
}
|
108
|
+
else if ( command )
|
109
|
+
{
|
110
|
+
// Get the command instance.
|
111
|
+
command = editor.getCommand( command );
|
112
|
+
|
113
|
+
if ( command )
|
114
|
+
{
|
115
|
+
command.on( 'state', function()
|
116
|
+
{
|
117
|
+
this.setState( command.state );
|
118
|
+
}, this);
|
119
|
+
|
120
|
+
classes += 'cke_' + (
|
121
|
+
command.state == CKEDITOR.TRISTATE_ON ? 'on' :
|
122
|
+
command.state == CKEDITOR.TRISTATE_DISABLED ? 'disabled' :
|
123
|
+
'off' );
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
if ( !command )
|
128
|
+
classes += 'cke_off';
|
129
|
+
|
130
|
+
if ( this.className )
|
131
|
+
classes += ' ' + this.className;
|
132
|
+
|
133
|
+
output.push(
|
134
|
+
'<span class="cke_button">',
|
135
|
+
'<a id="', id, '"' +
|
136
|
+
' class="', classes, '"',
|
137
|
+
env.gecko && env.version >= 10900 && !env.hc ? '' : '" href="javascript:void(\''+ ( this.title || '' ).replace( "'"+ '' )+ '\')"',
|
138
|
+
' title="', this.title, '"' +
|
139
|
+
' tabindex="-1"' +
|
140
|
+
' hidefocus="true"' +
|
141
|
+
' role="button"' +
|
142
|
+
' aria-labelledby="' + id + '_label"' +
|
143
|
+
( this.hasArrow ? ' aria-haspopup="true"' : '' ) );
|
144
|
+
|
145
|
+
// Some browsers don't cancel key events in the keydown but in the
|
146
|
+
// keypress.
|
147
|
+
// TODO: Check if really needed for Gecko+Mac.
|
148
|
+
if ( env.opera || ( env.gecko && env.mac ) )
|
149
|
+
{
|
150
|
+
output.push(
|
151
|
+
' onkeypress="return false;"' );
|
152
|
+
}
|
153
|
+
|
154
|
+
// With Firefox, we need to force the button to redraw, otherwise it
|
155
|
+
// will remain in the focus state.
|
156
|
+
if ( env.gecko )
|
157
|
+
{
|
158
|
+
output.push(
|
159
|
+
' onblur="this.style.cssText = this.style.cssText;"' );
|
160
|
+
}
|
161
|
+
|
162
|
+
output.push(
|
163
|
+
' onkeydown="return CKEDITOR.ui.button._.keydown(', index, ', event);"' +
|
164
|
+
' onfocus="return CKEDITOR.ui.button._.focus(', index, ', event);"' +
|
165
|
+
' onclick="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' +
|
166
|
+
'<span class="cke_icon"' );
|
167
|
+
|
168
|
+
if ( this.icon )
|
169
|
+
{
|
170
|
+
var offset = ( this.iconOffset || 0 ) * -16;
|
171
|
+
output.push( ' style="background-image:url(', CKEDITOR.getUrl( this.icon ), ');background-position:0 ' + offset + 'px;"' );
|
172
|
+
}
|
173
|
+
|
174
|
+
output.push(
|
175
|
+
'></span>' +
|
176
|
+
'<span id="', id, '_label" class="cke_label">', this.label, '</span>' );
|
177
|
+
|
178
|
+
if ( this.hasArrow )
|
179
|
+
{
|
180
|
+
output.push(
|
181
|
+
'<span class="cke_buttonarrow">'
|
182
|
+
// BLACK DOWN-POINTING TRIANGLE
|
183
|
+
+ ( CKEDITOR.env.hc ? '▼' : '' )
|
184
|
+
+ '</span>' );
|
185
|
+
}
|
186
|
+
|
187
|
+
output.push(
|
188
|
+
'</a>',
|
189
|
+
'</span>' );
|
190
|
+
|
191
|
+
if ( this.onRender )
|
192
|
+
this.onRender();
|
193
|
+
|
194
|
+
return instance;
|
195
|
+
},
|
196
|
+
|
197
|
+
setState : function( state )
|
198
|
+
{
|
199
|
+
if ( this._.state == state )
|
200
|
+
return false;
|
201
|
+
|
202
|
+
this._.state = state;
|
203
|
+
|
204
|
+
var element = CKEDITOR.document.getById( this._.id );
|
205
|
+
|
206
|
+
if ( element )
|
207
|
+
{
|
208
|
+
element.setState( state );
|
209
|
+
state == CKEDITOR.TRISTATE_DISABLED ?
|
210
|
+
element.setAttribute( 'aria-disabled', true ) :
|
211
|
+
element.removeAttribute( 'aria-disabled' );
|
212
|
+
|
213
|
+
state == CKEDITOR.TRISTATE_ON ?
|
214
|
+
element.setAttribute( 'aria-pressed', true ) :
|
215
|
+
element.removeAttribute( 'aria-pressed' );
|
216
|
+
|
217
|
+
return true;
|
218
|
+
}
|
219
|
+
else
|
220
|
+
return false;
|
221
|
+
}
|
222
|
+
};
|
223
|
+
|
224
|
+
/**
|
225
|
+
* Handles a button click.
|
226
|
+
* @private
|
227
|
+
*/
|
228
|
+
CKEDITOR.ui.button._ =
|
229
|
+
{
|
230
|
+
instances : [],
|
231
|
+
|
232
|
+
keydown : function( index, ev )
|
233
|
+
{
|
234
|
+
var instance = CKEDITOR.ui.button._.instances[ index ];
|
235
|
+
|
236
|
+
if ( instance.onkey )
|
237
|
+
{
|
238
|
+
ev = new CKEDITOR.dom.event( ev );
|
239
|
+
return ( instance.onkey( instance, ev.getKeystroke() ) !== false );
|
240
|
+
}
|
241
|
+
},
|
242
|
+
|
243
|
+
focus : function( index, ev )
|
244
|
+
{
|
245
|
+
var instance = CKEDITOR.ui.button._.instances[ index ],
|
246
|
+
retVal;
|
247
|
+
|
248
|
+
if ( instance.onfocus )
|
249
|
+
retVal = ( instance.onfocus( instance, new CKEDITOR.dom.event( ev ) ) !== false );
|
250
|
+
|
251
|
+
// FF2: prevent focus event been bubbled up to editor container, which caused unexpected editor focus.
|
252
|
+
if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 )
|
253
|
+
ev.preventBubble();
|
254
|
+
return retVal;
|
255
|
+
}
|
256
|
+
};
|
257
|
+
|
258
|
+
/**
|
259
|
+
* Adds a button definition to the UI elements list.
|
260
|
+
* @param {String} The button name.
|
261
|
+
* @param {Object} The button definition.
|
262
|
+
* @example
|
263
|
+
* editorInstance.ui.addButton( 'MyBold',
|
264
|
+
* {
|
265
|
+
* label : 'My Bold',
|
266
|
+
* command : 'bold'
|
267
|
+
* });
|
268
|
+
*/
|
269
|
+
CKEDITOR.ui.prototype.addButton = function( name, definition )
|
270
|
+
{
|
271
|
+
this.add( name, CKEDITOR.UI_BUTTON, definition );
|
272
|
+
};
|