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
data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframedialog/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
|
|
@@ -12,7 +12,19 @@ CKEDITOR.plugins.add( 'iframedialog',
|
|
12
12
|
requires : [ 'dialog' ],
|
13
13
|
onLoad : function()
|
14
14
|
{
|
15
|
-
|
15
|
+
/**
|
16
|
+
* An iframe base dialog.
|
17
|
+
* @param {String} name Name of the dialog
|
18
|
+
* @param {String} title Title of the dialog
|
19
|
+
* @param {Number} minWidth Minimum width of the dialog
|
20
|
+
* @param {Number} minHeight Minimum height of the dialog
|
21
|
+
* @param {Function} [onContentLoad] Function called when the iframe has been loaded.
|
22
|
+
* If it isn't specified, the inner frame is notified of the dialog events ('load',
|
23
|
+
* 'resize', 'ok' and 'cancel') on a function called 'onDialogEvent'
|
24
|
+
* @param {Object} [userDefinition] Additional properties for the dialog definition
|
25
|
+
* @example
|
26
|
+
*/
|
27
|
+
CKEDITOR.dialog.addIframe = function( name, title, src, minWidth, minHeight, onContentLoad, userDefinition )
|
16
28
|
{
|
17
29
|
var element =
|
18
30
|
{
|
@@ -24,12 +36,49 @@ CKEDITOR.plugins.add( 'iframedialog',
|
|
24
36
|
|
25
37
|
if ( typeof( onContentLoad ) == 'function' )
|
26
38
|
element.onContentLoad = onContentLoad;
|
39
|
+
else
|
40
|
+
element.onContentLoad = function()
|
41
|
+
{
|
42
|
+
var element = this.getElement(),
|
43
|
+
childWindow = element.$.contentWindow;
|
44
|
+
|
45
|
+
// If the inner frame has defined a "onDialogEvent" function, setup listeners
|
46
|
+
if ( childWindow.onDialogEvent )
|
47
|
+
{
|
48
|
+
var dialog = this.getDialog(),
|
49
|
+
notifyEvent = function(e)
|
50
|
+
{
|
51
|
+
return childWindow.onDialogEvent(e);
|
52
|
+
};
|
53
|
+
|
54
|
+
dialog.on( 'ok', notifyEvent );
|
55
|
+
dialog.on( 'cancel', notifyEvent );
|
56
|
+
dialog.on( 'resize', notifyEvent );
|
57
|
+
|
58
|
+
// Clear listeners
|
59
|
+
dialog.on( 'hide', function(e)
|
60
|
+
{
|
61
|
+
dialog.removeListener( 'ok', notifyEvent );
|
62
|
+
dialog.removeListener( 'cancel', notifyEvent );
|
63
|
+
dialog.removeListener( 'resize', notifyEvent );
|
64
|
+
|
65
|
+
e.removeListener();
|
66
|
+
} );
|
67
|
+
|
68
|
+
// Notify child iframe of load:
|
69
|
+
childWindow.onDialogEvent( {
|
70
|
+
name : 'load',
|
71
|
+
sender : this,
|
72
|
+
editor : dialog._.editor
|
73
|
+
} );
|
74
|
+
}
|
75
|
+
};
|
27
76
|
|
28
77
|
var definition =
|
29
78
|
{
|
30
79
|
title : title,
|
31
|
-
minWidth :
|
32
|
-
minHeight :
|
80
|
+
minWidth : minWidth,
|
81
|
+
minHeight : minHeight,
|
33
82
|
contents :
|
34
83
|
[
|
35
84
|
{
|
@@ -41,7 +90,10 @@ CKEDITOR.plugins.add( 'iframedialog',
|
|
41
90
|
]
|
42
91
|
};
|
43
92
|
|
44
|
-
|
93
|
+
for ( var i in userDefinition )
|
94
|
+
definition[i] = userDefinition[i];
|
95
|
+
|
96
|
+
this.add( name, function(){ return definition; } );
|
45
97
|
};
|
46
98
|
|
47
99
|
(function()
|
@@ -53,7 +105,7 @@ CKEDITOR.plugins.add( 'iframedialog',
|
|
53
105
|
* @constructor
|
54
106
|
* @param {CKEDITOR.dialog} dialog
|
55
107
|
* Parent dialog object.
|
56
|
-
* @param {CKEDITOR.dialog.
|
108
|
+
* @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
|
57
109
|
* The element definition. Accepted fields:
|
58
110
|
* <ul>
|
59
111
|
* <li><strong>src</strong> (Required) The src field of the iframe. </li>
|
@@ -74,7 +126,7 @@ CKEDITOR.plugins.add( 'iframedialog',
|
|
74
126
|
contentLoad = elementDefinition.onContentLoad && CKEDITOR.tools.bind( elementDefinition.onContentLoad, this ),
|
75
127
|
cssWidth = CKEDITOR.tools.cssLength( elementDefinition.width ),
|
76
128
|
cssHeight = CKEDITOR.tools.cssLength( elementDefinition.height );
|
77
|
-
_.frameId = CKEDITOR.tools.
|
129
|
+
_.frameId = CKEDITOR.tools.getNextId() + '_iframe';
|
78
130
|
|
79
131
|
// IE BUG: Parent container does not resize to contain the iframe automatically.
|
80
132
|
dialog.on( 'load', function()
|
data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/image/dialogs/image.js
CHANGED
@@ -1,206 +1,217 @@
|
|
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
|
|
6
6
|
(function()
|
7
7
|
{
|
8
|
-
|
9
|
-
var IMAGE = 1,
|
10
|
-
LINK = 2,
|
11
|
-
PREVIEW = 4,
|
12
|
-
CLEANUP = 8,
|
13
|
-
regexGetSize = /^\s*(\d+)((px)|\%)?\s*$/i,
|
14
|
-
regexGetSizeOrEmpty = /(^\s*(\d+)((px)|\%)?\s*$)|^$/i,
|
15
|
-
pxLengthRegex = /^\d+px$/;
|
16
|
-
|
17
|
-
var onSizeChange = function()
|
8
|
+
var imageDialog = function( editor, dialogType )
|
18
9
|
{
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
10
|
+
// Load image preview.
|
11
|
+
var IMAGE = 1,
|
12
|
+
LINK = 2,
|
13
|
+
PREVIEW = 4,
|
14
|
+
CLEANUP = 8,
|
15
|
+
regexGetSize = /^\s*(\d+)((px)|\%)?\s*$/i,
|
16
|
+
regexGetSizeOrEmpty = /(^\s*(\d+)((px)|\%)?\s*$)|^$/i,
|
17
|
+
pxLengthRegex = /^\d+px$/;
|
18
|
+
|
19
|
+
var onSizeChange = function()
|
23
20
|
{
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
21
|
+
var value = this.getValue(), // This = input element.
|
22
|
+
dialog = this.getDialog(),
|
23
|
+
aMatch = value.match( regexGetSize ); // Check value
|
24
|
+
if ( aMatch )
|
25
|
+
{
|
26
|
+
if ( aMatch[2] == '%' ) // % is allowed - > unlock ratio.
|
27
|
+
switchLockRatio( dialog, false ); // Unlock.
|
28
|
+
value = aMatch[1];
|
29
|
+
}
|
28
30
|
|
29
|
-
|
30
|
-
|
31
|
-
{
|
32
|
-
var oImageOriginal = dialog.originalElement;
|
33
|
-
if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' )
|
31
|
+
// Only if ratio is locked
|
32
|
+
if ( dialog.lockRatio )
|
34
33
|
{
|
35
|
-
|
36
|
-
|
37
|
-
if ( value && value != '0' )
|
38
|
-
value = Math.round( oImageOriginal.$.width * ( value / oImageOriginal.$.height ) );
|
39
|
-
if ( !isNaN( value ) )
|
40
|
-
dialog.setValueOf( 'info', 'txtWidth', value );
|
41
|
-
}
|
42
|
-
else //this.id = txtWidth.
|
34
|
+
var oImageOriginal = dialog.originalElement;
|
35
|
+
if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' )
|
43
36
|
{
|
44
|
-
if (
|
45
|
-
|
46
|
-
|
47
|
-
|
37
|
+
if ( this.id == 'txtHeight' )
|
38
|
+
{
|
39
|
+
if ( value && value != '0' )
|
40
|
+
value = Math.round( oImageOriginal.$.width * ( value / oImageOriginal.$.height ) );
|
41
|
+
if ( !isNaN( value ) )
|
42
|
+
dialog.setValueOf( 'info', 'txtWidth', value );
|
43
|
+
}
|
44
|
+
else //this.id = txtWidth.
|
45
|
+
{
|
46
|
+
if ( value && value != '0' )
|
47
|
+
value = Math.round( oImageOriginal.$.height * ( value / oImageOriginal.$.width ) );
|
48
|
+
if ( !isNaN( value ) )
|
49
|
+
dialog.setValueOf( 'info', 'txtHeight', value );
|
50
|
+
}
|
48
51
|
}
|
49
52
|
}
|
50
|
-
|
51
|
-
|
52
|
-
};
|
53
|
-
|
54
|
-
var updatePreview = function( dialog )
|
55
|
-
{
|
56
|
-
//Don't load before onShow.
|
57
|
-
if ( !dialog.originalElement || !dialog.preview )
|
58
|
-
return 1;
|
53
|
+
updatePreview( dialog );
|
54
|
+
};
|
59
55
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
56
|
+
var updatePreview = function( dialog )
|
57
|
+
{
|
58
|
+
//Don't load before onShow.
|
59
|
+
if ( !dialog.originalElement || !dialog.preview )
|
60
|
+
return 1;
|
64
61
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
{
|
70
|
-
var args = arguments;
|
71
|
-
var inlineStyleField = this.getContentElement( 'advanced', 'txtdlgGenStyle' );
|
72
|
-
inlineStyleField && inlineStyleField.commit.apply( inlineStyleField, args );
|
62
|
+
// Read attributes and update imagePreview;
|
63
|
+
dialog.commitContent( PREVIEW, dialog.preview );
|
64
|
+
return 0;
|
65
|
+
};
|
73
66
|
|
74
|
-
|
67
|
+
// Custom commit dialog logic, where we're intended to give inline style
|
68
|
+
// field (txtdlgGenStyle) higher priority to avoid overwriting styles contribute
|
69
|
+
// by other fields.
|
70
|
+
function commitContent()
|
75
71
|
{
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
}
|
80
|
-
|
81
|
-
// Avoid recursions.
|
82
|
-
var incommit;
|
72
|
+
var args = arguments;
|
73
|
+
var inlineStyleField = this.getContentElement( 'advanced', 'txtdlgGenStyle' );
|
74
|
+
inlineStyleField && inlineStyleField.commit.apply( inlineStyleField, args );
|
83
75
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
76
|
+
this.foreach( function( widget )
|
77
|
+
{
|
78
|
+
if ( widget.commit && widget.id != 'txtdlgGenStyle' )
|
79
|
+
widget.commit.apply( widget, args );
|
80
|
+
});
|
81
|
+
}
|
90
82
|
|
91
|
-
|
83
|
+
// Avoid recursions.
|
84
|
+
var incommit;
|
92
85
|
|
93
|
-
|
94
|
-
|
95
|
-
|
86
|
+
// Synchronous field values to other impacted fields is required, e.g. border
|
87
|
+
// size change should alter inline-style text as well.
|
88
|
+
function commitInternally( targetFields )
|
96
89
|
{
|
97
|
-
|
98
|
-
|
90
|
+
if ( incommit )
|
91
|
+
return;
|
99
92
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
93
|
+
incommit = 1;
|
94
|
+
|
95
|
+
var dialog = this.getDialog(),
|
96
|
+
element = dialog.imageElement;
|
97
|
+
if ( element )
|
104
98
|
{
|
105
|
-
|
106
|
-
|
107
|
-
|
99
|
+
// Commit this field and broadcast to target fields.
|
100
|
+
this.commit( IMAGE, element );
|
101
|
+
|
102
|
+
targetFields = [].concat( targetFields );
|
103
|
+
var length = targetFields.length,
|
104
|
+
field;
|
105
|
+
for ( var i = 0; i < length; i++ )
|
106
|
+
{
|
107
|
+
field = dialog.getContentElement.apply( dialog, targetFields[ i ].split( ':' ) );
|
108
|
+
// May cause recursion.
|
109
|
+
field && field.setup( IMAGE, element );
|
110
|
+
}
|
108
111
|
}
|
112
|
+
|
113
|
+
incommit = 0;
|
109
114
|
}
|
110
115
|
|
111
|
-
|
112
|
-
|
116
|
+
var switchLockRatio = function( dialog, value )
|
117
|
+
{
|
118
|
+
if ( !dialog.getContentElement( 'info', 'ratioLock' ) )
|
119
|
+
return null;
|
113
120
|
|
114
|
-
|
115
|
-
{
|
116
|
-
var oImageOriginal = dialog.originalElement,
|
117
|
-
ratioButton = CKEDITOR.document.getById( 'btnLockSizes' );
|
121
|
+
var oImageOriginal = dialog.originalElement;
|
118
122
|
|
119
|
-
|
120
|
-
|
121
|
-
|
123
|
+
// Dialog may already closed. (#5505)
|
124
|
+
if( !oImageOriginal )
|
125
|
+
return null;
|
126
|
+
|
127
|
+
// Check image ratio and original image ratio, but respecting user's preference.
|
128
|
+
if ( value == 'check' )
|
122
129
|
{
|
123
|
-
|
124
|
-
height = dialog.getValueOf( 'info', 'txtHeight' ),
|
125
|
-
originalRatio = oImageOriginal.$.width * 1000 / oImageOriginal.$.height,
|
126
|
-
thisRatio = width * 1000 / height;
|
127
|
-
dialog.lockRatio = false; // Default: unlock ratio
|
128
|
-
|
129
|
-
if ( !width && !height )
|
130
|
-
dialog.lockRatio = true;
|
131
|
-
else if ( !isNaN( originalRatio ) && !isNaN( thisRatio ) )
|
130
|
+
if ( !dialog.userlockRatio && oImageOriginal.getCustomData( 'isReady' ) == 'true' )
|
132
131
|
{
|
133
|
-
|
132
|
+
var width = dialog.getValueOf( 'info', 'txtWidth' ),
|
133
|
+
height = dialog.getValueOf( 'info', 'txtHeight' ),
|
134
|
+
originalRatio = oImageOriginal.$.width * 1000 / oImageOriginal.$.height,
|
135
|
+
thisRatio = width * 1000 / height;
|
136
|
+
dialog.lockRatio = false; // Default: unlock ratio
|
137
|
+
|
138
|
+
if ( !width && !height )
|
134
139
|
dialog.lockRatio = true;
|
140
|
+
else if ( !isNaN( originalRatio ) && !isNaN( thisRatio ) )
|
141
|
+
{
|
142
|
+
if ( Math.round( originalRatio ) == Math.round( thisRatio ) )
|
143
|
+
dialog.lockRatio = true;
|
144
|
+
}
|
135
145
|
}
|
136
146
|
}
|
137
147
|
else if ( value != undefined )
|
138
148
|
dialog.lockRatio = value;
|
139
149
|
else
|
150
|
+
{
|
151
|
+
dialog.userlockRatio = 1;
|
140
152
|
dialog.lockRatio = !dialog.lockRatio;
|
141
|
-
|
142
|
-
else if ( value != 'check' ) // I can't lock ratio if ratio is unknown.
|
143
|
-
dialog.lockRatio = false;
|
153
|
+
}
|
144
154
|
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
155
|
+
var ratioButton = CKEDITOR.document.getById( btnLockSizesId );
|
156
|
+
if ( dialog.lockRatio )
|
157
|
+
ratioButton.removeClass( 'cke_btn_unlocked' );
|
158
|
+
else
|
159
|
+
ratioButton.addClass( 'cke_btn_unlocked' );
|
149
160
|
|
150
|
-
|
151
|
-
|
161
|
+
var lang = dialog._.editor.lang.image,
|
162
|
+
label = lang[ dialog.lockRatio ? 'unlockRatio' : 'lockRatio' ];
|
152
163
|
|
153
|
-
|
154
|
-
|
164
|
+
ratioButton.setAttribute( 'title', label );
|
165
|
+
ratioButton.getFirst().setText( label );
|
155
166
|
|
156
|
-
|
157
|
-
|
167
|
+
return dialog.lockRatio;
|
168
|
+
};
|
158
169
|
|
159
|
-
|
160
|
-
{
|
161
|
-
var oImageOriginal = dialog.originalElement;
|
162
|
-
if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' )
|
170
|
+
var resetSize = function( dialog )
|
163
171
|
{
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
172
|
+
var oImageOriginal = dialog.originalElement;
|
173
|
+
if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' )
|
174
|
+
{
|
175
|
+
var widthField = dialog.getContentElement( 'info', 'txtWidth' ),
|
176
|
+
heightField = dialog.getContentElement( 'info', 'txtHeight' );
|
177
|
+
widthField && widthField.setValue( oImageOriginal.$.width );
|
178
|
+
heightField && heightField.setValue( oImageOriginal.$.height );
|
179
|
+
}
|
180
|
+
updatePreview( dialog );
|
181
|
+
};
|
174
182
|
|
175
|
-
function
|
183
|
+
var setupDimension = function( type, element )
|
176
184
|
{
|
177
|
-
|
178
|
-
|
185
|
+
if ( type != IMAGE )
|
186
|
+
return;
|
187
|
+
|
188
|
+
function checkDimension( size, defaultValue )
|
179
189
|
{
|
180
|
-
|
190
|
+
var aMatch = size.match( regexGetSize );
|
191
|
+
if ( aMatch )
|
181
192
|
{
|
182
|
-
aMatch[
|
183
|
-
|
193
|
+
if ( aMatch[2] == '%' ) // % is allowed.
|
194
|
+
{
|
195
|
+
aMatch[1] += '%';
|
196
|
+
switchLockRatio( dialog, false ); // Unlock ratio
|
197
|
+
}
|
198
|
+
return aMatch[1];
|
184
199
|
}
|
185
|
-
return
|
200
|
+
return defaultValue;
|
186
201
|
}
|
187
|
-
return defaultValue;
|
188
|
-
}
|
189
202
|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
203
|
+
var dialog = this.getDialog(),
|
204
|
+
value = '',
|
205
|
+
dimension = this.id == 'txtWidth' ? 'width' : 'height',
|
206
|
+
size = element.getAttribute( dimension );
|
194
207
|
|
195
|
-
|
196
|
-
|
197
|
-
|
208
|
+
if ( size )
|
209
|
+
value = checkDimension( size, value );
|
210
|
+
value = checkDimension( element.getStyle( dimension ), value );
|
198
211
|
|
199
|
-
|
200
|
-
|
212
|
+
this.setValue( value );
|
213
|
+
};
|
201
214
|
|
202
|
-
var imageDialog = function( editor, dialogType )
|
203
|
-
{
|
204
215
|
var previewPreloader;
|
205
216
|
|
206
217
|
var onImgLoadEvent = function()
|
@@ -213,7 +224,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
213
224
|
original.removeListener( 'abort', onImgLoadErrorEvent );
|
214
225
|
|
215
226
|
// Hide loader
|
216
|
-
CKEDITOR.document.getById(
|
227
|
+
CKEDITOR.document.getById( imagePreviewLoaderId ).setStyle( 'display', 'none' );
|
217
228
|
|
218
229
|
// New image -> new domensions
|
219
230
|
if ( !this.dontResetSize )
|
@@ -241,13 +252,25 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
241
252
|
this.preview.setAttribute( 'src', noimage );
|
242
253
|
|
243
254
|
// Hide loader
|
244
|
-
CKEDITOR.document.getById(
|
255
|
+
CKEDITOR.document.getById( imagePreviewLoaderId ).setStyle( 'display', 'none' );
|
245
256
|
switchLockRatio( this, false ); // Unlock.
|
246
257
|
};
|
258
|
+
|
259
|
+
var numbering = function( id )
|
260
|
+
{
|
261
|
+
return CKEDITOR.tools.getNextId() + '_' + id;
|
262
|
+
},
|
263
|
+
btnLockSizesId = numbering( 'btnLockSizes' ),
|
264
|
+
btnResetSizeId = numbering( 'btnResetSize' ),
|
265
|
+
imagePreviewLoaderId = numbering( 'ImagePreviewLoader' ),
|
266
|
+
imagePreviewBoxId = numbering( 'ImagePreviewBox' ),
|
267
|
+
previewLinkId = numbering( 'previewLink' ),
|
268
|
+
previewImageId = numbering( 'previewImage' );
|
269
|
+
|
247
270
|
return {
|
248
|
-
title :
|
271
|
+
title : editor.lang.image[ dialogType == 'image' ? 'title' : 'titleButton' ],
|
249
272
|
minWidth : 420,
|
250
|
-
minHeight :
|
273
|
+
minHeight : 360,
|
251
274
|
onShow : function()
|
252
275
|
{
|
253
276
|
this.imageElement = false;
|
@@ -258,6 +281,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
258
281
|
this.linkEditMode = false;
|
259
282
|
|
260
283
|
this.lockRatio = true;
|
284
|
+
this.userlockRatio = 0;
|
261
285
|
this.dontResetSize = false;
|
262
286
|
this.firstLoad = true;
|
263
287
|
this.addLink = false;
|
@@ -268,10 +292,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
268
292
|
link = element && element.getAscendant( 'a' );
|
269
293
|
|
270
294
|
//Hide loader.
|
271
|
-
CKEDITOR.document.getById(
|
295
|
+
CKEDITOR.document.getById( imagePreviewLoaderId ).setStyle( 'display', 'none' );
|
272
296
|
// Create the preview before setup the dialog contents.
|
273
297
|
previewPreloader = new CKEDITOR.dom.element( 'img', editor.document );
|
274
|
-
this.preview = CKEDITOR.document.getById(
|
298
|
+
this.preview = CKEDITOR.document.getById( previewImageId );
|
275
299
|
|
276
300
|
// Copy of the image
|
277
301
|
this.originalElement = editor.document.createElement( 'img' );
|
@@ -302,7 +326,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
302
326
|
this.setupContent( LINK, link );
|
303
327
|
}
|
304
328
|
|
305
|
-
if ( element && element.getName() == 'img' && !element.
|
329
|
+
if ( element && element.getName() == 'img' && !element.data( 'cke-realelement' )
|
306
330
|
|| element && element.getName() == 'input' && element.getAttribute( 'type' ) == 'image' )
|
307
331
|
{
|
308
332
|
this.imageEditMode = element.getName();
|
@@ -318,13 +342,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
318
342
|
|
319
343
|
// Fill out all fields.
|
320
344
|
this.setupContent( IMAGE, this.imageElement );
|
321
|
-
|
322
|
-
// Refresh LockRatio button
|
323
|
-
switchLockRatio ( this, true );
|
324
345
|
}
|
325
346
|
else
|
326
347
|
this.imageElement = editor.document.createElement( 'img' );
|
327
348
|
|
349
|
+
// Refresh LockRatio button
|
350
|
+
switchLockRatio ( this, true );
|
351
|
+
|
328
352
|
// Dont show preview if no URL given.
|
329
353
|
if ( !CKEDITOR.tools.trim( this.getValueOf( 'info', 'txtUrl' ) ) )
|
330
354
|
{
|
@@ -402,11 +426,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
402
426
|
//Insert a new Link.
|
403
427
|
if ( !this.linkEditMode )
|
404
428
|
{
|
405
|
-
editor.insertElement(this.linkElement);
|
406
|
-
this.linkElement.append(this.imageElement, false);
|
429
|
+
editor.insertElement( this.linkElement );
|
430
|
+
this.linkElement.append( this.imageElement, false );
|
407
431
|
}
|
408
432
|
else //Link already exists, image not.
|
409
|
-
editor.insertElement(this.imageElement );
|
433
|
+
editor.insertElement( this.imageElement );
|
410
434
|
}
|
411
435
|
else
|
412
436
|
editor.insertElement( this.imageElement );
|
@@ -432,8 +456,12 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
432
456
|
if ( dialogType != 'image' )
|
433
457
|
this.hidePage( 'Link' ); //Hide Link tab.
|
434
458
|
var doc = this._.element.getDocument();
|
435
|
-
|
436
|
-
|
459
|
+
|
460
|
+
if ( this.getContentElement( 'info', 'ratioLock' ) )
|
461
|
+
{
|
462
|
+
this.addFocusable( doc.getById( btnResetSizeId ), 5 );
|
463
|
+
this.addFocusable( doc.getById( btnLockSizesId ), 5 );
|
464
|
+
}
|
437
465
|
|
438
466
|
this.commitContent = commitContent;
|
439
467
|
},
|
@@ -491,7 +519,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
491
519
|
|
492
520
|
original.setCustomData( 'isReady', 'false' );
|
493
521
|
// Show loader
|
494
|
-
var loader = CKEDITOR.document.getById(
|
522
|
+
var loader = CKEDITOR.document.getById( imagePreviewLoaderId );
|
495
523
|
if ( loader )
|
496
524
|
loader.setStyle( 'display', '' );
|
497
525
|
|
@@ -516,7 +544,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
516
544
|
{
|
517
545
|
if ( type == IMAGE )
|
518
546
|
{
|
519
|
-
var url = element.
|
547
|
+
var url = element.data( 'cke-saved-src' ) || element.getAttribute( 'src' );
|
520
548
|
var field = this;
|
521
549
|
|
522
550
|
this.getDialog().dontResetSize = true;
|
@@ -524,15 +552,14 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
524
552
|
field.setValue( url ); // And call this.onChange()
|
525
553
|
// Manually set the initial value.(#4191)
|
526
554
|
field.setInitValue();
|
527
|
-
field.focus();
|
528
555
|
}
|
529
556
|
},
|
530
557
|
commit : function( type, element )
|
531
558
|
{
|
532
559
|
if ( type == IMAGE && ( this.getValue() || this.isChanged() ) )
|
533
560
|
{
|
534
|
-
element.
|
535
|
-
element.setAttribute( 'src',
|
561
|
+
element.data( 'cke-saved-src', this.getValue() );
|
562
|
+
element.setAttribute( 'src', this.getValue() );
|
536
563
|
}
|
537
564
|
else if ( type == CLEANUP )
|
538
565
|
{
|
@@ -561,7 +588,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
561
588
|
id : 'txtAlt',
|
562
589
|
type : 'text',
|
563
590
|
label : editor.lang.image.alt,
|
564
|
-
accessKey : '
|
591
|
+
accessKey : 'T',
|
565
592
|
'default' : '',
|
566
593
|
onChange : function()
|
567
594
|
{
|
@@ -591,17 +618,16 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
591
618
|
},
|
592
619
|
{
|
593
620
|
type : 'hbox',
|
594
|
-
widths : [ '140px', '240px' ],
|
595
621
|
children :
|
596
622
|
[
|
597
623
|
{
|
624
|
+
id : 'basic',
|
598
625
|
type : 'vbox',
|
599
|
-
padding : 10,
|
600
626
|
children :
|
601
627
|
[
|
602
628
|
{
|
603
629
|
type : 'hbox',
|
604
|
-
widths : [ '
|
630
|
+
widths : [ '50%', '50%' ],
|
605
631
|
children :
|
606
632
|
[
|
607
633
|
{
|
@@ -613,8 +639,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
613
639
|
type : 'text',
|
614
640
|
width: '40px',
|
615
641
|
id : 'txtWidth',
|
616
|
-
|
617
|
-
label : editor.lang.image.width,
|
642
|
+
label : editor.lang.common.width,
|
618
643
|
onKeyUp : onSizeChange,
|
619
644
|
onChange : function()
|
620
645
|
{
|
@@ -622,10 +647,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
622
647
|
},
|
623
648
|
validate : function()
|
624
649
|
{
|
625
|
-
var aMatch = this.getValue().match( regexGetSizeOrEmpty )
|
626
|
-
|
627
|
-
|
628
|
-
|
650
|
+
var aMatch = this.getValue().match( regexGetSizeOrEmpty ),
|
651
|
+
isValid = !!( aMatch && parseInt( aMatch[1], 10 ) !== 0 );
|
652
|
+
if ( !isValid )
|
653
|
+
alert( editor.lang.common.invalidWidth );
|
654
|
+
return isValid;
|
629
655
|
},
|
630
656
|
setup : setupDimension,
|
631
657
|
commit : function( type, element, internalCommit )
|
@@ -635,7 +661,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
635
661
|
{
|
636
662
|
if ( value )
|
637
663
|
element.setStyle( 'width', CKEDITOR.tools.cssLength( value ) );
|
638
|
-
else
|
664
|
+
else
|
639
665
|
element.removeStyle( 'width' );
|
640
666
|
|
641
667
|
!internalCommit && element.removeAttribute( 'width' );
|
@@ -650,7 +676,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
650
676
|
element.setStyle( 'width', oImageOriginal.$.width + 'px');
|
651
677
|
}
|
652
678
|
else
|
653
|
-
element.setStyle( 'width', value
|
679
|
+
element.setStyle( 'width', CKEDITOR.tools.cssLength( value ) );
|
654
680
|
}
|
655
681
|
else if ( type == CLEANUP )
|
656
682
|
{
|
@@ -663,8 +689,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
663
689
|
type : 'text',
|
664
690
|
id : 'txtHeight',
|
665
691
|
width: '40px',
|
666
|
-
|
667
|
-
label : editor.lang.image.height,
|
692
|
+
label : editor.lang.common.height,
|
668
693
|
onKeyUp : onSizeChange,
|
669
694
|
onChange : function()
|
670
695
|
{
|
@@ -672,10 +697,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
672
697
|
},
|
673
698
|
validate : function()
|
674
699
|
{
|
675
|
-
var aMatch = this.getValue().match( regexGetSizeOrEmpty )
|
676
|
-
|
677
|
-
|
678
|
-
|
700
|
+
var aMatch = this.getValue().match( regexGetSizeOrEmpty ),
|
701
|
+
isValid = !!( aMatch && parseInt( aMatch[1], 10 ) !== 0 );
|
702
|
+
if ( !isValid )
|
703
|
+
alert( editor.lang.common.invalidHeight );
|
704
|
+
return isValid;
|
679
705
|
},
|
680
706
|
setup : setupDimension,
|
681
707
|
commit : function( type, element, internalCommit )
|
@@ -685,11 +711,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
685
711
|
{
|
686
712
|
if ( value )
|
687
713
|
element.setStyle( 'height', CKEDITOR.tools.cssLength( value ) );
|
688
|
-
else
|
714
|
+
else
|
689
715
|
element.removeStyle( 'height' );
|
690
716
|
|
691
|
-
|
692
|
-
element.removeAttribute( 'height' );
|
717
|
+
!internalCommit && element.removeAttribute( 'height' );
|
693
718
|
}
|
694
719
|
else if ( type == PREVIEW )
|
695
720
|
{
|
@@ -701,7 +726,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
701
726
|
element.setStyle( 'height', oImageOriginal.$.height + 'px' );
|
702
727
|
}
|
703
728
|
else
|
704
|
-
element.setStyle( 'height', value
|
729
|
+
element.setStyle( 'height', CKEDITOR.tools.cssLength( value ) );
|
705
730
|
}
|
706
731
|
else if ( type == CLEANUP )
|
707
732
|
{
|
@@ -713,19 +738,20 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
713
738
|
]
|
714
739
|
},
|
715
740
|
{
|
741
|
+
id : 'ratioLock',
|
716
742
|
type : 'html',
|
717
|
-
style : 'margin-top:
|
743
|
+
style : 'margin-top:30px;width:40px;height:40px;',
|
718
744
|
onLoad : function()
|
719
745
|
{
|
720
746
|
// Activate Reset button
|
721
|
-
var resetButton = CKEDITOR.document.getById(
|
722
|
-
ratioButton = CKEDITOR.document.getById(
|
747
|
+
var resetButton = CKEDITOR.document.getById( btnResetSizeId ),
|
748
|
+
ratioButton = CKEDITOR.document.getById( btnLockSizesId );
|
723
749
|
if ( resetButton )
|
724
750
|
{
|
725
|
-
resetButton.on( 'click', function(evt)
|
751
|
+
resetButton.on( 'click', function( evt )
|
726
752
|
{
|
727
753
|
resetSize( this );
|
728
|
-
evt.data.preventDefault();
|
754
|
+
evt.data && evt.data.preventDefault();
|
729
755
|
}, this.getDialog() );
|
730
756
|
resetButton.on( 'mouseover', function()
|
731
757
|
{
|
@@ -768,9 +794,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
768
794
|
},
|
769
795
|
html : '<div>'+
|
770
796
|
'<a href="javascript:void(0)" tabindex="-1" title="' + editor.lang.image.unlockRatio +
|
771
|
-
'" class="cke_btn_locked" id="
|
797
|
+
'" class="cke_btn_locked" id="' + btnLockSizesId + '" role="button"><span class="cke_label">' + editor.lang.image.unlockRatio + '</span></a>' +
|
772
798
|
'<a href="javascript:void(0)" tabindex="-1" title="' + editor.lang.image.resetSize +
|
773
|
-
'" class="cke_btn_reset" id="
|
799
|
+
'" class="cke_btn_reset" id="' + btnResetSizeId + '" role="button"><span class="cke_label">' + editor.lang.image.resetSize + '</span></a>'+
|
774
800
|
'</div>'
|
775
801
|
}
|
776
802
|
]
|
@@ -784,7 +810,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
784
810
|
type : 'text',
|
785
811
|
id : 'txtBorder',
|
786
812
|
width: '60px',
|
787
|
-
labelLayout : 'horizontal',
|
788
813
|
label : editor.lang.image.border,
|
789
814
|
'default' : '',
|
790
815
|
onKeyUp : function()
|
@@ -841,7 +866,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
841
866
|
type : 'text',
|
842
867
|
id : 'txtHSpace',
|
843
868
|
width: '60px',
|
844
|
-
labelLayout : 'horizontal',
|
845
869
|
label : editor.lang.image.hSpace,
|
846
870
|
'default' : '',
|
847
871
|
onKeyUp : function()
|
@@ -905,7 +929,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
905
929
|
type : 'text',
|
906
930
|
id : 'txtVSpace',
|
907
931
|
width : '60px',
|
908
|
-
labelLayout : 'horizontal',
|
909
932
|
label : editor.lang.image.vSpace,
|
910
933
|
'default' : '',
|
911
934
|
onKeyUp : function()
|
@@ -967,16 +990,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
967
990
|
{
|
968
991
|
id : 'cmbAlign',
|
969
992
|
type : 'select',
|
970
|
-
labelLayout : 'horizontal',
|
971
993
|
widths : [ '35%','65%' ],
|
972
994
|
style : 'width:90px',
|
973
|
-
label : editor.lang.
|
995
|
+
label : editor.lang.common.align,
|
974
996
|
'default' : '',
|
975
997
|
items :
|
976
998
|
[
|
977
999
|
[ editor.lang.common.notSet , ''],
|
978
|
-
[ editor.lang.
|
979
|
-
[ editor.lang.
|
1000
|
+
[ editor.lang.common.alignLeft , 'left'],
|
1001
|
+
[ editor.lang.common.alignRight , 'right']
|
980
1002
|
// Backward compatible with v2 on setup when specified as attribute value,
|
981
1003
|
// while these values are no more available as select options.
|
982
1004
|
// [ editor.lang.image.alignAbsBottom , 'absBottom'],
|
@@ -1048,15 +1070,18 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
1048
1070
|
[
|
1049
1071
|
{
|
1050
1072
|
type : 'html',
|
1073
|
+
id : 'htmlPreview',
|
1051
1074
|
style : 'width:95%;',
|
1052
1075
|
html : '<div>' + CKEDITOR.tools.htmlEncode( editor.lang.common.preview ) +'<br>'+
|
1053
|
-
'<div id="ImagePreviewLoader" style="display:none"><div class="loading"> </div></div>'+
|
1054
|
-
'<div id="ImagePreviewBox">'+
|
1055
|
-
'<a href="javascript:void(0)" target="_blank" onclick="return false;" id="
|
1056
|
-
'<img id="
|
1076
|
+
'<div id="' + imagePreviewLoaderId + '" class="ImagePreviewLoader" style="display:none"><div class="loading"> </div></div>'+
|
1077
|
+
'<div id="' + imagePreviewBoxId + '" class="ImagePreviewBox"><table><tr><td>'+
|
1078
|
+
'<a href="javascript:void(0)" target="_blank" onclick="return false;" id="' + previewLinkId + '">'+
|
1079
|
+
'<img id="' + previewImageId + '" alt="" /></a>' +
|
1080
|
+
( editor.config.image_previewText ||
|
1081
|
+
'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. '+
|
1057
1082
|
'Maecenas feugiat consequat diam. Maecenas metus. Vivamus diam purus, cursus a, commodo non, facilisis vitae, '+
|
1058
|
-
'nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, ultrices a, luctus ut, orci. Donec pellentesque egestas eros. Integer cursus, augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, gravida a, gravida sed, lobortis id, turpis. Ut ultrices, ipsum at venenatis fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. Nunc imperdiet gravida mauris.' +
|
1059
|
-
'</div
|
1083
|
+
'nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, ultrices a, luctus ut, orci. Donec pellentesque egestas eros. Integer cursus, augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, gravida a, gravida sed, lobortis id, turpis. Ut ultrices, ipsum at venenatis fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. Nunc imperdiet gravida mauris.' ) +
|
1084
|
+
'</td></tr></table></div></div>'
|
1060
1085
|
}
|
1061
1086
|
]
|
1062
1087
|
}
|
@@ -1080,7 +1105,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
1080
1105
|
{
|
1081
1106
|
if ( type == LINK )
|
1082
1107
|
{
|
1083
|
-
var href = element.
|
1108
|
+
var href = element.data( 'cke-saved-href' );
|
1084
1109
|
if ( !href )
|
1085
1110
|
href = element.getAttribute( 'href' );
|
1086
1111
|
this.setValue( href );
|
@@ -1092,9 +1117,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
1092
1117
|
{
|
1093
1118
|
if ( this.getValue() || this.isChanged() )
|
1094
1119
|
{
|
1095
|
-
|
1096
|
-
element.
|
1097
|
-
|
1120
|
+
var url = decodeURI( this.getValue() );
|
1121
|
+
element.data( 'cke-saved-href', url );
|
1122
|
+
element.setAttribute( 'href', url );
|
1098
1123
|
|
1099
1124
|
if ( this.getValue() || !editor.config.image_removeLinkByEmptyURL )
|
1100
1125
|
this.getDialog().addLink = true;
|
@@ -1109,7 +1134,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
1109
1134
|
{
|
1110
1135
|
action : 'Browse',
|
1111
1136
|
target: 'Link:txtUrl',
|
1112
|
-
url: editor.config.filebrowserImageBrowseLinkUrl
|
1137
|
+
url: editor.config.filebrowserImageBrowseLinkUrl
|
1113
1138
|
},
|
1114
1139
|
style : 'float:right',
|
1115
1140
|
hidden : true,
|
@@ -1131,7 +1156,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
1131
1156
|
setup : function( type, element )
|
1132
1157
|
{
|
1133
1158
|
if ( type == LINK )
|
1134
|
-
this.setValue( element.getAttribute( 'target' ) );
|
1159
|
+
this.setValue( element.getAttribute( 'target' ) || '' );
|
1135
1160
|
},
|
1136
1161
|
commit : function( type, element )
|
1137
1162
|
{
|