ckeditor 3.3.2 → 3.4.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +15 -0
- data/README.rdoc +26 -13
- data/Rakefile +6 -7
- data/app/controllers/ckeditor_controller.rb +12 -12
- data/app/helpers/ckeditor_helper.rb +2 -19
- data/config/routes.rb +4 -4
- data/lib/ckeditor.rb +4 -18
- data/lib/ckeditor/engine.rb +21 -0
- data/lib/ckeditor/utils.rb +2 -6
- data/lib/ckeditor/version.rb +3 -3
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/USAGE +1 -1
- data/lib/generators/ckeditor/base/base_generator.rb +20 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor.rb +0 -2
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/CHANGES.html +31 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/INSTALL.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/LICENSE.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/ajax.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/api.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/api_dialog.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/api_dialog/my_dialog.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/advanced.asp +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/events.asp +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/index.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/replace.asp +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/replaceall.asp +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/sample_posteddata.asp +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/standalone.asp +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/assets/output_xhtml.css +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_samples/autogrow.html +75 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/divreplace.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/enterkey.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/fullpage.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/index.html +1 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/jqueryadapter.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/output_html.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/output_xhtml.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/php/advanced.php +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/php/events.php +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/php/replace.php +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/php/replaceall.php +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/php/standalone.php +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/replacebyclass.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/replacebycode.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/sample.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/sample.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/sample_posteddata.php +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/sharedspaces.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/skins.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/ui_color.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/ui_languages.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/adapters/jquery.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/_bootstrap.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/ajax.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/ckeditor.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/ckeditor_base.js +4 -4
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/ckeditor_basic.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/command.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/commanddefinition.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/config.js +17 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dataprocessor.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/comment.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/document.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/documentfragment.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/domobject.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/element.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/elementpath.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/event.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/node.js +21 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/nodelist.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/range.js +28 -13
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/rangelist.js +163 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/text.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/walker.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/window.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dtd.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/editor.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/editor_basic.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/env.js +4 -2
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/event.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/eventInfo.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/focusmanager.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/basicwriter.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/cdata.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/comment.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/element.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/filter.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/fragment.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/text.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/imagecacher.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/lang.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/loader.js +3 -2
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/plugindefinition.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/plugins.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/resourcemanager.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/scriptloader.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/skins.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/themes.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/tools.js +14 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/ui.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/xml.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/_languages.js +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/_translationstatus.txt +60 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/af.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/ar.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/bg.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/bn.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/bs.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/ca.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/cs.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/cy.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/da.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/de.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/el.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/en-au.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/en-ca.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/en-gb.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/en.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/eo.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/es.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/et.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/eu.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/fa.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/fi.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/fo.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/fr-ca.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/fr.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/gl.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/gu.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/he.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/hi.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/hr.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/hu.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/is.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/it.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/ja.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/km.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/ko.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/lt.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/lv.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/mn.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/ms.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/nb.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/nl.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/no.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/pl.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/pt-br.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/pt.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/ro.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/ru.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/sk.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/sl.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/sr-latn.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/sr.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/sv.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/th.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/tr.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/uk.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/vi.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/zh-cn.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/zh.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/a11yhelp/lang/en.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/a11yhelp/lang/he.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/a11yhelp/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/about/dialogs/about.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/about/plugin.js +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/ajax_save/plugin.js +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/attachment/dialogs/attachment.js +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/attachment/images/attachment.png +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/attachment/lang/en.js +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/attachment/lang/ru.js +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/attachment/lang/uk.js +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/attachment/plugin.js +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/autogrow/plugin.js +79 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/basicstyles/plugin.js +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/bidi/plugin.js +244 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/blockquote/plugin.js +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/button/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/clipboard/dialogs/paste.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/clipboard/plugin.js +5 -6
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/colorbutton/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +5 -4
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/colordialog/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/contextmenu/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/dialog/dialogDefinition.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/dialog/plugin.js +15 -9
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialogadvtab/plugin.js +207 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/dialogui/plugin.js +20 -18
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/div/dialogs/div.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/div/plugin.js +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/domiterator/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/editingblock/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/elementspath/plugin.js +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/embed/dialogs/embed.js +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/embed/images/embed.png +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/embed/lang/en.js +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/embed/lang/ru.js +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/embed/lang/uk.js +0 -0
- data/{generators/ckeditor_install/templates/ckeditor → lib/generators/ckeditor/base/templates/ckeditor/_source}/plugins/embed/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/enterkey/plugin.js +11 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/entities/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/fakeobjects/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/filebrowser/plugin.js +6 -4
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/find/dialogs/find.js +24 -6
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/find/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/flash/dialogs/flash.js +2 -2
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/flash/images/placeholder.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/flash/plugin.js +2 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/floatpanel/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/font/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/format/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/forms/dialogs/button.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/forms/dialogs/checkbox.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/forms/dialogs/form.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/forms/dialogs/radio.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/forms/dialogs/select.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/forms/dialogs/textarea.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/forms/dialogs/textfield.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/forms/images/hiddenfield.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/forms/plugin.js +2 -2
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/horizontalrule/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/htmldataprocessor/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/htmlwriter/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/iframedialog/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/image/dialogs/image.js +4 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/image/plugin.js +1 -1
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/indent/plugin.js +436 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/justify/plugin.js +35 -24
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/keystrokes/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/link/dialogs/anchor.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/link/dialogs/link.js +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/link/images/anchor.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/link/plugin.js +9 -7
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/list/plugin.js +46 -14
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/listblock/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/liststyle/plugin.js +3 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/maximize/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/menu/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/menubutton/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/newpage/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/pagebreak/plugin.js +3 -3
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/panel/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/panelbutton/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/pastefromword/filter/default.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/pastefromword/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/pastetext/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/popup/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/preview/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/print/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/removeformat/plugin.js +4 -2
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/resize/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/richcombo/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/save/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/scayt/dialogs/options.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/scayt/dialogs/toolbar.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/scayt/plugin.js +3 -2
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/selection/plugin.js +139 -55
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showborders/plugin.js +26 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/dialogs/smiley.js +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/angel_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/angry_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/broken_heart.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/confused_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/cry_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/devil_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/envelope.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/heart.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/kiss.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/lightbulb.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/omg_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/regular_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/sad_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/shades_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/teeth_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/thumbs_down.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/thumbs_up.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/tounge_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/wink_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/sourcearea/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +9 -6
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/specialchar/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/styles/plugin.js +27 -21
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/styles/styles/default.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/stylescombo/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/tab/plugin.js +107 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/table/dialogs/table.js +84 -7
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/table/plugin.js +1 -1
- data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tableresize/plugin.js +450 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/tabletools/plugin.js +53 -49
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/dialogs/templates.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/templates/default.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/templates/images/template1.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/templates/images/template2.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/templates/images/template3.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/toolbar/plugin.js +1 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/lang/en.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/uicolor.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/yui.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/undo/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/wsc/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/wysiwygarea/plugin.js +73 -9
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/dialog.css +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/editor.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/elementspath.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/icons.css +12 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/icons.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/mini.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/noimage.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/sprites.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/mainui.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/menu.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/panel.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/presets.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/reset.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/richcombo.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/skin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/templates.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/toolbar.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/dialog.css +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/editor.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/elementspath.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/icons.css +10 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/icons.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/dialog_sides.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/dialog_sides.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/mini.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/noimage.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/sprites.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/sprites_ie6.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/mainui.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/menu.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/panel.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/presets.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/reset.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/richcombo.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/skin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/templates.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/toolbar.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/dialog.css +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/editor.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/elementspath.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/icons.css +10 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/icons.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/dialog_sides.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/dialog_sides.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/mini.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/noimage.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/sprites.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/sprites_ie6.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/toolbar_start.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/mainui.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/menu.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/panel.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/presets.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/reset.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/richcombo.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/skin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/templates.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/toolbar.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/themes/default/theme.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/adapters/jquery.js +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor.js +134 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/ckeditor.pack +3 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_basic.js +8 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_basic_source.js +20 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/ckeditor_source.js +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/config.js +3 -2
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/contents.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/css/ckfinder.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/css/fck_dialog.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/css/fck_editor.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/css/swfupload.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/add.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/cancelbutton.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/ckfnothumb.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/doc.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/mp3.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/pdf.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/rar.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/refresh.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/select_files.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/spacer.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/swf.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/toolbar.start.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/xls.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/lang/_languages.js +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/_translationstatus.txt +60 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/af.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ar.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/bg.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/bn.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/bs.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ca.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/cs.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/cy.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/da.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/de.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/el.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-au.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-ca.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-gb.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/en.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/eo.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/es.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/et.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/eu.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/fa.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/fi.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/fo.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/fr-ca.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/fr.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/gl.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/gu.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/he.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/hi.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/hr.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/hu.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/is.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/it.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ja.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/km.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ko.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/lt.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/lv.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/mn.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ms.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/nb.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/nl.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/no.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/pl.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/pt-br.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/pt.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ro.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/ru.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/sk.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/sl.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/sr-latn.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/sr.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/sv.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/th.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/tr.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/uk.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/vi.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/zh-cn.js +6 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/lang/zh.js +6 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/a11yhelp/lang/en.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/a11yhelp/lang/he.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/about/dialogs/about.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/ajax_save/plugin.js +1 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/dialogs/attachment.js +1 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/images/attachment.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/en.js +10 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/ru.js +10 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/uk.js +10 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/plugin.js +1 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/autogrow/plugin.js +6 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/clipboard/dialogs/paste.js +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/colordialog/dialogs/colordialog.js +7 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/dialog/dialogDefinition.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/div/dialogs/div.js +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/dialogs/embed.js +1 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/images/embed.png +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/en.js +9 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/ru.js +9 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/uk.js +9 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/plugin.js +1 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/find/dialogs/find.js +9 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/flash/dialogs/flash.js +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/forms/dialogs/button.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/forms/dialogs/checkbox.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/forms/dialogs/form.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/forms/dialogs/radio.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/forms/dialogs/select.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/forms/dialogs/textarea.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/forms/dialogs/textfield.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/iframedialog/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/image/dialogs/image.js +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/link/dialogs/anchor.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/link/dialogs/link.js +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/pastefromword/filter/default.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/scayt/dialogs/options.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/dialogs/smiley.js +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/specialchar/dialogs/specialchar.js +7 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/styles/styles/default.js +0 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/table/dialogs/table.js +9 -0
- data/lib/generators/ckeditor/base/templates/ckeditor/plugins/tableresize/plugin.js +7 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/templates/dialogs/templates.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/templates/templates/default.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/lang/en.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/plugin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/uicolor.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/yui.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/wsc/dialogs/wsc.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/wsc/dialogs/wsc.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/dialog.css +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/editor.css +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/icons.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/mini.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/noimage.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/sprites.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/skin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/templates.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/dialog.css +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/editor.css +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/icons.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/mini.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/noimage.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/sprites.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/skin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/templates.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/dialog.css +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/editor.css +1 -1
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/icons.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/dialog_sides.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/mini.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/noimage.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/sprites.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/skin.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/templates.css +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/fileprogress.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/handlers.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/mootools-1.2.3-core-yc.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/querystring.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/swfupload.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/swfupload.queue.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/swfupload.swf +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/swfupload.swfobject.js +0 -0
- data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/themes/default/theme.js +0 -0
- data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/USAGE +1 -1
- data/lib/generators/ckeditor/migration/migration_generator.rb +46 -0
- data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/attachment_fu/asset.rb +0 -0
- data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/attachment_fu/attachment_file.rb +0 -0
- data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/attachment_fu/migration.rb +0 -0
- data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/attachment_fu/picture.rb +0 -0
- data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/paperclip/asset.rb +0 -2
- data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/paperclip/attachment_file.rb +0 -0
- data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/paperclip/migration.rb +0 -0
- data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/paperclip/picture.rb +0 -0
- data/lib/tasks/ckeditor_tasks.rake +3 -0
- metadata +664 -654
- data/examples/s3/s3.yml +0 -2
- data/generators/ckeditor_install/ckeditor_install_generator.rb +0 -28
- data/generators/ckeditor_install/templates/README +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/_translationstatus.txt +0 -60
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/indent/plugin.js +0 -422
- data/generators/ckeditor_install/templates/ckeditor/ckeditor.js +0 -130
- data/generators/ckeditor_install/templates/ckeditor/ckeditor_basic.js +0 -8
- data/generators/ckeditor_install/templates/ckeditor/ckeditor_basic_source.js +0 -20
- data/generators/ckeditor_install/templates/ckeditor/lang/_translationstatus.txt +0 -60
- data/generators/ckeditor_install/templates/ckeditor/lang/af.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/ar.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/bg.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/bn.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/bs.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/ca.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/cs.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/cy.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/da.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/de.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/el.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/en-au.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/en-ca.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/en-gb.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/en.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/eo.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/es.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/et.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/eu.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/fa.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/fi.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/fo.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/fr-ca.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/fr.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/gl.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/gu.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/he.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/hi.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/hr.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/hu.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/is.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/it.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/ja.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/km.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/ko.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/lt.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/lv.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/mn.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/ms.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/nb.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/nl.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/no.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/pl.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/pt-br.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/pt.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/ro.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/ru.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/sk.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/sl.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/sr-latn.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/sr.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/sv.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/th.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/tr.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/uk.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/vi.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/zh-cn.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/lang/zh.js +0 -6
- data/generators/ckeditor_install/templates/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -7
- data/generators/ckeditor_install/templates/ckeditor/plugins/find/dialogs/find.js +0 -9
- data/generators/ckeditor_install/templates/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -7
- data/generators/ckeditor_install/templates/ckeditor/plugins/table/dialogs/table.js +0 -9
- data/generators/ckeditor_migration/ckeditor_migration_generator.rb +0 -36
- data/lib/ckeditor/safe_buffer.rb +0 -34
File without changes
|
@@ -95,7 +95,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
95
95
|
{
|
96
96
|
editor.contextMenu.addListener( function( element, selection )
|
97
97
|
{
|
98
|
-
if ( !element )
|
98
|
+
if ( !element || element.isReadOnly())
|
99
99
|
return null;
|
100
100
|
|
101
101
|
var elementPath = new CKEDITOR.dom.elementPath( element ),
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -24,6 +24,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
24
24
|
// Get the range for the current selection.
|
25
25
|
range = range || getRange( editor );
|
26
26
|
|
27
|
+
// We may not have valid ranges to work on, like when inside a
|
28
|
+
// contenteditable=false element.
|
29
|
+
if ( !range )
|
30
|
+
return;
|
31
|
+
|
27
32
|
var doc = range.document;
|
28
33
|
|
29
34
|
// Exit the list when we're inside an empty list item block. (#5376)
|
@@ -189,6 +194,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
189
194
|
// Get the range for the current selection.
|
190
195
|
range = range || getRange( editor );
|
191
196
|
|
197
|
+
// We may not have valid ranges to work on, like when inside a
|
198
|
+
// contenteditable=false element.
|
199
|
+
if ( !range )
|
200
|
+
return;
|
201
|
+
|
192
202
|
var doc = range.document;
|
193
203
|
|
194
204
|
// Determine the block element to be used.
|
@@ -339,7 +349,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
339
349
|
function getRange( editor )
|
340
350
|
{
|
341
351
|
// Get the selection ranges.
|
342
|
-
var ranges = editor.getSelection().getRanges();
|
352
|
+
var ranges = editor.getSelection().getRanges( true );
|
343
353
|
|
344
354
|
// Delete the contents of all ranges except the first one.
|
345
355
|
for ( var i = ranges.length - 1 ; i > 0 ; i-- )
|
File without changes
|
File without changes
|
@@ -388,11 +388,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
388
388
|
// Associate filebrowser to elements with 'filebrowser' attribute.
|
389
389
|
for ( var i in definition.contents )
|
390
390
|
{
|
391
|
-
element = definition.contents[ i ]
|
392
|
-
attachFileBrowser( evt.editor, evt.data.name, definition, element.elements );
|
393
|
-
if ( element.hidden && element.filebrowser )
|
391
|
+
if ( ( element = definition.contents[ i ] ) )
|
394
392
|
{
|
395
|
-
|
393
|
+
attachFileBrowser( evt.editor, evt.data.name, definition, element.elements );
|
394
|
+
if ( element.hidden && element.filebrowser )
|
395
|
+
{
|
396
|
+
element.hidden = !isConfigured( definition, element[ 'id' ], element.filebrowser );
|
397
|
+
}
|
396
398
|
}
|
397
399
|
}
|
398
400
|
} );
|
@@ -5,15 +5,17 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
5
5
|
|
6
6
|
(function()
|
7
7
|
{
|
8
|
-
|
8
|
+
var isReplace;
|
9
|
+
|
10
|
+
function findEvaluator( node )
|
9
11
|
{
|
10
|
-
return
|
12
|
+
return node.type == CKEDITOR.NODE_TEXT && node.getLength() > 0 && ( !isReplace || !node.isReadOnly() );
|
11
13
|
}
|
12
14
|
|
13
15
|
/**
|
14
16
|
* Elements which break characters been considered as sequence.
|
15
17
|
*/
|
16
|
-
function nonCharactersBoundary
|
18
|
+
function nonCharactersBoundary( node )
|
17
19
|
{
|
18
20
|
return !( node.type == CKEDITOR.NODE_ELEMENT && node.isBlockBoundary(
|
19
21
|
CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$empty, CKEDITOR.dtd.$nonEditable ) ) );
|
@@ -84,7 +86,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
84
86
|
var walker =
|
85
87
|
new CKEDITOR.dom.walker( range );
|
86
88
|
walker.guard = matchWord ? nonCharactersBoundary : null;
|
87
|
-
walker[ 'evaluator' ] =
|
89
|
+
walker[ 'evaluator' ] = findEvaluator;
|
88
90
|
walker.breakOnFalse = true;
|
89
91
|
|
90
92
|
this._ = {
|
@@ -251,8 +253,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
251
253
|
this.removeHighlight();
|
252
254
|
|
253
255
|
// Apply the highlight.
|
254
|
-
var range = this.toDomRange()
|
256
|
+
var range = this.toDomRange(),
|
257
|
+
bookmark = range.createBookmark();
|
255
258
|
highlightStyle.applyToRange( range );
|
259
|
+
range.moveToBookmark( bookmark );
|
256
260
|
this._.highlightRange = range;
|
257
261
|
|
258
262
|
// Scroll the editor to the highlighted area.
|
@@ -273,11 +277,21 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
273
277
|
if ( !this._.highlightRange )
|
274
278
|
return;
|
275
279
|
|
280
|
+
var bookmark = this._.highlightRange.createBookmark();
|
276
281
|
highlightStyle.removeFromRange( this._.highlightRange );
|
282
|
+
this._.highlightRange.moveToBookmark( bookmark );
|
277
283
|
this.updateFromDomRange( this._.highlightRange );
|
278
284
|
this._.highlightRange = null;
|
279
285
|
},
|
280
286
|
|
287
|
+
isReadOnly : function()
|
288
|
+
{
|
289
|
+
if ( !this._.highlightRange )
|
290
|
+
return 0;
|
291
|
+
|
292
|
+
return this._.highlightRange.startContainer.isReadOnly();
|
293
|
+
},
|
294
|
+
|
281
295
|
moveBack : function()
|
282
296
|
{
|
283
297
|
var retval = this._.walker.back(),
|
@@ -514,13 +528,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
514
528
|
replace : function( dialog, pattern, newString, matchCase, matchWord,
|
515
529
|
matchCyclic , isReplaceAll )
|
516
530
|
{
|
531
|
+
isReplace = 1;
|
532
|
+
|
517
533
|
// Successiveness of current replace/find.
|
518
534
|
var result = false;
|
519
535
|
|
520
536
|
// 1. Perform the replace when there's already a match here.
|
521
537
|
// 2. Otherwise perform the find but don't replace it immediately.
|
522
538
|
if ( this.matchRange && this.matchRange.isMatched()
|
523
|
-
&& !this.matchRange._.isReplaced )
|
539
|
+
&& !this.matchRange._.isReplaced && !this.matchRange.isReadOnly() )
|
524
540
|
{
|
525
541
|
// Turn off highlight for a while when saving snapshots.
|
526
542
|
this.matchRange.removeHighlight();
|
@@ -550,6 +566,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
550
566
|
else
|
551
567
|
result = this.find( pattern, matchCase, matchWord, matchCyclic, !isReplaceAll );
|
552
568
|
|
569
|
+
isReplace = 0;
|
570
|
+
|
553
571
|
return result;
|
554
572
|
}
|
555
573
|
};
|
File without changes
|
@@ -175,8 +175,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
175
175
|
|
176
176
|
var previewPreloader,
|
177
177
|
previewAreaHtml = '<div>' + CKEDITOR.tools.htmlEncode( editor.lang.common.preview ) +'<br>' +
|
178
|
-
'<div id="
|
179
|
-
'<div id="
|
178
|
+
'<div id="cke_FlashPreviewLoader' + CKEDITOR.tools.getNextNumber() + '" style="display:none"><div class="loading"> </div></div>' +
|
179
|
+
'<div id="cke_FlashPreviewBox' + CKEDITOR.tools.getNextNumber() + '" class="FlashPreviewBox"></div></div>';
|
180
180
|
|
181
181
|
return {
|
182
182
|
title : editor.lang.flash.title,
|
File without changes
|
@@ -90,7 +90,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
90
90
|
{
|
91
91
|
editor.contextMenu.addListener( function( element, selection )
|
92
92
|
{
|
93
|
-
if ( element && element.is( 'img' ) && element.
|
93
|
+
if ( element && element.is( 'img' ) && !element.isReadOnly()
|
94
|
+
&& element.getAttribute( '_cke_real_element_type' ) == 'flash' )
|
94
95
|
return { flash : CKEDITOR.TRISTATE_OFF };
|
95
96
|
});
|
96
97
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -131,13 +131,13 @@ CKEDITOR.plugins.add( 'forms',
|
|
131
131
|
{
|
132
132
|
editor.contextMenu.addListener( function( element )
|
133
133
|
{
|
134
|
-
if ( element && element.hasAscendant( 'form', true ) )
|
134
|
+
if ( element && element.hasAscendant( 'form', true ) && !element.isReadOnly() )
|
135
135
|
return { form : CKEDITOR.TRISTATE_OFF };
|
136
136
|
});
|
137
137
|
|
138
138
|
editor.contextMenu.addListener( function( element )
|
139
139
|
{
|
140
|
-
if ( element )
|
140
|
+
if ( element && !element.isReadOnly() )
|
141
141
|
{
|
142
142
|
var name = element.getName();
|
143
143
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -250,7 +250,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
250
250
|
switchLockRatio( this, false ); // Unlock.
|
251
251
|
};
|
252
252
|
|
253
|
-
var numbering = function( id )
|
253
|
+
var numbering = function( id )
|
254
|
+
{
|
255
|
+
return CKEDITOR.tools.getNextId() + '_' + id;
|
256
|
+
},
|
254
257
|
btnLockSizesId = numbering( 'btnLockSizes' ),
|
255
258
|
btnResetSizeId = numbering( 'btnResetSize' ),
|
256
259
|
imagePreviewLoaderId = numbering( 'ImagePreviewLoader' ),
|
@@ -53,7 +53,7 @@ CKEDITOR.plugins.add( 'image',
|
|
53
53
|
{
|
54
54
|
editor.contextMenu.addListener( function( element, selection )
|
55
55
|
{
|
56
|
-
if ( !element || !element.is( 'img' ) || element.getAttribute( '_cke_realelement' ) )
|
56
|
+
if ( !element || !element.is( 'img' ) || element.getAttribute( '_cke_realelement' ) || element.isReadOnly() )
|
57
57
|
return null;
|
58
58
|
|
59
59
|
return { image : CKEDITOR.TRISTATE_OFF };
|
@@ -0,0 +1,436 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
+
*/
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @file Increse and decrease indent commands.
|
8
|
+
*/
|
9
|
+
|
10
|
+
(function()
|
11
|
+
{
|
12
|
+
var listNodeNames = { ol : 1, ul : 1 };
|
13
|
+
|
14
|
+
var isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ),
|
15
|
+
isNotBookmark = CKEDITOR.dom.walker.bookmark( false, true );
|
16
|
+
|
17
|
+
function setState( editor, state )
|
18
|
+
{
|
19
|
+
editor.getCommand( this.name ).setState( state );
|
20
|
+
}
|
21
|
+
|
22
|
+
function onSelectionChange( evt )
|
23
|
+
{
|
24
|
+
var editor = evt.editor;
|
25
|
+
|
26
|
+
var elementPath = evt.data.path,
|
27
|
+
list = elementPath && elementPath.contains( listNodeNames );
|
28
|
+
|
29
|
+
if ( list )
|
30
|
+
return setState.call( this, editor, CKEDITOR.TRISTATE_OFF );
|
31
|
+
|
32
|
+
if ( !this.useIndentClasses && this.name == 'indent' )
|
33
|
+
return setState.call( this, editor, CKEDITOR.TRISTATE_OFF );
|
34
|
+
|
35
|
+
var path = evt.data.path,
|
36
|
+
firstBlock = path.block || path.blockLimit;
|
37
|
+
if ( !firstBlock )
|
38
|
+
return setState.call( this, editor, CKEDITOR.TRISTATE_DISABLED );
|
39
|
+
|
40
|
+
if ( this.useIndentClasses )
|
41
|
+
{
|
42
|
+
var indentClass = firstBlock.$.className.match( this.classNameRegex ),
|
43
|
+
indentStep = 0;
|
44
|
+
if ( indentClass )
|
45
|
+
{
|
46
|
+
indentClass = indentClass[1];
|
47
|
+
indentStep = this.indentClassMap[ indentClass ];
|
48
|
+
}
|
49
|
+
if ( ( this.name == 'outdent' && !indentStep ) ||
|
50
|
+
( this.name == 'indent' && indentStep == editor.config.indentClasses.length ) )
|
51
|
+
return setState.call( this, editor, CKEDITOR.TRISTATE_DISABLED );
|
52
|
+
return setState.call( this, editor, CKEDITOR.TRISTATE_OFF );
|
53
|
+
}
|
54
|
+
else
|
55
|
+
{
|
56
|
+
var indent = parseInt( firstBlock.getStyle( getIndentCssProperty( firstBlock ) ), 10 );
|
57
|
+
if ( isNaN( indent ) )
|
58
|
+
indent = 0;
|
59
|
+
if ( indent <= 0 )
|
60
|
+
return setState.call( this, editor, CKEDITOR.TRISTATE_DISABLED );
|
61
|
+
return setState.call( this, editor, CKEDITOR.TRISTATE_OFF );
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
function indentCommand( editor, name )
|
66
|
+
{
|
67
|
+
this.name = name;
|
68
|
+
this.useIndentClasses = editor.config.indentClasses && editor.config.indentClasses.length > 0;
|
69
|
+
if ( this.useIndentClasses )
|
70
|
+
{
|
71
|
+
this.classNameRegex = new RegExp( '(?:^|\\s+)(' + editor.config.indentClasses.join( '|' ) + ')(?=$|\\s)' );
|
72
|
+
this.indentClassMap = {};
|
73
|
+
for ( var i = 0 ; i < editor.config.indentClasses.length ; i++ )
|
74
|
+
this.indentClassMap[ editor.config.indentClasses[i] ] = i + 1;
|
75
|
+
}
|
76
|
+
|
77
|
+
this.startDisabled = name == 'outdent';
|
78
|
+
}
|
79
|
+
|
80
|
+
// Returns the CSS property to be used for identing a given element.
|
81
|
+
function getIndentCssProperty( element )
|
82
|
+
{
|
83
|
+
return element.getComputedStyle( 'direction' ) == 'ltr' ? 'margin-left' : 'margin-right';
|
84
|
+
}
|
85
|
+
|
86
|
+
function isListItem( node )
|
87
|
+
{
|
88
|
+
return node.type = CKEDITOR.NODE_ELEMENT && node.is( 'li' );
|
89
|
+
}
|
90
|
+
|
91
|
+
indentCommand.prototype = {
|
92
|
+
exec : function( editor )
|
93
|
+
{
|
94
|
+
var self = this, database = {};
|
95
|
+
|
96
|
+
function indentList( listNode )
|
97
|
+
{
|
98
|
+
// Our starting and ending points of the range might be inside some blocks under a list item...
|
99
|
+
// So before playing with the iterator, we need to expand the block to include the list items.
|
100
|
+
var startContainer = range.startContainer,
|
101
|
+
endContainer = range.endContainer;
|
102
|
+
while ( startContainer && !startContainer.getParent().equals( listNode ) )
|
103
|
+
startContainer = startContainer.getParent();
|
104
|
+
while ( endContainer && !endContainer.getParent().equals( listNode ) )
|
105
|
+
endContainer = endContainer.getParent();
|
106
|
+
|
107
|
+
if ( !startContainer || !endContainer )
|
108
|
+
return;
|
109
|
+
|
110
|
+
// Now we can iterate over the individual items on the same tree depth.
|
111
|
+
var block = startContainer,
|
112
|
+
itemsToMove = [],
|
113
|
+
stopFlag = false;
|
114
|
+
while ( !stopFlag )
|
115
|
+
{
|
116
|
+
if ( block.equals( endContainer ) )
|
117
|
+
stopFlag = true;
|
118
|
+
itemsToMove.push( block );
|
119
|
+
block = block.getNext();
|
120
|
+
}
|
121
|
+
if ( itemsToMove.length < 1 )
|
122
|
+
return;
|
123
|
+
|
124
|
+
// Do indent or outdent operations on the array model of the list, not the
|
125
|
+
// list's DOM tree itself. The array model demands that it knows as much as
|
126
|
+
// possible about the surrounding lists, we need to feed it the further
|
127
|
+
// ancestor node that is still a list.
|
128
|
+
var listParents = listNode.getParents( true );
|
129
|
+
for ( var i = 0 ; i < listParents.length ; i++ )
|
130
|
+
{
|
131
|
+
if ( listParents[i].getName && listNodeNames[ listParents[i].getName() ] )
|
132
|
+
{
|
133
|
+
listNode = listParents[i];
|
134
|
+
break;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
var indentOffset = self.name == 'indent' ? 1 : -1,
|
138
|
+
startItem = itemsToMove[0],
|
139
|
+
lastItem = itemsToMove[ itemsToMove.length - 1 ];
|
140
|
+
|
141
|
+
// Convert the list DOM tree into a one dimensional array.
|
142
|
+
var listArray = CKEDITOR.plugins.list.listToArray( listNode, database );
|
143
|
+
|
144
|
+
// Apply indenting or outdenting on the array.
|
145
|
+
var baseIndent = listArray[ lastItem.getCustomData( 'listarray_index' ) ].indent;
|
146
|
+
for ( i = startItem.getCustomData( 'listarray_index' ); i <= lastItem.getCustomData( 'listarray_index' ); i++ )
|
147
|
+
{
|
148
|
+
listArray[ i ].indent += indentOffset;
|
149
|
+
// Make sure the newly created sublist get a brand-new element of the same type. (#5372)
|
150
|
+
var listRoot = listArray[ i ].parent;
|
151
|
+
listArray[ i ].parent = new CKEDITOR.dom.element( listRoot.getName(), listRoot.getDocument() );
|
152
|
+
}
|
153
|
+
|
154
|
+
for ( i = lastItem.getCustomData( 'listarray_index' ) + 1 ;
|
155
|
+
i < listArray.length && listArray[i].indent > baseIndent ; i++ )
|
156
|
+
listArray[i].indent += indentOffset;
|
157
|
+
|
158
|
+
// Convert the array back to a DOM forest (yes we might have a few subtrees now).
|
159
|
+
// And replace the old list with the new forest.
|
160
|
+
var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode, 0 );
|
161
|
+
|
162
|
+
// Avoid nested <li> after outdent even they're visually same,
|
163
|
+
// recording them for later refactoring.(#3982)
|
164
|
+
if ( self.name == 'outdent' )
|
165
|
+
{
|
166
|
+
var parentLiElement;
|
167
|
+
if ( ( parentLiElement = listNode.getParent() ) && parentLiElement.is( 'li' ) )
|
168
|
+
{
|
169
|
+
var children = newList.listNode.getChildren(),
|
170
|
+
pendingLis = [],
|
171
|
+
count = children.count(),
|
172
|
+
child;
|
173
|
+
|
174
|
+
for ( i = count - 1 ; i >= 0 ; i-- )
|
175
|
+
{
|
176
|
+
if ( ( child = children.getItem( i ) ) && child.is && child.is( 'li' ) )
|
177
|
+
pendingLis.push( child );
|
178
|
+
}
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
if ( newList )
|
183
|
+
newList.listNode.replace( listNode );
|
184
|
+
|
185
|
+
// Move the nested <li> to be appeared after the parent.
|
186
|
+
if ( pendingLis && pendingLis.length )
|
187
|
+
{
|
188
|
+
for ( i = 0; i < pendingLis.length ; i++ )
|
189
|
+
{
|
190
|
+
var li = pendingLis[ i ],
|
191
|
+
followingList = li;
|
192
|
+
|
193
|
+
// Nest preceding <ul>/<ol> inside current <li> if any.
|
194
|
+
while ( ( followingList = followingList.getNext() ) &&
|
195
|
+
followingList.is &&
|
196
|
+
followingList.getName() in listNodeNames )
|
197
|
+
{
|
198
|
+
// IE requires a filler NBSP for nested list inside empty list item,
|
199
|
+
// otherwise the list item will be inaccessiable. (#4476)
|
200
|
+
if ( CKEDITOR.env.ie && !li.getFirst( function( node ){ return isNotWhitespaces( node ) && isNotBookmark( node ); } ) )
|
201
|
+
li.append( range.document.createText( '\u00a0' ) );
|
202
|
+
|
203
|
+
li.append( followingList );
|
204
|
+
}
|
205
|
+
|
206
|
+
li.insertAfter( parentLiElement );
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
function indentBlock()
|
212
|
+
{
|
213
|
+
var iterator = range.createIterator(),
|
214
|
+
enterMode = editor.config.enterMode;
|
215
|
+
iterator.enforceRealBlocks = true;
|
216
|
+
iterator.enlargeBr = enterMode != CKEDITOR.ENTER_BR;
|
217
|
+
var block;
|
218
|
+
while ( ( block = iterator.getNextParagraph() ) )
|
219
|
+
indentElement( block );
|
220
|
+
}
|
221
|
+
|
222
|
+
function indentElement( element )
|
223
|
+
{
|
224
|
+
if ( element.getCustomData( 'indent_processed' ) )
|
225
|
+
return false;
|
226
|
+
|
227
|
+
if ( self.useIndentClasses )
|
228
|
+
{
|
229
|
+
// Transform current class name to indent step index.
|
230
|
+
var indentClass = element.$.className.match( self.classNameRegex ),
|
231
|
+
indentStep = 0;
|
232
|
+
if ( indentClass )
|
233
|
+
{
|
234
|
+
indentClass = indentClass[1];
|
235
|
+
indentStep = self.indentClassMap[ indentClass ];
|
236
|
+
}
|
237
|
+
|
238
|
+
// Operate on indent step index, transform indent step index back to class
|
239
|
+
// name.
|
240
|
+
if ( self.name == 'outdent' )
|
241
|
+
indentStep--;
|
242
|
+
else
|
243
|
+
indentStep++;
|
244
|
+
|
245
|
+
if ( indentStep < 0 )
|
246
|
+
return false;
|
247
|
+
|
248
|
+
indentStep = Math.min( indentStep, editor.config.indentClasses.length );
|
249
|
+
indentStep = Math.max( indentStep, 0 );
|
250
|
+
var className = CKEDITOR.tools.ltrim( element.$.className.replace( self.classNameRegex, '' ) );
|
251
|
+
if ( indentStep < 1 )
|
252
|
+
element.$.className = className;
|
253
|
+
else
|
254
|
+
element.addClass( editor.config.indentClasses[ indentStep - 1 ] );
|
255
|
+
}
|
256
|
+
else
|
257
|
+
{
|
258
|
+
var indentCssProperty = getIndentCssProperty( element );
|
259
|
+
var currentOffset = parseInt( element.getStyle( indentCssProperty ), 10 );
|
260
|
+
if ( isNaN( currentOffset ) )
|
261
|
+
currentOffset = 0;
|
262
|
+
currentOffset += ( self.name == 'indent' ? 1 : -1 ) * editor.config.indentOffset;
|
263
|
+
|
264
|
+
if ( currentOffset < 0 )
|
265
|
+
return false;
|
266
|
+
|
267
|
+
currentOffset = Math.max( currentOffset, 0 );
|
268
|
+
currentOffset = Math.ceil( currentOffset / editor.config.indentOffset ) * editor.config.indentOffset;
|
269
|
+
element.setStyle( indentCssProperty, currentOffset ? currentOffset + editor.config.indentUnit : '' );
|
270
|
+
if ( element.getAttribute( 'style' ) === '' )
|
271
|
+
element.removeAttribute( 'style' );
|
272
|
+
}
|
273
|
+
|
274
|
+
CKEDITOR.dom.element.setMarker( database, element, 'indent_processed', true );
|
275
|
+
return true;
|
276
|
+
}
|
277
|
+
|
278
|
+
var selection = editor.getSelection(),
|
279
|
+
bookmarks = selection.createBookmarks( true ),
|
280
|
+
ranges = selection && selection.getRanges( true ),
|
281
|
+
range;
|
282
|
+
|
283
|
+
var iterator = ranges.createIterator();
|
284
|
+
while ( ( range = iterator.getNextRange() ) )
|
285
|
+
{
|
286
|
+
var startContainer = range.startContainer,
|
287
|
+
endContainer = range.endContainer,
|
288
|
+
rangeRoot = range.getCommonAncestor(),
|
289
|
+
nearestListBlock = rangeRoot;
|
290
|
+
|
291
|
+
while ( nearestListBlock && !( nearestListBlock.type == CKEDITOR.NODE_ELEMENT &&
|
292
|
+
listNodeNames[ nearestListBlock.getName() ] ) )
|
293
|
+
nearestListBlock = nearestListBlock.getParent();
|
294
|
+
|
295
|
+
// Avoid selection anchors under list root.
|
296
|
+
// <ul>[<li>...</li>]</ul> => <ul><li>[...]</li></ul>
|
297
|
+
if ( nearestListBlock && startContainer.type == CKEDITOR.NODE_ELEMENT
|
298
|
+
&& startContainer.getName() in listNodeNames )
|
299
|
+
{
|
300
|
+
var walker = new CKEDITOR.dom.walker( range );
|
301
|
+
walker.evaluator = isListItem;
|
302
|
+
range.startContainer = walker.next();
|
303
|
+
}
|
304
|
+
|
305
|
+
if ( nearestListBlock && endContainer.type == CKEDITOR.NODE_ELEMENT
|
306
|
+
&& endContainer.getName() in listNodeNames )
|
307
|
+
{
|
308
|
+
walker = new CKEDITOR.dom.walker( range );
|
309
|
+
walker.evaluator = isListItem;
|
310
|
+
range.endContainer = walker.previous();
|
311
|
+
}
|
312
|
+
|
313
|
+
if ( nearestListBlock )
|
314
|
+
{
|
315
|
+
var firstListItem = nearestListBlock.getFirst( function( node )
|
316
|
+
{
|
317
|
+
return node.type == CKEDITOR.NODE_ELEMENT && node.is( 'li' );
|
318
|
+
}),
|
319
|
+
rangeStart = range.startContainer,
|
320
|
+
indentWholeList = firstListItem.equals( rangeStart ) || firstListItem.contains( rangeStart );
|
321
|
+
|
322
|
+
// Indent the entire list if cursor is inside the first list item. (#3893)
|
323
|
+
if ( !( indentWholeList && indentElement( nearestListBlock ) ) )
|
324
|
+
indentList( nearestListBlock );
|
325
|
+
}
|
326
|
+
else
|
327
|
+
indentBlock();
|
328
|
+
}
|
329
|
+
|
330
|
+
// Clean up the markers.
|
331
|
+
CKEDITOR.dom.element.clearAllMarkers( database );
|
332
|
+
|
333
|
+
editor.forceNextSelectionCheck();
|
334
|
+
selection.selectBookmarks( bookmarks );
|
335
|
+
}
|
336
|
+
};
|
337
|
+
|
338
|
+
CKEDITOR.plugins.add( 'indent',
|
339
|
+
{
|
340
|
+
init : function( editor )
|
341
|
+
{
|
342
|
+
// Register commands.
|
343
|
+
var indent = new indentCommand( editor, 'indent' ),
|
344
|
+
outdent = new indentCommand( editor, 'outdent' );
|
345
|
+
editor.addCommand( 'indent', indent );
|
346
|
+
editor.addCommand( 'outdent', outdent );
|
347
|
+
|
348
|
+
// Register the toolbar buttons.
|
349
|
+
editor.ui.addButton( 'Indent',
|
350
|
+
{
|
351
|
+
label : editor.lang.indent,
|
352
|
+
command : 'indent'
|
353
|
+
});
|
354
|
+
editor.ui.addButton( 'Outdent',
|
355
|
+
{
|
356
|
+
label : editor.lang.outdent,
|
357
|
+
command : 'outdent'
|
358
|
+
});
|
359
|
+
|
360
|
+
// Register the state changing handlers.
|
361
|
+
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, indent ) );
|
362
|
+
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, outdent ) );
|
363
|
+
|
364
|
+
// [IE6/7] Raw lists are using margin instead of padding for visual indentation in wysiwyg mode. (#3893)
|
365
|
+
if ( CKEDITOR.env.ie6Compat || CKEDITOR.env.ie7Compat )
|
366
|
+
{
|
367
|
+
editor.addCss(
|
368
|
+
"ul,ol" +
|
369
|
+
"{" +
|
370
|
+
" margin-left: 0px;" +
|
371
|
+
" padding-left: 40px;" +
|
372
|
+
"}" );
|
373
|
+
}
|
374
|
+
},
|
375
|
+
|
376
|
+
requires : [ 'domiterator', 'list' ]
|
377
|
+
} );
|
378
|
+
})();
|
379
|
+
|
380
|
+
CKEDITOR.tools.extend( CKEDITOR.config,
|
381
|
+
{
|
382
|
+
indentOffset : 40,
|
383
|
+
indentUnit : 'px',
|
384
|
+
indentClasses : null
|
385
|
+
});
|
386
|
+
|
387
|
+
/**
|
388
|
+
* Size of each indentation step
|
389
|
+
* @type Number
|
390
|
+
* @example
|
391
|
+
* config.indentOffset = 40;
|
392
|
+
*/
|
393
|
+
|
394
|
+
/**
|
395
|
+
* Unit for the indentation style
|
396
|
+
* @type String
|
397
|
+
* @example
|
398
|
+
* config.indentUnit = 'px';
|
399
|
+
*/
|
400
|
+
|
401
|
+
/**
|
402
|
+
* List of classes to use for indenting the contents.
|
403
|
+
* @type Array
|
404
|
+
* @example
|
405
|
+
* // Don't use classes for indenting. (this is the default value)
|
406
|
+
* config.indentClasses = null;
|
407
|
+
* @example
|
408
|
+
* // Use the classes 'Indent1', 'Indent2', 'Indent3'
|
409
|
+
* config.indentClasses = ['Indent1', 'Indent2', 'Indent3'];
|
410
|
+
*/
|
411
|
+
|
412
|
+
/**
|
413
|
+
* Size of each indentation step
|
414
|
+
* @type Number
|
415
|
+
* @default 40
|
416
|
+
* @example
|
417
|
+
* config.indentOffset = 4;
|
418
|
+
*/
|
419
|
+
|
420
|
+
/**
|
421
|
+
* Unit for the indentation style
|
422
|
+
* @type String
|
423
|
+
* @default 'px'
|
424
|
+
* @example
|
425
|
+
* config.indentUnit = 'em';
|
426
|
+
*/
|
427
|
+
|
428
|
+
/**
|
429
|
+
* List of classes to use for indenting the contents. If it's null, no classes will be used
|
430
|
+
* and instead the {@link #indentUnit} and {@link #indentOffset} properties will be used.
|
431
|
+
* @type Array
|
432
|
+
* default null
|
433
|
+
* @example
|
434
|
+
* // Use the classes 'Indent1', 'Indent2', 'Indent3'
|
435
|
+
* config.indentClasses = ['Indent1', 'Indent2', 'Indent3'];
|
436
|
+
*/
|