radiant-ck_editor_filter-extension 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +7 -1
- data/VERSION +1 -1
- data/ck_editor_filter_extension.rb +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/CHANGES.html +1130 -373
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/INSTALL.html +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/LICENSE.html +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/application.xml +32 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/run.bat +9 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/run.sh +8 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/sample.html +45 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ajax.html +23 -25
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/api.html +64 -24
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/api_dialog.html +36 -19
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/api_dialog/my_dialog.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/advanced.asp +105 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/events.asp +136 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/index.html +103 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/replace.asp +72 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/replaceall.asp +77 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/sample_posteddata.asp +46 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/standalone.asp +72 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/_posteddata.php +59 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/output_for_flash.fla +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/output_for_flash.swf +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/output_xhtml.css +204 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/parsesample.css +70 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/swfobject.js +18 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/autogrow.html +103 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/bbcode.html +136 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/devtools.html +94 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/divreplace.html +27 -10
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/enterkey.html +39 -12
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/fullpage.html +33 -13
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/index.html +88 -25
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/jqueryadapter.html +34 -8
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/output_for_flash.html +275 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/output_html.html +285 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/output_xhtml.html +181 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/advanced.php +56 -29
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/events.php +58 -35
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/index.html +47 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/replace.php +48 -24
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/replaceall.php +50 -30
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/standalone.php +52 -33
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/placeholder.html +81 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/readonly.html +91 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/replacebyclass.html +22 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/replacebycode.html +25 -8
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sample.css +85 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sample.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sample_posteddata.php +21 -59
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sharedspaces.html +32 -10
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/skins.html +38 -11
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/stylesheetparser.html +93 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/tableresize.html +115 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ui_color.html +49 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ui_languages.html +53 -23
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/adapters/jquery.js +17 -8
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/_bootstrap.js +21 -18
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor.js +42 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor_base.js +66 -29
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor_basic.js +12 -15
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/command.js +138 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/commanddefinition.js +59 -16
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/config.js +142 -18
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dataprocessor.js +6 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom.js +2 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/comment.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/document.js +29 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/documentfragment.js +3 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/domobject.js +59 -11
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/element.js +249 -27
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/elementpath.js +18 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/event.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/node.js +84 -56
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/nodelist.js +4 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/range.js +345 -48
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/rangelist.js +213 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/text.js +6 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/walker.js +40 -29
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/window.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dtd.js +15 -11
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/editor.js +336 -15
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/editor_basic.js +19 -12
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/env.js +80 -17
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/event.js +12 -6
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/eventInfo.js +5 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/focusmanager.js +27 -12
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser.js +17 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/basicwriter.js +3 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/cdata.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/comment.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/element.js +14 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/filter.js +34 -8
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/fragment.js +105 -108
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/text.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/lang.js +12 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/loader.js +7 -9
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/plugindefinition.js +18 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/plugins.js +21 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/resourcemanager.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/scriptloader.js +7 -25
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/skins.js +5 -25
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/themes.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/tools.js +61 -12
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ui.js +13 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/_languages.js +2 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/_translationstatus.txt +58 -57
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/af.js +521 -410
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ar.js +160 -49
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bg.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bn.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bs.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ca.js +260 -149
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/cs.js +233 -122
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/cy.js +159 -48
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/da.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/de.js +217 -106
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/el.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-au.js +166 -55
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-ca.js +166 -55
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-gb.js +277 -166
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en.js +166 -55
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/eo.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/es.js +182 -71
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/et.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/eu.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fa.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fi.js +178 -67
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fo.js +339 -228
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fr-ca.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fr.js +261 -150
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/gl.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/gu.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/he.js +179 -68
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hi.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hr.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hu.js +341 -230
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/is.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/it.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ja.js +195 -84
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ka.js +810 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/km.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ko.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/lt.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/lv.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/mn.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ms.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/nb.js +286 -175
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/nl.js +178 -67
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/no.js +286 -175
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pl.js +279 -168
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pt-br.js +318 -208
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pt.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ro.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ru.js +159 -48
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sk.js +192 -81
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sl.js +161 -50
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sr-latn.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sr.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sv.js +357 -247
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/th.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/tr.js +345 -235
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/uk.js +387 -276
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/vi.js +336 -225
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/zh-cn.js +271 -160
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/zh.js +162 -51
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +16 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/lang/en.js +3 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/lang/he.js +216 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/plugin.js +4 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/about/dialogs/about.js +4 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/about/plugin.js +2 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/adobeair/plugin.js +228 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/ajax/plugin.js +152 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/autogrow/plugin.js +88 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/basicstyles/plugin.js +27 -19
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/bbcode/plugin.js +924 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/bidi/plugin.js +331 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/blockquote/plugin.js +8 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/button/plugin.js +70 -55
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/clipboard/dialogs/paste.js +115 -78
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/clipboard/plugin.js +133 -69
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colorbutton/plugin.js +91 -23
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +192 -43
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colordialog/plugin.js +12 -10
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/contextmenu/plugin.js +124 -221
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/devtools/lang/en.js +16 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/devtools/plugin.js +173 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialog/dialogDefinition.js +840 -56
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialog/plugin.js +652 -301
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialogadvtab/plugin.js +205 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialogui/plugin.js +179 -50
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/div/dialogs/div.js +40 -40
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/div/plugin.js +4 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/docprops/dialogs/docprops.js +686 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/docprops/plugin.js +22 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/domiterator/plugin.js +59 -53
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/editingblock/plugin.js +62 -17
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/elementspath/plugin.js +137 -108
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/enterkey/plugin.js +117 -47
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/entities/plugin.js +95 -45
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/fakeobjects/plugin.js +22 -16
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/filebrowser/plugin.js +75 -30
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/find/dialogs/find.js +111 -69
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/find/plugin.js +2 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/flash/dialogs/flash.js +28 -20
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/flash/plugin.js +14 -11
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/floatpanel/plugin.js +50 -21
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/font/plugin.js +3 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/format/plugin.js +17 -13
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/button.js +38 -55
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/checkbox.js +21 -11
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/form.js +6 -6
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +26 -17
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/radio.js +6 -6
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/select.js +13 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/textarea.js +4 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/textfield.js +11 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/images/hiddenfield.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/plugin.js +112 -41
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/horizontalrule/plugin.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/htmldataprocessor/plugin.js +200 -63
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/htmlwriter/plugin.js +26 -21
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframe/dialogs/iframe.js +257 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframe/images/placeholder.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframe/plugin.js +106 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframedialog/plugin.js +59 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/image/dialogs/image.js +243 -218
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/image/plugin.js +19 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/indent/plugin.js +335 -223
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/justify/plugin.js +115 -30
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/keystrokes/plugin.js +3 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/dialogs/anchor.js +85 -40
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/dialogs/link.js +163 -184
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/plugin.js +180 -32
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/list/plugin.js +165 -81
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/listblock/plugin.js +11 -6
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +204 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/liststyle/plugin.js +66 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/maximize/plugin.js +109 -40
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/menu/plugin.js +166 -67
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/menubutton/plugin.js +12 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/newpage/plugin.js +3 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pagebreak/plugin.js +95 -29
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/panel/plugin.js +43 -20
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/panelbutton/plugin.js +10 -11
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastefromword/filter/default.js +316 -119
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastefromword/plugin.js +32 -11
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +19 -29
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastetext/plugin.js +15 -79
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js +71 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/lang/en.js +16 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/lang/he.js +16 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/placeholder.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/plugin.js +171 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/popup/plugin.js +9 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/preview/plugin.js +3 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/print/plugin.js +2 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/removeformat/plugin.js +89 -36
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/resize/plugin.js +71 -18
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/richcombo/plugin.js +40 -29
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/save/plugin.js +2 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/scayt/dialogs/options.js +114 -110
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/scayt/plugin.js +531 -170
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/selection/plugin.js +791 -331
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/plugin.js +14 -8
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showborders/plugin.js +63 -26
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/dialogs/smiley.js +31 -22
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/plugin.js +15 -6
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/sourcearea/plugin.js +18 -14
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +36 -59
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/specialchar/lang/en.js +89 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/specialchar/plugin.js +45 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/styles/plugin.js +632 -212
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/{stylescombo → styles}/styles/default.js +5 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/stylescombo/plugin.js +77 -140
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/stylesheetparser/plugin.js +143 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tab/plugin.js +109 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/table/dialogs/table.js +106 -23
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/table/plugin.js +11 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tableresize/plugin.js +450 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +66 -64
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tabletools/plugin.js +348 -179
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/dialogs/templates.js +41 -36
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/plugin.js +3 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/templates/default.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/toolbar/plugin.js +193 -122
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +6 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/lang/en.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/lang/he.js +15 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/plugin.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/undo/plugin.js +73 -12
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/wsc.css +1 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/wsc.js +20 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/plugin.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wysiwygarea/plugin.js +751 -251
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/xml/plugin.js +170 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/dialog.css +116 -18
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/editor.css +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/elementspath.css +2 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/icons.css +42 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/icons_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/mainui.css +25 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/menu.css +36 -15
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/panel.css +18 -17
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/presets.css +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/reset.css +7 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/richcombo.css +27 -10
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/skin.js +4 -36
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/templates.css +16 -12
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/toolbar.css +69 -83
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/dialog.css +111 -13
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/editor.css +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/elementspath.css +2 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/icons.css +40 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/icons_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/mainui.css +33 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/menu.css +37 -15
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/panel.css +23 -22
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/presets.css +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/reset.css +7 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/richcombo.css +40 -20
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/skin.js +10 -17
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/templates.css +16 -10
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/toolbar.css +79 -32
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/dialog.css +112 -13
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/editor.css +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/elementspath.css +2 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/icons.css +40 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/icons_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/mainui.css +25 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/menu.css +38 -16
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/panel.css +22 -21
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/presets.css +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/reset.css +7 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/richcombo.css +36 -23
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/skin.js +10 -17
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/templates.css +16 -10
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/toolbar.css +67 -27
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/themes/default/theme.js +106 -46
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/adapters/jquery.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.asp +955 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.js +141 -117
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.pack +13 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.php +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_basic.js +4 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_basic_source.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_php4.php +27 -54
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_php5.php +26 -53
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_source.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/config.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/contents.css +4 -16
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/_languages.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/_translationstatus.txt +58 -57
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/af.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ar.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bg.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bn.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bs.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ca.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/cs.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/cy.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/da.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/de.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/el.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-au.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-ca.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-gb.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/eo.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/es.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/et.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/eu.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fa.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fi.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fo.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fr-ca.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fr.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/gl.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/gu.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/he.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hi.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hr.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hu.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/is.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/it.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ja.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ka.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/km.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ko.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/lt.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/lv.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/mn.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ms.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/nb.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/nl.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/no.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pl.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pt-br.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pt.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ro.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ru.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sk.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sl.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sr-latn.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sr.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sv.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/th.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/tr.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/uk.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/vi.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/zh-cn.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/zh.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/lang/en.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/lang/he.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/about/dialogs/about.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/adobeair/plugin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/ajax/plugin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/autogrow/plugin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/bbcode/plugin.js +9 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/clipboard/dialogs/paste.js +3 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/colordialog/dialogs/colordialog.js +3 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/devtools/lang/en.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/devtools/plugin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/div/dialogs/div.js +3 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/docprops/dialogs/docprops.js +10 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/docprops/plugin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/find/dialogs/find.js +5 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/flash/dialogs/flash.js +5 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/button.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/checkbox.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/form.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/hiddenfield.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/radio.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/select.js +4 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/textarea.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/textfield.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/iframe/dialogs/iframe.js +7 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/iframedialog/plugin.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/image/dialogs/image.js +9 -9
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/dialogs/anchor.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/dialogs/link.js +7 -7
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/liststyle/dialogs/liststyle.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/pastefromword/filter/default.js +7 -6
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/pastetext/dialogs/pastetext.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/dialogs/placeholder.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/lang/en.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/lang/he.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/placeholder.gif +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/plugin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/radiantpreview/images/radiant-preview.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/scayt/dialogs/options.js +4 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/scayt/dialogs/toolbar.css +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/dialogs/smiley.js +3 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/specialchar.js +3 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/lang/en.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/{stylescombo → styles}/styles/default.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/stylesheetparser/plugin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/table/dialogs/table.js +5 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/tableresize/plugin.js +7 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/tabletools/dialogs/tableCell.js +4 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/dialogs/templates.js +3 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/templates/default.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/dialogs/uicolor.js +3 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/lang/en.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/lang/he.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/plugin.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/yui.css +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/yui.js +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/ciframe.html +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +1 -1
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/wsc.css +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/wsc.js +3 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/xml/plugin.js +6 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/dialog.css +5 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/editor.css +9 -8
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/icons_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/skin.js +3 -3
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/templates.css +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/dialog.css +5 -5
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/editor.css +10 -9
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/icons_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/skin.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/templates.css +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/dialog.css +5 -4
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/editor.css +9 -8
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/icons.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/icons_rtl.png +0 -0
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/skin.js +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/templates.css +2 -2
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/themes/default/theme.js +4 -4
- data/public/javascripts/extensions/ck_editor_filter/radiant.ckeditor.js +21 -12
- metadata +94 -9
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ajax.js +0 -143
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/imagecacher.js +0 -58
- data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/xml.js +0 -165
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
4
|
*/
|
5
5
|
|
@@ -27,13 +27,86 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
27
27
|
}
|
28
28
|
};
|
29
29
|
|
30
|
+
function selectNextCellCommand( backward )
|
31
|
+
{
|
32
|
+
return {
|
33
|
+
editorFocus : false,
|
34
|
+
canUndo : false,
|
35
|
+
modes : { wysiwyg : 1 },
|
36
|
+
exec : function( editor )
|
37
|
+
{
|
38
|
+
if ( editor.focusManager.hasFocus )
|
39
|
+
{
|
40
|
+
var sel = editor.getSelection(),
|
41
|
+
ancestor = sel.getCommonAncestor(),
|
42
|
+
cell;
|
43
|
+
|
44
|
+
if ( ( cell = ( ancestor.getAscendant( 'td', true ) || ancestor.getAscendant( 'th', true ) ) ) )
|
45
|
+
{
|
46
|
+
var resultRange = new CKEDITOR.dom.range( editor.document ),
|
47
|
+
next = CKEDITOR.tools.tryThese( function()
|
48
|
+
{
|
49
|
+
var row = cell.getParent(),
|
50
|
+
next = row.$.cells[ cell.$.cellIndex + ( backward ? - 1 : 1 ) ];
|
51
|
+
|
52
|
+
// Invalid any empty value.
|
53
|
+
next.parentNode.parentNode;
|
54
|
+
return next;
|
55
|
+
},
|
56
|
+
function()
|
57
|
+
{
|
58
|
+
var row = cell.getParent(),
|
59
|
+
table = row.getAscendant( 'table' ),
|
60
|
+
nextRow = table.$.rows[ row.$.rowIndex + ( backward ? - 1 : 1 ) ];
|
61
|
+
|
62
|
+
return nextRow.cells[ backward? nextRow.cells.length -1 : 0 ];
|
63
|
+
});
|
64
|
+
|
65
|
+
// Clone one more row at the end of table and select the first newly established cell.
|
66
|
+
if ( ! ( next || backward ) )
|
67
|
+
{
|
68
|
+
var table = cell.getAscendant( 'table' ).$,
|
69
|
+
cells = cell.getParent().$.cells;
|
70
|
+
|
71
|
+
var newRow = new CKEDITOR.dom.element( table.insertRow( -1 ), editor.document );
|
72
|
+
|
73
|
+
for ( var i = 0, count = cells.length ; i < count; i++ )
|
74
|
+
{
|
75
|
+
var newCell = newRow.append( new CKEDITOR.dom.element(
|
76
|
+
cells[ i ], editor.document ).clone( false, false ) );
|
77
|
+
!CKEDITOR.env.ie && newCell.appendBogus();
|
78
|
+
}
|
79
|
+
|
80
|
+
resultRange.moveToElementEditStart( newRow );
|
81
|
+
}
|
82
|
+
else if ( next )
|
83
|
+
{
|
84
|
+
next = new CKEDITOR.dom.element( next );
|
85
|
+
resultRange.moveToElementEditStart( next );
|
86
|
+
// Avoid selecting empty block makes the cursor blind.
|
87
|
+
if ( !( resultRange.checkStartOfBlock() && resultRange.checkEndOfBlock() ) )
|
88
|
+
resultRange.selectNodeContents( next );
|
89
|
+
}
|
90
|
+
else
|
91
|
+
return true;
|
92
|
+
|
93
|
+
resultRange.select( true );
|
94
|
+
return true;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
return false;
|
98
|
+
}
|
99
|
+
};
|
100
|
+
}
|
101
|
+
|
30
102
|
CKEDITOR.plugins.add( 'tab',
|
31
103
|
{
|
32
104
|
requires : [ 'keystrokes' ],
|
33
105
|
|
34
106
|
init : function( editor )
|
35
107
|
{
|
36
|
-
var
|
108
|
+
var tabTools = editor.config.enableTabKeyTools !== false,
|
109
|
+
tabSpaces = editor.config.tabSpaces || 0,
|
37
110
|
tabText = '';
|
38
111
|
|
39
112
|
while ( tabSpaces-- )
|
@@ -51,7 +124,17 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
51
124
|
});
|
52
125
|
}
|
53
126
|
|
54
|
-
if (
|
127
|
+
if ( tabTools )
|
128
|
+
{
|
129
|
+
editor.on( 'key', function( ev )
|
130
|
+
{
|
131
|
+
if ( ev.data.keyCode == 9 && editor.execCommand( 'selectNextCell' ) || // TAB
|
132
|
+
ev.data.keyCode == ( CKEDITOR.SHIFT + 9 ) && editor.execCommand( 'selectPreviousCell' ) ) // SHIFT+TAB
|
133
|
+
ev.cancel();
|
134
|
+
});
|
135
|
+
}
|
136
|
+
|
137
|
+
if ( CKEDITOR.env.webkit || CKEDITOR.env.gecko )
|
55
138
|
{
|
56
139
|
editor.on( 'key', function( ev )
|
57
140
|
{
|
@@ -73,6 +156,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
73
156
|
|
74
157
|
editor.addCommand( 'blur', CKEDITOR.tools.extend( blurCommand, meta ) );
|
75
158
|
editor.addCommand( 'blurBack', CKEDITOR.tools.extend( blurBackCommand, meta ) );
|
159
|
+
editor.addCommand( 'selectNextCell', selectNextCellCommand() );
|
160
|
+
editor.addCommand( 'selectPreviousCell', selectNextCellCommand( true ) );
|
76
161
|
}
|
77
162
|
});
|
78
163
|
})();
|
@@ -259,3 +344,24 @@ CKEDITOR.dom.element.prototype.focusPrevious = function( ignoreChildren, indexTo
|
|
259
344
|
* @example
|
260
345
|
* config.tabSpaces = 4;
|
261
346
|
*/
|
347
|
+
|
348
|
+
/**
|
349
|
+
* Allow context-sensitive tab key behaviors, including the following scenarios:
|
350
|
+
* <h5>When selection is anchored inside <b>table cells</b>:</h5>
|
351
|
+
* <ul>
|
352
|
+
* <li>If TAB is pressed, select the contents of the "next" cell. If in the last cell in the table, add a new row to it and focus its first cell.</li>
|
353
|
+
* <li>If SHIFT+TAB is pressed, select the contents of the "previous" cell. Do nothing when it's in the first cell.</li>
|
354
|
+
* </ul>
|
355
|
+
* @name CKEDITOR.config.enableTabKeyTools
|
356
|
+
* @type Boolean
|
357
|
+
* @default true
|
358
|
+
* @example
|
359
|
+
* config.enableTabKeyTools = false;
|
360
|
+
*/
|
361
|
+
|
362
|
+
// If the TAB key is not supposed to be enabled for navigation, the following
|
363
|
+
// settings could be used alternatively:
|
364
|
+
// config.keystrokes.push(
|
365
|
+
// [ CKEDITOR.ALT + 38 /*Arrow Up*/, 'selectPreviousCell' ],
|
366
|
+
// [ CKEDITOR.ALT + 40 /*Arrow Down*/, 'selectNextCell' ]
|
367
|
+
// );
|
data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/table/dialogs/table.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
4
|
*/
|
5
5
|
|
@@ -18,12 +18,53 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
18
18
|
|
19
19
|
function tableDialog( editor, command )
|
20
20
|
{
|
21
|
-
var makeElement = function( name )
|
21
|
+
var makeElement = function( name )
|
22
|
+
{
|
23
|
+
return new CKEDITOR.dom.element( name, editor.document );
|
24
|
+
};
|
25
|
+
|
26
|
+
var dialogadvtab = editor.plugins.dialogadvtab;
|
22
27
|
|
23
28
|
return {
|
24
29
|
title : editor.lang.table.title,
|
25
30
|
minWidth : 310,
|
26
31
|
minHeight : CKEDITOR.env.ie ? 310 : 280,
|
32
|
+
|
33
|
+
onLoad : function()
|
34
|
+
{
|
35
|
+
var dialog = this;
|
36
|
+
|
37
|
+
var styles = dialog.getContentElement( 'advanced', 'advStyles' );
|
38
|
+
|
39
|
+
if ( styles )
|
40
|
+
{
|
41
|
+
styles.on( 'change', function( evt )
|
42
|
+
{
|
43
|
+
// Synchronize width value.
|
44
|
+
var width = this.getStyle( 'width', '' ),
|
45
|
+
txtWidth = dialog.getContentElement( 'info', 'txtWidth' ),
|
46
|
+
cmbWidthType = dialog.getContentElement( 'info', 'cmbWidthType' ),
|
47
|
+
isPx = 1;
|
48
|
+
|
49
|
+
if ( width )
|
50
|
+
{
|
51
|
+
isPx = ( width.length < 3 || width.substr( width.length - 1 ) != '%' );
|
52
|
+
width = parseInt( width, 10 );
|
53
|
+
}
|
54
|
+
|
55
|
+
txtWidth && txtWidth.setValue( width, true );
|
56
|
+
cmbWidthType && cmbWidthType.setValue( isPx ? 'pixels' : 'percents', true );
|
57
|
+
|
58
|
+
// Synchronize height value.
|
59
|
+
var height = this.getStyle( 'height', '' ),
|
60
|
+
txtHeight = dialog.getContentElement( 'info', 'txtHeight' );
|
61
|
+
|
62
|
+
height && ( height = parseInt( height, 10 ) );
|
63
|
+
txtHeight && txtHeight.setValue( height, true );
|
64
|
+
});
|
65
|
+
}
|
66
|
+
},
|
67
|
+
|
27
68
|
onShow : function()
|
28
69
|
{
|
29
70
|
// Detect if there's a selected table.
|
@@ -33,16 +74,20 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
33
74
|
|
34
75
|
var rowsInput = this.getContentElement( 'info', 'txtRows' ),
|
35
76
|
colsInput = this.getContentElement( 'info', 'txtCols' ),
|
36
|
-
widthInput = this.getContentElement( 'info', 'txtWidth' )
|
77
|
+
widthInput = this.getContentElement( 'info', 'txtWidth' ),
|
78
|
+
heightInput = this.getContentElement( 'info', 'txtHeight' );
|
79
|
+
|
37
80
|
if ( command == 'tableProperties' )
|
38
81
|
{
|
39
|
-
if ( ( selectedTable =
|
40
|
-
|
41
|
-
if ( selectedTable.getName() != 'table' )
|
42
|
-
selectedTable = null;
|
43
|
-
}
|
82
|
+
if ( ( selectedTable = selection.getSelectedElement() ) )
|
83
|
+
selectedTable = selectedTable.getAscendant( 'table', true );
|
44
84
|
else if ( ranges.length > 0 )
|
45
85
|
{
|
86
|
+
// Webkit could report the following range on cell selection (#4948):
|
87
|
+
// <table><tr><td>[ </td></tr></table>]
|
88
|
+
if ( CKEDITOR.env.webkit )
|
89
|
+
ranges[ 0 ].shrink( CKEDITOR.NODE_ELEMENT );
|
90
|
+
|
46
91
|
var rangeRoot = ranges[0].getCommonAncestor( true );
|
47
92
|
selectedTable = rangeRoot.getAscendant( 'table', true );
|
48
93
|
}
|
@@ -51,27 +96,30 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
51
96
|
this._.selectedElement = selectedTable;
|
52
97
|
}
|
53
98
|
|
54
|
-
// Enable
|
99
|
+
// Enable or disable the row, cols, width fields.
|
55
100
|
if ( selectedTable )
|
56
101
|
{
|
57
102
|
this.setupContent( selectedTable );
|
58
103
|
rowsInput && rowsInput.disable();
|
59
104
|
colsInput && colsInput.disable();
|
60
|
-
widthInput && widthInput.select();
|
61
105
|
}
|
62
106
|
else
|
63
107
|
{
|
64
108
|
rowsInput && rowsInput.enable();
|
65
109
|
colsInput && colsInput.enable();
|
66
|
-
rowsInput && rowsInput.select();
|
67
110
|
}
|
111
|
+
|
112
|
+
// Call the onChange method for the widht and height fields so
|
113
|
+
// they get reflected into the Advanced tab.
|
114
|
+
widthInput && widthInput.onChange();
|
115
|
+
heightInput && heightInput.onChange();
|
68
116
|
},
|
69
117
|
onOk : function()
|
70
118
|
{
|
71
119
|
if ( this._.selectedElement )
|
72
120
|
{
|
73
121
|
var selection = editor.getSelection(),
|
74
|
-
bms =
|
122
|
+
bms = selection.createBookmarks();
|
75
123
|
}
|
76
124
|
|
77
125
|
var table = this._.selectedElement || makeElement( 'table' ),
|
@@ -118,7 +166,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
118
166
|
for ( i = 0 ; i < theRow.getChildCount() ; i++ )
|
119
167
|
{
|
120
168
|
var th = theRow.getChild( i );
|
121
|
-
|
169
|
+
// Skip bookmark nodes. (#6155)
|
170
|
+
if ( th.type == CKEDITOR.NODE_ELEMENT && !th.data( 'cke-bookmark' ) )
|
122
171
|
{
|
123
172
|
th.renameNode( 'th' );
|
124
173
|
th.setAttribute( 'scope', 'col' );
|
@@ -227,6 +276,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
227
276
|
id : 'txtRows',
|
228
277
|
'default' : 3,
|
229
278
|
label : editor.lang.table.rows,
|
279
|
+
required : true,
|
230
280
|
style : 'width:5em',
|
231
281
|
validate : function()
|
232
282
|
{
|
@@ -252,6 +302,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
252
302
|
id : 'txtCols',
|
253
303
|
'default' : 2,
|
254
304
|
label : editor.lang.table.columns,
|
305
|
+
required : true,
|
255
306
|
style : 'width:5em',
|
256
307
|
validate : function()
|
257
308
|
{
|
@@ -336,13 +387,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
336
387
|
id : 'cmbAlign',
|
337
388
|
type : 'select',
|
338
389
|
'default' : '',
|
339
|
-
label : editor.lang.
|
390
|
+
label : editor.lang.common.align,
|
340
391
|
items :
|
341
392
|
[
|
342
393
|
[ editor.lang.common.notSet , ''],
|
343
|
-
[ editor.lang.
|
344
|
-
[ editor.lang.
|
345
|
-
[ editor.lang.
|
394
|
+
[ editor.lang.common.alignLeft , 'left'],
|
395
|
+
[ editor.lang.common.alignCenter , 'center'],
|
396
|
+
[ editor.lang.common.alignRight , 'right']
|
346
397
|
],
|
347
398
|
setup : function( selectedTable )
|
348
399
|
{
|
@@ -372,8 +423,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
372
423
|
type : 'text',
|
373
424
|
id : 'txtWidth',
|
374
425
|
style : 'width:5em',
|
375
|
-
label : editor.lang.
|
376
|
-
'default' :
|
426
|
+
label : editor.lang.common.width,
|
427
|
+
'default' : 500,
|
377
428
|
validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidWidth ),
|
378
429
|
|
379
430
|
// Extra labelling of width unit type.
|
@@ -387,6 +438,21 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
387
438
|
inputElement.setAttribute( 'aria-labelledby', [ ariaLabelledByAttr, labelElement.$.id ].join( ' ' ) );
|
388
439
|
},
|
389
440
|
|
441
|
+
onChange : function()
|
442
|
+
{
|
443
|
+
var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' );
|
444
|
+
|
445
|
+
if ( styles )
|
446
|
+
{
|
447
|
+
var value = this.getValue();
|
448
|
+
|
449
|
+
if ( value )
|
450
|
+
value += this.getDialog().getContentElement( 'info', 'cmbWidthType' ).getValue() == 'percents' ? '%' : 'px';
|
451
|
+
|
452
|
+
styles.updateStyle( 'width', value );
|
453
|
+
}
|
454
|
+
},
|
455
|
+
|
390
456
|
setup : function( selectedTable )
|
391
457
|
{
|
392
458
|
var widthMatch = widthPattern.exec( selectedTable.$.style.width );
|
@@ -414,6 +480,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
414
480
|
if ( widthMatch )
|
415
481
|
this.setValue( widthMatch[2] == 'px' ? 'pixels' : 'percents' );
|
416
482
|
},
|
483
|
+
onChange : function()
|
484
|
+
{
|
485
|
+
this.getDialog().getContentElement( 'info', 'txtWidth' ).onChange();
|
486
|
+
},
|
417
487
|
commit : commitValue
|
418
488
|
}
|
419
489
|
]
|
@@ -427,7 +497,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
427
497
|
type : 'text',
|
428
498
|
id : 'txtHeight',
|
429
499
|
style : 'width:5em',
|
430
|
-
label : editor.lang.
|
500
|
+
label : editor.lang.common.height,
|
431
501
|
'default' : '',
|
432
502
|
validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidHeight ),
|
433
503
|
|
@@ -442,6 +512,17 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
442
512
|
inputElement.setAttribute( 'aria-labelledby', [ ariaLabelledByAttr, labelElement.$.id ].join( ' ' ) );
|
443
513
|
},
|
444
514
|
|
515
|
+
onChange : function()
|
516
|
+
{
|
517
|
+
var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' );
|
518
|
+
|
519
|
+
if ( styles )
|
520
|
+
{
|
521
|
+
var value = this.getValue();
|
522
|
+
styles.updateStyle( 'height', value && ( value + 'px' ) );
|
523
|
+
}
|
524
|
+
},
|
525
|
+
|
445
526
|
setup : function( selectedTable )
|
446
527
|
{
|
447
528
|
var heightMatch = heightPattern.exec( selectedTable.$.style.height );
|
@@ -523,8 +604,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
523
604
|
if ( nodeList.count() > 0 )
|
524
605
|
{
|
525
606
|
var caption = nodeList.getItem( 0 );
|
526
|
-
caption =
|
527
|
-
caption = CKEDITOR.tools.trim( caption );
|
607
|
+
caption = CKEDITOR.tools.trim( caption.getText() );
|
528
608
|
this.setValue( caption );
|
529
609
|
}
|
530
610
|
},
|
@@ -568,12 +648,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
568
648
|
{
|
569
649
|
if ( this.getValue() )
|
570
650
|
selectedTable.setAttribute( 'summary', this.getValue() );
|
651
|
+
else
|
652
|
+
selectedTable.removeAttribute( 'summary' );
|
571
653
|
}
|
572
654
|
}
|
573
655
|
]
|
574
656
|
}
|
575
657
|
]
|
576
|
-
}
|
658
|
+
},
|
659
|
+
dialogadvtab && dialogadvtab.createAdvancedTab( editor )
|
577
660
|
]
|
578
661
|
};
|
579
662
|
}
|
data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/table/plugin.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
4
|
*/
|
5
5
|
|
@@ -45,15 +45,23 @@ CKEDITOR.plugins.add( 'table',
|
|
45
45
|
} );
|
46
46
|
}
|
47
47
|
|
48
|
+
editor.on( 'doubleclick', function( evt )
|
49
|
+
{
|
50
|
+
var element = evt.data.element;
|
51
|
+
|
52
|
+
if ( element.is( 'table' ) )
|
53
|
+
evt.data.dialog = 'tableProperties';
|
54
|
+
});
|
55
|
+
|
48
56
|
// If the "contextmenu" plugin is loaded, register the listeners.
|
49
57
|
if ( editor.contextMenu )
|
50
58
|
{
|
51
59
|
editor.contextMenu.addListener( function( element, selection )
|
52
60
|
{
|
53
|
-
if ( !element )
|
61
|
+
if ( !element || element.isReadOnly() )
|
54
62
|
return null;
|
55
63
|
|
56
|
-
var isTable
|
64
|
+
var isTable = element.hasAscendant( 'table', 1 );
|
57
65
|
|
58
66
|
if ( isTable )
|
59
67
|
{
|
data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tableresize/plugin.js
ADDED
@@ -0,0 +1,450 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
+
*/
|
5
|
+
|
6
|
+
(function()
|
7
|
+
{
|
8
|
+
var pxUnit = CKEDITOR.tools.cssLength,
|
9
|
+
needsIEHacks = CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.quirks || CKEDITOR.env.version < 7 );
|
10
|
+
|
11
|
+
function getWidth( el )
|
12
|
+
{
|
13
|
+
return CKEDITOR.env.ie ? el.$.clientWidth : parseInt( el.getComputedStyle( 'width' ), 10 );
|
14
|
+
}
|
15
|
+
|
16
|
+
function getBorderWidth( element, side )
|
17
|
+
{
|
18
|
+
var computed = element.getComputedStyle( 'border-' + side + '-width' ),
|
19
|
+
borderMap =
|
20
|
+
{
|
21
|
+
thin: '0px',
|
22
|
+
medium: '1px',
|
23
|
+
thick: '2px'
|
24
|
+
};
|
25
|
+
|
26
|
+
if ( computed.indexOf( 'px' ) < 0 )
|
27
|
+
{
|
28
|
+
// look up keywords
|
29
|
+
if ( computed in borderMap && element.getComputedStyle( 'border-style' ) != 'none' )
|
30
|
+
computed = borderMap[ computed ];
|
31
|
+
else
|
32
|
+
computed = 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
return parseInt( computed, 10 );
|
36
|
+
}
|
37
|
+
|
38
|
+
// Gets the table row that contains the most columns.
|
39
|
+
function getMasterPillarRow( table )
|
40
|
+
{
|
41
|
+
var $rows = table.$.rows,
|
42
|
+
maxCells = 0, cellsCount,
|
43
|
+
$elected, $tr;
|
44
|
+
|
45
|
+
for ( var i = 0, len = $rows.length ; i < len; i++ )
|
46
|
+
{
|
47
|
+
$tr = $rows[ i ];
|
48
|
+
cellsCount = $tr.cells.length;
|
49
|
+
|
50
|
+
if ( cellsCount > maxCells )
|
51
|
+
{
|
52
|
+
maxCells = cellsCount;
|
53
|
+
$elected = $tr;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
return $elected;
|
58
|
+
}
|
59
|
+
|
60
|
+
function buildTableColumnPillars( table )
|
61
|
+
{
|
62
|
+
var pillars = [],
|
63
|
+
pillarIndex = -1,
|
64
|
+
rtl = ( table.getComputedStyle( 'direction' ) == 'rtl' );
|
65
|
+
|
66
|
+
// Get the raw row element that cointains the most columns.
|
67
|
+
var $tr = getMasterPillarRow( table );
|
68
|
+
|
69
|
+
// Get the tbody element and position, which will be used to set the
|
70
|
+
// top and bottom boundaries.
|
71
|
+
var tbody = new CKEDITOR.dom.element( table.$.tBodies[ 0 ] ),
|
72
|
+
tbodyPosition = tbody.getDocumentPosition();
|
73
|
+
|
74
|
+
// Loop thorugh all cells, building pillars after each one of them.
|
75
|
+
for ( var i = 0, len = $tr.cells.length ; i < len ; i++ )
|
76
|
+
{
|
77
|
+
// Both the current cell and the successive one will be used in the
|
78
|
+
// pillar size calculation.
|
79
|
+
var td = new CKEDITOR.dom.element( $tr.cells[ i ] ),
|
80
|
+
nextTd = $tr.cells[ i + 1 ] && new CKEDITOR.dom.element( $tr.cells[ i + 1 ] );
|
81
|
+
|
82
|
+
pillarIndex += td.$.colSpan || 1;
|
83
|
+
|
84
|
+
// Calculate the pillar boundary positions.
|
85
|
+
var pillarLeft, pillarRight, pillarWidth, pillarPadding;
|
86
|
+
|
87
|
+
var x = td.getDocumentPosition().x;
|
88
|
+
|
89
|
+
// Calculate positions based on the current cell.
|
90
|
+
rtl ?
|
91
|
+
pillarRight = x + getBorderWidth( td, 'left' ) :
|
92
|
+
pillarLeft = x + td.$.offsetWidth - getBorderWidth( td, 'right' );
|
93
|
+
|
94
|
+
// Calculate positions based on the next cell, if available.
|
95
|
+
if ( nextTd )
|
96
|
+
{
|
97
|
+
x = nextTd.getDocumentPosition().x;
|
98
|
+
|
99
|
+
rtl ?
|
100
|
+
pillarLeft = x + nextTd.$.offsetWidth - getBorderWidth( nextTd, 'right' ) :
|
101
|
+
pillarRight = x + getBorderWidth( nextTd, 'left' );
|
102
|
+
}
|
103
|
+
// Otherwise calculate positions based on the table (for last cell).
|
104
|
+
else
|
105
|
+
{
|
106
|
+
x = table.getDocumentPosition().x;
|
107
|
+
|
108
|
+
rtl ?
|
109
|
+
pillarLeft = x :
|
110
|
+
pillarRight = x + table.$.offsetWidth;
|
111
|
+
}
|
112
|
+
|
113
|
+
pillarWidth = Math.max( pillarRight - pillarLeft, 3 );
|
114
|
+
|
115
|
+
// Make the pillar touch area at least 14 pixels wide, for easy to use.
|
116
|
+
pillarPadding = Math.max( Math.round( 7 - ( pillarWidth / 2 ) ), 0 );
|
117
|
+
|
118
|
+
// The pillar should reflects exactly the shape of the hovered
|
119
|
+
// column border line.
|
120
|
+
pillars.push( {
|
121
|
+
table : table,
|
122
|
+
index : pillarIndex,
|
123
|
+
x : pillarLeft,
|
124
|
+
y : tbodyPosition.y,
|
125
|
+
width : pillarWidth,
|
126
|
+
height: tbody.$.offsetHeight,
|
127
|
+
padding : pillarPadding,
|
128
|
+
rtl : rtl } );
|
129
|
+
}
|
130
|
+
|
131
|
+
return pillars;
|
132
|
+
}
|
133
|
+
|
134
|
+
function getPillarAtPosition( pillars, positionX )
|
135
|
+
{
|
136
|
+
for ( var i = 0, len = pillars.length ; i < len ; i++ )
|
137
|
+
{
|
138
|
+
var pillar = pillars[ i ],
|
139
|
+
pad = pillar.padding;
|
140
|
+
|
141
|
+
if ( positionX >= pillar.x - pad && positionX <= ( pillar.x + pillar.width + pad ) )
|
142
|
+
return pillar;
|
143
|
+
}
|
144
|
+
|
145
|
+
return null;
|
146
|
+
}
|
147
|
+
|
148
|
+
function cancel( evt )
|
149
|
+
{
|
150
|
+
( evt.data || evt ).preventDefault();
|
151
|
+
}
|
152
|
+
|
153
|
+
function columnResizer( editor )
|
154
|
+
{
|
155
|
+
var pillar,
|
156
|
+
document,
|
157
|
+
resizer,
|
158
|
+
isResizing,
|
159
|
+
startOffset,
|
160
|
+
currentShift;
|
161
|
+
|
162
|
+
var leftSideCells, rightSideCells, leftShiftBoundary, rightShiftBoundary;
|
163
|
+
|
164
|
+
function detach()
|
165
|
+
{
|
166
|
+
pillar = null;
|
167
|
+
currentShift = 0;
|
168
|
+
isResizing = 0;
|
169
|
+
|
170
|
+
document.removeListener( 'mouseup', onMouseUp );
|
171
|
+
resizer.removeListener( 'mousedown', onMouseDown );
|
172
|
+
resizer.removeListener( 'mousemove', onMouseMove );
|
173
|
+
|
174
|
+
document.getBody().setStyle( 'cursor', 'auto' );
|
175
|
+
|
176
|
+
// Hide the resizer (remove it on IE7 - #5890).
|
177
|
+
needsIEHacks ? resizer.remove() : resizer.hide();
|
178
|
+
}
|
179
|
+
|
180
|
+
function resizeStart()
|
181
|
+
{
|
182
|
+
// Before starting to resize, figure out which cells to change
|
183
|
+
// and the boundaries of this resizing shift.
|
184
|
+
|
185
|
+
var columnIndex = pillar.index,
|
186
|
+
map = CKEDITOR.tools.buildTableMap( pillar.table ),
|
187
|
+
leftColumnCells = [],
|
188
|
+
rightColumnCells = [],
|
189
|
+
leftMinSize = Number.MAX_VALUE,
|
190
|
+
rightMinSize = leftMinSize,
|
191
|
+
rtl = pillar.rtl;
|
192
|
+
|
193
|
+
for ( var i = 0, len = map.length ; i < len ; i++ )
|
194
|
+
{
|
195
|
+
var row = map[ i ],
|
196
|
+
leftCell = row[ columnIndex + ( rtl ? 1 : 0 ) ],
|
197
|
+
rightCell = row[ columnIndex + ( rtl ? 0 : 1 ) ];
|
198
|
+
|
199
|
+
leftCell = leftCell && new CKEDITOR.dom.element( leftCell );
|
200
|
+
rightCell = rightCell && new CKEDITOR.dom.element( rightCell );
|
201
|
+
|
202
|
+
if ( !leftCell || !rightCell || !leftCell.equals( rightCell ) )
|
203
|
+
{
|
204
|
+
leftCell && ( leftMinSize = Math.min( leftMinSize, getWidth( leftCell ) ) );
|
205
|
+
rightCell && ( rightMinSize = Math.min( rightMinSize, getWidth( rightCell ) ) );
|
206
|
+
|
207
|
+
leftColumnCells.push( leftCell );
|
208
|
+
rightColumnCells.push( rightCell );
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
// Cache the list of cells to be resized.
|
213
|
+
leftSideCells = leftColumnCells;
|
214
|
+
rightSideCells = rightColumnCells;
|
215
|
+
|
216
|
+
// Cache the resize limit boundaries.
|
217
|
+
leftShiftBoundary = pillar.x - leftMinSize;
|
218
|
+
rightShiftBoundary = pillar.x + rightMinSize;
|
219
|
+
|
220
|
+
resizer.setOpacity( 0.5 );
|
221
|
+
startOffset = parseInt( resizer.getStyle( 'left' ), 10 );
|
222
|
+
currentShift = 0;
|
223
|
+
isResizing = 1;
|
224
|
+
|
225
|
+
resizer.on( 'mousemove', onMouseMove );
|
226
|
+
|
227
|
+
// Prevent the native drag behavior otherwise 'mousemove' won't fire.
|
228
|
+
document.on( 'dragstart', cancel );
|
229
|
+
}
|
230
|
+
|
231
|
+
function resizeEnd()
|
232
|
+
{
|
233
|
+
isResizing = 0;
|
234
|
+
|
235
|
+
resizer.setOpacity( 0 );
|
236
|
+
|
237
|
+
currentShift && resizeColumn();
|
238
|
+
|
239
|
+
var table = pillar.table;
|
240
|
+
setTimeout( function () { table.removeCustomData( '_cke_table_pillars' ); }, 0 );
|
241
|
+
|
242
|
+
document.removeListener( 'dragstart', cancel );
|
243
|
+
}
|
244
|
+
|
245
|
+
function resizeColumn()
|
246
|
+
{
|
247
|
+
var rtl = pillar.rtl,
|
248
|
+
cellsCount = rtl ? rightSideCells.length : leftSideCells.length;
|
249
|
+
|
250
|
+
// Perform the actual resize to table cells, only for those by side of the pillar.
|
251
|
+
for ( var i = 0 ; i < cellsCount ; i++ )
|
252
|
+
{
|
253
|
+
var leftCell = leftSideCells[ i ],
|
254
|
+
rightCell = rightSideCells[ i ],
|
255
|
+
table = pillar.table;
|
256
|
+
|
257
|
+
// Defer the resizing to avoid any interference among cells.
|
258
|
+
CKEDITOR.tools.setTimeout(
|
259
|
+
function( leftCell, leftOldWidth, rightCell, rightOldWidth, tableWidth, sizeShift )
|
260
|
+
{
|
261
|
+
leftCell && leftCell.setStyle( 'width', pxUnit( Math.max( leftOldWidth + sizeShift, 0 ) ) );
|
262
|
+
rightCell && rightCell.setStyle( 'width', pxUnit( Math.max( rightOldWidth - sizeShift, 0 ) ) );
|
263
|
+
|
264
|
+
// If we're in the last cell, we need to resize the table as well
|
265
|
+
if ( tableWidth )
|
266
|
+
table.setStyle( 'width', pxUnit( tableWidth + sizeShift * ( rtl ? -1 : 1 ) ) );
|
267
|
+
}
|
268
|
+
, 0,
|
269
|
+
this, [
|
270
|
+
leftCell, leftCell && getWidth( leftCell ),
|
271
|
+
rightCell, rightCell && getWidth( rightCell ),
|
272
|
+
( !leftCell || !rightCell ) && ( getWidth( table ) + getBorderWidth( table, 'left' ) + getBorderWidth( table, 'right' ) ),
|
273
|
+
currentShift ] );
|
274
|
+
}
|
275
|
+
}
|
276
|
+
|
277
|
+
function onMouseDown( evt )
|
278
|
+
{
|
279
|
+
cancel( evt );
|
280
|
+
|
281
|
+
resizeStart();
|
282
|
+
|
283
|
+
document.on( 'mouseup', onMouseUp, this );
|
284
|
+
}
|
285
|
+
|
286
|
+
function onMouseUp( evt )
|
287
|
+
{
|
288
|
+
evt.removeListener();
|
289
|
+
|
290
|
+
resizeEnd();
|
291
|
+
}
|
292
|
+
|
293
|
+
function onMouseMove( evt )
|
294
|
+
{
|
295
|
+
move( evt.data.$.clientX );
|
296
|
+
}
|
297
|
+
|
298
|
+
document = editor.document;
|
299
|
+
|
300
|
+
resizer = CKEDITOR.dom.element.createFromHtml(
|
301
|
+
'<div data-cke-temp=1 contenteditable=false unselectable=on '+
|
302
|
+
'style="position:absolute;cursor:col-resize;filter:alpha(opacity=0);opacity:0;' +
|
303
|
+
'padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"></div>', document );
|
304
|
+
|
305
|
+
// Except on IE6/7 (#5890), place the resizer after body to prevent it
|
306
|
+
// from being editable.
|
307
|
+
if ( !needsIEHacks )
|
308
|
+
document.getDocumentElement().append( resizer );
|
309
|
+
|
310
|
+
this.attachTo = function( targetPillar )
|
311
|
+
{
|
312
|
+
// Accept only one pillar at a time.
|
313
|
+
if ( isResizing )
|
314
|
+
return;
|
315
|
+
|
316
|
+
// On IE6/7, we append the resizer everytime we need it. (#5890)
|
317
|
+
if ( needsIEHacks )
|
318
|
+
{
|
319
|
+
document.getBody().append( resizer );
|
320
|
+
currentShift = 0;
|
321
|
+
}
|
322
|
+
|
323
|
+
pillar = targetPillar;
|
324
|
+
|
325
|
+
resizer.setStyles(
|
326
|
+
{
|
327
|
+
width: pxUnit( targetPillar.width ),
|
328
|
+
height : pxUnit( targetPillar.height ),
|
329
|
+
left : pxUnit( targetPillar.x ),
|
330
|
+
top : pxUnit( targetPillar.y )
|
331
|
+
});
|
332
|
+
|
333
|
+
// In IE6/7, it's not possible to have custom cursors for floating
|
334
|
+
// elements in an editable document. Show the resizer in that case,
|
335
|
+
// to give the user a visual clue.
|
336
|
+
needsIEHacks && resizer.setOpacity( 0.25 );
|
337
|
+
|
338
|
+
resizer.on( 'mousedown', onMouseDown, this );
|
339
|
+
|
340
|
+
document.getBody().setStyle( 'cursor', 'col-resize' );
|
341
|
+
|
342
|
+
// Display the resizer to receive events but don't show it,
|
343
|
+
// only change the cursor to resizable shape.
|
344
|
+
resizer.show();
|
345
|
+
};
|
346
|
+
|
347
|
+
var move = this.move = function( posX )
|
348
|
+
{
|
349
|
+
if ( !pillar )
|
350
|
+
return 0;
|
351
|
+
|
352
|
+
var pad = pillar.padding;
|
353
|
+
|
354
|
+
if ( !isResizing && ( posX < pillar.x - pad || posX > ( pillar.x + pillar.width + pad ) ) )
|
355
|
+
{
|
356
|
+
detach();
|
357
|
+
return 0;
|
358
|
+
}
|
359
|
+
|
360
|
+
var resizerNewPosition = posX - Math.round( resizer.$.offsetWidth / 2 );
|
361
|
+
|
362
|
+
if ( isResizing )
|
363
|
+
{
|
364
|
+
if ( resizerNewPosition == leftShiftBoundary || resizerNewPosition == rightShiftBoundary )
|
365
|
+
return 1;
|
366
|
+
|
367
|
+
resizerNewPosition = Math.max( resizerNewPosition, leftShiftBoundary );
|
368
|
+
resizerNewPosition = Math.min( resizerNewPosition, rightShiftBoundary );
|
369
|
+
|
370
|
+
currentShift = resizerNewPosition - startOffset;
|
371
|
+
}
|
372
|
+
|
373
|
+
resizer.setStyle( 'left', pxUnit( resizerNewPosition ) );
|
374
|
+
|
375
|
+
return 1;
|
376
|
+
};
|
377
|
+
}
|
378
|
+
|
379
|
+
function clearPillarsCache( evt )
|
380
|
+
{
|
381
|
+
var target = evt.data.getTarget();
|
382
|
+
|
383
|
+
if ( evt.name == 'mouseout' )
|
384
|
+
{
|
385
|
+
// Bypass interal mouse move.
|
386
|
+
if ( !target.is ( 'table' ) )
|
387
|
+
return;
|
388
|
+
|
389
|
+
var dest = new CKEDITOR.dom.element( evt.data.$.relatedTarget || evt.data.$.toElement );
|
390
|
+
while( dest && dest.$ && !dest.equals( target ) && !dest.is( 'body' ) )
|
391
|
+
dest = dest.getParent();
|
392
|
+
if ( !dest || dest.equals( target ) )
|
393
|
+
return;
|
394
|
+
}
|
395
|
+
|
396
|
+
target.getAscendant( 'table', 1 ).removeCustomData( '_cke_table_pillars' );
|
397
|
+
evt.removeListener();
|
398
|
+
}
|
399
|
+
|
400
|
+
CKEDITOR.plugins.add( 'tableresize',
|
401
|
+
{
|
402
|
+
requires : [ 'tabletools' ],
|
403
|
+
init : function( editor )
|
404
|
+
{
|
405
|
+
editor.on( 'contentDom', function()
|
406
|
+
{
|
407
|
+
var resizer;
|
408
|
+
|
409
|
+
editor.document.getBody().on( 'mousemove', function( evt )
|
410
|
+
{
|
411
|
+
evt = evt.data;
|
412
|
+
|
413
|
+
// If we're already attached to a pillar, simply move the
|
414
|
+
// resizer.
|
415
|
+
if ( resizer && resizer.move( evt.$.clientX ) )
|
416
|
+
{
|
417
|
+
cancel( evt );
|
418
|
+
return;
|
419
|
+
}
|
420
|
+
|
421
|
+
// Considering table, tr, td, tbody but nothing else.
|
422
|
+
var target = evt.getTarget(),
|
423
|
+
table,
|
424
|
+
pillars;
|
425
|
+
|
426
|
+
if ( !target.is( 'table' ) && !target.getAscendant( 'tbody', 1 ) )
|
427
|
+
return;
|
428
|
+
|
429
|
+
table = target.getAscendant( 'table', 1 );
|
430
|
+
|
431
|
+
if ( !( pillars = table.getCustomData( '_cke_table_pillars' ) ) )
|
432
|
+
{
|
433
|
+
// Cache table pillars calculation result.
|
434
|
+
table.setCustomData( '_cke_table_pillars', ( pillars = buildTableColumnPillars( table ) ) );
|
435
|
+
table.on( 'mouseout', clearPillarsCache );
|
436
|
+
table.on( 'mousedown', clearPillarsCache );
|
437
|
+
}
|
438
|
+
|
439
|
+
var pillar = getPillarAtPosition( pillars, evt.$.clientX );
|
440
|
+
if ( pillar )
|
441
|
+
{
|
442
|
+
!resizer && ( resizer = new columnResizer( editor ) );
|
443
|
+
resizer.attachTo( pillar );
|
444
|
+
}
|
445
|
+
});
|
446
|
+
});
|
447
|
+
}
|
448
|
+
});
|
449
|
+
|
450
|
+
})();
|