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,591 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
+
*/
|
5
|
+
|
6
|
+
(function()
|
7
|
+
{
|
8
|
+
var widthPattern = /^(\d+(?:\.\d+)?)(px|%)$/,
|
9
|
+
heightPattern = /^(\d+(?:\.\d+)?)px$/;
|
10
|
+
|
11
|
+
var commitValue = function( data )
|
12
|
+
{
|
13
|
+
var id = this.id;
|
14
|
+
if ( !data.info )
|
15
|
+
data.info = {};
|
16
|
+
data.info[id] = this.getValue();
|
17
|
+
};
|
18
|
+
|
19
|
+
function tableDialog( editor, command )
|
20
|
+
{
|
21
|
+
var makeElement = function( name ){ return new CKEDITOR.dom.element( name, editor.document ); };
|
22
|
+
|
23
|
+
return {
|
24
|
+
title : editor.lang.table.title,
|
25
|
+
minWidth : 310,
|
26
|
+
minHeight : CKEDITOR.env.ie ? 310 : 280,
|
27
|
+
onShow : function()
|
28
|
+
{
|
29
|
+
// Detect if there's a selected table.
|
30
|
+
var selection = editor.getSelection(),
|
31
|
+
ranges = selection.getRanges(),
|
32
|
+
selectedTable = null;
|
33
|
+
|
34
|
+
var rowsInput = this.getContentElement( 'info', 'txtRows' ),
|
35
|
+
colsInput = this.getContentElement( 'info', 'txtCols' ),
|
36
|
+
widthInput = this.getContentElement( 'info', 'txtWidth' );
|
37
|
+
if ( command == 'tableProperties' )
|
38
|
+
{
|
39
|
+
if ( ( selectedTable = editor.getSelection().getSelectedElement() ) )
|
40
|
+
{
|
41
|
+
if ( selectedTable.getName() != 'table' )
|
42
|
+
selectedTable = null;
|
43
|
+
}
|
44
|
+
else if ( ranges.length > 0 )
|
45
|
+
{
|
46
|
+
var rangeRoot = ranges[0].getCommonAncestor( true );
|
47
|
+
selectedTable = rangeRoot.getAscendant( 'table', true );
|
48
|
+
}
|
49
|
+
|
50
|
+
// Save a reference to the selected table, and push a new set of default values.
|
51
|
+
this._.selectedElement = selectedTable;
|
52
|
+
}
|
53
|
+
|
54
|
+
// Enable, disable and select the row, cols, width fields.
|
55
|
+
if ( selectedTable )
|
56
|
+
{
|
57
|
+
this.setupContent( selectedTable );
|
58
|
+
rowsInput && rowsInput.disable();
|
59
|
+
colsInput && colsInput.disable();
|
60
|
+
widthInput && widthInput.select();
|
61
|
+
}
|
62
|
+
else
|
63
|
+
{
|
64
|
+
rowsInput && rowsInput.enable();
|
65
|
+
colsInput && colsInput.enable();
|
66
|
+
rowsInput && rowsInput.select();
|
67
|
+
}
|
68
|
+
},
|
69
|
+
onOk : function()
|
70
|
+
{
|
71
|
+
if ( this._.selectedElement )
|
72
|
+
{
|
73
|
+
var selection = editor.getSelection(),
|
74
|
+
bms = editor.getSelection().createBookmarks();
|
75
|
+
}
|
76
|
+
|
77
|
+
var table = this._.selectedElement || makeElement( 'table' ),
|
78
|
+
me = this,
|
79
|
+
data = {};
|
80
|
+
|
81
|
+
this.commitContent( data, table );
|
82
|
+
|
83
|
+
if ( data.info )
|
84
|
+
{
|
85
|
+
var info = data.info;
|
86
|
+
|
87
|
+
// Generate the rows and cols.
|
88
|
+
if ( !this._.selectedElement )
|
89
|
+
{
|
90
|
+
var tbody = table.append( makeElement( 'tbody' ) ),
|
91
|
+
rows = parseInt( info.txtRows, 10 ) || 0,
|
92
|
+
cols = parseInt( info.txtCols, 10 ) || 0;
|
93
|
+
|
94
|
+
for ( var i = 0 ; i < rows ; i++ )
|
95
|
+
{
|
96
|
+
var row = tbody.append( makeElement( 'tr' ) );
|
97
|
+
for ( var j = 0 ; j < cols ; j++ )
|
98
|
+
{
|
99
|
+
var cell = row.append( makeElement( 'td' ) );
|
100
|
+
if ( !CKEDITOR.env.ie )
|
101
|
+
cell.append( makeElement( 'br' ) );
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
// Modify the table headers. Depends on having rows and cols generated
|
107
|
+
// correctly so it can't be done in commit functions.
|
108
|
+
|
109
|
+
// Should we make a <thead>?
|
110
|
+
var headers = info.selHeaders;
|
111
|
+
if ( !table.$.tHead && ( headers == 'row' || headers == 'both' ) )
|
112
|
+
{
|
113
|
+
var thead = new CKEDITOR.dom.element( table.$.createTHead() );
|
114
|
+
tbody = table.getElementsByTag( 'tbody' ).getItem( 0 );
|
115
|
+
var theRow = tbody.getElementsByTag( 'tr' ).getItem( 0 );
|
116
|
+
|
117
|
+
// Change TD to TH:
|
118
|
+
for ( i = 0 ; i < theRow.getChildCount() ; i++ )
|
119
|
+
{
|
120
|
+
var th = theRow.getChild( i );
|
121
|
+
if ( th.type == CKEDITOR.NODE_ELEMENT )
|
122
|
+
{
|
123
|
+
th.renameNode( 'th' );
|
124
|
+
th.setAttribute( 'scope', 'col' );
|
125
|
+
}
|
126
|
+
}
|
127
|
+
thead.append( theRow.remove() );
|
128
|
+
}
|
129
|
+
|
130
|
+
if ( table.$.tHead !== null && !( headers == 'row' || headers == 'both' ) )
|
131
|
+
{
|
132
|
+
// Move the row out of the THead and put it in the TBody:
|
133
|
+
thead = new CKEDITOR.dom.element( table.$.tHead );
|
134
|
+
tbody = table.getElementsByTag( 'tbody' ).getItem( 0 );
|
135
|
+
|
136
|
+
var previousFirstRow = tbody.getFirst();
|
137
|
+
while ( thead.getChildCount() > 0 )
|
138
|
+
{
|
139
|
+
theRow = thead.getFirst();
|
140
|
+
for ( i = 0; i < theRow.getChildCount() ; i++ )
|
141
|
+
{
|
142
|
+
var newCell = theRow.getChild( i );
|
143
|
+
if ( newCell.type == CKEDITOR.NODE_ELEMENT )
|
144
|
+
{
|
145
|
+
newCell.renameNode( 'td' );
|
146
|
+
newCell.removeAttribute( 'scope' );
|
147
|
+
}
|
148
|
+
}
|
149
|
+
theRow.insertBefore( previousFirstRow );
|
150
|
+
}
|
151
|
+
thead.remove();
|
152
|
+
}
|
153
|
+
|
154
|
+
// Should we make all first cells in a row TH?
|
155
|
+
if ( !this.hasColumnHeaders && ( headers == 'col' || headers == 'both' ) )
|
156
|
+
{
|
157
|
+
for ( row = 0 ; row < table.$.rows.length ; row++ )
|
158
|
+
{
|
159
|
+
newCell = new CKEDITOR.dom.element( table.$.rows[ row ].cells[ 0 ] );
|
160
|
+
newCell.renameNode( 'th' );
|
161
|
+
newCell.setAttribute( 'scope', 'row' );
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
// Should we make all first TH-cells in a row make TD? If 'yes' we do it the other way round :-)
|
166
|
+
if ( ( this.hasColumnHeaders ) && !( headers == 'col' || headers == 'both' ) )
|
167
|
+
{
|
168
|
+
for ( i = 0 ; i < table.$.rows.length ; i++ )
|
169
|
+
{
|
170
|
+
row = new CKEDITOR.dom.element( table.$.rows[i] );
|
171
|
+
if ( row.getParent().getName() == 'tbody' )
|
172
|
+
{
|
173
|
+
newCell = new CKEDITOR.dom.element( row.$.cells[0] );
|
174
|
+
newCell.renameNode( 'td' );
|
175
|
+
newCell.removeAttribute( 'scope' );
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
// Set the width and height.
|
181
|
+
var styles = [];
|
182
|
+
if ( info.txtHeight )
|
183
|
+
table.setStyle( 'height', CKEDITOR.tools.cssLength( info.txtHeight ) );
|
184
|
+
else
|
185
|
+
table.removeStyle( 'height' );
|
186
|
+
|
187
|
+
if ( info.txtWidth )
|
188
|
+
{
|
189
|
+
var type = info.cmbWidthType || 'pixels';
|
190
|
+
table.setStyle( 'width', info.txtWidth + ( type == 'pixels' ? 'px' : '%' ) );
|
191
|
+
}
|
192
|
+
else
|
193
|
+
table.removeStyle( 'width' );
|
194
|
+
|
195
|
+
if ( !table.getAttribute( 'style' ) )
|
196
|
+
table.removeAttribute( 'style' );
|
197
|
+
}
|
198
|
+
|
199
|
+
// Insert the table element if we're creating one.
|
200
|
+
if ( !this._.selectedElement )
|
201
|
+
editor.insertElement( table );
|
202
|
+
// Properly restore the selection inside table. (#4822)
|
203
|
+
else
|
204
|
+
selection.selectBookmarks( bms );
|
205
|
+
|
206
|
+
return true;
|
207
|
+
},
|
208
|
+
contents : [
|
209
|
+
{
|
210
|
+
id : 'info',
|
211
|
+
label : editor.lang.table.title,
|
212
|
+
elements :
|
213
|
+
[
|
214
|
+
{
|
215
|
+
type : 'hbox',
|
216
|
+
widths : [ null, null ],
|
217
|
+
styles : [ 'vertical-align:top' ],
|
218
|
+
children :
|
219
|
+
[
|
220
|
+
{
|
221
|
+
type : 'vbox',
|
222
|
+
padding : 0,
|
223
|
+
children :
|
224
|
+
[
|
225
|
+
{
|
226
|
+
type : 'text',
|
227
|
+
id : 'txtRows',
|
228
|
+
'default' : 3,
|
229
|
+
label : editor.lang.table.rows,
|
230
|
+
style : 'width:5em',
|
231
|
+
validate : function()
|
232
|
+
{
|
233
|
+
var pass = true,
|
234
|
+
value = this.getValue();
|
235
|
+
pass = pass && CKEDITOR.dialog.validate.integer()( value )
|
236
|
+
&& value > 0;
|
237
|
+
if ( !pass )
|
238
|
+
{
|
239
|
+
alert( editor.lang.table.invalidRows );
|
240
|
+
this.select();
|
241
|
+
}
|
242
|
+
return pass;
|
243
|
+
},
|
244
|
+
setup : function( selectedElement )
|
245
|
+
{
|
246
|
+
this.setValue( selectedElement.$.rows.length );
|
247
|
+
},
|
248
|
+
commit : commitValue
|
249
|
+
},
|
250
|
+
{
|
251
|
+
type : 'text',
|
252
|
+
id : 'txtCols',
|
253
|
+
'default' : 2,
|
254
|
+
label : editor.lang.table.columns,
|
255
|
+
style : 'width:5em',
|
256
|
+
validate : function()
|
257
|
+
{
|
258
|
+
var pass = true,
|
259
|
+
value = this.getValue();
|
260
|
+
pass = pass && CKEDITOR.dialog.validate.integer()( value )
|
261
|
+
&& value > 0;
|
262
|
+
if ( !pass )
|
263
|
+
{
|
264
|
+
alert( editor.lang.table.invalidCols );
|
265
|
+
this.select();
|
266
|
+
}
|
267
|
+
return pass;
|
268
|
+
},
|
269
|
+
setup : function( selectedTable )
|
270
|
+
{
|
271
|
+
this.setValue( selectedTable.$.rows[0].cells.length);
|
272
|
+
},
|
273
|
+
commit : commitValue
|
274
|
+
},
|
275
|
+
{
|
276
|
+
type : 'html',
|
277
|
+
html : ' '
|
278
|
+
},
|
279
|
+
{
|
280
|
+
type : 'select',
|
281
|
+
id : 'selHeaders',
|
282
|
+
'default' : '',
|
283
|
+
label : editor.lang.table.headers,
|
284
|
+
items :
|
285
|
+
[
|
286
|
+
[ editor.lang.table.headersNone, '' ],
|
287
|
+
[ editor.lang.table.headersRow, 'row' ],
|
288
|
+
[ editor.lang.table.headersColumn, 'col' ],
|
289
|
+
[ editor.lang.table.headersBoth, 'both' ]
|
290
|
+
],
|
291
|
+
setup : function( selectedTable )
|
292
|
+
{
|
293
|
+
// Fill in the headers field.
|
294
|
+
var dialog = this.getDialog();
|
295
|
+
dialog.hasColumnHeaders = true;
|
296
|
+
|
297
|
+
// Check if all the first cells in every row are TH
|
298
|
+
for ( var row = 0 ; row < selectedTable.$.rows.length ; row++ )
|
299
|
+
{
|
300
|
+
// If just one cell isn't a TH then it isn't a header column
|
301
|
+
if ( selectedTable.$.rows[row].cells[0].nodeName.toLowerCase() != 'th' )
|
302
|
+
{
|
303
|
+
dialog.hasColumnHeaders = false;
|
304
|
+
break;
|
305
|
+
}
|
306
|
+
}
|
307
|
+
|
308
|
+
// Check if the table contains <thead>.
|
309
|
+
if ( ( selectedTable.$.tHead !== null) )
|
310
|
+
this.setValue( dialog.hasColumnHeaders ? 'both' : 'row' );
|
311
|
+
else
|
312
|
+
this.setValue( dialog.hasColumnHeaders ? 'col' : '' );
|
313
|
+
},
|
314
|
+
commit : commitValue
|
315
|
+
},
|
316
|
+
{
|
317
|
+
type : 'text',
|
318
|
+
id : 'txtBorder',
|
319
|
+
'default' : 1,
|
320
|
+
label : editor.lang.table.border,
|
321
|
+
style : 'width:3em',
|
322
|
+
validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidBorder ),
|
323
|
+
setup : function( selectedTable )
|
324
|
+
{
|
325
|
+
this.setValue( selectedTable.getAttribute( 'border' ) || '' );
|
326
|
+
},
|
327
|
+
commit : function( data, selectedTable )
|
328
|
+
{
|
329
|
+
if ( this.getValue() )
|
330
|
+
selectedTable.setAttribute( 'border', this.getValue() );
|
331
|
+
else
|
332
|
+
selectedTable.removeAttribute( 'border' );
|
333
|
+
}
|
334
|
+
},
|
335
|
+
{
|
336
|
+
id : 'cmbAlign',
|
337
|
+
type : 'select',
|
338
|
+
'default' : '',
|
339
|
+
label : editor.lang.table.align,
|
340
|
+
items :
|
341
|
+
[
|
342
|
+
[ editor.lang.common.notSet , ''],
|
343
|
+
[ editor.lang.table.alignLeft , 'left'],
|
344
|
+
[ editor.lang.table.alignCenter , 'center'],
|
345
|
+
[ editor.lang.table.alignRight , 'right']
|
346
|
+
],
|
347
|
+
setup : function( selectedTable )
|
348
|
+
{
|
349
|
+
this.setValue( selectedTable.getAttribute( 'align' ) || '' );
|
350
|
+
},
|
351
|
+
commit : function( data, selectedTable )
|
352
|
+
{
|
353
|
+
if ( this.getValue() )
|
354
|
+
selectedTable.setAttribute( 'align', this.getValue() );
|
355
|
+
else
|
356
|
+
selectedTable.removeAttribute( 'align' );
|
357
|
+
}
|
358
|
+
}
|
359
|
+
]
|
360
|
+
},
|
361
|
+
{
|
362
|
+
type : 'vbox',
|
363
|
+
padding : 0,
|
364
|
+
children :
|
365
|
+
[
|
366
|
+
{
|
367
|
+
type : 'hbox',
|
368
|
+
widths : [ '5em' ],
|
369
|
+
children :
|
370
|
+
[
|
371
|
+
{
|
372
|
+
type : 'text',
|
373
|
+
id : 'txtWidth',
|
374
|
+
style : 'width:5em',
|
375
|
+
label : editor.lang.table.width,
|
376
|
+
'default' : 200,
|
377
|
+
validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidWidth ),
|
378
|
+
|
379
|
+
// Extra labelling of width unit type.
|
380
|
+
onLoad : function()
|
381
|
+
{
|
382
|
+
var widthType = this.getDialog().getContentElement( 'info', 'cmbWidthType' ),
|
383
|
+
labelElement = widthType.getElement(),
|
384
|
+
inputElement = this.getInputElement(),
|
385
|
+
ariaLabelledByAttr = inputElement.getAttribute( 'aria-labelledby' );
|
386
|
+
|
387
|
+
inputElement.setAttribute( 'aria-labelledby', [ ariaLabelledByAttr, labelElement.$.id ].join( ' ' ) );
|
388
|
+
},
|
389
|
+
|
390
|
+
setup : function( selectedTable )
|
391
|
+
{
|
392
|
+
var widthMatch = widthPattern.exec( selectedTable.$.style.width );
|
393
|
+
if ( widthMatch )
|
394
|
+
this.setValue( widthMatch[1] );
|
395
|
+
else
|
396
|
+
this.setValue( '' );
|
397
|
+
},
|
398
|
+
commit : commitValue
|
399
|
+
},
|
400
|
+
{
|
401
|
+
id : 'cmbWidthType',
|
402
|
+
type : 'select',
|
403
|
+
label : editor.lang.table.widthUnit,
|
404
|
+
labelStyle: 'visibility:hidden',
|
405
|
+
'default' : 'pixels',
|
406
|
+
items :
|
407
|
+
[
|
408
|
+
[ editor.lang.table.widthPx , 'pixels'],
|
409
|
+
[ editor.lang.table.widthPc , 'percents']
|
410
|
+
],
|
411
|
+
setup : function( selectedTable )
|
412
|
+
{
|
413
|
+
var widthMatch = widthPattern.exec( selectedTable.$.style.width );
|
414
|
+
if ( widthMatch )
|
415
|
+
this.setValue( widthMatch[2] == 'px' ? 'pixels' : 'percents' );
|
416
|
+
},
|
417
|
+
commit : commitValue
|
418
|
+
}
|
419
|
+
]
|
420
|
+
},
|
421
|
+
{
|
422
|
+
type : 'hbox',
|
423
|
+
widths : [ '5em' ],
|
424
|
+
children :
|
425
|
+
[
|
426
|
+
{
|
427
|
+
type : 'text',
|
428
|
+
id : 'txtHeight',
|
429
|
+
style : 'width:5em',
|
430
|
+
label : editor.lang.table.height,
|
431
|
+
'default' : '',
|
432
|
+
validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidHeight ),
|
433
|
+
|
434
|
+
// Extra labelling of height unit type.
|
435
|
+
onLoad : function()
|
436
|
+
{
|
437
|
+
var heightType = this.getDialog().getContentElement( 'info', 'htmlHeightType' ),
|
438
|
+
labelElement = heightType.getElement(),
|
439
|
+
inputElement = this.getInputElement(),
|
440
|
+
ariaLabelledByAttr = inputElement.getAttribute( 'aria-labelledby' );
|
441
|
+
|
442
|
+
inputElement.setAttribute( 'aria-labelledby', [ ariaLabelledByAttr, labelElement.$.id ].join( ' ' ) );
|
443
|
+
},
|
444
|
+
|
445
|
+
setup : function( selectedTable )
|
446
|
+
{
|
447
|
+
var heightMatch = heightPattern.exec( selectedTable.$.style.height );
|
448
|
+
if ( heightMatch )
|
449
|
+
this.setValue( heightMatch[1] );
|
450
|
+
},
|
451
|
+
commit : commitValue
|
452
|
+
},
|
453
|
+
{
|
454
|
+
id : 'htmlHeightType',
|
455
|
+
type : 'html',
|
456
|
+
html : '<div><br />' + editor.lang.table.widthPx + '</div>'
|
457
|
+
}
|
458
|
+
]
|
459
|
+
},
|
460
|
+
{
|
461
|
+
type : 'html',
|
462
|
+
html : ' '
|
463
|
+
},
|
464
|
+
{
|
465
|
+
type : 'text',
|
466
|
+
id : 'txtCellSpace',
|
467
|
+
style : 'width:3em',
|
468
|
+
label : editor.lang.table.cellSpace,
|
469
|
+
'default' : 1,
|
470
|
+
validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidCellSpacing ),
|
471
|
+
setup : function( selectedTable )
|
472
|
+
{
|
473
|
+
this.setValue( selectedTable.getAttribute( 'cellSpacing' ) || '' );
|
474
|
+
},
|
475
|
+
commit : function( data, selectedTable )
|
476
|
+
{
|
477
|
+
if ( this.getValue() )
|
478
|
+
selectedTable.setAttribute( 'cellSpacing', this.getValue() );
|
479
|
+
else
|
480
|
+
selectedTable.removeAttribute( 'cellSpacing' );
|
481
|
+
}
|
482
|
+
},
|
483
|
+
{
|
484
|
+
type : 'text',
|
485
|
+
id : 'txtCellPad',
|
486
|
+
style : 'width:3em',
|
487
|
+
label : editor.lang.table.cellPad,
|
488
|
+
'default' : 1,
|
489
|
+
validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidCellPadding ),
|
490
|
+
setup : function( selectedTable )
|
491
|
+
{
|
492
|
+
this.setValue( selectedTable.getAttribute( 'cellPadding' ) || '' );
|
493
|
+
},
|
494
|
+
commit : function( data, selectedTable )
|
495
|
+
{
|
496
|
+
if ( this.getValue() )
|
497
|
+
selectedTable.setAttribute( 'cellPadding', this.getValue() );
|
498
|
+
else
|
499
|
+
selectedTable.removeAttribute( 'cellPadding' );
|
500
|
+
}
|
501
|
+
}
|
502
|
+
]
|
503
|
+
}
|
504
|
+
]
|
505
|
+
},
|
506
|
+
{
|
507
|
+
type : 'html',
|
508
|
+
align : 'right',
|
509
|
+
html : ''
|
510
|
+
},
|
511
|
+
{
|
512
|
+
type : 'vbox',
|
513
|
+
padding : 0,
|
514
|
+
children :
|
515
|
+
[
|
516
|
+
{
|
517
|
+
type : 'text',
|
518
|
+
id : 'txtCaption',
|
519
|
+
label : editor.lang.table.caption,
|
520
|
+
setup : function( selectedTable )
|
521
|
+
{
|
522
|
+
var nodeList = selectedTable.getElementsByTag( 'caption' );
|
523
|
+
if ( nodeList.count() > 0 )
|
524
|
+
{
|
525
|
+
var caption = nodeList.getItem( 0 );
|
526
|
+
caption = ( caption.getChild( 0 ) && caption.getChild( 0 ).getText() ) || '';
|
527
|
+
caption = CKEDITOR.tools.trim( caption );
|
528
|
+
this.setValue( caption );
|
529
|
+
}
|
530
|
+
},
|
531
|
+
commit : function( data, table )
|
532
|
+
{
|
533
|
+
var caption = this.getValue(),
|
534
|
+
captionElement = table.getElementsByTag( 'caption' );
|
535
|
+
if ( caption )
|
536
|
+
{
|
537
|
+
if ( captionElement.count() > 0 )
|
538
|
+
{
|
539
|
+
captionElement = captionElement.getItem( 0 );
|
540
|
+
captionElement.setHtml( '' );
|
541
|
+
}
|
542
|
+
else
|
543
|
+
{
|
544
|
+
captionElement = new CKEDITOR.dom.element( 'caption', editor.document );
|
545
|
+
if ( table.getChildCount() )
|
546
|
+
captionElement.insertBefore( table.getFirst() );
|
547
|
+
else
|
548
|
+
captionElement.appendTo( table );
|
549
|
+
}
|
550
|
+
captionElement.append( new CKEDITOR.dom.text( caption, editor.document ) );
|
551
|
+
}
|
552
|
+
else if ( captionElement.count() > 0 )
|
553
|
+
{
|
554
|
+
for ( var i = captionElement.count() - 1 ; i >= 0 ; i-- )
|
555
|
+
captionElement.getItem( i ).remove();
|
556
|
+
}
|
557
|
+
}
|
558
|
+
},
|
559
|
+
{
|
560
|
+
type : 'text',
|
561
|
+
id : 'txtSummary',
|
562
|
+
label : editor.lang.table.summary,
|
563
|
+
setup : function( selectedTable )
|
564
|
+
{
|
565
|
+
this.setValue( selectedTable.getAttribute( 'summary' ) || '' );
|
566
|
+
},
|
567
|
+
commit : function( data, selectedTable )
|
568
|
+
{
|
569
|
+
if ( this.getValue() )
|
570
|
+
selectedTable.setAttribute( 'summary', this.getValue() );
|
571
|
+
else
|
572
|
+
selectedTable.removeAttribute( 'summary' );
|
573
|
+
}
|
574
|
+
}
|
575
|
+
]
|
576
|
+
}
|
577
|
+
]
|
578
|
+
}
|
579
|
+
]
|
580
|
+
};
|
581
|
+
}
|
582
|
+
|
583
|
+
CKEDITOR.dialog.add( 'table', function( editor )
|
584
|
+
{
|
585
|
+
return tableDialog( editor, 'table' );
|
586
|
+
} );
|
587
|
+
CKEDITOR.dialog.add( 'tableProperties', function( editor )
|
588
|
+
{
|
589
|
+
return tableDialog( editor, 'tableProperties' );
|
590
|
+
} );
|
591
|
+
})();
|