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,55 @@
|
|
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
|
+
* @fileSave plugin.
|
8
|
+
*/
|
9
|
+
|
10
|
+
(function()
|
11
|
+
{
|
12
|
+
var saveCmd =
|
13
|
+
{
|
14
|
+
modes : { wysiwyg:1, source:1 },
|
15
|
+
|
16
|
+
exec : function( editor )
|
17
|
+
{
|
18
|
+
var $form = editor.element.$.form;
|
19
|
+
|
20
|
+
if ( $form )
|
21
|
+
{
|
22
|
+
try
|
23
|
+
{
|
24
|
+
$form.submit();
|
25
|
+
}
|
26
|
+
catch( e )
|
27
|
+
{
|
28
|
+
// If there's a button named "submit" then the form.submit
|
29
|
+
// function is masked and can't be called in IE/FF, so we
|
30
|
+
// call the click() method of that button.
|
31
|
+
if ( $form.submit.click )
|
32
|
+
$form.submit.click();
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
};
|
37
|
+
|
38
|
+
var pluginName = 'save';
|
39
|
+
|
40
|
+
// Register a plugin named "save".
|
41
|
+
CKEDITOR.plugins.add( pluginName,
|
42
|
+
{
|
43
|
+
init : function( editor )
|
44
|
+
{
|
45
|
+
var command = editor.addCommand( pluginName, saveCmd );
|
46
|
+
command.modes = { wysiwyg : !!( editor.element.$.form ) };
|
47
|
+
|
48
|
+
editor.ui.addButton( 'Save',
|
49
|
+
{
|
50
|
+
label : editor.lang.save,
|
51
|
+
command : pluginName
|
52
|
+
});
|
53
|
+
}
|
54
|
+
});
|
55
|
+
})();
|
@@ -0,0 +1,533 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
+
*/
|
5
|
+
|
6
|
+
CKEDITOR.dialog.add( 'scaytcheck', function( editor )
|
7
|
+
{
|
8
|
+
var firstLoad = true,
|
9
|
+
captions,
|
10
|
+
doc = CKEDITOR.document,
|
11
|
+
tags = [],
|
12
|
+
i,
|
13
|
+
contents = [],
|
14
|
+
userDicActive = false,
|
15
|
+
dic_buttons = [
|
16
|
+
// [0] contains buttons for creating
|
17
|
+
"dic_create,dic_restore",
|
18
|
+
// [1] contains buton for manipulation
|
19
|
+
"dic_rename,dic_delete"
|
20
|
+
],
|
21
|
+
optionsIds= [ 'mixedCase','mixedWithDigits','allCaps','ignoreDomainNames' ];
|
22
|
+
|
23
|
+
// common operations
|
24
|
+
|
25
|
+
function getBOMAllOptions () {
|
26
|
+
return document.forms.optionsbar["options"];
|
27
|
+
}
|
28
|
+
function getBOMAllLangs () {
|
29
|
+
return document.forms.languagesbar["scayt_lang"];
|
30
|
+
}
|
31
|
+
|
32
|
+
function setCheckedValue(radioObj, newValue) {
|
33
|
+
if (!radioObj)
|
34
|
+
return;
|
35
|
+
var radioLength = radioObj.length;
|
36
|
+
if (radioLength == undefined) {
|
37
|
+
radioObj.checked = (radioObj.value == newValue.toString());
|
38
|
+
return;
|
39
|
+
}
|
40
|
+
for (var i = 0; i < radioLength; i++) {
|
41
|
+
radioObj[i].checked = false;
|
42
|
+
if (radioObj[i].value == newValue.toString()) {
|
43
|
+
radioObj[i].checked = true;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
var tags_contents = [
|
49
|
+
{
|
50
|
+
id : 'options',
|
51
|
+
label : editor.lang.scayt.optionsTab,
|
52
|
+
elements : [
|
53
|
+
{
|
54
|
+
type : 'html',
|
55
|
+
id : 'options',
|
56
|
+
html : '<form name="optionsbar"><div class="inner_options">' +
|
57
|
+
' <div class="messagebox"></div>' +
|
58
|
+
' <div style="display:none;">' +
|
59
|
+
' <input type="checkbox" name="options" id="allCaps" />' +
|
60
|
+
' <label for="allCaps" id="label_allCaps"></label>' +
|
61
|
+
' </div>' +
|
62
|
+
' <div style="display:none;">' +
|
63
|
+
' <input name="options" type="checkbox" id="ignoreDomainNames" />' +
|
64
|
+
' <label for="ignoreDomainNames" id="label_ignoreDomainNames"></label>' +
|
65
|
+
' </div>' +
|
66
|
+
' <div style="display:none;">' +
|
67
|
+
' <input name="options" type="checkbox" id="mixedCase" />' +
|
68
|
+
' <label for="mixedCase" id="label_mixedCase"></label>' +
|
69
|
+
' </div>' +
|
70
|
+
' <div style="display:none;">' +
|
71
|
+
' <input name="options" type="checkbox" id="mixedWithDigits" />' +
|
72
|
+
' <label for="mixedWithDigits" id="label_mixedWithDigits"></label>' +
|
73
|
+
' </div>' +
|
74
|
+
'</div></form>'
|
75
|
+
}
|
76
|
+
]
|
77
|
+
},
|
78
|
+
{
|
79
|
+
id : 'langs',
|
80
|
+
label : editor.lang.scayt.languagesTab,
|
81
|
+
elements : [
|
82
|
+
{
|
83
|
+
type : 'html',
|
84
|
+
id : 'langs',
|
85
|
+
html : '<form name="languagesbar"><div class="inner_langs">' +
|
86
|
+
' <div class="messagebox"></div> ' +
|
87
|
+
' <div style="float:left;width:45%;margin-left:5px;" id="scayt_lcol" ></div>' +
|
88
|
+
' <div style="float:left;width:45%;margin-left:15px;" id="scayt_rcol"></div>' +
|
89
|
+
'</div></form>'
|
90
|
+
}
|
91
|
+
]
|
92
|
+
},
|
93
|
+
{
|
94
|
+
id : 'dictionaries',
|
95
|
+
label : editor.lang.scayt.dictionariesTab,
|
96
|
+
elements : [
|
97
|
+
{
|
98
|
+
type : 'html',
|
99
|
+
style: '',
|
100
|
+
id : 'dictionaries',
|
101
|
+
html : '<form name="dictionarybar"><div class="inner_dictionary" style="text-align:left; white-space:normal; width:320px; overflow: hidden;">' +
|
102
|
+
' <div style="margin:5px auto; width:80%;white-space:normal; overflow:hidden;" id="dic_message"> </div>' +
|
103
|
+
' <div style="margin:5px auto; width:80%;white-space:normal;"> ' +
|
104
|
+
' <span class="cke_dialog_ui_labeled_label" >Dictionary name</span><br>'+
|
105
|
+
' <span class="cke_dialog_ui_labeled_content" >'+
|
106
|
+
' <div class="cke_dialog_ui_input_text">'+
|
107
|
+
' <input id="dic_name" type="text" class="cke_dialog_ui_input_text"/>'+
|
108
|
+
' </div></span></div>'+
|
109
|
+
' <div style="margin:5px auto; width:80%;white-space:normal;">'+
|
110
|
+
' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_create">'+
|
111
|
+
' </a>' +
|
112
|
+
' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_delete">'+
|
113
|
+
' </a>' +
|
114
|
+
' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_rename">'+
|
115
|
+
' </a>' +
|
116
|
+
' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_restore">'+
|
117
|
+
' </a>' +
|
118
|
+
' </div>' +
|
119
|
+
' <div style="margin:5px auto; width:95%;white-space:normal;" id="dic_info"></div>' +
|
120
|
+
'</div></form>'
|
121
|
+
}
|
122
|
+
]
|
123
|
+
},
|
124
|
+
{
|
125
|
+
id : 'about',
|
126
|
+
label : editor.lang.scayt.aboutTab,
|
127
|
+
elements : [
|
128
|
+
{
|
129
|
+
type : 'html',
|
130
|
+
id : 'about',
|
131
|
+
style : 'margin: 5px 5px;',
|
132
|
+
html : '<div id="scayt_about"></div>'
|
133
|
+
}
|
134
|
+
]
|
135
|
+
}
|
136
|
+
];
|
137
|
+
|
138
|
+
var dialogDefiniton = {
|
139
|
+
title : editor.lang.scayt.title,
|
140
|
+
minWidth : 360,
|
141
|
+
minHeight : 220,
|
142
|
+
onShow : function()
|
143
|
+
{
|
144
|
+
var dialog = this;
|
145
|
+
dialog.data = editor.fire( 'scaytDialog', {} );
|
146
|
+
dialog.options = dialog.data.scayt_control.option();
|
147
|
+
dialog.sLang = dialog.data.scayt_control.sLang;
|
148
|
+
|
149
|
+
if ( !dialog.data || !dialog.data.scayt || !dialog.data.scayt_control )
|
150
|
+
{
|
151
|
+
alert( 'Error loading application service' );
|
152
|
+
dialog.hide();
|
153
|
+
return;
|
154
|
+
}
|
155
|
+
|
156
|
+
var stop = 0;
|
157
|
+
if ( firstLoad )
|
158
|
+
{
|
159
|
+
dialog.data.scayt.getCaption( editor.langCode || 'en', function( caps )
|
160
|
+
{
|
161
|
+
if ( stop++ > 0 ) // Once only
|
162
|
+
return;
|
163
|
+
captions = caps;
|
164
|
+
init_with_captions.apply( dialog );
|
165
|
+
reload.apply( dialog );
|
166
|
+
firstLoad = false;
|
167
|
+
});
|
168
|
+
}
|
169
|
+
else
|
170
|
+
reload.apply( dialog );
|
171
|
+
|
172
|
+
dialog.selectPage( dialog.data.tab );
|
173
|
+
},
|
174
|
+
onOk : function()
|
175
|
+
{
|
176
|
+
var scayt_control = this.data.scayt_control;
|
177
|
+
scayt_control.option( this.options );
|
178
|
+
// Setup languge if it was changed.
|
179
|
+
var csLang = this.chosed_lang;
|
180
|
+
scayt_control.setLang( csLang );
|
181
|
+
scayt_control.refresh();
|
182
|
+
},
|
183
|
+
onCancel: function()
|
184
|
+
{
|
185
|
+
var o = getBOMAllOptions();
|
186
|
+
for (i in o)
|
187
|
+
o[i].checked = false;
|
188
|
+
|
189
|
+
setCheckedValue(getBOMAllLangs(),"");
|
190
|
+
},
|
191
|
+
contents : contents
|
192
|
+
};
|
193
|
+
|
194
|
+
var scayt_control = CKEDITOR.plugins.scayt.getScayt( editor );
|
195
|
+
|
196
|
+
tags = CKEDITOR.plugins.scayt.uiTabs;
|
197
|
+
|
198
|
+
for ( i in tags )
|
199
|
+
{
|
200
|
+
if ( tags[ i ] == 1 )
|
201
|
+
contents[ contents.length ] = tags_contents[ i ];
|
202
|
+
}
|
203
|
+
if ( tags[2] == 1 )
|
204
|
+
userDicActive = true;
|
205
|
+
|
206
|
+
|
207
|
+
var init_with_captions = function()
|
208
|
+
{
|
209
|
+
var dialog = this,
|
210
|
+
lang_list = dialog.data.scayt.getLangList(),
|
211
|
+
buttons = [ 'dic_create','dic_delete','dic_rename','dic_restore' ],
|
212
|
+
labels = optionsIds,
|
213
|
+
i;
|
214
|
+
|
215
|
+
// Add buttons titles
|
216
|
+
if ( userDicActive )
|
217
|
+
{
|
218
|
+
for ( i = 0; i < buttons.length; i++ )
|
219
|
+
{
|
220
|
+
var button = buttons[ i ];
|
221
|
+
doc.getById( button ).setHtml( '<span class="cke_dialog_ui_button">' + captions[ 'button_' + button] +'</span>' );
|
222
|
+
}
|
223
|
+
doc.getById( 'dic_info' ).setHtml( captions[ 'dic_info' ] );
|
224
|
+
}
|
225
|
+
|
226
|
+
|
227
|
+
// Fill options and dictionary labels.
|
228
|
+
if ( tags[0] == 1 )
|
229
|
+
{
|
230
|
+
for ( i in labels )
|
231
|
+
{
|
232
|
+
var label = 'label_' + labels[ i ],
|
233
|
+
labelElement = doc.getById( label );
|
234
|
+
|
235
|
+
if ( 'undefined' != typeof labelElement
|
236
|
+
&& 'undefined' != typeof captions[ label ]
|
237
|
+
&& 'undefined' != typeof dialog.options[labels[ i ]] )
|
238
|
+
{
|
239
|
+
labelElement.setHtml( captions[ label ] );
|
240
|
+
var labelParent = labelElement.getParent();
|
241
|
+
labelParent.$.style.display = "block";
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
246
|
+
var about = '<p>' + captions[ 'about_throwt_image' ] + '</p>'+
|
247
|
+
'<p>' + captions[ 'version' ] + dialog.data.scayt.version.toString() + '</p>' +
|
248
|
+
'<p>' + captions[ 'about_throwt_copy' ] + '</p>';
|
249
|
+
|
250
|
+
doc.getById( 'scayt_about' ).setHtml( about );
|
251
|
+
|
252
|
+
// Create languages tab.
|
253
|
+
var createOption = function( option, list )
|
254
|
+
{
|
255
|
+
var label = doc.createElement( 'label' );
|
256
|
+
label.setAttribute( 'for', 'cke_option' + option );
|
257
|
+
label.setHtml( list[ option ] );
|
258
|
+
|
259
|
+
if ( dialog.sLang == option ) // Current.
|
260
|
+
dialog.chosed_lang = option;
|
261
|
+
|
262
|
+
var div = doc.createElement( 'div' );
|
263
|
+
var radio = CKEDITOR.dom.element.createFromHtml( '<input id="cke_option' +
|
264
|
+
option + '" type="radio" ' +
|
265
|
+
( dialog.sLang == option ? 'checked="checked"' : '' ) +
|
266
|
+
' value="' + option + '" name="scayt_lang" />' );
|
267
|
+
|
268
|
+
radio.on( 'click', function()
|
269
|
+
{
|
270
|
+
this.$.checked = true;
|
271
|
+
dialog.chosed_lang = option;
|
272
|
+
});
|
273
|
+
|
274
|
+
div.append( radio );
|
275
|
+
div.append( label );
|
276
|
+
|
277
|
+
return {
|
278
|
+
lang : list[ option ],
|
279
|
+
code : option,
|
280
|
+
radio : div
|
281
|
+
};
|
282
|
+
};
|
283
|
+
|
284
|
+
var langList = [];
|
285
|
+
if (tags[1] ==1 )
|
286
|
+
{
|
287
|
+
for ( i in lang_list.rtl )
|
288
|
+
langList[ langList.length ] = createOption( i, lang_list.ltr );
|
289
|
+
|
290
|
+
for ( i in lang_list.ltr )
|
291
|
+
langList[ langList.length ] = createOption( i, lang_list.ltr );
|
292
|
+
|
293
|
+
langList.sort( function( lang1, lang2 )
|
294
|
+
{
|
295
|
+
return ( lang2.lang > lang1.lang ) ? -1 : 1 ;
|
296
|
+
});
|
297
|
+
|
298
|
+
var fieldL = doc.getById( 'scayt_lcol' ),
|
299
|
+
fieldR = doc.getById( 'scayt_rcol' );
|
300
|
+
for ( i=0; i < langList.length; i++ )
|
301
|
+
{
|
302
|
+
var field = ( i < langList.length / 2 ) ? fieldL : fieldR;
|
303
|
+
field.append( langList[ i ].radio );
|
304
|
+
}
|
305
|
+
}
|
306
|
+
|
307
|
+
// user dictionary handlers
|
308
|
+
var dic = {};
|
309
|
+
dic.dic_create = function( el, dic_name , dic_buttons )
|
310
|
+
{
|
311
|
+
// comma separated button's ids include repeats if exists
|
312
|
+
var all_buttons = dic_buttons[0] + ',' + dic_buttons[1];
|
313
|
+
|
314
|
+
var err_massage = captions["err_dic_create"];
|
315
|
+
var suc_massage = captions["succ_dic_create"];
|
316
|
+
|
317
|
+
window.scayt.createUserDictionary(dic_name,
|
318
|
+
function(arg)
|
319
|
+
{
|
320
|
+
hide_dic_buttons ( all_buttons );
|
321
|
+
display_dic_buttons ( dic_buttons[1] );
|
322
|
+
suc_massage = suc_massage.replace("%s" , arg.dname );
|
323
|
+
dic_success_message (suc_massage);
|
324
|
+
},
|
325
|
+
function(arg)
|
326
|
+
{
|
327
|
+
err_massage = err_massage.replace("%s" ,arg.dname );
|
328
|
+
dic_error_message ( err_massage + "( "+ (arg.message || "") +")");
|
329
|
+
});
|
330
|
+
|
331
|
+
};
|
332
|
+
|
333
|
+
dic.dic_rename = function( el, dic_name )
|
334
|
+
{
|
335
|
+
//
|
336
|
+
// try to rename dictionary
|
337
|
+
var err_massage = captions["err_dic_rename"] || "";
|
338
|
+
var suc_massage = captions["succ_dic_rename"] || "";
|
339
|
+
window.scayt.renameUserDictionary(dic_name,
|
340
|
+
function(arg)
|
341
|
+
{
|
342
|
+
suc_massage = suc_massage.replace("%s" , arg.dname );
|
343
|
+
set_dic_name( dic_name );
|
344
|
+
dic_success_message ( suc_massage );
|
345
|
+
},
|
346
|
+
function(arg)
|
347
|
+
{
|
348
|
+
err_massage = err_massage.replace("%s" , arg.dname );
|
349
|
+
set_dic_name( dic_name );
|
350
|
+
dic_error_message( err_massage + "( " + ( arg.message || "" ) + " )" );
|
351
|
+
});
|
352
|
+
};
|
353
|
+
|
354
|
+
dic.dic_delete = function ( el, dic_name , dic_buttons )
|
355
|
+
{
|
356
|
+
var all_buttons = dic_buttons[0] + ',' + dic_buttons[1];
|
357
|
+
var err_massage = captions["err_dic_delete"];
|
358
|
+
var suc_massage = captions["succ_dic_delete"];
|
359
|
+
|
360
|
+
// try to delete dictionary
|
361
|
+
window.scayt.deleteUserDictionary(
|
362
|
+
function(arg)
|
363
|
+
{
|
364
|
+
suc_massage = suc_massage.replace("%s" , arg.dname );
|
365
|
+
hide_dic_buttons ( all_buttons );
|
366
|
+
display_dic_buttons ( dic_buttons[0] );
|
367
|
+
set_dic_name( "" ); // empty input field
|
368
|
+
dic_success_message( suc_massage );
|
369
|
+
},
|
370
|
+
function(arg)
|
371
|
+
{
|
372
|
+
err_massage = err_massage.replace("%s" , arg.dname );
|
373
|
+
dic_error_message(err_massage);
|
374
|
+
});
|
375
|
+
};
|
376
|
+
|
377
|
+
dic.dic_restore = dialog.dic_restore || function ( el, dic_name , dic_buttons )
|
378
|
+
{
|
379
|
+
// try to restore existing dictionary
|
380
|
+
var all_buttons = dic_buttons[0] + ',' + dic_buttons[1];
|
381
|
+
var err_massage = captions["err_dic_restore"];
|
382
|
+
var suc_massage = captions["succ_dic_restore"];
|
383
|
+
|
384
|
+
window.scayt.restoreUserDictionary(dic_name,
|
385
|
+
function(arg)
|
386
|
+
{
|
387
|
+
suc_massage = suc_massage.replace("%s" , arg.dname );
|
388
|
+
hide_dic_buttons ( all_buttons );
|
389
|
+
display_dic_buttons(dic_buttons[1]);
|
390
|
+
dic_success_message( suc_massage );
|
391
|
+
},
|
392
|
+
function(arg)
|
393
|
+
{
|
394
|
+
err_massage = err_massage.replace("%s" , arg.dname );
|
395
|
+
dic_error_message( err_massage );
|
396
|
+
});
|
397
|
+
};
|
398
|
+
|
399
|
+
function onDicButtonClick( ev )
|
400
|
+
{
|
401
|
+
var dic_name = doc.getById('dic_name').getValue();
|
402
|
+
if ( !dic_name )
|
403
|
+
{
|
404
|
+
dic_error_message(" Dictionary name should not be empty. ");
|
405
|
+
return false;
|
406
|
+
}
|
407
|
+
try{
|
408
|
+
var el = id = ev.data.getTarget().getParent();
|
409
|
+
var id = el.getId();
|
410
|
+
dic[ id ].apply( null, [ el, dic_name, dic_buttons ] );
|
411
|
+
}catch(err){
|
412
|
+
dic_error_message(" Dictionary error. ");
|
413
|
+
}
|
414
|
+
|
415
|
+
return true;
|
416
|
+
}
|
417
|
+
|
418
|
+
// ** bind event listeners
|
419
|
+
var arr_buttons = ( dic_buttons[0] + ',' + dic_buttons[1] ).split( ',' ),
|
420
|
+
l;
|
421
|
+
|
422
|
+
for ( i = 0, l = arr_buttons.length ; i < l ; i += 1 )
|
423
|
+
{
|
424
|
+
var dic_button = doc.getById(arr_buttons[i]);
|
425
|
+
if ( dic_button )
|
426
|
+
dic_button.on( 'click', onDicButtonClick, this );
|
427
|
+
}
|
428
|
+
};
|
429
|
+
|
430
|
+
var reload = function()
|
431
|
+
{
|
432
|
+
var dialog = this;
|
433
|
+
// for enabled options tab
|
434
|
+
if (tags[0] == 1){
|
435
|
+
var opto = getBOMAllOptions();
|
436
|
+
|
437
|
+
// Animate options.
|
438
|
+
for ( var k=0,l = opto.length; k<l;k++ )
|
439
|
+
{
|
440
|
+
|
441
|
+
var i = opto[k].id;
|
442
|
+
var checkbox = doc.getById( i );
|
443
|
+
|
444
|
+
if ( checkbox )
|
445
|
+
{
|
446
|
+
opto[k].checked = false;
|
447
|
+
//alert (opto[k].removeAttribute)
|
448
|
+
if ( dialog.options[ i ] == 1 )
|
449
|
+
{
|
450
|
+
opto[k].checked = true;
|
451
|
+
}
|
452
|
+
|
453
|
+
|
454
|
+
// Bind events. Do it only once.
|
455
|
+
if ( firstLoad )
|
456
|
+
{
|
457
|
+
checkbox.on( 'click', function()
|
458
|
+
{
|
459
|
+
dialog.options[ this.getId() ] = this.$.checked ? 1 : 0 ;
|
460
|
+
});
|
461
|
+
}
|
462
|
+
}
|
463
|
+
}
|
464
|
+
}
|
465
|
+
|
466
|
+
//for enabled languages tab
|
467
|
+
if ( tags[1] == 1 )
|
468
|
+
{
|
469
|
+
var domLang = doc.getById("cke_option"+dialog.sLang);
|
470
|
+
setCheckedValue(domLang.$,dialog.sLang);
|
471
|
+
}
|
472
|
+
|
473
|
+
// * user dictionary
|
474
|
+
if ( userDicActive )
|
475
|
+
{
|
476
|
+
window.scayt.getNameUserDictionary(
|
477
|
+
function( o )
|
478
|
+
{
|
479
|
+
var dic_name = o.dname;
|
480
|
+
hide_dic_buttons( dic_buttons[0] + ',' + dic_buttons[1] );
|
481
|
+
if ( dic_name )
|
482
|
+
{
|
483
|
+
doc.getById( 'dic_name' ).setValue(dic_name);
|
484
|
+
display_dic_buttons( dic_buttons[1] );
|
485
|
+
}
|
486
|
+
else
|
487
|
+
display_dic_buttons( dic_buttons[0] );
|
488
|
+
|
489
|
+
},
|
490
|
+
function ()
|
491
|
+
{
|
492
|
+
doc.getById( 'dic_name' ).setValue("");
|
493
|
+
});
|
494
|
+
dic_success_message("");
|
495
|
+
}
|
496
|
+
|
497
|
+
};
|
498
|
+
|
499
|
+
function dic_error_message ( m )
|
500
|
+
{
|
501
|
+
doc.getById('dic_message').setHtml('<span style="color:red;">' + m + '</span>' );
|
502
|
+
}
|
503
|
+
function dic_success_message ( m )
|
504
|
+
{
|
505
|
+
doc.getById('dic_message').setHtml('<span style="color:blue;">' + m + '</span>') ;
|
506
|
+
}
|
507
|
+
function display_dic_buttons ( sIds )
|
508
|
+
{
|
509
|
+
|
510
|
+
sIds = String( sIds );
|
511
|
+
var aIds = sIds.split(',');
|
512
|
+
for ( var i=0, l = aIds.length; i < l ; i+=1)
|
513
|
+
{
|
514
|
+
doc.getById( aIds[i] ).$.style.display = "inline";
|
515
|
+
}
|
516
|
+
|
517
|
+
}
|
518
|
+
function hide_dic_buttons ( sIds )
|
519
|
+
{
|
520
|
+
sIds = String( sIds );
|
521
|
+
var aIds = sIds.split(',');
|
522
|
+
for ( var i = 0, l = aIds.length; i < l ; i += 1 )
|
523
|
+
{
|
524
|
+
doc.getById( aIds[i] ).$.style.display = "none";
|
525
|
+
}
|
526
|
+
}
|
527
|
+
function set_dic_name ( dic_name )
|
528
|
+
{
|
529
|
+
doc.getById('dic_name').$.value= dic_name;
|
530
|
+
}
|
531
|
+
|
532
|
+
return dialogDefiniton;
|
533
|
+
});
|