ckeditor 3.2.4 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +16 -20
- data/Rakefile +9 -8
- data/app/controllers/ckeditor_controller.rb +13 -13
- data/app/helpers/ckeditor_helper.rb +19 -2
- data/app/views/ckeditor/files.html.erb +1 -1
- data/app/views/ckeditor/images.html.erb +1 -1
- data/config/routes.rb +4 -4
- data/examples/s3/s3.yml +2 -0
- data/generators/ckeditor_install/USAGE +7 -0
- data/generators/ckeditor_install/ckeditor_install_generator.rb +28 -0
- data/generators/ckeditor_install/templates/README +0 -0
- data/generators/ckeditor_install/templates/ckeditor.rb +56 -0
- data/generators/ckeditor_install/templates/ckeditor/CHANGES.html +831 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/INSTALL.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/LICENSE.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/ajax.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/api.html +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_samples/api_dialog.html +188 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/api_dialog/my_dialog.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_samples/asp/advanced.asp +105 -0
- data/generators/ckeditor_install/templates/ckeditor/_samples/asp/events.asp +136 -0
- data/generators/ckeditor_install/templates/ckeditor/_samples/asp/index.html +103 -0
- data/generators/ckeditor_install/templates/ckeditor/_samples/asp/replace.asp +72 -0
- data/generators/ckeditor_install/templates/ckeditor/_samples/asp/replaceall.asp +77 -0
- data/generators/ckeditor_install/templates/ckeditor/_samples/asp/sample_posteddata.asp +46 -0
- data/generators/ckeditor_install/templates/ckeditor/_samples/asp/standalone.asp +72 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/assets/output_xhtml.css +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/divreplace.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/enterkey.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/fullpage.html +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_samples/index.html +55 -0
- data/generators/ckeditor_install/templates/ckeditor/_samples/jqueryadapter.html +73 -0
- data/generators/ckeditor_install/templates/ckeditor/_samples/output_html.html +259 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/output_xhtml.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/php/advanced.php +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/php/events.php +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/php/replace.php +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/php/replaceall.php +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/php/standalone.php +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/replacebyclass.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/replacebycode.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/sample.css +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/sample.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/sample_posteddata.php +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/sharedspaces.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/skins.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/ui_color.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_samples/ui_languages.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/adapters/jquery.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/_bootstrap.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/ajax.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/ckeditor.js +113 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/ckeditor_base.js +193 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/ckeditor_basic.js +242 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/command.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/commanddefinition.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/config.js +333 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/dataprocessor.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/dom.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/dom/comment.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/dom/document.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/dom/documentfragment.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/domobject.js +251 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/element.js +1526 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/elementpath.js +116 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/dom/event.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/dom/node.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/dom/nodelist.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/range.js +1865 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/dom/text.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/walker.js +445 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/dom/window.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/dtd.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/editor.js +759 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/editor_basic.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/env.js +227 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/event.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/eventInfo.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/focusmanager.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/htmlparser.js +218 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/htmlparser/basicwriter.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/htmlparser/cdata.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/htmlparser/comment.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/htmlparser/element.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/htmlparser/filter.js +288 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/htmlparser/fragment.js +497 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/htmlparser/text.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/imagecacher.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/lang.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/loader.js +242 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/plugindefinition.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/plugins.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/resourcemanager.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/scriptloader.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/skins.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/themes.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/core/tools.js +733 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/ui.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/core/xml.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/lang/_languages.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/_translationstatus.txt +60 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/af.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/ar.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/bg.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/bn.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/bs.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/ca.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/cs.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/cy.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/da.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/de.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/el.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/en-au.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/en-ca.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/en-gb.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/en.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/eo.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/es.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/et.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/eu.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/fa.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/fi.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/fo.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/fr-ca.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/fr.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/gl.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/gu.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/he.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/hi.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/hr.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/hu.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/is.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/it.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/ja.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/km.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/ko.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/lt.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/lv.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/mn.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/ms.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/nb.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/nl.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/no.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/pl.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/pt-br.js +747 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/pt.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/ro.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/ru.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/sk.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/sl.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/sr-latn.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/sr.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/sv.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/th.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/tr.js +747 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/uk.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/vi.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/zh-cn.js +748 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/lang/zh.js +748 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/a11yhelp/lang/en.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/a11yhelp/lang/he.js +216 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/a11yhelp/plugin.js +46 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/about/dialogs/about.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/about/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/basicstyles/plugin.js +101 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/blockquote/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/button/plugin.js +277 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/clipboard/dialogs/paste.js +205 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/clipboard/plugin.js +413 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/colorbutton/plugin.js +251 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +339 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/colordialog/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/contextmenu/plugin.js +276 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/dialog/dialogDefinition.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/dialog/plugin.js +2968 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/dialogui/plugin.js +1520 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/div/dialogs/div.js +527 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/div/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/domiterator/plugin.js +341 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/editingblock/plugin.js +230 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/elementspath/plugin.js +206 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/enterkey/plugin.js +353 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/entities/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/fakeobjects/plugin.js +122 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/filebrowser/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/find/dialogs/find.js +867 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/find/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/flash/dialogs/flash.js +698 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/flash/images/placeholder.png +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/flash/plugin.js +173 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/floatpanel/plugin.js +376 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/font/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/format/plugin.js +194 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/forms/dialogs/button.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/forms/dialogs/checkbox.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/dialogs/form.js +177 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +98 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/forms/dialogs/radio.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/forms/dialogs/select.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/forms/dialogs/textarea.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/dialogs/textfield.js +199 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/images/hiddenfield.gif +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/plugin.js +281 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/horizontalrule/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/htmldataprocessor/plugin.js +486 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/htmlwriter/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/iframedialog/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/image/dialogs/image.js +1394 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/image/plugin.js +81 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/indent/plugin.js +422 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/justify/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/keystrokes/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/link/dialogs/anchor.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/link/dialogs/link.js +1419 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/link/images/anchor.gif +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/link/plugin.js +229 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/list/plugin.js +651 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/listblock/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +203 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/liststyle/plugin.js +63 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/maximize/plugin.js +343 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/menu/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/menubutton/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/newpage/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/pagebreak/plugin.js +112 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/panel/plugin.js +398 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/panelbutton/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/pastefromword/filter/default.js +1170 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/pastefromword/plugin.js +122 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +70 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/pastetext/plugin.js +145 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/popup/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/preview/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/print/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/removeformat/plugin.js +182 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/resize/plugin.js +157 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/richcombo/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/save/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/scayt/dialogs/options.js +533 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/scayt/dialogs/toolbar.css +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/scayt/plugin.js +956 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/selection/plugin.js +1250 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/showblocks/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/showborders/plugin.js +175 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/dialogs/smiley.js +216 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/angel_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/angry_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/broken_heart.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/confused_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/cry_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/devil_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/envelope.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/heart.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/kiss.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/lightbulb.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/omg_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/regular_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/sad_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/shades_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/teeth_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/thumbs_down.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/thumbs_up.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/tounge_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/smiley/images/wink_smile.gif +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/plugin.js +94 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/sourcearea/plugin.js +207 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +406 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/specialchar/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/styles/plugin.js +1394 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/styles/styles/default.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/stylescombo/plugin.js +205 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/tab/plugin.js +261 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/table/dialogs/table.js +598 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/table/plugin.js +78 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +524 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/tabletools/plugin.js +1116 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/templates/dialogs/templates.js +231 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/templates/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/templates/templates/default.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/templates/templates/images/template1.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/templates/templates/images/template2.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/templates/templates/images/template3.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/toolbar/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +205 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/uicolor/lang/en.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/uicolor/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/uicolor/uicolor.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +15 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/uicolor/yui/yui.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/undo/plugin.js +555 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.css +82 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/plugins/wsc/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/plugins/wysiwygarea/plugin.js +1026 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/dialog.css +856 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/editor.css +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/elementspath.css +73 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/icons.css +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/icons.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/images/mini.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/images/noimage.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/images/sprites.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/mainui.css +195 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/menu.css +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/panel.css +216 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/presets.css +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/reset.css +84 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/richcombo.css +271 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/kama/skin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/templates.css +88 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/toolbar.css +404 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/dialog.css +765 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/editor.css +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/elementspath.css +74 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/icons.css +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/icons.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/images/dialog_sides.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/images/dialog_sides.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/images/mini.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/images/noimage.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/images/sprites.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/images/sprites_ie6.png +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/mainui.css +145 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/menu.css +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/panel.css +211 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/presets.css +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/reset.css +84 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/richcombo.css +291 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/office2003/skin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/templates.css +87 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/toolbar.css +465 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/dialog.css +780 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/editor.css +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/elementspath.css +74 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/icons.css +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/icons.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/images/dialog_sides.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/images/dialog_sides.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/images/mini.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/images/noimage.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/images/sprites.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/images/sprites_ie6.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/images/toolbar_start.gif +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/mainui.css +154 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/menu.css +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/panel.css +211 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/presets.css +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/reset.css +84 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/richcombo.css +291 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/_source/skins/v2/skin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/templates.css +87 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/toolbar.css +418 -0
- data/generators/ckeditor_install/templates/ckeditor/_source/themes/default/theme.js +359 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/adapters/jquery.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/ckeditor.js +130 -0
- data/generators/ckeditor_install/templates/ckeditor/ckeditor.pack +208 -0
- data/generators/ckeditor_install/templates/ckeditor/ckeditor_basic.js +8 -0
- data/generators/ckeditor_install/templates/ckeditor/ckeditor_basic_source.js +20 -0
- data/generators/ckeditor_install/templates/ckeditor/ckeditor_source.js +25 -0
- data/generators/ckeditor_install/templates/ckeditor/config.js +42 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/contents.css +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/css/ckfinder.css +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/css/fck_dialog.css +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/css/fck_editor.css +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/css/swfupload.css +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/add.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/cancelbutton.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/ckfnothumb.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/doc.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/mp3.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/pdf.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/rar.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/refresh.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/select_files.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/spacer.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/swf.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/toolbar.start.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/images/xls.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/lang/_languages.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/_translationstatus.txt +60 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/af.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/ar.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/bg.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/bn.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/bs.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/ca.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/cs.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/cy.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/da.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/de.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/el.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/en-au.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/en-ca.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/en-gb.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/en.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/eo.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/es.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/et.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/eu.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/fa.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/fi.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/fo.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/fr-ca.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/fr.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/gl.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/gu.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/he.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/hi.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/hr.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/hu.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/is.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/it.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/ja.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/km.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/ko.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/lt.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/lv.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/mn.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/ms.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/nb.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/nl.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/no.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/pl.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/pt-br.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/pt.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/ro.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/ru.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/sk.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/sl.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/sr-latn.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/sr.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/sv.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/th.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/tr.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/uk.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/vi.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/zh-cn.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/lang/zh.js +6 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/a11yhelp/lang/en.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/a11yhelp/lang/he.js +6 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/about/dialogs/about.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/{lib/generators/templates/ckeditor/_source/plugins/embed → generators/ckeditor_install/templates/ckeditor/plugins/ajax_save}/plugin.js +0 -0
- data/{lib/generators/templates/ckeditor/_source → generators/ckeditor_install/templates/ckeditor}/plugins/attachment/dialogs/attachment.js +0 -0
- data/{lib/generators/templates/ckeditor/_source → generators/ckeditor_install/templates/ckeditor}/plugins/attachment/images/attachment.png +0 -0
- data/{lib/generators/templates/ckeditor/_source → generators/ckeditor_install/templates/ckeditor}/plugins/attachment/lang/en.js +0 -0
- data/{lib/generators/templates/ckeditor/_source → generators/ckeditor_install/templates/ckeditor}/plugins/attachment/lang/ru.js +0 -0
- data/{lib/generators/templates/ckeditor/_source → generators/ckeditor_install/templates/ckeditor}/plugins/attachment/lang/uk.js +0 -0
- data/{lib/generators/templates/ckeditor/_source → generators/ckeditor_install/templates/ckeditor}/plugins/attachment/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/clipboard/dialogs/paste.js +7 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/colordialog/dialogs/colordialog.js +7 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/dialog/dialogDefinition.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/div/dialogs/div.js +7 -0
- data/{lib/generators/templates/ckeditor/_source → generators/ckeditor_install/templates/ckeditor}/plugins/embed/dialogs/embed.js +0 -0
- data/{lib/generators/templates/ckeditor/_source → generators/ckeditor_install/templates/ckeditor}/plugins/embed/images/embed.png +0 -0
- data/{lib/generators/templates/ckeditor/_source → generators/ckeditor_install/templates/ckeditor}/plugins/embed/lang/en.js +0 -0
- data/{lib/generators/templates/ckeditor/_source → generators/ckeditor_install/templates/ckeditor}/plugins/embed/lang/ru.js +0 -0
- data/{lib/generators/templates/ckeditor/_source → generators/ckeditor_install/templates/ckeditor}/plugins/embed/lang/uk.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/embed/plugin.js +43 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/find/dialogs/find.js +9 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/flash/dialogs/flash.js +9 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/forms/dialogs/button.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/forms/dialogs/checkbox.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/form.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/hiddenfield.js +6 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/forms/dialogs/radio.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/forms/dialogs/select.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/forms/dialogs/textarea.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/textfield.js +7 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/iframedialog/plugin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/image/dialogs/image.js +13 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/link/dialogs/anchor.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/link/dialogs/link.js +11 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/liststyle/dialogs/liststyle.js +7 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/pastefromword/filter/default.js +10 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/pastetext/dialogs/pastetext.js +6 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/scayt/dialogs/options.js +8 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/smiley/dialogs/smiley.js +7 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/specialchar/dialogs/specialchar.js +7 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/styles/styles/default.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/table/dialogs/table.js +9 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/tabletools/dialogs/tableCell.js +8 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/templates/dialogs/templates.js +7 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/templates/templates/default.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/dialogs/uicolor.js +7 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/uicolor/lang/en.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/uicolor/plugin.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/uicolor/uicolor.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/uicolor/yui/assets/yui.css +6 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/uicolor/yui/yui.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -0
- data/generators/ckeditor_install/templates/ckeditor/plugins/wsc/dialogs/wsc.css +6 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/plugins/wsc/dialogs/wsc.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/skins/kama/dialog.css +9 -0
- data/generators/ckeditor_install/templates/ckeditor/skins/kama/editor.css +12 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/kama/icons.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/kama/images/mini.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/kama/images/noimage.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/kama/images/sprites.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/kama/skin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/skins/kama/templates.css +6 -0
- data/generators/ckeditor_install/templates/ckeditor/skins/office2003/dialog.css +9 -0
- data/generators/ckeditor_install/templates/ckeditor/skins/office2003/editor.css +13 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/office2003/icons.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/office2003/images/mini.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/office2003/images/noimage.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/office2003/images/sprites.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/office2003/skin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/skins/office2003/templates.css +6 -0
- data/generators/ckeditor_install/templates/ckeditor/skins/v2/dialog.css +8 -0
- data/generators/ckeditor_install/templates/ckeditor/skins/v2/editor.css +12 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/v2/icons.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/v2/images/dialog_sides.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/v2/images/mini.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/v2/images/noimage.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/v2/images/sprites.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/skins/v2/skin.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/skins/v2/templates.css +6 -0
- data/generators/ckeditor_install/templates/ckeditor/swfupload/fileprogress.js +275 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/swfupload/handlers.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/swfupload/mootools-1.2.3-core-yc.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/swfupload/querystring.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/swfupload/swfupload.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/swfupload/swfupload.queue.js +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/swfupload/swfupload.swf +0 -0
- data/{lib/generators → generators/ckeditor_install}/templates/ckeditor/swfupload/swfupload.swfobject.js +0 -0
- data/generators/ckeditor_install/templates/ckeditor/themes/default/theme.js +8 -0
- data/generators/ckeditor_migration/USAGE +12 -0
- data/generators/ckeditor_migration/ckeditor_migration_generator.rb +36 -0
- data/{lib/generators → generators/ckeditor_migration}/templates/models/attachment_fu/asset.rb +0 -0
- data/{lib/generators → generators/ckeditor_migration}/templates/models/attachment_fu/attachment_file.rb +0 -0
- data/{lib/generators → generators/ckeditor_migration}/templates/models/attachment_fu/migration.rb +0 -0
- data/{lib/generators → generators/ckeditor_migration}/templates/models/attachment_fu/picture.rb +0 -0
- data/generators/ckeditor_migration/templates/models/paperclip/asset.rb +88 -0
- data/{lib/generators → generators/ckeditor_migration}/templates/models/paperclip/attachment_file.rb +0 -0
- data/{lib/generators → generators/ckeditor_migration}/templates/models/paperclip/migration.rb +0 -0
- data/{lib/generators → generators/ckeditor_migration}/templates/models/paperclip/picture.rb +0 -0
- data/lib/ckeditor.rb +22 -10
- data/lib/ckeditor/middleware.rb +1 -1
- data/lib/ckeditor/safe_buffer.rb +34 -0
- data/lib/ckeditor/utils.rb +6 -2
- data/lib/ckeditor/version.rb +2 -2
- data/lib/ckeditor/view_helper.rb +22 -27
- metadata +649 -631
- data/CHANGELOG +0 -15
- data/lib/ckeditor/engine.rb +0 -21
- data/lib/generators/USAGE +0 -17
- data/lib/generators/ckeditor_core_generator.rb +0 -18
- data/lib/generators/ckeditor_models_generator.rb +0 -41
- data/lib/generators/templates/ckeditor.rb +0 -52
- data/lib/generators/templates/ckeditor.yml +0 -28
- data/lib/generators/templates/ckeditor/CHANGES.html +0 -642
- data/lib/generators/templates/ckeditor/_samples/api_dialog.html +0 -181
- data/lib/generators/templates/ckeditor/_samples/index.html +0 -54
- data/lib/generators/templates/ckeditor/_samples/jqueryadapter.html +0 -73
- data/lib/generators/templates/ckeditor/_source/core/ckeditor.js +0 -103
- data/lib/generators/templates/ckeditor/_source/core/ckeditor_base.js +0 -193
- data/lib/generators/templates/ckeditor/_source/core/ckeditor_basic.js +0 -242
- data/lib/generators/templates/ckeditor/_source/core/config.js +0 -319
- data/lib/generators/templates/ckeditor/_source/core/dom/domobject.js +0 -246
- data/lib/generators/templates/ckeditor/_source/core/dom/element.js +0 -1441
- data/lib/generators/templates/ckeditor/_source/core/dom/elementpath.js +0 -104
- data/lib/generators/templates/ckeditor/_source/core/dom/range.js +0 -1836
- data/lib/generators/templates/ckeditor/_source/core/dom/walker.js +0 -451
- data/lib/generators/templates/ckeditor/_source/core/editor.js +0 -756
- data/lib/generators/templates/ckeditor/_source/core/env.js +0 -222
- data/lib/generators/templates/ckeditor/_source/core/htmlparser.js +0 -212
- data/lib/generators/templates/ckeditor/_source/core/htmlparser/filter.js +0 -262
- data/lib/generators/templates/ckeditor/_source/core/htmlparser/fragment.js +0 -496
- data/lib/generators/templates/ckeditor/_source/core/loader.js +0 -242
- data/lib/generators/templates/ckeditor/_source/core/tools.js +0 -698
- data/lib/generators/templates/ckeditor/_source/lang/_translationstatus.txt +0 -60
- data/lib/generators/templates/ckeditor/_source/lang/af.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/ar.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/bg.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/bn.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/bs.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/ca.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/cs.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/cy.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/da.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/de.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/el.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/en-au.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/en-ca.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/en-gb.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/en.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/eo.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/es.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/et.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/eu.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/fa.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/fi.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/fo.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/fr-ca.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/fr.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/gl.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/gu.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/he.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/hi.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/hr.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/hu.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/is.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/it.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/ja.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/km.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/ko.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/lt.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/lv.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/mn.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/ms.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/nb.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/nl.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/no.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/pl.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/pt-br.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/pt.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/ro.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/ru.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/sk.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/sl.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/sr-latn.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/sr.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/sv.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/th.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/tr.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/uk.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/vi.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/zh-cn.js +0 -708
- data/lib/generators/templates/ckeditor/_source/lang/zh.js +0 -708
- data/lib/generators/templates/ckeditor/_source/plugins/a11yhelp/plugin.js +0 -46
- data/lib/generators/templates/ckeditor/_source/plugins/basicstyles/plugin.js +0 -101
- data/lib/generators/templates/ckeditor/_source/plugins/button/plugin.js +0 -272
- data/lib/generators/templates/ckeditor/_source/plugins/clipboard/dialogs/paste.js +0 -186
- data/lib/generators/templates/ckeditor/_source/plugins/clipboard/plugin.js +0 -379
- data/lib/generators/templates/ckeditor/_source/plugins/colorbutton/plugin.js +0 -247
- data/lib/generators/templates/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +0 -191
- data/lib/generators/templates/ckeditor/_source/plugins/contextmenu/plugin.js +0 -274
- data/lib/generators/templates/ckeditor/_source/plugins/dialog/plugin.js +0 -2913
- data/lib/generators/templates/ckeditor/_source/plugins/dialogui/plugin.js +0 -1408
- data/lib/generators/templates/ckeditor/_source/plugins/div/dialogs/div.js +0 -529
- data/lib/generators/templates/ckeditor/_source/plugins/domiterator/plugin.js +0 -355
- data/lib/generators/templates/ckeditor/_source/plugins/editingblock/plugin.js +0 -224
- data/lib/generators/templates/ckeditor/_source/plugins/elementspath/plugin.js +0 -203
- data/lib/generators/templates/ckeditor/_source/plugins/enterkey/plugin.js +0 -339
- data/lib/generators/templates/ckeditor/_source/plugins/fakeobjects/plugin.js +0 -120
- data/lib/generators/templates/ckeditor/_source/plugins/find/dialogs/find.js +0 -867
- data/lib/generators/templates/ckeditor/_source/plugins/flash/dialogs/flash.js +0 -698
- data/lib/generators/templates/ckeditor/_source/plugins/flash/plugin.js +0 -165
- data/lib/generators/templates/ckeditor/_source/plugins/floatpanel/plugin.js +0 -376
- data/lib/generators/templates/ckeditor/_source/plugins/format/plugin.js +0 -193
- data/lib/generators/templates/ckeditor/_source/plugins/forms/dialogs/form.js +0 -177
- data/lib/generators/templates/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +0 -91
- data/lib/generators/templates/ckeditor/_source/plugins/forms/dialogs/textfield.js +0 -193
- data/lib/generators/templates/ckeditor/_source/plugins/forms/plugin.js +0 -217
- data/lib/generators/templates/ckeditor/_source/plugins/htmldataprocessor/plugin.js +0 -463
- data/lib/generators/templates/ckeditor/_source/plugins/image/dialogs/image.js +0 -1380
- data/lib/generators/templates/ckeditor/_source/plugins/image/plugin.js +0 -73
- data/lib/generators/templates/ckeditor/_source/plugins/indent/plugin.js +0 -381
- data/lib/generators/templates/ckeditor/_source/plugins/link/dialogs/link.js +0 -1413
- data/lib/generators/templates/ckeditor/_source/plugins/link/plugin.js +0 -219
- data/lib/generators/templates/ckeditor/_source/plugins/list/plugin.js +0 -645
- data/lib/generators/templates/ckeditor/_source/plugins/maximize/plugin.js +0 -305
- data/lib/generators/templates/ckeditor/_source/plugins/pagebreak/plugin.js +0 -103
- data/lib/generators/templates/ckeditor/_source/plugins/panel/plugin.js +0 -397
- data/lib/generators/templates/ckeditor/_source/plugins/pastefromword/filter/default.js +0 -1179
- data/lib/generators/templates/ckeditor/_source/plugins/pastefromword/plugin.js +0 -120
- data/lib/generators/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +0 -77
- data/lib/generators/templates/ckeditor/_source/plugins/pastetext/plugin.js +0 -162
- data/lib/generators/templates/ckeditor/_source/plugins/removeformat/plugin.js +0 -132
- data/lib/generators/templates/ckeditor/_source/plugins/resize/plugin.js +0 -117
- data/lib/generators/templates/ckeditor/_source/plugins/scayt/dialogs/options.js +0 -533
- data/lib/generators/templates/ckeditor/_source/plugins/scayt/plugin.js +0 -767
- data/lib/generators/templates/ckeditor/_source/plugins/selection/plugin.js +0 -1145
- data/lib/generators/templates/ckeditor/_source/plugins/showborders/plugin.js +0 -167
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/dialogs/smiley.js +0 -216
- data/lib/generators/templates/ckeditor/_source/plugins/smiley/plugin.js +0 -84
- data/lib/generators/templates/ckeditor/_source/plugins/sourcearea/plugin.js +0 -206
- data/lib/generators/templates/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +0 -403
- data/lib/generators/templates/ckeditor/_source/plugins/styles/plugin.js +0 -1442
- data/lib/generators/templates/ckeditor/_source/plugins/stylescombo/plugin.js +0 -204
- data/lib/generators/templates/ckeditor/_source/plugins/tab/plugin.js +0 -261
- data/lib/generators/templates/ckeditor/_source/plugins/table/dialogs/table.js +0 -591
- data/lib/generators/templates/ckeditor/_source/plugins/table/plugin.js +0 -70
- data/lib/generators/templates/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +0 -528
- data/lib/generators/templates/ckeditor/_source/plugins/tabletools/plugin.js +0 -1068
- data/lib/generators/templates/ckeditor/_source/plugins/templates/dialogs/templates.js +0 -230
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +0 -204
- data/lib/generators/templates/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +0 -15
- data/lib/generators/templates/ckeditor/_source/plugins/undo/plugin.js +0 -519
- data/lib/generators/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.css +0 -83
- data/lib/generators/templates/ckeditor/_source/plugins/wysiwygarea/plugin.js +0 -882
- data/lib/generators/templates/ckeditor/_source/skins/kama/dialog.css +0 -835
- data/lib/generators/templates/ckeditor/_source/skins/kama/elementspath.css +0 -72
- data/lib/generators/templates/ckeditor/_source/skins/kama/mainui.css +0 -183
- data/lib/generators/templates/ckeditor/_source/skins/kama/panel.css +0 -216
- data/lib/generators/templates/ckeditor/_source/skins/kama/reset.css +0 -78
- data/lib/generators/templates/ckeditor/_source/skins/kama/richcombo.css +0 -270
- data/lib/generators/templates/ckeditor/_source/skins/kama/templates.css +0 -84
- data/lib/generators/templates/ckeditor/_source/skins/kama/toolbar.css +0 -409
- data/lib/generators/templates/ckeditor/_source/skins/office2003/dialog.css +0 -738
- data/lib/generators/templates/ckeditor/_source/skins/office2003/elementspath.css +0 -73
- data/lib/generators/templates/ckeditor/_source/skins/office2003/mainui.css +0 -133
- data/lib/generators/templates/ckeditor/_source/skins/office2003/panel.css +0 -211
- data/lib/generators/templates/ckeditor/_source/skins/office2003/reset.css +0 -78
- data/lib/generators/templates/ckeditor/_source/skins/office2003/richcombo.css +0 -289
- data/lib/generators/templates/ckeditor/_source/skins/office2003/templates.css +0 -81
- data/lib/generators/templates/ckeditor/_source/skins/office2003/toolbar.css +0 -463
- data/lib/generators/templates/ckeditor/_source/skins/v2/dialog.css +0 -753
- data/lib/generators/templates/ckeditor/_source/skins/v2/elementspath.css +0 -73
- data/lib/generators/templates/ckeditor/_source/skins/v2/mainui.css +0 -142
- data/lib/generators/templates/ckeditor/_source/skins/v2/panel.css +0 -211
- data/lib/generators/templates/ckeditor/_source/skins/v2/reset.css +0 -78
- data/lib/generators/templates/ckeditor/_source/skins/v2/richcombo.css +0 -289
- data/lib/generators/templates/ckeditor/_source/skins/v2/templates.css +0 -81
- data/lib/generators/templates/ckeditor/_source/skins/v2/toolbar.css +0 -415
- data/lib/generators/templates/ckeditor/_source/themes/default/theme.js +0 -335
- data/lib/generators/templates/ckeditor/ckeditor.js +0 -124
- data/lib/generators/templates/ckeditor/ckeditor.pack +0 -205
- data/lib/generators/templates/ckeditor/ckeditor_basic.js +0 -8
- data/lib/generators/templates/ckeditor/ckeditor_basic_source.js +0 -20
- data/lib/generators/templates/ckeditor/ckeditor_source.js +0 -25
- data/lib/generators/templates/ckeditor/config.js +0 -42
- data/lib/generators/templates/ckeditor/lang/_translationstatus.txt +0 -60
- data/lib/generators/templates/ckeditor/lang/af.js +0 -6
- data/lib/generators/templates/ckeditor/lang/ar.js +0 -6
- data/lib/generators/templates/ckeditor/lang/bg.js +0 -6
- data/lib/generators/templates/ckeditor/lang/bn.js +0 -6
- data/lib/generators/templates/ckeditor/lang/bs.js +0 -6
- data/lib/generators/templates/ckeditor/lang/ca.js +0 -6
- data/lib/generators/templates/ckeditor/lang/cs.js +0 -6
- data/lib/generators/templates/ckeditor/lang/cy.js +0 -6
- data/lib/generators/templates/ckeditor/lang/da.js +0 -6
- data/lib/generators/templates/ckeditor/lang/de.js +0 -6
- data/lib/generators/templates/ckeditor/lang/el.js +0 -6
- data/lib/generators/templates/ckeditor/lang/en-au.js +0 -6
- data/lib/generators/templates/ckeditor/lang/en-ca.js +0 -6
- data/lib/generators/templates/ckeditor/lang/en-gb.js +0 -6
- data/lib/generators/templates/ckeditor/lang/en.js +0 -6
- data/lib/generators/templates/ckeditor/lang/eo.js +0 -6
- data/lib/generators/templates/ckeditor/lang/es.js +0 -6
- data/lib/generators/templates/ckeditor/lang/et.js +0 -6
- data/lib/generators/templates/ckeditor/lang/eu.js +0 -6
- data/lib/generators/templates/ckeditor/lang/fa.js +0 -6
- data/lib/generators/templates/ckeditor/lang/fi.js +0 -6
- data/lib/generators/templates/ckeditor/lang/fo.js +0 -6
- data/lib/generators/templates/ckeditor/lang/fr-ca.js +0 -6
- data/lib/generators/templates/ckeditor/lang/fr.js +0 -6
- data/lib/generators/templates/ckeditor/lang/gl.js +0 -6
- data/lib/generators/templates/ckeditor/lang/gu.js +0 -6
- data/lib/generators/templates/ckeditor/lang/he.js +0 -6
- data/lib/generators/templates/ckeditor/lang/hi.js +0 -6
- data/lib/generators/templates/ckeditor/lang/hr.js +0 -6
- data/lib/generators/templates/ckeditor/lang/hu.js +0 -6
- data/lib/generators/templates/ckeditor/lang/is.js +0 -6
- data/lib/generators/templates/ckeditor/lang/it.js +0 -6
- data/lib/generators/templates/ckeditor/lang/ja.js +0 -6
- data/lib/generators/templates/ckeditor/lang/km.js +0 -6
- data/lib/generators/templates/ckeditor/lang/ko.js +0 -6
- data/lib/generators/templates/ckeditor/lang/lt.js +0 -6
- data/lib/generators/templates/ckeditor/lang/lv.js +0 -6
- data/lib/generators/templates/ckeditor/lang/mn.js +0 -6
- data/lib/generators/templates/ckeditor/lang/ms.js +0 -6
- data/lib/generators/templates/ckeditor/lang/nb.js +0 -6
- data/lib/generators/templates/ckeditor/lang/nl.js +0 -6
- data/lib/generators/templates/ckeditor/lang/no.js +0 -6
- data/lib/generators/templates/ckeditor/lang/pl.js +0 -6
- data/lib/generators/templates/ckeditor/lang/pt-br.js +0 -6
- data/lib/generators/templates/ckeditor/lang/pt.js +0 -6
- data/lib/generators/templates/ckeditor/lang/ro.js +0 -6
- data/lib/generators/templates/ckeditor/lang/ru.js +0 -6
- data/lib/generators/templates/ckeditor/lang/sk.js +0 -6
- data/lib/generators/templates/ckeditor/lang/sl.js +0 -6
- data/lib/generators/templates/ckeditor/lang/sr-latn.js +0 -6
- data/lib/generators/templates/ckeditor/lang/sr.js +0 -6
- data/lib/generators/templates/ckeditor/lang/sv.js +0 -6
- data/lib/generators/templates/ckeditor/lang/th.js +0 -6
- data/lib/generators/templates/ckeditor/lang/tr.js +0 -6
- data/lib/generators/templates/ckeditor/lang/uk.js +0 -6
- data/lib/generators/templates/ckeditor/lang/vi.js +0 -6
- data/lib/generators/templates/ckeditor/lang/zh-cn.js +0 -6
- data/lib/generators/templates/ckeditor/lang/zh.js +0 -6
- data/lib/generators/templates/ckeditor/plugins/attachment/dialogs/attachment.js +0 -1
- data/lib/generators/templates/ckeditor/plugins/attachment/images/attachment.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/attachment/lang/en.js +0 -1
- data/lib/generators/templates/ckeditor/plugins/attachment/lang/ru.js +0 -1
- data/lib/generators/templates/ckeditor/plugins/attachment/lang/uk.js +0 -1
- data/lib/generators/templates/ckeditor/plugins/attachment/plugin.js +0 -1
- data/lib/generators/templates/ckeditor/plugins/clipboard/dialogs/paste.js +0 -7
- data/lib/generators/templates/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -6
- data/lib/generators/templates/ckeditor/plugins/div/dialogs/div.js +0 -7
- data/lib/generators/templates/ckeditor/plugins/embed/dialogs/embed.js +0 -1
- data/lib/generators/templates/ckeditor/plugins/embed/images/embed.png +0 -0
- data/lib/generators/templates/ckeditor/plugins/embed/lang/en.js +0 -1
- data/lib/generators/templates/ckeditor/plugins/embed/lang/ru.js +0 -1
- data/lib/generators/templates/ckeditor/plugins/embed/lang/uk.js +0 -1
- data/lib/generators/templates/ckeditor/plugins/embed/plugin.js +0 -1
- data/lib/generators/templates/ckeditor/plugins/find/dialogs/find.js +0 -9
- data/lib/generators/templates/ckeditor/plugins/flash/dialogs/flash.js +0 -9
- data/lib/generators/templates/ckeditor/plugins/forms/dialogs/form.js +0 -6
- data/lib/generators/templates/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -6
- data/lib/generators/templates/ckeditor/plugins/forms/dialogs/textfield.js +0 -6
- data/lib/generators/templates/ckeditor/plugins/image/dialogs/image.js +0 -13
- data/lib/generators/templates/ckeditor/plugins/link/dialogs/link.js +0 -11
- data/lib/generators/templates/ckeditor/plugins/pastefromword/filter/default.js +0 -10
- data/lib/generators/templates/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -6
- data/lib/generators/templates/ckeditor/plugins/scayt/dialogs/options.js +0 -8
- data/lib/generators/templates/ckeditor/plugins/smiley/dialogs/smiley.js +0 -7
- data/lib/generators/templates/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -7
- data/lib/generators/templates/ckeditor/plugins/table/dialogs/table.js +0 -9
- data/lib/generators/templates/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -8
- data/lib/generators/templates/ckeditor/plugins/templates/dialogs/templates.js +0 -7
- data/lib/generators/templates/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -7
- data/lib/generators/templates/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -6
- data/lib/generators/templates/ckeditor/plugins/wsc/dialogs/wsc.css +0 -6
- data/lib/generators/templates/ckeditor/skins/kama/dialog.css +0 -9
- data/lib/generators/templates/ckeditor/skins/kama/editor.css +0 -12
- data/lib/generators/templates/ckeditor/skins/kama/templates.css +0 -6
- data/lib/generators/templates/ckeditor/skins/office2003/dialog.css +0 -9
- data/lib/generators/templates/ckeditor/skins/office2003/editor.css +0 -13
- data/lib/generators/templates/ckeditor/skins/office2003/templates.css +0 -6
- data/lib/generators/templates/ckeditor/skins/v2/dialog.css +0 -8
- data/lib/generators/templates/ckeditor/skins/v2/editor.css +0 -12
- data/lib/generators/templates/ckeditor/skins/v2/templates.css +0 -6
- data/lib/generators/templates/ckeditor/swfupload/fileprogress.js +0 -272
- data/lib/generators/templates/ckeditor/themes/default/theme.js +0 -8
- data/lib/generators/templates/models/paperclip/asset.rb +0 -86
- data/lib/tasks/ckeditor_tasks.rake +0 -3
@@ -1,451 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
(function()
|
7
|
-
{
|
8
|
-
// This function is to be called under a "walker" instance scope.
|
9
|
-
function iterate( rtl, breakOnFalse )
|
10
|
-
{
|
11
|
-
// Return null if we have reached the end.
|
12
|
-
if ( this._.end )
|
13
|
-
return null;
|
14
|
-
|
15
|
-
var node,
|
16
|
-
range = this.range,
|
17
|
-
guard,
|
18
|
-
userGuard = this.guard,
|
19
|
-
type = this.type,
|
20
|
-
getSourceNodeFn = ( rtl ? 'getPreviousSourceNode' : 'getNextSourceNode' );
|
21
|
-
|
22
|
-
// This is the first call. Initialize it.
|
23
|
-
if ( !this._.start )
|
24
|
-
{
|
25
|
-
this._.start = 1;
|
26
|
-
|
27
|
-
// Trim text nodes and optmize the range boundaries. DOM changes
|
28
|
-
// may happen at this point.
|
29
|
-
range.trim();
|
30
|
-
|
31
|
-
// A collapsed range must return null at first call.
|
32
|
-
if ( range.collapsed )
|
33
|
-
{
|
34
|
-
this.end();
|
35
|
-
return null;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
// Create the LTR guard function, if necessary.
|
40
|
-
if ( !rtl && !this._.guardLTR )
|
41
|
-
{
|
42
|
-
// Gets the node that stops the walker when going LTR.
|
43
|
-
var limitLTR = range.endContainer,
|
44
|
-
blockerLTR = limitLTR.getChild( range.endOffset );
|
45
|
-
|
46
|
-
this._.guardLTR = function( node, movingOut )
|
47
|
-
{
|
48
|
-
return ( ( !movingOut || !limitLTR.equals( node ) )
|
49
|
-
&& ( !blockerLTR || !node.equals( blockerLTR ) )
|
50
|
-
&& ( node.type != CKEDITOR.NODE_ELEMENT || !movingOut || node.getName() != 'body' ) );
|
51
|
-
};
|
52
|
-
}
|
53
|
-
|
54
|
-
// Create the RTL guard function, if necessary.
|
55
|
-
if ( rtl && !this._.guardRTL )
|
56
|
-
{
|
57
|
-
// Gets the node that stops the walker when going LTR.
|
58
|
-
var limitRTL = range.startContainer,
|
59
|
-
blockerRTL = ( range.startOffset > 0 ) && limitRTL.getChild( range.startOffset - 1 );
|
60
|
-
|
61
|
-
this._.guardRTL = function( node, movingOut )
|
62
|
-
{
|
63
|
-
return ( ( !movingOut || !limitRTL.equals( node ) )
|
64
|
-
&& ( !blockerRTL || !node.equals( blockerRTL ) )
|
65
|
-
&& ( node.type != CKEDITOR.NODE_ELEMENT || !movingOut || node.getName() != 'body' ) );
|
66
|
-
};
|
67
|
-
}
|
68
|
-
|
69
|
-
// Define which guard function to use.
|
70
|
-
var stopGuard = rtl ? this._.guardRTL : this._.guardLTR;
|
71
|
-
|
72
|
-
// Make the user defined guard function participate in the process,
|
73
|
-
// otherwise simply use the boundary guard.
|
74
|
-
if ( userGuard )
|
75
|
-
{
|
76
|
-
guard = function( node, movingOut )
|
77
|
-
{
|
78
|
-
if ( stopGuard( node, movingOut ) === false )
|
79
|
-
return false;
|
80
|
-
|
81
|
-
return userGuard( node, movingOut );
|
82
|
-
};
|
83
|
-
}
|
84
|
-
else
|
85
|
-
guard = stopGuard;
|
86
|
-
|
87
|
-
if ( this.current )
|
88
|
-
node = this.current[ getSourceNodeFn ]( false, type, guard );
|
89
|
-
else
|
90
|
-
{
|
91
|
-
// Get the first node to be returned.
|
92
|
-
|
93
|
-
if ( rtl )
|
94
|
-
{
|
95
|
-
node = range.endContainer;
|
96
|
-
|
97
|
-
if ( range.endOffset > 0 )
|
98
|
-
{
|
99
|
-
node = node.getChild( range.endOffset - 1 );
|
100
|
-
if ( guard( node ) === false )
|
101
|
-
node = null;
|
102
|
-
}
|
103
|
-
else
|
104
|
-
node = ( guard ( node, true ) === false ) ?
|
105
|
-
null : node.getPreviousSourceNode( true, type, guard );
|
106
|
-
}
|
107
|
-
else
|
108
|
-
{
|
109
|
-
node = range.startContainer;
|
110
|
-
node = node.getChild( range.startOffset );
|
111
|
-
|
112
|
-
if ( node )
|
113
|
-
{
|
114
|
-
if ( guard( node ) === false )
|
115
|
-
node = null;
|
116
|
-
}
|
117
|
-
else
|
118
|
-
node = ( guard ( range.startContainer, true ) === false ) ?
|
119
|
-
null : range.startContainer.getNextSourceNode( true, type, guard ) ;
|
120
|
-
}
|
121
|
-
}
|
122
|
-
|
123
|
-
while ( node && !this._.end )
|
124
|
-
{
|
125
|
-
this.current = node;
|
126
|
-
|
127
|
-
if ( !this.evaluator || this.evaluator( node ) !== false )
|
128
|
-
{
|
129
|
-
if ( !breakOnFalse )
|
130
|
-
return node;
|
131
|
-
}
|
132
|
-
else if ( breakOnFalse && this.evaluator )
|
133
|
-
return false;
|
134
|
-
|
135
|
-
node = node[ getSourceNodeFn ]( false, type, guard );
|
136
|
-
}
|
137
|
-
|
138
|
-
this.end();
|
139
|
-
return this.current = null;
|
140
|
-
}
|
141
|
-
|
142
|
-
function iterateToLast( rtl )
|
143
|
-
{
|
144
|
-
var node, last = null;
|
145
|
-
|
146
|
-
while ( ( node = iterate.call( this, rtl ) ) )
|
147
|
-
last = node;
|
148
|
-
|
149
|
-
return last;
|
150
|
-
}
|
151
|
-
|
152
|
-
CKEDITOR.dom.walker = CKEDITOR.tools.createClass(
|
153
|
-
{
|
154
|
-
/**
|
155
|
-
* Utility class to "walk" the DOM inside a range boundaries. If
|
156
|
-
* necessary, partially included nodes (text nodes) are broken to
|
157
|
-
* reflect the boundaries limits, so DOM and range changes may happen.
|
158
|
-
* Outside changes to the range may break the walker.
|
159
|
-
*
|
160
|
-
* The walker may return nodes that are not totaly included into the
|
161
|
-
* range boundaires. Let's take the following range representation,
|
162
|
-
* where the square brackets indicate the boundaries:
|
163
|
-
*
|
164
|
-
* [<p>Some <b>sample] text</b>
|
165
|
-
*
|
166
|
-
* While walking forward into the above range, the following nodes are
|
167
|
-
* returned: <p>, "Some ", <b> and "sample". Going
|
168
|
-
* backwards instead we have: "sample" and "Some ". So note that the
|
169
|
-
* walker always returns nodes when "entering" them, but not when
|
170
|
-
* "leaving" them. The guard function is instead called both when
|
171
|
-
* entering and leaving nodes.
|
172
|
-
*
|
173
|
-
* @constructor
|
174
|
-
* @param {CKEDITOR.dom.range} range The range within which walk.
|
175
|
-
*/
|
176
|
-
$ : function( range )
|
177
|
-
{
|
178
|
-
this.range = range;
|
179
|
-
|
180
|
-
/**
|
181
|
-
* A function executed for every matched node, to check whether
|
182
|
-
* it's to be considered into the walk or not. If not provided, all
|
183
|
-
* matched nodes are considered good.
|
184
|
-
* If the function returns "false" the node is ignored.
|
185
|
-
* @name CKEDITOR.dom.walker.prototype.evaluator
|
186
|
-
* @property
|
187
|
-
* @type Function
|
188
|
-
*/
|
189
|
-
// this.evaluator = null;
|
190
|
-
|
191
|
-
/**
|
192
|
-
* A function executed for every node the walk pass by to check
|
193
|
-
* whether the walk is to be finished. It's called when both
|
194
|
-
* entering and exiting nodes, as well as for the matched nodes.
|
195
|
-
* If this function returns "false", the walking ends and no more
|
196
|
-
* nodes are evaluated.
|
197
|
-
* @name CKEDITOR.dom.walker.prototype.guard
|
198
|
-
* @property
|
199
|
-
* @type Function
|
200
|
-
*/
|
201
|
-
// this.guard = null;
|
202
|
-
|
203
|
-
/** @private */
|
204
|
-
this._ = {};
|
205
|
-
},
|
206
|
-
|
207
|
-
// statics :
|
208
|
-
// {
|
209
|
-
// /* Creates a CKEDITOR.dom.walker instance to walk inside DOM boundaries set by nodes.
|
210
|
-
// * @param {CKEDITOR.dom.node} startNode The node from wich the walk
|
211
|
-
// * will start.
|
212
|
-
// * @param {CKEDITOR.dom.node} [endNode] The last node to be considered
|
213
|
-
// * in the walk. No more nodes are retrieved after touching or
|
214
|
-
// * passing it. If not provided, the walker stops at the
|
215
|
-
// * <body> closing boundary.
|
216
|
-
// * @returns {CKEDITOR.dom.walker} A DOM walker for the nodes between the
|
217
|
-
// * provided nodes.
|
218
|
-
// */
|
219
|
-
// createOnNodes : function( startNode, endNode, startInclusive, endInclusive )
|
220
|
-
// {
|
221
|
-
// var range = new CKEDITOR.dom.range();
|
222
|
-
// if ( startNode )
|
223
|
-
// range.setStartAt( startNode, startInclusive ? CKEDITOR.POSITION_BEFORE_START : CKEDITOR.POSITION_AFTER_END ) ;
|
224
|
-
// else
|
225
|
-
// range.setStartAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_AFTER_START ) ;
|
226
|
-
//
|
227
|
-
// if ( endNode )
|
228
|
-
// range.setEndAt( endNode, endInclusive ? CKEDITOR.POSITION_AFTER_END : CKEDITOR.POSITION_BEFORE_START ) ;
|
229
|
-
// else
|
230
|
-
// range.setEndAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_BEFORE_END ) ;
|
231
|
-
//
|
232
|
-
// return new CKEDITOR.dom.walker( range );
|
233
|
-
// }
|
234
|
-
// },
|
235
|
-
//
|
236
|
-
proto :
|
237
|
-
{
|
238
|
-
/**
|
239
|
-
* Stop walking. No more nodes are retrieved if this function gets
|
240
|
-
* called.
|
241
|
-
*/
|
242
|
-
end : function()
|
243
|
-
{
|
244
|
-
this._.end = 1;
|
245
|
-
},
|
246
|
-
|
247
|
-
/**
|
248
|
-
* Retrieves the next node (at right).
|
249
|
-
* @returns {CKEDITOR.dom.node} The next node or null if no more
|
250
|
-
* nodes are available.
|
251
|
-
*/
|
252
|
-
next : function()
|
253
|
-
{
|
254
|
-
return iterate.call( this );
|
255
|
-
},
|
256
|
-
|
257
|
-
/**
|
258
|
-
* Retrieves the previous node (at left).
|
259
|
-
* @returns {CKEDITOR.dom.node} The previous node or null if no more
|
260
|
-
* nodes are available.
|
261
|
-
*/
|
262
|
-
previous : function()
|
263
|
-
{
|
264
|
-
return iterate.call( this, true );
|
265
|
-
},
|
266
|
-
|
267
|
-
/**
|
268
|
-
* Check all nodes at right, executing the evaluation fuction.
|
269
|
-
* @returns {Boolean} "false" if the evaluator function returned
|
270
|
-
* "false" for any of the matched nodes. Otherwise "true".
|
271
|
-
*/
|
272
|
-
checkForward : function()
|
273
|
-
{
|
274
|
-
return iterate.call( this, false, true ) !== false;
|
275
|
-
},
|
276
|
-
|
277
|
-
/**
|
278
|
-
* Check all nodes at left, executing the evaluation fuction.
|
279
|
-
* @returns {Boolean} "false" if the evaluator function returned
|
280
|
-
* "false" for any of the matched nodes. Otherwise "true".
|
281
|
-
*/
|
282
|
-
checkBackward : function()
|
283
|
-
{
|
284
|
-
return iterate.call( this, true, true ) !== false;
|
285
|
-
},
|
286
|
-
|
287
|
-
/**
|
288
|
-
* Executes a full walk forward (to the right), until no more nodes
|
289
|
-
* are available, returning the last valid node.
|
290
|
-
* @returns {CKEDITOR.dom.node} The last node at the right or null
|
291
|
-
* if no valid nodes are available.
|
292
|
-
*/
|
293
|
-
lastForward : function()
|
294
|
-
{
|
295
|
-
return iterateToLast.call( this );
|
296
|
-
},
|
297
|
-
|
298
|
-
/**
|
299
|
-
* Executes a full walk backwards (to the left), until no more nodes
|
300
|
-
* are available, returning the last valid node.
|
301
|
-
* @returns {CKEDITOR.dom.node} The last node at the left or null
|
302
|
-
* if no valid nodes are available.
|
303
|
-
*/
|
304
|
-
lastBackward : function()
|
305
|
-
{
|
306
|
-
return iterateToLast.call( this, true );
|
307
|
-
},
|
308
|
-
|
309
|
-
reset : function()
|
310
|
-
{
|
311
|
-
delete this.current;
|
312
|
-
this._ = {};
|
313
|
-
}
|
314
|
-
|
315
|
-
}
|
316
|
-
});
|
317
|
-
|
318
|
-
/*
|
319
|
-
* Anything whose display computed style is block, list-item, table,
|
320
|
-
* table-row-group, table-header-group, table-footer-group, table-row,
|
321
|
-
* table-column-group, table-column, table-cell, table-caption, or whose node
|
322
|
-
* name is hr, br (when enterMode is br only) is a block boundary.
|
323
|
-
*/
|
324
|
-
var blockBoundaryDisplayMatch =
|
325
|
-
{
|
326
|
-
block : 1,
|
327
|
-
'list-item' : 1,
|
328
|
-
table : 1,
|
329
|
-
'table-row-group' : 1,
|
330
|
-
'table-header-group' : 1,
|
331
|
-
'table-footer-group' : 1,
|
332
|
-
'table-row' : 1,
|
333
|
-
'table-column-group' : 1,
|
334
|
-
'table-column' : 1,
|
335
|
-
'table-cell' : 1,
|
336
|
-
'table-caption' : 1
|
337
|
-
},
|
338
|
-
blockBoundaryNodeNameMatch = { hr : 1 };
|
339
|
-
|
340
|
-
CKEDITOR.dom.element.prototype.isBlockBoundary = function( customNodeNames )
|
341
|
-
{
|
342
|
-
var nodeNameMatches = CKEDITOR.tools.extend( {},
|
343
|
-
blockBoundaryNodeNameMatch, customNodeNames || {} );
|
344
|
-
|
345
|
-
return blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] ||
|
346
|
-
nodeNameMatches[ this.getName() ];
|
347
|
-
};
|
348
|
-
|
349
|
-
CKEDITOR.dom.walker.blockBoundary = function( customNodeNames )
|
350
|
-
{
|
351
|
-
return function( node , type )
|
352
|
-
{
|
353
|
-
return ! ( node.type == CKEDITOR.NODE_ELEMENT
|
354
|
-
&& node.isBlockBoundary( customNodeNames ) );
|
355
|
-
};
|
356
|
-
};
|
357
|
-
|
358
|
-
CKEDITOR.dom.walker.listItemBoundary = function()
|
359
|
-
{
|
360
|
-
return this.blockBoundary( { br : 1 } );
|
361
|
-
};
|
362
|
-
/**
|
363
|
-
* Whether the node is a bookmark node's inner text node.
|
364
|
-
*/
|
365
|
-
CKEDITOR.dom.walker.bookmarkContents = function( node )
|
366
|
-
{
|
367
|
-
},
|
368
|
-
|
369
|
-
/**
|
370
|
-
* Whether the to-be-evaluated node is a bookmark node OR bookmark node
|
371
|
-
* inner contents.
|
372
|
-
* @param {Boolean} contentOnly Whether only test againt the text content of
|
373
|
-
* bookmark node instead of the element itself(default).
|
374
|
-
* @param {Boolean} isReject Whether should return 'false' for the bookmark
|
375
|
-
* node instead of 'true'(default).
|
376
|
-
*/
|
377
|
-
CKEDITOR.dom.walker.bookmark = function( contentOnly, isReject )
|
378
|
-
{
|
379
|
-
function isBookmarkNode( node )
|
380
|
-
{
|
381
|
-
return ( node && node.getName
|
382
|
-
&& node.getName() == 'span'
|
383
|
-
&& node.hasAttribute('_fck_bookmark') );
|
384
|
-
}
|
385
|
-
|
386
|
-
return function( node )
|
387
|
-
{
|
388
|
-
var isBookmark, parent;
|
389
|
-
// Is bookmark inner text node?
|
390
|
-
isBookmark = ( node && !node.getName && ( parent = node.getParent() )
|
391
|
-
&& isBookmarkNode( parent ) );
|
392
|
-
// Is bookmark node?
|
393
|
-
isBookmark = contentOnly ? isBookmark : isBookmark || isBookmarkNode( node );
|
394
|
-
return isReject ^ isBookmark;
|
395
|
-
};
|
396
|
-
};
|
397
|
-
|
398
|
-
/**
|
399
|
-
* Whether the node is a text node containing only whitespaces characters.
|
400
|
-
* @param isReject
|
401
|
-
*/
|
402
|
-
CKEDITOR.dom.walker.whitespaces = function( isReject )
|
403
|
-
{
|
404
|
-
return function( node )
|
405
|
-
{
|
406
|
-
var isWhitespace = node && ( node.type == CKEDITOR.NODE_TEXT )
|
407
|
-
&& !CKEDITOR.tools.trim( node.getText() );
|
408
|
-
return isReject ^ isWhitespace;
|
409
|
-
};
|
410
|
-
};
|
411
|
-
|
412
|
-
/**
|
413
|
-
* Whether the node is invisible in wysiwyg mode.
|
414
|
-
* @param isReject
|
415
|
-
*/
|
416
|
-
CKEDITOR.dom.walker.invisible = function( isReject )
|
417
|
-
{
|
418
|
-
var whitespace = CKEDITOR.dom.walker.whitespaces();
|
419
|
-
return function( node )
|
420
|
-
{
|
421
|
-
// Nodes that take no spaces in wysiwyg:
|
422
|
-
// 1. White-spaces but not including NBSP;
|
423
|
-
// 2. Empty inline elements, e.g. <b></b> we're checking here
|
424
|
-
// 'offsetHeight' instead of 'offsetWidth' for properly excluding
|
425
|
-
// all sorts of empty paragraph, e.g. <br />.
|
426
|
-
var isInvisible = whitespace( node ) || node.is && !node.$.offsetHeight;
|
427
|
-
return isReject ^ isInvisible;
|
428
|
-
};
|
429
|
-
};
|
430
|
-
|
431
|
-
var tailNbspRegex = /^[\t\r\n ]*(?: |\xa0)$/,
|
432
|
-
isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ),
|
433
|
-
isNotBookmark = CKEDITOR.dom.walker.bookmark( false, true ),
|
434
|
-
fillerEvaluator = function( element )
|
435
|
-
{
|
436
|
-
return isNotBookmark( element ) && isNotWhitespaces( element );
|
437
|
-
};
|
438
|
-
|
439
|
-
// Check if there's a filler node at the end of an element, and return it.
|
440
|
-
CKEDITOR.dom.element.prototype.getBogus = function ()
|
441
|
-
{
|
442
|
-
var tail = this.getLast( fillerEvaluator );
|
443
|
-
if ( tail && ( !CKEDITOR.env.ie ? tail.is && tail.is( 'br' )
|
444
|
-
: tail.getText && tailNbspRegex.test( tail.getText() ) ) )
|
445
|
-
{
|
446
|
-
return tail;
|
447
|
-
}
|
448
|
-
return false;
|
449
|
-
};
|
450
|
-
|
451
|
-
})();
|
@@ -1,756 +0,0 @@
|
|
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
|
-
* @fileOverview Defines the {@link CKEDITOR.editor} class, which represents an
|
8
|
-
* editor instance.
|
9
|
-
*/
|
10
|
-
|
11
|
-
(function()
|
12
|
-
{
|
13
|
-
// The counter for automatic instance names.
|
14
|
-
var nameCounter = 0;
|
15
|
-
|
16
|
-
var getNewName = function()
|
17
|
-
{
|
18
|
-
var name = 'editor' + ( ++nameCounter );
|
19
|
-
return ( CKEDITOR.instances && CKEDITOR.instances[ name ] ) ? getNewName() : name;
|
20
|
-
};
|
21
|
-
|
22
|
-
// ##### START: Config Privates
|
23
|
-
|
24
|
-
// These function loads custom configuration files and cache the
|
25
|
-
// CKEDITOR.editorConfig functions defined on them, so there is no need to
|
26
|
-
// download them more than once for several instances.
|
27
|
-
var loadConfigLoaded = {};
|
28
|
-
var loadConfig = function( editor )
|
29
|
-
{
|
30
|
-
var customConfig = editor.config.customConfig;
|
31
|
-
|
32
|
-
// Check if there is a custom config to load.
|
33
|
-
if ( !customConfig )
|
34
|
-
return false;
|
35
|
-
|
36
|
-
customConfig = CKEDITOR.getUrl( customConfig );
|
37
|
-
|
38
|
-
var loadedConfig = loadConfigLoaded[ customConfig ] || ( loadConfigLoaded[ customConfig ] = {} );
|
39
|
-
|
40
|
-
// If the custom config has already been downloaded, reuse it.
|
41
|
-
if ( loadedConfig.fn )
|
42
|
-
{
|
43
|
-
// Call the cached CKEDITOR.editorConfig defined in the custom
|
44
|
-
// config file for the editor instance depending on it.
|
45
|
-
loadedConfig.fn.call( editor, editor.config );
|
46
|
-
|
47
|
-
// If there is no other customConfig in the chain, fire the
|
48
|
-
// "configLoaded" event.
|
49
|
-
if ( CKEDITOR.getUrl( editor.config.customConfig ) == customConfig || !loadConfig( editor ) )
|
50
|
-
editor.fireOnce( 'customConfigLoaded' );
|
51
|
-
}
|
52
|
-
else
|
53
|
-
{
|
54
|
-
// Load the custom configuration file.
|
55
|
-
CKEDITOR.scriptLoader.load( customConfig, function()
|
56
|
-
{
|
57
|
-
// If the CKEDITOR.editorConfig function has been properly
|
58
|
-
// defined in the custom configuration file, cache it.
|
59
|
-
if ( CKEDITOR.editorConfig )
|
60
|
-
loadedConfig.fn = CKEDITOR.editorConfig;
|
61
|
-
else
|
62
|
-
loadedConfig.fn = function(){};
|
63
|
-
|
64
|
-
// Call the load config again. This time the custom
|
65
|
-
// config is already cached and so it will get loaded.
|
66
|
-
loadConfig( editor );
|
67
|
-
});
|
68
|
-
}
|
69
|
-
|
70
|
-
return true;
|
71
|
-
};
|
72
|
-
|
73
|
-
var initConfig = function( editor, instanceConfig )
|
74
|
-
{
|
75
|
-
// Setup the lister for the "customConfigLoaded" event.
|
76
|
-
editor.on( 'customConfigLoaded', function()
|
77
|
-
{
|
78
|
-
if ( instanceConfig )
|
79
|
-
{
|
80
|
-
// Register the events that may have been set at the instance
|
81
|
-
// configuration object.
|
82
|
-
if ( instanceConfig.on )
|
83
|
-
{
|
84
|
-
for ( var eventName in instanceConfig.on )
|
85
|
-
{
|
86
|
-
editor.on( eventName, instanceConfig.on[ eventName ] );
|
87
|
-
}
|
88
|
-
}
|
89
|
-
|
90
|
-
// Overwrite the settings from the in-page config.
|
91
|
-
CKEDITOR.tools.extend( editor.config, instanceConfig, true );
|
92
|
-
|
93
|
-
delete editor.config.on;
|
94
|
-
}
|
95
|
-
|
96
|
-
onConfigLoaded( editor );
|
97
|
-
});
|
98
|
-
|
99
|
-
// The instance config may override the customConfig setting to avoid
|
100
|
-
// loading the default ~/config.js file.
|
101
|
-
if ( instanceConfig && instanceConfig.customConfig != undefined )
|
102
|
-
editor.config.customConfig = instanceConfig.customConfig;
|
103
|
-
|
104
|
-
// Load configs from the custom configuration files.
|
105
|
-
if ( !loadConfig( editor ) )
|
106
|
-
editor.fireOnce( 'customConfigLoaded' );
|
107
|
-
};
|
108
|
-
|
109
|
-
// ##### END: Config Privates
|
110
|
-
|
111
|
-
var onConfigLoaded = function( editor )
|
112
|
-
{
|
113
|
-
// Set config related properties.
|
114
|
-
|
115
|
-
var skin = editor.config.skin.split( ',' ),
|
116
|
-
skinName = skin[ 0 ],
|
117
|
-
skinPath = CKEDITOR.getUrl( skin[ 1 ] || (
|
118
|
-
'_source/' + // @Packager.RemoveLine
|
119
|
-
'skins/' + skinName + '/' ) );
|
120
|
-
|
121
|
-
editor.skinName = skinName;
|
122
|
-
editor.skinPath = skinPath;
|
123
|
-
editor.skinClass = 'cke_skin_' + skinName;
|
124
|
-
|
125
|
-
editor.tabIndex = editor.config.tabIndex || editor.element.getAttribute( 'tabindex' ) || 0;
|
126
|
-
|
127
|
-
// Fire the "configLoaded" event.
|
128
|
-
editor.fireOnce( 'configLoaded' );
|
129
|
-
|
130
|
-
// Load language file.
|
131
|
-
loadSkin( editor );
|
132
|
-
};
|
133
|
-
|
134
|
-
var loadLang = function( editor )
|
135
|
-
{
|
136
|
-
CKEDITOR.lang.load( editor.config.language, editor.config.defaultLanguage, function( languageCode, lang )
|
137
|
-
{
|
138
|
-
editor.langCode = languageCode;
|
139
|
-
|
140
|
-
// As we'll be adding plugin specific entries that could come
|
141
|
-
// from different language code files, we need a copy of lang,
|
142
|
-
// not a direct reference to it.
|
143
|
-
editor.lang = CKEDITOR.tools.prototypedCopy( lang );
|
144
|
-
|
145
|
-
// We're not able to support RTL in Firefox 2 at this time.
|
146
|
-
if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 && editor.lang.dir == 'rtl' )
|
147
|
-
editor.lang.dir = 'ltr';
|
148
|
-
|
149
|
-
loadPlugins( editor );
|
150
|
-
});
|
151
|
-
};
|
152
|
-
|
153
|
-
var loadPlugins = function( editor )
|
154
|
-
{
|
155
|
-
var config = editor.config,
|
156
|
-
plugins = config.plugins,
|
157
|
-
extraPlugins = config.extraPlugins,
|
158
|
-
removePlugins = config.removePlugins;
|
159
|
-
|
160
|
-
if ( extraPlugins )
|
161
|
-
{
|
162
|
-
// Remove them first to avoid duplications.
|
163
|
-
var removeRegex = new RegExp( '(?:^|,)(?:' + extraPlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' );
|
164
|
-
plugins = plugins.replace( removeRegex, '' );
|
165
|
-
|
166
|
-
plugins += ',' + extraPlugins;
|
167
|
-
}
|
168
|
-
|
169
|
-
if ( removePlugins )
|
170
|
-
{
|
171
|
-
removeRegex = new RegExp( '(?:^|,)(?:' + removePlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' );
|
172
|
-
plugins = plugins.replace( removeRegex, '' );
|
173
|
-
}
|
174
|
-
|
175
|
-
// Load all plugins defined in the "plugins" setting.
|
176
|
-
CKEDITOR.plugins.load( plugins.split( ',' ), function( plugins )
|
177
|
-
{
|
178
|
-
// The list of plugins.
|
179
|
-
var pluginsArray = [];
|
180
|
-
|
181
|
-
// The language code to get loaded for each plugin. Null
|
182
|
-
// entries will be appended for plugins with no language files.
|
183
|
-
var languageCodes = [];
|
184
|
-
|
185
|
-
// The list of URLs to language files.
|
186
|
-
var languageFiles = [];
|
187
|
-
|
188
|
-
// Cache the loaded plugin names.
|
189
|
-
editor.plugins = plugins;
|
190
|
-
|
191
|
-
// Loop through all plugins, to build the list of language
|
192
|
-
// files to get loaded.
|
193
|
-
for ( var pluginName in plugins )
|
194
|
-
{
|
195
|
-
var plugin = plugins[ pluginName ],
|
196
|
-
pluginLangs = plugin.lang,
|
197
|
-
pluginPath = CKEDITOR.plugins.getPath( pluginName ),
|
198
|
-
lang = null;
|
199
|
-
|
200
|
-
// Set the plugin path in the plugin.
|
201
|
-
plugin.path = pluginPath;
|
202
|
-
|
203
|
-
// If the plugin has "lang".
|
204
|
-
if ( pluginLangs )
|
205
|
-
{
|
206
|
-
// Resolve the plugin language. If the current language
|
207
|
-
// is not available, get the first one (default one).
|
208
|
-
lang = ( CKEDITOR.tools.indexOf( pluginLangs, editor.langCode ) >= 0 ? editor.langCode : pluginLangs[ 0 ] );
|
209
|
-
|
210
|
-
if ( !plugin.lang[ lang ] )
|
211
|
-
{
|
212
|
-
// Put the language file URL into the list of files to
|
213
|
-
// get downloaded.
|
214
|
-
languageFiles.push( CKEDITOR.getUrl( pluginPath + 'lang/' + lang + '.js' ) );
|
215
|
-
}
|
216
|
-
else
|
217
|
-
{
|
218
|
-
CKEDITOR.tools.extend( editor.lang, plugin.lang[ lang ] );
|
219
|
-
lang = null;
|
220
|
-
}
|
221
|
-
}
|
222
|
-
|
223
|
-
// Save the language code, so we know later which
|
224
|
-
// language has been resolved to this plugin.
|
225
|
-
languageCodes.push( lang );
|
226
|
-
|
227
|
-
pluginsArray.push( plugin );
|
228
|
-
}
|
229
|
-
|
230
|
-
// Load all plugin specific language files in a row.
|
231
|
-
CKEDITOR.scriptLoader.load( languageFiles, function()
|
232
|
-
{
|
233
|
-
// Initialize all plugins that have the "beforeInit" and "init" methods defined.
|
234
|
-
var methods = [ 'beforeInit', 'init', 'afterInit' ];
|
235
|
-
for ( var m = 0 ; m < methods.length ; m++ )
|
236
|
-
{
|
237
|
-
for ( var i = 0 ; i < pluginsArray.length ; i++ )
|
238
|
-
{
|
239
|
-
var plugin = pluginsArray[ i ];
|
240
|
-
|
241
|
-
// Uses the first loop to update the language entries also.
|
242
|
-
if ( m === 0 && languageCodes[ i ] && plugin.lang )
|
243
|
-
CKEDITOR.tools.extend( editor.lang, plugin.lang[ languageCodes[ i ] ] );
|
244
|
-
|
245
|
-
// Call the plugin method (beforeInit and init).
|
246
|
-
if ( plugin[ methods[ m ] ] )
|
247
|
-
plugin[ methods[ m ] ]( editor );
|
248
|
-
}
|
249
|
-
}
|
250
|
-
|
251
|
-
// Load the editor skin.
|
252
|
-
editor.fire( 'pluginsLoaded' );
|
253
|
-
loadTheme( editor );
|
254
|
-
});
|
255
|
-
});
|
256
|
-
};
|
257
|
-
|
258
|
-
var loadSkin = function( editor )
|
259
|
-
{
|
260
|
-
CKEDITOR.skins.load( editor, 'editor', function()
|
261
|
-
{
|
262
|
-
loadLang( editor );
|
263
|
-
});
|
264
|
-
};
|
265
|
-
|
266
|
-
var loadTheme = function( editor )
|
267
|
-
{
|
268
|
-
var theme = editor.config.theme;
|
269
|
-
CKEDITOR.themes.load( theme, function()
|
270
|
-
{
|
271
|
-
var editorTheme = editor.theme = CKEDITOR.themes.get( theme );
|
272
|
-
editorTheme.path = CKEDITOR.themes.getPath( theme );
|
273
|
-
editorTheme.build( editor );
|
274
|
-
|
275
|
-
if ( editor.config.autoUpdateElement )
|
276
|
-
attachToForm( editor );
|
277
|
-
});
|
278
|
-
};
|
279
|
-
|
280
|
-
var attachToForm = function( editor )
|
281
|
-
{
|
282
|
-
var element = editor.element;
|
283
|
-
|
284
|
-
// If are replacing a textarea, we must
|
285
|
-
if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE && element.is( 'textarea' ) )
|
286
|
-
{
|
287
|
-
var form = element.$.form && new CKEDITOR.dom.element( element.$.form );
|
288
|
-
if ( form )
|
289
|
-
{
|
290
|
-
function onSubmit()
|
291
|
-
{
|
292
|
-
editor.updateElement();
|
293
|
-
}
|
294
|
-
form.on( 'submit',onSubmit );
|
295
|
-
|
296
|
-
// Setup the submit function because it doesn't fire the
|
297
|
-
// "submit" event.
|
298
|
-
if ( !form.$.submit.nodeName )
|
299
|
-
{
|
300
|
-
form.$.submit = CKEDITOR.tools.override( form.$.submit, function( originalSubmit )
|
301
|
-
{
|
302
|
-
return function()
|
303
|
-
{
|
304
|
-
editor.updateElement();
|
305
|
-
|
306
|
-
// For IE, the DOM submit function is not a
|
307
|
-
// function, so we need thid check.
|
308
|
-
if ( originalSubmit.apply )
|
309
|
-
originalSubmit.apply( this, arguments );
|
310
|
-
else
|
311
|
-
originalSubmit();
|
312
|
-
};
|
313
|
-
});
|
314
|
-
}
|
315
|
-
|
316
|
-
// Remove 'submit' events registered on form element before destroying.(#3988)
|
317
|
-
editor.on( 'destroy', function()
|
318
|
-
{
|
319
|
-
form.removeListener( 'submit', onSubmit );
|
320
|
-
} );
|
321
|
-
}
|
322
|
-
}
|
323
|
-
};
|
324
|
-
|
325
|
-
function updateCommandsMode()
|
326
|
-
{
|
327
|
-
var command,
|
328
|
-
commands = this._.commands,
|
329
|
-
mode = this.mode;
|
330
|
-
|
331
|
-
for ( var name in commands )
|
332
|
-
{
|
333
|
-
command = commands[ name ];
|
334
|
-
command[ command.startDisabled ? 'disable' : command.modes[ mode ] ? 'enable' : 'disable' ]();
|
335
|
-
}
|
336
|
-
}
|
337
|
-
|
338
|
-
/**
|
339
|
-
* Initializes the editor instance. This function is called by the editor
|
340
|
-
* contructor (editor_basic.js).
|
341
|
-
* @private
|
342
|
-
*/
|
343
|
-
CKEDITOR.editor.prototype._init = function()
|
344
|
-
{
|
345
|
-
// Get the properties that have been saved in the editor_base
|
346
|
-
// implementation.
|
347
|
-
var element = CKEDITOR.dom.element.get( this._.element ),
|
348
|
-
instanceConfig = this._.instanceConfig;
|
349
|
-
delete this._.element;
|
350
|
-
delete this._.instanceConfig;
|
351
|
-
|
352
|
-
this._.commands = {};
|
353
|
-
this._.styles = [];
|
354
|
-
|
355
|
-
/**
|
356
|
-
* The DOM element that has been replaced by this editor instance. This
|
357
|
-
* element holds the editor data on load and post.
|
358
|
-
* @name CKEDITOR.editor.prototype.element
|
359
|
-
* @type CKEDITOR.dom.element
|
360
|
-
* @example
|
361
|
-
* var editor = CKEDITOR.instances.editor1;
|
362
|
-
* alert( <b>editor.element</b>.getName() ); "textarea"
|
363
|
-
*/
|
364
|
-
this.element = element;
|
365
|
-
|
366
|
-
/**
|
367
|
-
* The editor instance name. It hay be the replaced element id, name or
|
368
|
-
* a default name using a progressive counter (editor1, editor2, ...).
|
369
|
-
* @name CKEDITOR.editor.prototype.name
|
370
|
-
* @type String
|
371
|
-
* @example
|
372
|
-
* var editor = CKEDITOR.instances.editor1;
|
373
|
-
* alert( <b>editor.name</b> ); "editor1"
|
374
|
-
*/
|
375
|
-
this.name = ( element && ( this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
|
376
|
-
&& ( element.getId() || element.getNameAtt() ) )
|
377
|
-
|| getNewName();
|
378
|
-
|
379
|
-
if ( this.name in CKEDITOR.instances )
|
380
|
-
throw '[CKEDITOR.editor] The instance "' + this.name + '" already exists.';
|
381
|
-
|
382
|
-
/**
|
383
|
-
* The configurations for this editor instance. It inherits all
|
384
|
-
* settings defined in (@link CKEDITOR.config}, combined with settings
|
385
|
-
* loaded from custom configuration files and those defined inline in
|
386
|
-
* the page when creating the editor.
|
387
|
-
* @name CKEDITOR.editor.prototype.config
|
388
|
-
* @type Object
|
389
|
-
* @example
|
390
|
-
* var editor = CKEDITOR.instances.editor1;
|
391
|
-
* alert( <b>editor.config.theme</b> ); "default" e.g.
|
392
|
-
*/
|
393
|
-
this.config = CKEDITOR.tools.prototypedCopy( CKEDITOR.config );
|
394
|
-
|
395
|
-
/**
|
396
|
-
* Namespace containing UI features related to this editor instance.
|
397
|
-
* @name CKEDITOR.editor.prototype.ui
|
398
|
-
* @type CKEDITOR.ui
|
399
|
-
* @example
|
400
|
-
*/
|
401
|
-
this.ui = new CKEDITOR.ui( this );
|
402
|
-
|
403
|
-
/**
|
404
|
-
* Controls the focus state of this editor instance. This property
|
405
|
-
* is rarely used for normal API operations. It is mainly
|
406
|
-
* destinated to developer adding UI elements to the editor interface.
|
407
|
-
* @name CKEDITOR.editor.prototype.focusManager
|
408
|
-
* @type CKEDITOR.focusManager
|
409
|
-
* @example
|
410
|
-
*/
|
411
|
-
this.focusManager = new CKEDITOR.focusManager( this );
|
412
|
-
|
413
|
-
CKEDITOR.fire( 'instanceCreated', null, this );
|
414
|
-
|
415
|
-
this.on( 'mode', updateCommandsMode, null, null, 1 );
|
416
|
-
|
417
|
-
initConfig( this, instanceConfig );
|
418
|
-
};
|
419
|
-
})();
|
420
|
-
|
421
|
-
CKEDITOR.tools.extend( CKEDITOR.editor.prototype,
|
422
|
-
/** @lends CKEDITOR.editor.prototype */
|
423
|
-
{
|
424
|
-
/**
|
425
|
-
* Adds a command definition to the editor instance. Commands added with
|
426
|
-
* this function can be later executed with {@link #execCommand}.
|
427
|
-
* @param {String} commandName The indentifier name of the command.
|
428
|
-
* @param {CKEDITOR.commandDefinition} commandDefinition The command definition.
|
429
|
-
* @example
|
430
|
-
* editorInstance.addCommand( 'sample',
|
431
|
-
* {
|
432
|
-
* exec : function( editor )
|
433
|
-
* {
|
434
|
-
* alert( 'Executing a command for the editor name "' + editor.name + '"!' );
|
435
|
-
* }
|
436
|
-
* });
|
437
|
-
*/
|
438
|
-
addCommand : function( commandName, commandDefinition )
|
439
|
-
{
|
440
|
-
return this._.commands[ commandName ] = new CKEDITOR.command( this, commandDefinition );
|
441
|
-
},
|
442
|
-
|
443
|
-
/**
|
444
|
-
* Add a trunk of css text to the editor which will be applied to the wysiwyg editing document.
|
445
|
-
* Note: This function should be called before editor is loaded to take effect.
|
446
|
-
* @param css {String} CSS text.
|
447
|
-
* @example
|
448
|
-
* editorInstance.addCss( 'body { background-color: grey; }' );
|
449
|
-
*/
|
450
|
-
addCss : function( css )
|
451
|
-
{
|
452
|
-
this._.styles.push( css );
|
453
|
-
},
|
454
|
-
|
455
|
-
/**
|
456
|
-
* Destroys the editor instance, releasing all resources used by it.
|
457
|
-
* If the editor replaced an element, the element will be recovered.
|
458
|
-
* @param {Boolean} [noUpdate] If the instance is replacing a DOM
|
459
|
-
* element, this parameter indicates whether or not to update the
|
460
|
-
* element with the instance contents.
|
461
|
-
* @example
|
462
|
-
* alert( CKEDITOR.instances.editor1 ); e.g "object"
|
463
|
-
* <b>CKEDITOR.instances.editor1.destroy()</b>;
|
464
|
-
* alert( CKEDITOR.instances.editor1 ); "undefined"
|
465
|
-
*/
|
466
|
-
destroy : function( noUpdate )
|
467
|
-
{
|
468
|
-
if ( !noUpdate )
|
469
|
-
this.updateElement();
|
470
|
-
|
471
|
-
if ( this.mode )
|
472
|
-
{
|
473
|
-
// -> currentMode.unload( holderElement );
|
474
|
-
this._.modes[ this.mode ].unload( this.getThemeSpace( 'contents' ) );
|
475
|
-
}
|
476
|
-
|
477
|
-
this.theme.destroy( this );
|
478
|
-
|
479
|
-
var toolbars,
|
480
|
-
index = 0,
|
481
|
-
j,
|
482
|
-
items,
|
483
|
-
instance;
|
484
|
-
|
485
|
-
if ( this.toolbox )
|
486
|
-
{
|
487
|
-
toolbars = this.toolbox.toolbars;
|
488
|
-
for ( ; index < toolbars.length ; index++ )
|
489
|
-
{
|
490
|
-
items = toolbars[ index ].items;
|
491
|
-
for ( j = 0 ; j < items.length ; j++ )
|
492
|
-
{
|
493
|
-
instance = items[ j ];
|
494
|
-
if ( instance.clickFn ) CKEDITOR.tools.removeFunction( instance.clickFn );
|
495
|
-
if ( instance.keyDownFn ) CKEDITOR.tools.removeFunction( instance.keyDownFn );
|
496
|
-
|
497
|
-
if ( instance.index ) CKEDITOR.ui.button._.instances[ instance.index ] = null;
|
498
|
-
}
|
499
|
-
}
|
500
|
-
}
|
501
|
-
|
502
|
-
if ( this.contextMenu )
|
503
|
-
CKEDITOR.tools.removeFunction( this.contextMenu._.functionId );
|
504
|
-
|
505
|
-
if ( this._.filebrowserFn )
|
506
|
-
CKEDITOR.tools.removeFunction( this._.filebrowserFn );
|
507
|
-
|
508
|
-
this.fire( 'destroy' );
|
509
|
-
CKEDITOR.remove( this );
|
510
|
-
CKEDITOR.fire( 'instanceDestroyed', null, this );
|
511
|
-
},
|
512
|
-
|
513
|
-
/**
|
514
|
-
* Executes a command.
|
515
|
-
* @param {String} commandName The indentifier name of the command.
|
516
|
-
* @param {Object} [data] Data to be passed to the command
|
517
|
-
* @returns {Boolean} "true" if the command has been successfuly
|
518
|
-
* executed, otherwise "false".
|
519
|
-
* @example
|
520
|
-
* editorInstance.execCommand( 'Bold' );
|
521
|
-
*/
|
522
|
-
execCommand : function( commandName, data )
|
523
|
-
{
|
524
|
-
var command = this.getCommand( commandName );
|
525
|
-
|
526
|
-
var eventData =
|
527
|
-
{
|
528
|
-
name: commandName,
|
529
|
-
commandData: data,
|
530
|
-
command: command
|
531
|
-
};
|
532
|
-
|
533
|
-
if ( command && command.state != CKEDITOR.TRISTATE_DISABLED )
|
534
|
-
{
|
535
|
-
if ( this.fire( 'beforeCommandExec', eventData ) !== true )
|
536
|
-
{
|
537
|
-
eventData.returnValue = command.exec( eventData.commandData );
|
538
|
-
|
539
|
-
// Fire the 'afterCommandExec' immediately if command is synchronous.
|
540
|
-
if ( !command.async && this.fire( 'afterCommandExec', eventData ) !== true )
|
541
|
-
return eventData.returnValue;
|
542
|
-
}
|
543
|
-
}
|
544
|
-
|
545
|
-
// throw 'Unknown command name "' + commandName + '"';
|
546
|
-
return false;
|
547
|
-
},
|
548
|
-
|
549
|
-
/**
|
550
|
-
* Gets one of the registered commands. Note that, after registering a
|
551
|
-
* command definition with addCommand, it is transformed internally
|
552
|
-
* into an instance of {@link CKEDITOR.command}, which will be then
|
553
|
-
* returned by this function.
|
554
|
-
* @param {String} commandName The name of the command to be returned.
|
555
|
-
* This is the same used to register the command with addCommand.
|
556
|
-
* @returns {CKEDITOR.command} The command object identified by the
|
557
|
-
* provided name.
|
558
|
-
*/
|
559
|
-
getCommand : function( commandName )
|
560
|
-
{
|
561
|
-
return this._.commands[ commandName ];
|
562
|
-
},
|
563
|
-
|
564
|
-
/**
|
565
|
-
* Gets the editor data. The data will be in raw format. It is the same
|
566
|
-
* data that is posted by the editor.
|
567
|
-
* @type String
|
568
|
-
* @returns (String) The editor data.
|
569
|
-
* @example
|
570
|
-
* if ( CKEDITOR.instances.editor1.<b>getData()</b> == '' )
|
571
|
-
* alert( 'There is no data available' );
|
572
|
-
*/
|
573
|
-
getData : function()
|
574
|
-
{
|
575
|
-
this.fire( 'beforeGetData' );
|
576
|
-
|
577
|
-
var eventData = this._.data;
|
578
|
-
|
579
|
-
if ( typeof eventData != 'string' )
|
580
|
-
{
|
581
|
-
var element = this.element;
|
582
|
-
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
|
583
|
-
eventData = element.is( 'textarea' ) ? element.getValue() : element.getHtml();
|
584
|
-
else
|
585
|
-
eventData = '';
|
586
|
-
}
|
587
|
-
|
588
|
-
eventData = { dataValue : eventData };
|
589
|
-
|
590
|
-
// Fire "getData" so data manipulation may happen.
|
591
|
-
this.fire( 'getData', eventData );
|
592
|
-
|
593
|
-
return eventData.dataValue;
|
594
|
-
},
|
595
|
-
|
596
|
-
getSnapshot : function()
|
597
|
-
{
|
598
|
-
var data = this.fire( 'getSnapshot' );
|
599
|
-
|
600
|
-
if ( typeof data != 'string' )
|
601
|
-
{
|
602
|
-
var element = this.element;
|
603
|
-
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
|
604
|
-
data = element.is( 'textarea' ) ? element.getValue() : element.getHtml();
|
605
|
-
}
|
606
|
-
|
607
|
-
return data;
|
608
|
-
},
|
609
|
-
|
610
|
-
loadSnapshot : function( snapshot )
|
611
|
-
{
|
612
|
-
this.fire( 'loadSnapshot', snapshot );
|
613
|
-
},
|
614
|
-
|
615
|
-
/**
|
616
|
-
* Sets the editor data. The data must be provided in raw format (HTML).<br />
|
617
|
-
* <br />
|
618
|
-
* Note that this menthod is asynchronous. The "callback" parameter must
|
619
|
-
* be used if interaction with the editor is needed after setting the data.
|
620
|
-
* @param {String} data HTML code to replace the curent content in the
|
621
|
-
* editor.
|
622
|
-
* @param {Function} callback Function to be called after the setData
|
623
|
-
* is completed.
|
624
|
-
* @example
|
625
|
-
* CKEDITOR.instances.editor1.<b>setData</b>( '<p>This is the editor data.</p>' );
|
626
|
-
* @example
|
627
|
-
* CKEDITOR.instances.editor1.<b>setData</b>( '<p>Some other editor data.</p>', function()
|
628
|
-
* {
|
629
|
-
* this.checkDirty(); // true
|
630
|
-
* });
|
631
|
-
*/
|
632
|
-
setData : function( data , callback )
|
633
|
-
{
|
634
|
-
if( callback )
|
635
|
-
{
|
636
|
-
this.on( 'dataReady', function( evt )
|
637
|
-
{
|
638
|
-
evt.removeListener();
|
639
|
-
callback.call( evt.editor );
|
640
|
-
} );
|
641
|
-
}
|
642
|
-
|
643
|
-
// Fire "setData" so data manipulation may happen.
|
644
|
-
var eventData = { dataValue : data };
|
645
|
-
this.fire( 'setData', eventData );
|
646
|
-
|
647
|
-
this._.data = eventData.dataValue;
|
648
|
-
|
649
|
-
this.fire( 'afterSetData', eventData );
|
650
|
-
},
|
651
|
-
|
652
|
-
/**
|
653
|
-
* Inserts HTML into the currently selected position in the editor.
|
654
|
-
* @param {String} data HTML code to be inserted into the editor.
|
655
|
-
* @example
|
656
|
-
* CKEDITOR.instances.editor1.<b>insertHtml( '<p>This is a new paragraph.</p>' )</b>;
|
657
|
-
*/
|
658
|
-
insertHtml : function( data )
|
659
|
-
{
|
660
|
-
this.fire( 'insertHtml', data );
|
661
|
-
},
|
662
|
-
|
663
|
-
/**
|
664
|
-
* Inserts an element into the currently selected position in the
|
665
|
-
* editor.
|
666
|
-
* @param {CKEDITOR.dom.element} element The element to be inserted
|
667
|
-
* into the editor.
|
668
|
-
* @example
|
669
|
-
* var element = CKEDITOR.dom.element.createFromHtml( '<img src="hello.png" border="0" title="Hello" />' );
|
670
|
-
* CKEDITOR.instances.editor1.<b>insertElement( element )</b>;
|
671
|
-
*/
|
672
|
-
insertElement : function( element )
|
673
|
-
{
|
674
|
-
this.fire( 'insertElement', element );
|
675
|
-
},
|
676
|
-
|
677
|
-
checkDirty : function()
|
678
|
-
{
|
679
|
-
return ( this.mayBeDirty && this._.previousValue !== this.getSnapshot() );
|
680
|
-
},
|
681
|
-
|
682
|
-
resetDirty : function()
|
683
|
-
{
|
684
|
-
if ( this.mayBeDirty )
|
685
|
-
this._.previousValue = this.getSnapshot();
|
686
|
-
},
|
687
|
-
|
688
|
-
/**
|
689
|
-
* Updates the <textarea> element that has been replaced by the editor with
|
690
|
-
* the current data available in the editor.
|
691
|
-
* @example
|
692
|
-
* CKEDITOR.instances.editor1.updateElement();
|
693
|
-
* alert( document.getElementById( 'editor1' ).value ); // The current editor data.
|
694
|
-
*/
|
695
|
-
updateElement : function()
|
696
|
-
{
|
697
|
-
var element = this.element;
|
698
|
-
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
|
699
|
-
{
|
700
|
-
var data = this.getData();
|
701
|
-
|
702
|
-
if ( this.config.htmlEncodeOutput )
|
703
|
-
data = CKEDITOR.tools.htmlEncode( data );
|
704
|
-
|
705
|
-
if ( element.is( 'textarea' ) )
|
706
|
-
element.setValue( data );
|
707
|
-
else
|
708
|
-
element.setHtml( data );
|
709
|
-
}
|
710
|
-
}
|
711
|
-
});
|
712
|
-
|
713
|
-
CKEDITOR.on( 'loaded', function()
|
714
|
-
{
|
715
|
-
// Run the full initialization for pending editors.
|
716
|
-
var pending = CKEDITOR.editor._pending;
|
717
|
-
if ( pending )
|
718
|
-
{
|
719
|
-
delete CKEDITOR.editor._pending;
|
720
|
-
|
721
|
-
for ( var i = 0 ; i < pending.length ; i++ )
|
722
|
-
pending[ i ]._init();
|
723
|
-
}
|
724
|
-
});
|
725
|
-
|
726
|
-
/**
|
727
|
-
* Whether escape HTML when editor update original input element.
|
728
|
-
* @name CKEDITOR.config.htmlEncodeOutput
|
729
|
-
* @since 3.1
|
730
|
-
* @type Boolean
|
731
|
-
* @default false
|
732
|
-
* @example
|
733
|
-
* config.htmlEncodeOutput = true;
|
734
|
-
*/
|
735
|
-
|
736
|
-
/**
|
737
|
-
* Fired when a CKEDITOR instance is created, but still before initializing it.
|
738
|
-
* To interact with a fully initialized instance, use the
|
739
|
-
* {@link CKEDITOR#instanceReady} event instead.
|
740
|
-
* @name CKEDITOR#instanceCreated
|
741
|
-
* @event
|
742
|
-
* @param {CKEDITOR.editor} editor The editor instance that has been created.
|
743
|
-
*/
|
744
|
-
|
745
|
-
/**
|
746
|
-
* Fired when a CKEDITOR instance is destroyed.
|
747
|
-
* @name CKEDITOR#instanceDestroyed
|
748
|
-
* @event
|
749
|
-
* @param {CKEDITOR.editor} editor The editor instance that has been destroyed.
|
750
|
-
*/
|
751
|
-
|
752
|
-
/**
|
753
|
-
* Fired when all plugins are loaded and initialized into the editor instance.
|
754
|
-
* @name CKEDITOR#pluginsLoaded
|
755
|
-
* @event
|
756
|
-
*/
|