From 7adcb81e4f83f98c468889aaa5a85558ba88c770 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 25 Jan 2016 17:45:33 +0100 Subject: [PATCH] Initial commit --- README.md | 8 + build-config.js | 117 + component.json | 24 + composer.json | 35 + release/CHANGES.md | 1037 ++ release/LICENSE.md | 1420 +++ release/README.md | 39 + release/adapters/jquery.js | 10 + release/ckeditor.js | 1080 ++ release/config.js | 38 + release/contents.css | 132 + release/lang/en.js | 5 + release/lang/fr.js | 5 + release/plugins/a11yhelp/dialogs/a11yhelp.js | 10 + .../dialogs/lang/_translationstatus.txt | 25 + release/plugins/a11yhelp/dialogs/lang/af.js | 11 + release/plugins/a11yhelp/dialogs/lang/ar.js | 11 + release/plugins/a11yhelp/dialogs/lang/bg.js | 11 + release/plugins/a11yhelp/dialogs/lang/ca.js | 12 + release/plugins/a11yhelp/dialogs/lang/cs.js | 12 + release/plugins/a11yhelp/dialogs/lang/cy.js | 11 + release/plugins/a11yhelp/dialogs/lang/da.js | 11 + release/plugins/a11yhelp/dialogs/lang/de.js | 12 + release/plugins/a11yhelp/dialogs/lang/el.js | 12 + .../plugins/a11yhelp/dialogs/lang/en-gb.js | 11 + release/plugins/a11yhelp/dialogs/lang/en.js | 11 + release/plugins/a11yhelp/dialogs/lang/eo.js | 13 + release/plugins/a11yhelp/dialogs/lang/es.js | 12 + release/plugins/a11yhelp/dialogs/lang/et.js | 11 + release/plugins/a11yhelp/dialogs/lang/eu.js | 12 + release/plugins/a11yhelp/dialogs/lang/fa.js | 11 + release/plugins/a11yhelp/dialogs/lang/fi.js | 11 + release/plugins/a11yhelp/dialogs/lang/fo.js | 11 + .../plugins/a11yhelp/dialogs/lang/fr-ca.js | 11 + release/plugins/a11yhelp/dialogs/lang/fr.js | 12 + release/plugins/a11yhelp/dialogs/lang/gl.js | 12 + release/plugins/a11yhelp/dialogs/lang/gu.js | 11 + release/plugins/a11yhelp/dialogs/lang/he.js | 11 + release/plugins/a11yhelp/dialogs/lang/hi.js | 11 + release/plugins/a11yhelp/dialogs/lang/hr.js | 11 + release/plugins/a11yhelp/dialogs/lang/hu.js | 12 + release/plugins/a11yhelp/dialogs/lang/id.js | 11 + release/plugins/a11yhelp/dialogs/lang/it.js | 13 + release/plugins/a11yhelp/dialogs/lang/ja.js | 9 + release/plugins/a11yhelp/dialogs/lang/km.js | 11 + release/plugins/a11yhelp/dialogs/lang/ko.js | 10 + release/plugins/a11yhelp/dialogs/lang/ku.js | 11 + release/plugins/a11yhelp/dialogs/lang/lt.js | 11 + release/plugins/a11yhelp/dialogs/lang/lv.js | 12 + release/plugins/a11yhelp/dialogs/lang/mk.js | 11 + release/plugins/a11yhelp/dialogs/lang/mn.js | 11 + release/plugins/a11yhelp/dialogs/lang/nb.js | 12 + release/plugins/a11yhelp/dialogs/lang/nl.js | 11 + release/plugins/a11yhelp/dialogs/lang/no.js | 11 + release/plugins/a11yhelp/dialogs/lang/pl.js | 13 + .../plugins/a11yhelp/dialogs/lang/pt-br.js | 13 + release/plugins/a11yhelp/dialogs/lang/pt.js | 12 + release/plugins/a11yhelp/dialogs/lang/ro.js | 11 + release/plugins/a11yhelp/dialogs/lang/ru.js | 11 + release/plugins/a11yhelp/dialogs/lang/si.js | 10 + release/plugins/a11yhelp/dialogs/lang/sk.js | 11 + release/plugins/a11yhelp/dialogs/lang/sl.js | 11 + release/plugins/a11yhelp/dialogs/lang/sq.js | 11 + .../plugins/a11yhelp/dialogs/lang/sr-latn.js | 11 + release/plugins/a11yhelp/dialogs/lang/sr.js | 11 + release/plugins/a11yhelp/dialogs/lang/sv.js | 11 + release/plugins/a11yhelp/dialogs/lang/th.js | 11 + release/plugins/a11yhelp/dialogs/lang/tr.js | 12 + release/plugins/a11yhelp/dialogs/lang/tt.js | 11 + release/plugins/a11yhelp/dialogs/lang/ug.js | 12 + release/plugins/a11yhelp/dialogs/lang/uk.js | 12 + release/plugins/a11yhelp/dialogs/lang/vi.js | 11 + .../plugins/a11yhelp/dialogs/lang/zh-cn.js | 9 + release/plugins/a11yhelp/dialogs/lang/zh.js | 9 + release/plugins/about/dialogs/about.js | 7 + .../about/dialogs/hidpi/logo_ckeditor.png | Bin 0 -> 13339 bytes .../plugins/about/dialogs/logo_ckeditor.png | Bin 0 -> 6757 bytes release/plugins/clipboard/dialogs/paste.js | 12 + .../colordialog/dialogs/colordialog.js | 13 + release/plugins/dialog/dialogDefinition.js | 4 + release/plugins/div/dialogs/div.js | 9 + release/plugins/find/dialogs/find.js | 24 + release/plugins/flash/dialogs/flash.js | 24 + release/plugins/flash/images/placeholder.png | Bin 0 -> 256 bytes release/plugins/forms/dialogs/button.js | 8 + release/plugins/forms/dialogs/checkbox.js | 9 + release/plugins/forms/dialogs/form.js | 8 + release/plugins/forms/dialogs/hiddenfield.js | 7 + release/plugins/forms/dialogs/radio.js | 9 + release/plugins/forms/dialogs/select.js | 20 + release/plugins/forms/dialogs/textarea.js | 8 + release/plugins/forms/dialogs/textfield.js | 11 + release/plugins/forms/images/hiddenfield.gif | Bin 0 -> 178 bytes release/plugins/icons.png | Bin 0 -> 20298 bytes release/plugins/icons_hidpi.png | Bin 0 -> 66495 bytes release/plugins/iframe/dialogs/iframe.js | 10 + release/plugins/iframe/images/placeholder.png | Bin 0 -> 265 bytes release/plugins/image/dialogs/image.js | 44 + release/plugins/image/images/noimage.png | Bin 0 -> 1610 bytes release/plugins/imagebrowser/LICENSE.txt | 10 + release/plugins/imagebrowser/README.rst | 69 + .../plugins/imagebrowser/browser/browser.css | 62 + .../plugins/imagebrowser/browser/browser.html | 25 + .../plugins/imagebrowser/browser/browser.js | 6 + .../imagebrowser/browser/jquery-1.9.1.min.js | 181 + release/plugins/link/dialogs/anchor.js | 7 + release/plugins/link/dialogs/link.js | 26 + release/plugins/link/images/anchor.png | Bin 0 -> 589 bytes release/plugins/link/images/hidpi/anchor.png | Bin 0 -> 1379 bytes .../plugins/liststyle/dialogs/liststyle.js | 10 + .../magicline/images/hidpi/icon-rtl.png | Bin 0 -> 176 bytes .../plugins/magicline/images/hidpi/icon.png | Bin 0 -> 199 bytes release/plugins/magicline/images/icon-rtl.png | Bin 0 -> 138 bytes release/plugins/magicline/images/icon.png | Bin 0 -> 133 bytes .../plugins/pagebreak/images/pagebreak.gif | Bin 0 -> 99 bytes .../plugins/pastefromword/filter/default.js | 32 + release/plugins/preview/preview.html | 13 + release/plugins/scayt/CHANGELOG.md | 20 + release/plugins/scayt/LICENSE.md | 28 + release/plugins/scayt/README.md | 25 + release/plugins/scayt/dialogs/options.js | 19 + release/plugins/scayt/dialogs/toolbar.css | 71 + .../showblocks/images/block_address.png | Bin 0 -> 152 bytes .../showblocks/images/block_blockquote.png | Bin 0 -> 154 bytes .../plugins/showblocks/images/block_div.png | Bin 0 -> 127 bytes .../plugins/showblocks/images/block_h1.png | Bin 0 -> 120 bytes .../plugins/showblocks/images/block_h2.png | Bin 0 -> 127 bytes .../plugins/showblocks/images/block_h3.png | Bin 0 -> 123 bytes .../plugins/showblocks/images/block_h4.png | Bin 0 -> 123 bytes .../plugins/showblocks/images/block_h5.png | Bin 0 -> 126 bytes .../plugins/showblocks/images/block_h6.png | Bin 0 -> 123 bytes release/plugins/showblocks/images/block_p.png | Bin 0 -> 115 bytes .../plugins/showblocks/images/block_pre.png | Bin 0 -> 128 bytes release/plugins/smiley/dialogs/smiley.js | 11 + release/plugins/smiley/images/angel_smile.gif | Bin 0 -> 1245 bytes release/plugins/smiley/images/angel_smile.png | Bin 0 -> 1172 bytes release/plugins/smiley/images/angry_smile.gif | Bin 0 -> 1219 bytes release/plugins/smiley/images/angry_smile.png | Bin 0 -> 1220 bytes .../plugins/smiley/images/broken_heart.gif | Bin 0 -> 732 bytes .../plugins/smiley/images/broken_heart.png | Bin 0 -> 1139 bytes .../plugins/smiley/images/confused_smile.gif | Bin 0 -> 1202 bytes .../plugins/smiley/images/confused_smile.png | Bin 0 -> 1101 bytes release/plugins/smiley/images/cry_smile.gif | Bin 0 -> 795 bytes release/plugins/smiley/images/cry_smile.png | Bin 0 -> 1214 bytes release/plugins/smiley/images/devil_smile.gif | Bin 0 -> 1239 bytes release/plugins/smiley/images/devil_smile.png | Bin 0 -> 1220 bytes .../smiley/images/embaressed_smile.gif | Bin 0 -> 786 bytes .../smiley/images/embarrassed_smile.gif | Bin 0 -> 786 bytes .../smiley/images/embarrassed_smile.png | Bin 0 -> 1145 bytes release/plugins/smiley/images/envelope.gif | Bin 0 -> 506 bytes release/plugins/smiley/images/envelope.png | Bin 0 -> 760 bytes release/plugins/smiley/images/heart.gif | Bin 0 -> 692 bytes release/plugins/smiley/images/heart.png | Bin 0 -> 999 bytes release/plugins/smiley/images/kiss.gif | Bin 0 -> 683 bytes release/plugins/smiley/images/kiss.png | Bin 0 -> 1003 bytes release/plugins/smiley/images/lightbulb.gif | Bin 0 -> 660 bytes release/plugins/smiley/images/lightbulb.png | Bin 0 -> 919 bytes release/plugins/smiley/images/omg_smile.gif | Bin 0 -> 820 bytes release/plugins/smiley/images/omg_smile.png | Bin 0 -> 1122 bytes .../plugins/smiley/images/regular_smile.gif | Bin 0 -> 1209 bytes .../plugins/smiley/images/regular_smile.png | Bin 0 -> 1084 bytes release/plugins/smiley/images/sad_smile.gif | Bin 0 -> 782 bytes release/plugins/smiley/images/sad_smile.png | Bin 0 -> 1115 bytes .../plugins/smiley/images/shades_smile.gif | Bin 0 -> 1231 bytes .../plugins/smiley/images/shades_smile.png | Bin 0 -> 1204 bytes release/plugins/smiley/images/teeth_smile.gif | Bin 0 -> 1201 bytes release/plugins/smiley/images/teeth_smile.png | Bin 0 -> 1183 bytes release/plugins/smiley/images/thumbs_down.gif | Bin 0 -> 715 bytes release/plugins/smiley/images/thumbs_down.png | Bin 0 -> 985 bytes release/plugins/smiley/images/thumbs_up.gif | Bin 0 -> 714 bytes release/plugins/smiley/images/thumbs_up.png | Bin 0 -> 959 bytes .../plugins/smiley/images/tongue_smile.gif | Bin 0 -> 1210 bytes .../plugins/smiley/images/tongue_smile.png | Bin 0 -> 1132 bytes .../plugins/smiley/images/tounge_smile.gif | Bin 0 -> 1210 bytes .../images/whatchutalkingabout_smile.gif | Bin 0 -> 775 bytes .../images/whatchutalkingabout_smile.png | Bin 0 -> 1039 bytes release/plugins/smiley/images/wink_smile.gif | Bin 0 -> 1202 bytes release/plugins/smiley/images/wink_smile.png | Bin 0 -> 1114 bytes .../dialogs/lang/_translationstatus.txt | 20 + .../plugins/specialchar/dialogs/lang/af.js | 13 + .../plugins/specialchar/dialogs/lang/ar.js | 13 + .../plugins/specialchar/dialogs/lang/bg.js | 13 + .../plugins/specialchar/dialogs/lang/ca.js | 14 + .../plugins/specialchar/dialogs/lang/cs.js | 13 + .../plugins/specialchar/dialogs/lang/cy.js | 14 + .../plugins/specialchar/dialogs/lang/da.js | 11 + .../plugins/specialchar/dialogs/lang/de.js | 13 + .../plugins/specialchar/dialogs/lang/el.js | 13 + .../plugins/specialchar/dialogs/lang/en-gb.js | 13 + .../plugins/specialchar/dialogs/lang/en.js | 13 + .../plugins/specialchar/dialogs/lang/eo.js | 12 + .../plugins/specialchar/dialogs/lang/es.js | 13 + .../plugins/specialchar/dialogs/lang/et.js | 13 + .../plugins/specialchar/dialogs/lang/eu.js | 13 + .../plugins/specialchar/dialogs/lang/fa.js | 12 + .../plugins/specialchar/dialogs/lang/fi.js | 13 + .../plugins/specialchar/dialogs/lang/fr-ca.js | 10 + .../plugins/specialchar/dialogs/lang/fr.js | 11 + .../plugins/specialchar/dialogs/lang/gl.js | 13 + .../plugins/specialchar/dialogs/lang/he.js | 12 + .../plugins/specialchar/dialogs/lang/hr.js | 13 + .../plugins/specialchar/dialogs/lang/hu.js | 12 + .../plugins/specialchar/dialogs/lang/id.js | 13 + .../plugins/specialchar/dialogs/lang/it.js | 14 + .../plugins/specialchar/dialogs/lang/ja.js | 9 + .../plugins/specialchar/dialogs/lang/km.js | 13 + .../plugins/specialchar/dialogs/lang/ko.js | 10 + .../plugins/specialchar/dialogs/lang/ku.js | 13 + .../plugins/specialchar/dialogs/lang/lt.js | 13 + .../plugins/specialchar/dialogs/lang/lv.js | 13 + .../plugins/specialchar/dialogs/lang/nb.js | 11 + .../plugins/specialchar/dialogs/lang/nl.js | 13 + .../plugins/specialchar/dialogs/lang/no.js | 11 + .../plugins/specialchar/dialogs/lang/pl.js | 12 + .../plugins/specialchar/dialogs/lang/pt-br.js | 11 + .../plugins/specialchar/dialogs/lang/pt.js | 13 + .../plugins/specialchar/dialogs/lang/ru.js | 13 + .../plugins/specialchar/dialogs/lang/si.js | 13 + .../plugins/specialchar/dialogs/lang/sk.js | 13 + .../plugins/specialchar/dialogs/lang/sl.js | 12 + .../plugins/specialchar/dialogs/lang/sq.js | 13 + .../plugins/specialchar/dialogs/lang/sv.js | 11 + .../plugins/specialchar/dialogs/lang/th.js | 13 + .../plugins/specialchar/dialogs/lang/tr.js | 12 + .../plugins/specialchar/dialogs/lang/tt.js | 13 + .../plugins/specialchar/dialogs/lang/ug.js | 13 + .../plugins/specialchar/dialogs/lang/uk.js | 12 + .../plugins/specialchar/dialogs/lang/vi.js | 14 + .../plugins/specialchar/dialogs/lang/zh-cn.js | 9 + .../plugins/specialchar/dialogs/lang/zh.js | 9 + .../specialchar/dialogs/specialchar.js | 14 + release/plugins/table/dialogs/table.js | 21 + .../plugins/tabletools/dialogs/tableCell.js | 17 + .../plugins/templates/dialogs/templates.css | 84 + .../plugins/templates/dialogs/templates.js | 10 + .../plugins/templates/templates/default.js | 7 + .../templates/templates/images/template1.gif | Bin 0 -> 375 bytes .../templates/templates/images/template2.gif | Bin 0 -> 333 bytes .../templates/templates/images/template3.gif | Bin 0 -> 422 bytes release/plugins/wsc/LICENSE.md | 28 + release/plugins/wsc/README.md | 25 + release/plugins/wsc/dialogs/ciframe.html | 66 + release/plugins/wsc/dialogs/tmpFrameset.html | 52 + release/plugins/wsc/dialogs/wsc.css | 82 + release/plugins/wsc/dialogs/wsc.js | 92 + release/plugins/wsc/dialogs/wsc_ie.js | 11 + release/samples/css/samples.css | 1640 ++++ release/samples/img/github-top.png | Bin 0 -> 383 bytes release/samples/img/header-bg.png | Bin 0 -> 13086 bytes release/samples/img/header-separator.png | Bin 0 -> 123 bytes release/samples/img/logo.png | Bin 0 -> 5891 bytes release/samples/img/navigation-tip.png | Bin 0 -> 12029 bytes release/samples/index.html | 128 + release/samples/js/sample.js | 53 + release/samples/js/sf.js | 17 + release/samples/old/ajax.html | 85 + release/samples/old/api.html | 210 + release/samples/old/appendto.html | 59 + release/samples/old/assets/inlineall/logo.png | Bin 0 -> 4283 bytes .../old/assets/outputxhtml/outputxhtml.css | 204 + release/samples/old/assets/posteddata.php | 59 + release/samples/old/assets/sample.jpg | Bin 0 -> 14449 bytes .../old/assets/uilanguages/languages.js | 7 + release/samples/old/datafiltering.html | 508 + .../samples/old/dialog/assets/my_dialog.js | 48 + release/samples/old/dialog/dialog.html | 190 + release/samples/old/divreplace.html | 144 + release/samples/old/enterkey/enterkey.html | 106 + .../assets/outputforflash/outputforflash.fla | Bin 0 -> 85504 bytes .../assets/outputforflash/outputforflash.swf | Bin 0 -> 15571 bytes .../assets/outputforflash/swfobject.js | 19 + .../old/htmlwriter/outputforflash.html | 283 + .../samples/old/htmlwriter/outputhtml.html | 224 + release/samples/old/index.html | 131 + release/samples/old/inlineall.html | 314 + release/samples/old/inlinebycode.html | 124 + release/samples/old/inlinetextarea.html | 113 + release/samples/old/jquery.html | 103 + release/samples/old/magicline/magicline.html | 209 + release/samples/old/readonly.html | 76 + release/samples/old/replacebyclass.html | 60 + release/samples/old/replacebycode.html | 59 + release/samples/old/sample.css | 357 + release/samples/old/sample.js | 50 + release/samples/old/sample_posteddata.php | 16 + release/samples/old/tabindex.html | 78 + release/samples/old/toolbar/toolbar.html | 235 + release/samples/old/uicolor.html | 72 + release/samples/old/uilanguages.html | 122 + release/samples/old/wysiwygarea/fullpage.html | 80 + release/samples/old/xhtmlstyle.html | 234 + .../toolbarconfigurator/css/fontello.css | 55 + .../toolbarconfigurator/font/LICENSE.txt | 10 + .../toolbarconfigurator/font/config.json | 28 + .../toolbarconfigurator/font/fontello.eot | Bin 0 -> 4988 bytes .../toolbarconfigurator/font/fontello.svg | 14 + .../toolbarconfigurator/font/fontello.ttf | Bin 0 -> 4820 bytes .../toolbarconfigurator/font/fontello.woff | Bin 0 -> 2904 bytes .../samples/toolbarconfigurator/index.html | 446 + .../js/abstracttoolbarmodifier.js | 13 + .../js/fulltoolbareditor.js | 9 + .../toolbarconfigurator/js/toolbarmodifier.js | 33 + .../js/toolbartextmodifier.js | 14 + .../lib/codemirror/LICENSE | 19 + .../lib/codemirror/codemirror.css | 325 + .../lib/codemirror/codemirror.js | 288 + .../lib/codemirror/javascript.js | 25 + .../lib/codemirror/neo.css | 36 + .../lib/codemirror/show-hint.css | 38 + .../lib/codemirror/show-hint.js | 16 + release/skins/moono/dialog.css | 5 + release/skins/moono/dialog_ie.css | 5 + release/skins/moono/dialog_ie7.css | 5 + release/skins/moono/dialog_ie8.css | 5 + release/skins/moono/dialog_iequirks.css | 5 + release/skins/moono/editor.css | 5 + release/skins/moono/editor_gecko.css | 5 + release/skins/moono/editor_ie.css | 5 + release/skins/moono/editor_ie7.css | 5 + release/skins/moono/editor_ie8.css | 5 + release/skins/moono/editor_iequirks.css | 5 + release/skins/moono/icons.png | Bin 0 -> 20298 bytes release/skins/moono/icons_hidpi.png | Bin 0 -> 66495 bytes release/skins/moono/images/arrow.png | Bin 0 -> 191 bytes release/skins/moono/images/close.png | Bin 0 -> 468 bytes release/skins/moono/images/hidpi/close.png | Bin 0 -> 1271 bytes .../skins/moono/images/hidpi/lock-open.png | Bin 0 -> 1329 bytes release/skins/moono/images/hidpi/lock.png | Bin 0 -> 1299 bytes release/skins/moono/images/hidpi/refresh.png | Bin 0 -> 1842 bytes release/skins/moono/images/lock-open.png | Bin 0 -> 349 bytes release/skins/moono/images/lock.png | Bin 0 -> 475 bytes release/skins/moono/images/refresh.png | Bin 0 -> 422 bytes release/skins/moono/images/spinner.gif | Bin 0 -> 2984 bytes release/skins/moono/readme.md | 49 + release/styles.js | 111 + sources/CHANGES.md | 1037 ++ sources/LICENSE.md | 1641 ++++ sources/README.md | 39 + sources/ckeditor.js | 48 + sources/config.js | 45 + sources/contents.css | 132 + sources/core/_bootstrap.js | 74 + sources/core/ckeditor.js | 204 + sources/core/ckeditor_base.js | 314 + sources/core/ckeditor_basic.js | 94 + sources/core/command.js | 275 + sources/core/commanddefinition.js | 148 + sources/core/config.js | 451 + sources/core/creators/inline.js | 157 + sources/core/creators/themedui.js | 541 + sources/core/dataprocessor.js | 70 + sources/core/dom.js | 13 + sources/core/dom/comment.js | 53 + sources/core/dom/document.js | 326 + sources/core/dom/documentfragment.js | 62 + sources/core/dom/domobject.js | 266 + sources/core/dom/element.js | 2107 ++++ sources/core/dom/elementpath.js | 251 + sources/core/dom/event.js | 208 + sources/core/dom/iterator.js | 565 ++ sources/core/dom/node.js | 897 ++ sources/core/dom/nodelist.js | 43 + sources/core/dom/range.js | 2860 ++++++ sources/core/dom/rangelist.js | 199 + sources/core/dom/text.js | 135 + sources/core/dom/walker.js | 652 ++ sources/core/dom/window.js | 95 + sources/core/dtd.js | 349 + sources/core/editable.js | 3158 ++++++ sources/core/editor.js | 1963 ++++ sources/core/editor_basic.js | 36 + sources/core/env.js | 361 + sources/core/event.js | 389 + sources/core/eventInfo.js | 115 + sources/core/filter.js | 2440 +++++ sources/core/focusmanager.js | 273 + sources/core/htmldataprocessor.js | 1036 ++ sources/core/htmlparser.js | 205 + sources/core/htmlparser/basicwriter.js | 152 + sources/core/htmlparser/cdata.js | 48 + sources/core/htmlparser/comment.js | 80 + sources/core/htmlparser/element.js | 536 + sources/core/htmlparser/filter.js | 407 + sources/core/htmlparser/fragment.js | 646 ++ sources/core/htmlparser/node.js | 156 + sources/core/htmlparser/text.js | 70 + sources/core/keystrokehandler.js | 169 + sources/core/lang.js | 103 + sources/core/loader.js | 225 + sources/core/log.js | 127 + sources/core/plugindefinition.js | 177 + sources/core/plugins.js | 119 + sources/core/resourcemanager.js | 228 + sources/core/scriptloader.js | 203 + sources/core/selection.js | 2183 ++++ sources/core/skin.js | 350 + sources/core/style.js | 2089 ++++ sources/core/template.js | 68 + sources/core/tools.js | 1386 +++ sources/core/ui.js | 185 + sources/lang/_translationstatus.txt | 63 + sources/lang/af.js | 100 + sources/lang/ar.js | 100 + sources/lang/bg.js | 100 + sources/lang/bn.js | 100 + sources/lang/bs.js | 100 + sources/lang/ca.js | 100 + sources/lang/cs.js | 100 + sources/lang/cy.js | 100 + sources/lang/da.js | 100 + sources/lang/de.js | 100 + sources/lang/el.js | 100 + sources/lang/en-au.js | 100 + sources/lang/en-ca.js | 100 + sources/lang/en-gb.js | 100 + sources/lang/en.js | 100 + sources/lang/eo.js | 100 + sources/lang/es.js | 100 + sources/lang/et.js | 100 + sources/lang/eu.js | 100 + sources/lang/fa.js | 100 + sources/lang/fi.js | 100 + sources/lang/fo.js | 100 + sources/lang/fr-ca.js | 100 + sources/lang/fr.js | 100 + sources/lang/gl.js | 100 + sources/lang/gu.js | 100 + sources/lang/he.js | 100 + sources/lang/hi.js | 100 + sources/lang/hr.js | 100 + sources/lang/hu.js | 100 + sources/lang/id.js | 99 + sources/lang/is.js | 100 + sources/lang/it.js | 100 + sources/lang/ja.js | 100 + sources/lang/ka.js | 100 + sources/lang/km.js | 100 + sources/lang/ko.js | 100 + sources/lang/ku.js | 99 + sources/lang/lt.js | 100 + sources/lang/lv.js | 100 + sources/lang/mk.js | 99 + sources/lang/mn.js | 100 + sources/lang/ms.js | 100 + sources/lang/nb.js | 100 + sources/lang/nl.js | 100 + sources/lang/no.js | 100 + sources/lang/pl.js | 100 + sources/lang/pt-br.js | 99 + sources/lang/pt.js | 100 + sources/lang/ro.js | 100 + sources/lang/ru.js | 100 + sources/lang/si.js | 99 + sources/lang/sk.js | 100 + sources/lang/sl.js | 100 + sources/lang/sq.js | 99 + sources/lang/sr-latn.js | 100 + sources/lang/sr.js | 100 + sources/lang/sv.js | 99 + sources/lang/th.js | 100 + sources/lang/tr.js | 99 + sources/lang/tt.js | 100 + sources/lang/ug.js | 99 + sources/lang/uk.js | 100 + sources/lang/vi.js | 100 + sources/lang/zh-cn.js | 100 + sources/lang/zh.js | 100 + sources/plugins/a11yhelp/dialogs/a11yhelp.js | 216 + .../dialogs/lang/_translationstatus.txt | 25 + sources/plugins/a11yhelp/dialogs/lang/af.js | 148 + sources/plugins/a11yhelp/dialogs/lang/ar.js | 148 + sources/plugins/a11yhelp/dialogs/lang/bg.js | 148 + sources/plugins/a11yhelp/dialogs/lang/ca.js | 148 + sources/plugins/a11yhelp/dialogs/lang/cs.js | 148 + sources/plugins/a11yhelp/dialogs/lang/cy.js | 148 + sources/plugins/a11yhelp/dialogs/lang/da.js | 148 + sources/plugins/a11yhelp/dialogs/lang/de.js | 148 + sources/plugins/a11yhelp/dialogs/lang/el.js | 148 + .../plugins/a11yhelp/dialogs/lang/en-gb.js | 148 + sources/plugins/a11yhelp/dialogs/lang/en.js | 167 + sources/plugins/a11yhelp/dialogs/lang/eo.js | 148 + sources/plugins/a11yhelp/dialogs/lang/es.js | 148 + sources/plugins/a11yhelp/dialogs/lang/et.js | 148 + sources/plugins/a11yhelp/dialogs/lang/eu.js | 148 + sources/plugins/a11yhelp/dialogs/lang/fa.js | 148 + sources/plugins/a11yhelp/dialogs/lang/fi.js | 148 + sources/plugins/a11yhelp/dialogs/lang/fo.js | 148 + .../plugins/a11yhelp/dialogs/lang/fr-ca.js | 148 + sources/plugins/a11yhelp/dialogs/lang/fr.js | 148 + sources/plugins/a11yhelp/dialogs/lang/gl.js | 148 + sources/plugins/a11yhelp/dialogs/lang/gu.js | 148 + sources/plugins/a11yhelp/dialogs/lang/he.js | 148 + sources/plugins/a11yhelp/dialogs/lang/hi.js | 148 + sources/plugins/a11yhelp/dialogs/lang/hr.js | 148 + sources/plugins/a11yhelp/dialogs/lang/hu.js | 148 + sources/plugins/a11yhelp/dialogs/lang/id.js | 148 + sources/plugins/a11yhelp/dialogs/lang/it.js | 148 + sources/plugins/a11yhelp/dialogs/lang/ja.js | 148 + sources/plugins/a11yhelp/dialogs/lang/km.js | 148 + sources/plugins/a11yhelp/dialogs/lang/ko.js | 148 + sources/plugins/a11yhelp/dialogs/lang/ku.js | 148 + sources/plugins/a11yhelp/dialogs/lang/lt.js | 148 + sources/plugins/a11yhelp/dialogs/lang/lv.js | 148 + sources/plugins/a11yhelp/dialogs/lang/mk.js | 148 + sources/plugins/a11yhelp/dialogs/lang/mn.js | 148 + sources/plugins/a11yhelp/dialogs/lang/nb.js | 148 + sources/plugins/a11yhelp/dialogs/lang/nl.js | 148 + sources/plugins/a11yhelp/dialogs/lang/no.js | 148 + sources/plugins/a11yhelp/dialogs/lang/pl.js | 148 + .../plugins/a11yhelp/dialogs/lang/pt-br.js | 148 + sources/plugins/a11yhelp/dialogs/lang/pt.js | 148 + sources/plugins/a11yhelp/dialogs/lang/ro.js | 148 + sources/plugins/a11yhelp/dialogs/lang/ru.js | 148 + sources/plugins/a11yhelp/dialogs/lang/si.js | 148 + sources/plugins/a11yhelp/dialogs/lang/sk.js | 148 + sources/plugins/a11yhelp/dialogs/lang/sl.js | 148 + sources/plugins/a11yhelp/dialogs/lang/sq.js | 148 + .../plugins/a11yhelp/dialogs/lang/sr-latn.js | 148 + sources/plugins/a11yhelp/dialogs/lang/sr.js | 148 + sources/plugins/a11yhelp/dialogs/lang/sv.js | 148 + sources/plugins/a11yhelp/dialogs/lang/th.js | 148 + sources/plugins/a11yhelp/dialogs/lang/tr.js | 148 + sources/plugins/a11yhelp/dialogs/lang/tt.js | 148 + sources/plugins/a11yhelp/dialogs/lang/ug.js | 148 + sources/plugins/a11yhelp/dialogs/lang/uk.js | 148 + sources/plugins/a11yhelp/dialogs/lang/vi.js | 148 + .../plugins/a11yhelp/dialogs/lang/zh-cn.js | 148 + sources/plugins/a11yhelp/dialogs/lang/zh.js | 148 + sources/plugins/a11yhelp/plugin.js | 51 + sources/plugins/about/dialogs/about.js | 73 + .../about/dialogs/hidpi/logo_ckeditor.png | Bin 0 -> 13339 bytes .../plugins/about/dialogs/logo_ckeditor.png | Bin 0 -> 6757 bytes sources/plugins/about/icons/about.png | Bin 0 -> 843 bytes sources/plugins/about/icons/hidpi/about.png | Bin 0 -> 1992 bytes sources/plugins/about/lang/af.js | 12 + sources/plugins/about/lang/ar.js | 12 + sources/plugins/about/lang/bg.js | 12 + sources/plugins/about/lang/bn.js | 12 + sources/plugins/about/lang/bs.js | 12 + sources/plugins/about/lang/ca.js | 12 + sources/plugins/about/lang/cs.js | 12 + sources/plugins/about/lang/cy.js | 12 + sources/plugins/about/lang/da.js | 12 + sources/plugins/about/lang/de.js | 12 + sources/plugins/about/lang/el.js | 12 + sources/plugins/about/lang/en-au.js | 12 + sources/plugins/about/lang/en-ca.js | 12 + sources/plugins/about/lang/en-gb.js | 12 + sources/plugins/about/lang/en.js | 12 + sources/plugins/about/lang/eo.js | 12 + sources/plugins/about/lang/es.js | 12 + sources/plugins/about/lang/et.js | 12 + sources/plugins/about/lang/eu.js | 12 + sources/plugins/about/lang/fa.js | 12 + sources/plugins/about/lang/fi.js | 12 + sources/plugins/about/lang/fo.js | 12 + sources/plugins/about/lang/fr-ca.js | 12 + sources/plugins/about/lang/fr.js | 12 + sources/plugins/about/lang/gl.js | 12 + sources/plugins/about/lang/gu.js | 12 + sources/plugins/about/lang/he.js | 12 + sources/plugins/about/lang/hi.js | 12 + sources/plugins/about/lang/hr.js | 12 + sources/plugins/about/lang/hu.js | 12 + sources/plugins/about/lang/id.js | 12 + sources/plugins/about/lang/is.js | 12 + sources/plugins/about/lang/it.js | 12 + sources/plugins/about/lang/ja.js | 12 + sources/plugins/about/lang/ka.js | 12 + sources/plugins/about/lang/km.js | 12 + sources/plugins/about/lang/ko.js | 12 + sources/plugins/about/lang/ku.js | 12 + sources/plugins/about/lang/lt.js | 12 + sources/plugins/about/lang/lv.js | 12 + sources/plugins/about/lang/mk.js | 12 + sources/plugins/about/lang/mn.js | 12 + sources/plugins/about/lang/ms.js | 12 + sources/plugins/about/lang/nb.js | 12 + sources/plugins/about/lang/nl.js | 12 + sources/plugins/about/lang/no.js | 12 + sources/plugins/about/lang/pl.js | 12 + sources/plugins/about/lang/pt-br.js | 12 + sources/plugins/about/lang/pt.js | 12 + sources/plugins/about/lang/ro.js | 12 + sources/plugins/about/lang/ru.js | 12 + sources/plugins/about/lang/si.js | 12 + sources/plugins/about/lang/sk.js | 12 + sources/plugins/about/lang/sl.js | 12 + sources/plugins/about/lang/sq.js | 12 + sources/plugins/about/lang/sr-latn.js | 12 + sources/plugins/about/lang/sr.js | 12 + sources/plugins/about/lang/sv.js | 12 + sources/plugins/about/lang/th.js | 12 + sources/plugins/about/lang/tr.js | 12 + sources/plugins/about/lang/tt.js | 12 + sources/plugins/about/lang/ug.js | 12 + sources/plugins/about/lang/uk.js | 12 + sources/plugins/about/lang/vi.js | 12 + sources/plugins/about/lang/zh-cn.js | 12 + sources/plugins/about/lang/zh.js | 12 + sources/plugins/about/plugin.js | 27 + sources/plugins/basicstyles/icons/bold.png | Bin 0 -> 813 bytes .../plugins/basicstyles/icons/hidpi/bold.png | Bin 0 -> 1865 bytes .../basicstyles/icons/hidpi/italic.png | Bin 0 -> 1452 bytes .../basicstyles/icons/hidpi/strike.png | Bin 0 -> 2171 bytes .../basicstyles/icons/hidpi/subscript.png | Bin 0 -> 1965 bytes .../basicstyles/icons/hidpi/superscript.png | Bin 0 -> 2021 bytes .../basicstyles/icons/hidpi/underline.png | Bin 0 -> 1577 bytes sources/plugins/basicstyles/icons/italic.png | Bin 0 -> 708 bytes sources/plugins/basicstyles/icons/strike.png | Bin 0 -> 879 bytes .../plugins/basicstyles/icons/subscript.png | Bin 0 -> 806 bytes .../plugins/basicstyles/icons/superscript.png | Bin 0 -> 859 bytes .../plugins/basicstyles/icons/underline.png | Bin 0 -> 747 bytes sources/plugins/basicstyles/lang/af.js | 12 + sources/plugins/basicstyles/lang/ar.js | 12 + sources/plugins/basicstyles/lang/bg.js | 12 + sources/plugins/basicstyles/lang/bn.js | 12 + sources/plugins/basicstyles/lang/bs.js | 12 + sources/plugins/basicstyles/lang/ca.js | 12 + sources/plugins/basicstyles/lang/cs.js | 12 + sources/plugins/basicstyles/lang/cy.js | 12 + sources/plugins/basicstyles/lang/da.js | 12 + sources/plugins/basicstyles/lang/de.js | 12 + sources/plugins/basicstyles/lang/el.js | 12 + sources/plugins/basicstyles/lang/en-au.js | 12 + sources/plugins/basicstyles/lang/en-ca.js | 12 + sources/plugins/basicstyles/lang/en-gb.js | 12 + sources/plugins/basicstyles/lang/en.js | 12 + sources/plugins/basicstyles/lang/eo.js | 12 + sources/plugins/basicstyles/lang/es.js | 12 + sources/plugins/basicstyles/lang/et.js | 12 + sources/plugins/basicstyles/lang/eu.js | 12 + sources/plugins/basicstyles/lang/fa.js | 12 + sources/plugins/basicstyles/lang/fi.js | 12 + sources/plugins/basicstyles/lang/fo.js | 12 + sources/plugins/basicstyles/lang/fr-ca.js | 12 + sources/plugins/basicstyles/lang/fr.js | 12 + sources/plugins/basicstyles/lang/gl.js | 12 + sources/plugins/basicstyles/lang/gu.js | 12 + sources/plugins/basicstyles/lang/he.js | 12 + sources/plugins/basicstyles/lang/hi.js | 12 + sources/plugins/basicstyles/lang/hr.js | 12 + sources/plugins/basicstyles/lang/hu.js | 12 + sources/plugins/basicstyles/lang/id.js | 12 + sources/plugins/basicstyles/lang/is.js | 12 + sources/plugins/basicstyles/lang/it.js | 12 + sources/plugins/basicstyles/lang/ja.js | 12 + sources/plugins/basicstyles/lang/ka.js | 12 + sources/plugins/basicstyles/lang/km.js | 12 + sources/plugins/basicstyles/lang/ko.js | 12 + sources/plugins/basicstyles/lang/ku.js | 12 + sources/plugins/basicstyles/lang/lt.js | 12 + sources/plugins/basicstyles/lang/lv.js | 12 + sources/plugins/basicstyles/lang/mk.js | 12 + sources/plugins/basicstyles/lang/mn.js | 12 + sources/plugins/basicstyles/lang/ms.js | 12 + sources/plugins/basicstyles/lang/nb.js | 12 + sources/plugins/basicstyles/lang/nl.js | 12 + sources/plugins/basicstyles/lang/no.js | 12 + sources/plugins/basicstyles/lang/pl.js | 12 + sources/plugins/basicstyles/lang/pt-br.js | 12 + sources/plugins/basicstyles/lang/pt.js | 12 + sources/plugins/basicstyles/lang/ro.js | 12 + sources/plugins/basicstyles/lang/ru.js | 12 + sources/plugins/basicstyles/lang/si.js | 12 + sources/plugins/basicstyles/lang/sk.js | 12 + sources/plugins/basicstyles/lang/sl.js | 12 + sources/plugins/basicstyles/lang/sq.js | 12 + sources/plugins/basicstyles/lang/sr-latn.js | 12 + sources/plugins/basicstyles/lang/sr.js | 12 + sources/plugins/basicstyles/lang/sv.js | 12 + sources/plugins/basicstyles/lang/th.js | 12 + sources/plugins/basicstyles/lang/tr.js | 12 + sources/plugins/basicstyles/lang/tt.js | 12 + sources/plugins/basicstyles/lang/ug.js | 12 + sources/plugins/basicstyles/lang/uk.js | 12 + sources/plugins/basicstyles/lang/vi.js | 12 + sources/plugins/basicstyles/lang/zh-cn.js | 12 + sources/plugins/basicstyles/lang/zh.js | 12 + sources/plugins/basicstyles/plugin.js | 209 + sources/plugins/bidi/icons/bidiltr.png | Bin 0 -> 769 bytes sources/plugins/bidi/icons/bidirtl.png | Bin 0 -> 768 bytes sources/plugins/bidi/icons/hidpi/bidiltr.png | Bin 0 -> 1579 bytes sources/plugins/bidi/icons/hidpi/bidirtl.png | Bin 0 -> 1596 bytes sources/plugins/bidi/lang/af.js | 8 + sources/plugins/bidi/lang/ar.js | 8 + sources/plugins/bidi/lang/bg.js | 8 + sources/plugins/bidi/lang/bn.js | 8 + sources/plugins/bidi/lang/bs.js | 8 + sources/plugins/bidi/lang/ca.js | 8 + sources/plugins/bidi/lang/cs.js | 8 + sources/plugins/bidi/lang/cy.js | 8 + sources/plugins/bidi/lang/da.js | 8 + sources/plugins/bidi/lang/de.js | 8 + sources/plugins/bidi/lang/el.js | 8 + sources/plugins/bidi/lang/en-au.js | 8 + sources/plugins/bidi/lang/en-ca.js | 8 + sources/plugins/bidi/lang/en-gb.js | 8 + sources/plugins/bidi/lang/en.js | 8 + sources/plugins/bidi/lang/eo.js | 8 + sources/plugins/bidi/lang/es.js | 8 + sources/plugins/bidi/lang/et.js | 8 + sources/plugins/bidi/lang/eu.js | 8 + sources/plugins/bidi/lang/fa.js | 8 + sources/plugins/bidi/lang/fi.js | 8 + sources/plugins/bidi/lang/fo.js | 8 + sources/plugins/bidi/lang/fr-ca.js | 8 + sources/plugins/bidi/lang/fr.js | 8 + sources/plugins/bidi/lang/gl.js | 8 + sources/plugins/bidi/lang/gu.js | 8 + sources/plugins/bidi/lang/he.js | 8 + sources/plugins/bidi/lang/hi.js | 8 + sources/plugins/bidi/lang/hr.js | 8 + sources/plugins/bidi/lang/hu.js | 8 + sources/plugins/bidi/lang/id.js | 8 + sources/plugins/bidi/lang/is.js | 8 + sources/plugins/bidi/lang/it.js | 8 + sources/plugins/bidi/lang/ja.js | 8 + sources/plugins/bidi/lang/ka.js | 8 + sources/plugins/bidi/lang/km.js | 8 + sources/plugins/bidi/lang/ko.js | 8 + sources/plugins/bidi/lang/ku.js | 8 + sources/plugins/bidi/lang/lt.js | 8 + sources/plugins/bidi/lang/lv.js | 8 + sources/plugins/bidi/lang/mk.js | 8 + sources/plugins/bidi/lang/mn.js | 8 + sources/plugins/bidi/lang/ms.js | 8 + sources/plugins/bidi/lang/nb.js | 8 + sources/plugins/bidi/lang/nl.js | 8 + sources/plugins/bidi/lang/no.js | 8 + sources/plugins/bidi/lang/pl.js | 8 + sources/plugins/bidi/lang/pt-br.js | 8 + sources/plugins/bidi/lang/pt.js | 8 + sources/plugins/bidi/lang/ro.js | 8 + sources/plugins/bidi/lang/ru.js | 8 + sources/plugins/bidi/lang/si.js | 8 + sources/plugins/bidi/lang/sk.js | 8 + sources/plugins/bidi/lang/sl.js | 8 + sources/plugins/bidi/lang/sq.js | 8 + sources/plugins/bidi/lang/sr-latn.js | 8 + sources/plugins/bidi/lang/sr.js | 8 + sources/plugins/bidi/lang/sv.js | 8 + sources/plugins/bidi/lang/th.js | 8 + sources/plugins/bidi/lang/tr.js | 8 + sources/plugins/bidi/lang/tt.js | 8 + sources/plugins/bidi/lang/ug.js | 8 + sources/plugins/bidi/lang/uk.js | 8 + sources/plugins/bidi/lang/vi.js | 8 + sources/plugins/bidi/lang/zh-cn.js | 8 + sources/plugins/bidi/lang/zh.js | 8 + sources/plugins/bidi/plugin.js | 320 + .../plugins/blockquote/icons/blockquote.png | Bin 0 -> 925 bytes .../blockquote/icons/hidpi/blockquote.png | Bin 0 -> 2233 bytes sources/plugins/blockquote/lang/af.js | 7 + sources/plugins/blockquote/lang/ar.js | 7 + sources/plugins/blockquote/lang/bg.js | 7 + sources/plugins/blockquote/lang/bn.js | 7 + sources/plugins/blockquote/lang/bs.js | 7 + sources/plugins/blockquote/lang/ca.js | 7 + sources/plugins/blockquote/lang/cs.js | 7 + sources/plugins/blockquote/lang/cy.js | 7 + sources/plugins/blockquote/lang/da.js | 7 + sources/plugins/blockquote/lang/de.js | 7 + sources/plugins/blockquote/lang/el.js | 7 + sources/plugins/blockquote/lang/en-au.js | 7 + sources/plugins/blockquote/lang/en-ca.js | 7 + sources/plugins/blockquote/lang/en-gb.js | 7 + sources/plugins/blockquote/lang/en.js | 7 + sources/plugins/blockquote/lang/eo.js | 7 + sources/plugins/blockquote/lang/es.js | 7 + sources/plugins/blockquote/lang/et.js | 7 + sources/plugins/blockquote/lang/eu.js | 7 + sources/plugins/blockquote/lang/fa.js | 7 + sources/plugins/blockquote/lang/fi.js | 7 + sources/plugins/blockquote/lang/fo.js | 7 + sources/plugins/blockquote/lang/fr-ca.js | 7 + sources/plugins/blockquote/lang/fr.js | 7 + sources/plugins/blockquote/lang/gl.js | 7 + sources/plugins/blockquote/lang/gu.js | 7 + sources/plugins/blockquote/lang/he.js | 7 + sources/plugins/blockquote/lang/hi.js | 7 + sources/plugins/blockquote/lang/hr.js | 7 + sources/plugins/blockquote/lang/hu.js | 7 + sources/plugins/blockquote/lang/id.js | 7 + sources/plugins/blockquote/lang/is.js | 7 + sources/plugins/blockquote/lang/it.js | 7 + sources/plugins/blockquote/lang/ja.js | 7 + sources/plugins/blockquote/lang/ka.js | 7 + sources/plugins/blockquote/lang/km.js | 7 + sources/plugins/blockquote/lang/ko.js | 7 + sources/plugins/blockquote/lang/ku.js | 7 + sources/plugins/blockquote/lang/lt.js | 7 + sources/plugins/blockquote/lang/lv.js | 7 + sources/plugins/blockquote/lang/mk.js | 7 + sources/plugins/blockquote/lang/mn.js | 7 + sources/plugins/blockquote/lang/ms.js | 7 + sources/plugins/blockquote/lang/nb.js | 7 + sources/plugins/blockquote/lang/nl.js | 7 + sources/plugins/blockquote/lang/no.js | 7 + sources/plugins/blockquote/lang/pl.js | 7 + sources/plugins/blockquote/lang/pt-br.js | 7 + sources/plugins/blockquote/lang/pt.js | 7 + sources/plugins/blockquote/lang/ro.js | 7 + sources/plugins/blockquote/lang/ru.js | 7 + sources/plugins/blockquote/lang/si.js | 7 + sources/plugins/blockquote/lang/sk.js | 7 + sources/plugins/blockquote/lang/sl.js | 7 + sources/plugins/blockquote/lang/sq.js | 7 + sources/plugins/blockquote/lang/sr-latn.js | 7 + sources/plugins/blockquote/lang/sr.js | 7 + sources/plugins/blockquote/lang/sv.js | 7 + sources/plugins/blockquote/lang/th.js | 7 + sources/plugins/blockquote/lang/tr.js | 7 + sources/plugins/blockquote/lang/tt.js | 7 + sources/plugins/blockquote/lang/ug.js | 7 + sources/plugins/blockquote/lang/uk.js | 7 + sources/plugins/blockquote/lang/vi.js | 7 + sources/plugins/blockquote/lang/zh-cn.js | 7 + sources/plugins/blockquote/lang/zh.js | 7 + sources/plugins/blockquote/plugin.js | 251 + sources/plugins/button/lang/af.js | 8 + sources/plugins/button/lang/ar.js | 8 + sources/plugins/button/lang/bg.js | 8 + sources/plugins/button/lang/ca.js | 8 + sources/plugins/button/lang/cs.js | 8 + sources/plugins/button/lang/da.js | 8 + sources/plugins/button/lang/de.js | 8 + sources/plugins/button/lang/el.js | 8 + sources/plugins/button/lang/en-gb.js | 8 + sources/plugins/button/lang/en.js | 8 + sources/plugins/button/lang/eo.js | 8 + sources/plugins/button/lang/es.js | 8 + sources/plugins/button/lang/eu.js | 8 + sources/plugins/button/lang/fa.js | 8 + sources/plugins/button/lang/fi.js | 8 + sources/plugins/button/lang/fr.js | 8 + sources/plugins/button/lang/gl.js | 8 + sources/plugins/button/lang/he.js | 8 + sources/plugins/button/lang/hu.js | 8 + sources/plugins/button/lang/id.js | 8 + sources/plugins/button/lang/it.js | 8 + sources/plugins/button/lang/ja.js | 8 + sources/plugins/button/lang/km.js | 8 + sources/plugins/button/lang/ko.js | 8 + sources/plugins/button/lang/ku.js | 8 + sources/plugins/button/lang/lt.js | 8 + sources/plugins/button/lang/nb.js | 8 + sources/plugins/button/lang/nl.js | 8 + sources/plugins/button/lang/pl.js | 8 + sources/plugins/button/lang/pt-br.js | 8 + sources/plugins/button/lang/pt.js | 8 + sources/plugins/button/lang/ro.js | 8 + sources/plugins/button/lang/ru.js | 8 + sources/plugins/button/lang/sk.js | 8 + sources/plugins/button/lang/sl.js | 8 + sources/plugins/button/lang/sq.js | 8 + sources/plugins/button/lang/sv.js | 8 + sources/plugins/button/lang/tr.js | 8 + sources/plugins/button/lang/tt.js | 8 + sources/plugins/button/lang/ug.js | 8 + sources/plugins/button/lang/uk.js | 8 + sources/plugins/button/lang/vi.js | 8 + sources/plugins/button/lang/zh-cn.js | 8 + sources/plugins/button/lang/zh.js | 8 + sources/plugins/button/plugin.js | 377 + sources/plugins/clipboard/dev/clipboard.html | 190 + sources/plugins/clipboard/dev/console.js | 49 + sources/plugins/clipboard/dev/dnd.html | 185 + sources/plugins/clipboard/dialogs/paste.js | 254 + sources/plugins/clipboard/icons/copy-rtl.png | Bin 0 -> 684 bytes sources/plugins/clipboard/icons/copy.png | Bin 0 -> 684 bytes sources/plugins/clipboard/icons/cut-rtl.png | Bin 0 -> 1031 bytes sources/plugins/clipboard/icons/cut.png | Bin 0 -> 1031 bytes .../clipboard/icons/hidpi/copy-rtl.png | Bin 0 -> 1558 bytes .../plugins/clipboard/icons/hidpi/copy.png | Bin 0 -> 1558 bytes .../plugins/clipboard/icons/hidpi/cut-rtl.png | Bin 0 -> 2692 bytes sources/plugins/clipboard/icons/hidpi/cut.png | Bin 0 -> 2692 bytes .../clipboard/icons/hidpi/paste-rtl.png | Bin 0 -> 1959 bytes .../plugins/clipboard/icons/hidpi/paste.png | Bin 0 -> 1959 bytes sources/plugins/clipboard/icons/paste-rtl.png | Bin 0 -> 724 bytes sources/plugins/clipboard/icons/paste.png | Bin 0 -> 724 bytes sources/plugins/clipboard/lang/af.js | 15 + sources/plugins/clipboard/lang/ar.js | 15 + sources/plugins/clipboard/lang/bg.js | 15 + sources/plugins/clipboard/lang/bn.js | 15 + sources/plugins/clipboard/lang/bs.js | 15 + sources/plugins/clipboard/lang/ca.js | 15 + sources/plugins/clipboard/lang/cs.js | 15 + sources/plugins/clipboard/lang/cy.js | 15 + sources/plugins/clipboard/lang/da.js | 15 + sources/plugins/clipboard/lang/de.js | 15 + sources/plugins/clipboard/lang/el.js | 15 + sources/plugins/clipboard/lang/en-au.js | 15 + sources/plugins/clipboard/lang/en-ca.js | 15 + sources/plugins/clipboard/lang/en-gb.js | 15 + sources/plugins/clipboard/lang/en.js | 15 + sources/plugins/clipboard/lang/eo.js | 15 + sources/plugins/clipboard/lang/es.js | 15 + sources/plugins/clipboard/lang/et.js | 15 + sources/plugins/clipboard/lang/eu.js | 15 + sources/plugins/clipboard/lang/fa.js | 15 + sources/plugins/clipboard/lang/fi.js | 15 + sources/plugins/clipboard/lang/fo.js | 15 + sources/plugins/clipboard/lang/fr-ca.js | 15 + sources/plugins/clipboard/lang/fr.js | 15 + sources/plugins/clipboard/lang/gl.js | 15 + sources/plugins/clipboard/lang/gu.js | 15 + sources/plugins/clipboard/lang/he.js | 15 + sources/plugins/clipboard/lang/hi.js | 15 + sources/plugins/clipboard/lang/hr.js | 15 + sources/plugins/clipboard/lang/hu.js | 15 + sources/plugins/clipboard/lang/id.js | 15 + sources/plugins/clipboard/lang/is.js | 15 + sources/plugins/clipboard/lang/it.js | 15 + sources/plugins/clipboard/lang/ja.js | 15 + sources/plugins/clipboard/lang/ka.js | 15 + sources/plugins/clipboard/lang/km.js | 15 + sources/plugins/clipboard/lang/ko.js | 15 + sources/plugins/clipboard/lang/ku.js | 15 + sources/plugins/clipboard/lang/lt.js | 15 + sources/plugins/clipboard/lang/lv.js | 15 + sources/plugins/clipboard/lang/mk.js | 15 + sources/plugins/clipboard/lang/mn.js | 15 + sources/plugins/clipboard/lang/ms.js | 15 + sources/plugins/clipboard/lang/nb.js | 15 + sources/plugins/clipboard/lang/nl.js | 15 + sources/plugins/clipboard/lang/no.js | 15 + sources/plugins/clipboard/lang/pl.js | 15 + sources/plugins/clipboard/lang/pt-br.js | 15 + sources/plugins/clipboard/lang/pt.js | 15 + sources/plugins/clipboard/lang/ro.js | 15 + sources/plugins/clipboard/lang/ru.js | 15 + sources/plugins/clipboard/lang/si.js | 15 + sources/plugins/clipboard/lang/sk.js | 15 + sources/plugins/clipboard/lang/sl.js | 15 + sources/plugins/clipboard/lang/sq.js | 15 + sources/plugins/clipboard/lang/sr-latn.js | 15 + sources/plugins/clipboard/lang/sr.js | 15 + sources/plugins/clipboard/lang/sv.js | 15 + sources/plugins/clipboard/lang/th.js | 15 + sources/plugins/clipboard/lang/tr.js | 15 + sources/plugins/clipboard/lang/tt.js | 15 + sources/plugins/clipboard/lang/ug.js | 15 + sources/plugins/clipboard/lang/uk.js | 15 + sources/plugins/clipboard/lang/vi.js | 15 + sources/plugins/clipboard/lang/zh-cn.js | 15 + sources/plugins/clipboard/lang/zh.js | 15 + sources/plugins/clipboard/plugin.js | 2723 +++++ sources/plugins/colorbutton/icons/bgcolor.png | Bin 0 -> 906 bytes .../colorbutton/icons/hidpi/bgcolor.png | Bin 0 -> 2169 bytes .../colorbutton/icons/hidpi/textcolor.png | Bin 0 -> 1725 bytes .../plugins/colorbutton/icons/textcolor.png | Bin 0 -> 813 bytes sources/plugins/colorbutton/lang/af.js | 53 + sources/plugins/colorbutton/lang/ar.js | 53 + sources/plugins/colorbutton/lang/bg.js | 53 + sources/plugins/colorbutton/lang/bn.js | 53 + sources/plugins/colorbutton/lang/bs.js | 53 + sources/plugins/colorbutton/lang/ca.js | 53 + sources/plugins/colorbutton/lang/cs.js | 53 + sources/plugins/colorbutton/lang/cy.js | 53 + sources/plugins/colorbutton/lang/da.js | 53 + sources/plugins/colorbutton/lang/de.js | 53 + sources/plugins/colorbutton/lang/el.js | 53 + sources/plugins/colorbutton/lang/en-au.js | 53 + sources/plugins/colorbutton/lang/en-ca.js | 53 + sources/plugins/colorbutton/lang/en-gb.js | 53 + sources/plugins/colorbutton/lang/en.js | 53 + sources/plugins/colorbutton/lang/eo.js | 53 + sources/plugins/colorbutton/lang/es.js | 53 + sources/plugins/colorbutton/lang/et.js | 53 + sources/plugins/colorbutton/lang/eu.js | 53 + sources/plugins/colorbutton/lang/fa.js | 53 + sources/plugins/colorbutton/lang/fi.js | 53 + sources/plugins/colorbutton/lang/fo.js | 53 + sources/plugins/colorbutton/lang/fr-ca.js | 53 + sources/plugins/colorbutton/lang/fr.js | 53 + sources/plugins/colorbutton/lang/gl.js | 53 + sources/plugins/colorbutton/lang/gu.js | 53 + sources/plugins/colorbutton/lang/he.js | 53 + sources/plugins/colorbutton/lang/hi.js | 53 + sources/plugins/colorbutton/lang/hr.js | 53 + sources/plugins/colorbutton/lang/hu.js | 53 + sources/plugins/colorbutton/lang/id.js | 53 + sources/plugins/colorbutton/lang/is.js | 53 + sources/plugins/colorbutton/lang/it.js | 53 + sources/plugins/colorbutton/lang/ja.js | 53 + sources/plugins/colorbutton/lang/ka.js | 53 + sources/plugins/colorbutton/lang/km.js | 53 + sources/plugins/colorbutton/lang/ko.js | 53 + sources/plugins/colorbutton/lang/ku.js | 53 + sources/plugins/colorbutton/lang/lt.js | 53 + sources/plugins/colorbutton/lang/lv.js | 53 + sources/plugins/colorbutton/lang/mk.js | 53 + sources/plugins/colorbutton/lang/mn.js | 53 + sources/plugins/colorbutton/lang/ms.js | 53 + sources/plugins/colorbutton/lang/nb.js | 53 + sources/plugins/colorbutton/lang/nl.js | 53 + sources/plugins/colorbutton/lang/no.js | 53 + sources/plugins/colorbutton/lang/pl.js | 53 + sources/plugins/colorbutton/lang/pt-br.js | 53 + sources/plugins/colorbutton/lang/pt.js | 53 + sources/plugins/colorbutton/lang/ro.js | 53 + sources/plugins/colorbutton/lang/ru.js | 53 + sources/plugins/colorbutton/lang/si.js | 53 + sources/plugins/colorbutton/lang/sk.js | 53 + sources/plugins/colorbutton/lang/sl.js | 53 + sources/plugins/colorbutton/lang/sq.js | 53 + sources/plugins/colorbutton/lang/sr-latn.js | 53 + sources/plugins/colorbutton/lang/sr.js | 53 + sources/plugins/colorbutton/lang/sv.js | 53 + sources/plugins/colorbutton/lang/th.js | 53 + sources/plugins/colorbutton/lang/tr.js | 53 + sources/plugins/colorbutton/lang/tt.js | 53 + sources/plugins/colorbutton/lang/ug.js | 53 + sources/plugins/colorbutton/lang/uk.js | 53 + sources/plugins/colorbutton/lang/vi.js | 53 + sources/plugins/colorbutton/lang/zh-cn.js | 53 + sources/plugins/colorbutton/lang/zh.js | 53 + sources/plugins/colorbutton/plugin.js | 301 + .../colordialog/dialogs/colordialog.js | 327 + sources/plugins/colordialog/lang/af.js | 11 + sources/plugins/colordialog/lang/ar.js | 11 + sources/plugins/colordialog/lang/bg.js | 11 + sources/plugins/colordialog/lang/bn.js | 11 + sources/plugins/colordialog/lang/bs.js | 11 + sources/plugins/colordialog/lang/ca.js | 11 + sources/plugins/colordialog/lang/cs.js | 11 + sources/plugins/colordialog/lang/cy.js | 11 + sources/plugins/colordialog/lang/da.js | 11 + sources/plugins/colordialog/lang/de.js | 11 + sources/plugins/colordialog/lang/el.js | 11 + sources/plugins/colordialog/lang/en-au.js | 11 + sources/plugins/colordialog/lang/en-ca.js | 11 + sources/plugins/colordialog/lang/en-gb.js | 11 + sources/plugins/colordialog/lang/en.js | 11 + sources/plugins/colordialog/lang/eo.js | 11 + sources/plugins/colordialog/lang/es.js | 11 + sources/plugins/colordialog/lang/et.js | 11 + sources/plugins/colordialog/lang/eu.js | 11 + sources/plugins/colordialog/lang/fa.js | 11 + sources/plugins/colordialog/lang/fi.js | 11 + sources/plugins/colordialog/lang/fo.js | 11 + sources/plugins/colordialog/lang/fr-ca.js | 11 + sources/plugins/colordialog/lang/fr.js | 11 + sources/plugins/colordialog/lang/gl.js | 11 + sources/plugins/colordialog/lang/gu.js | 11 + sources/plugins/colordialog/lang/he.js | 11 + sources/plugins/colordialog/lang/hi.js | 11 + sources/plugins/colordialog/lang/hr.js | 11 + sources/plugins/colordialog/lang/hu.js | 11 + sources/plugins/colordialog/lang/id.js | 11 + sources/plugins/colordialog/lang/is.js | 11 + sources/plugins/colordialog/lang/it.js | 11 + sources/plugins/colordialog/lang/ja.js | 11 + sources/plugins/colordialog/lang/ka.js | 11 + sources/plugins/colordialog/lang/km.js | 11 + sources/plugins/colordialog/lang/ko.js | 11 + sources/plugins/colordialog/lang/ku.js | 11 + sources/plugins/colordialog/lang/lt.js | 11 + sources/plugins/colordialog/lang/lv.js | 11 + sources/plugins/colordialog/lang/mk.js | 11 + sources/plugins/colordialog/lang/mn.js | 11 + sources/plugins/colordialog/lang/ms.js | 11 + sources/plugins/colordialog/lang/nb.js | 11 + sources/plugins/colordialog/lang/nl.js | 11 + sources/plugins/colordialog/lang/no.js | 11 + sources/plugins/colordialog/lang/pl.js | 11 + sources/plugins/colordialog/lang/pt-br.js | 11 + sources/plugins/colordialog/lang/pt.js | 11 + sources/plugins/colordialog/lang/ro.js | 11 + sources/plugins/colordialog/lang/ru.js | 11 + sources/plugins/colordialog/lang/si.js | 11 + sources/plugins/colordialog/lang/sk.js | 11 + sources/plugins/colordialog/lang/sl.js | 11 + sources/plugins/colordialog/lang/sq.js | 11 + sources/plugins/colordialog/lang/sr-latn.js | 11 + sources/plugins/colordialog/lang/sr.js | 11 + sources/plugins/colordialog/lang/sv.js | 11 + sources/plugins/colordialog/lang/th.js | 11 + sources/plugins/colordialog/lang/tr.js | 11 + sources/plugins/colordialog/lang/tt.js | 11 + sources/plugins/colordialog/lang/ug.js | 11 + sources/plugins/colordialog/lang/uk.js | 11 + sources/plugins/colordialog/lang/vi.js | 11 + sources/plugins/colordialog/lang/zh-cn.js | 11 + sources/plugins/colordialog/lang/zh.js | 11 + sources/plugins/colordialog/plugin.js | 71 + sources/plugins/contextmenu/lang/af.js | 7 + sources/plugins/contextmenu/lang/ar.js | 7 + sources/plugins/contextmenu/lang/bg.js | 7 + sources/plugins/contextmenu/lang/bn.js | 7 + sources/plugins/contextmenu/lang/bs.js | 7 + sources/plugins/contextmenu/lang/ca.js | 7 + sources/plugins/contextmenu/lang/cs.js | 7 + sources/plugins/contextmenu/lang/cy.js | 7 + sources/plugins/contextmenu/lang/da.js | 7 + sources/plugins/contextmenu/lang/de.js | 7 + sources/plugins/contextmenu/lang/el.js | 7 + sources/plugins/contextmenu/lang/en-au.js | 7 + sources/plugins/contextmenu/lang/en-ca.js | 7 + sources/plugins/contextmenu/lang/en-gb.js | 7 + sources/plugins/contextmenu/lang/en.js | 7 + sources/plugins/contextmenu/lang/eo.js | 7 + sources/plugins/contextmenu/lang/es.js | 7 + sources/plugins/contextmenu/lang/et.js | 7 + sources/plugins/contextmenu/lang/eu.js | 7 + sources/plugins/contextmenu/lang/fa.js | 7 + sources/plugins/contextmenu/lang/fi.js | 7 + sources/plugins/contextmenu/lang/fo.js | 7 + sources/plugins/contextmenu/lang/fr-ca.js | 7 + sources/plugins/contextmenu/lang/fr.js | 7 + sources/plugins/contextmenu/lang/gl.js | 7 + sources/plugins/contextmenu/lang/gu.js | 7 + sources/plugins/contextmenu/lang/he.js | 7 + sources/plugins/contextmenu/lang/hi.js | 7 + sources/plugins/contextmenu/lang/hr.js | 7 + sources/plugins/contextmenu/lang/hu.js | 7 + sources/plugins/contextmenu/lang/id.js | 7 + sources/plugins/contextmenu/lang/is.js | 7 + sources/plugins/contextmenu/lang/it.js | 7 + sources/plugins/contextmenu/lang/ja.js | 7 + sources/plugins/contextmenu/lang/ka.js | 7 + sources/plugins/contextmenu/lang/km.js | 7 + sources/plugins/contextmenu/lang/ko.js | 7 + sources/plugins/contextmenu/lang/ku.js | 7 + sources/plugins/contextmenu/lang/lt.js | 7 + sources/plugins/contextmenu/lang/lv.js | 7 + sources/plugins/contextmenu/lang/mk.js | 7 + sources/plugins/contextmenu/lang/mn.js | 7 + sources/plugins/contextmenu/lang/ms.js | 7 + sources/plugins/contextmenu/lang/nb.js | 7 + sources/plugins/contextmenu/lang/nl.js | 7 + sources/plugins/contextmenu/lang/no.js | 7 + sources/plugins/contextmenu/lang/pl.js | 7 + sources/plugins/contextmenu/lang/pt-br.js | 7 + sources/plugins/contextmenu/lang/pt.js | 7 + sources/plugins/contextmenu/lang/ro.js | 7 + sources/plugins/contextmenu/lang/ru.js | 7 + sources/plugins/contextmenu/lang/si.js | 7 + sources/plugins/contextmenu/lang/sk.js | 7 + sources/plugins/contextmenu/lang/sl.js | 7 + sources/plugins/contextmenu/lang/sq.js | 7 + sources/plugins/contextmenu/lang/sr-latn.js | 7 + sources/plugins/contextmenu/lang/sr.js | 7 + sources/plugins/contextmenu/lang/sv.js | 7 + sources/plugins/contextmenu/lang/th.js | 7 + sources/plugins/contextmenu/lang/tr.js | 7 + sources/plugins/contextmenu/lang/tt.js | 7 + sources/plugins/contextmenu/lang/ug.js | 7 + sources/plugins/contextmenu/lang/uk.js | 7 + sources/plugins/contextmenu/lang/vi.js | 7 + sources/plugins/contextmenu/lang/zh-cn.js | 7 + sources/plugins/contextmenu/lang/zh.js | 7 + sources/plugins/contextmenu/plugin.js | 159 + sources/plugins/dialog/dialogDefinition.js | 1032 ++ sources/plugins/dialog/plugin.js | 3398 +++++++ .../dialog/samples/assets/my_dialog.js | 49 + sources/plugins/dialog/samples/dialog.html | 190 + sources/plugins/dialogadvtab/plugin.js | 196 + sources/plugins/dialogui/plugin.js | 1530 +++ sources/plugins/div/dialogs/div.js | 430 + sources/plugins/div/icons/creatediv.png | Bin 0 -> 862 bytes sources/plugins/div/icons/hidpi/creatediv.png | Bin 0 -> 3053 bytes sources/plugins/div/lang/af.js | 19 + sources/plugins/div/lang/ar.js | 19 + sources/plugins/div/lang/bg.js | 19 + sources/plugins/div/lang/bn.js | 19 + sources/plugins/div/lang/bs.js | 19 + sources/plugins/div/lang/ca.js | 19 + sources/plugins/div/lang/cs.js | 19 + sources/plugins/div/lang/cy.js | 19 + sources/plugins/div/lang/da.js | 19 + sources/plugins/div/lang/de.js | 19 + sources/plugins/div/lang/el.js | 19 + sources/plugins/div/lang/en-au.js | 19 + sources/plugins/div/lang/en-ca.js | 19 + sources/plugins/div/lang/en-gb.js | 19 + sources/plugins/div/lang/en.js | 19 + sources/plugins/div/lang/eo.js | 19 + sources/plugins/div/lang/es.js | 19 + sources/plugins/div/lang/et.js | 19 + sources/plugins/div/lang/eu.js | 19 + sources/plugins/div/lang/fa.js | 19 + sources/plugins/div/lang/fi.js | 19 + sources/plugins/div/lang/fo.js | 19 + sources/plugins/div/lang/fr-ca.js | 19 + sources/plugins/div/lang/fr.js | 19 + sources/plugins/div/lang/gl.js | 19 + sources/plugins/div/lang/gu.js | 19 + sources/plugins/div/lang/he.js | 19 + sources/plugins/div/lang/hi.js | 19 + sources/plugins/div/lang/hr.js | 19 + sources/plugins/div/lang/hu.js | 19 + sources/plugins/div/lang/id.js | 19 + sources/plugins/div/lang/is.js | 19 + sources/plugins/div/lang/it.js | 19 + sources/plugins/div/lang/ja.js | 19 + sources/plugins/div/lang/ka.js | 19 + sources/plugins/div/lang/km.js | 19 + sources/plugins/div/lang/ko.js | 19 + sources/plugins/div/lang/ku.js | 19 + sources/plugins/div/lang/lt.js | 19 + sources/plugins/div/lang/lv.js | 19 + sources/plugins/div/lang/mk.js | 19 + sources/plugins/div/lang/mn.js | 19 + sources/plugins/div/lang/ms.js | 19 + sources/plugins/div/lang/nb.js | 19 + sources/plugins/div/lang/nl.js | 19 + sources/plugins/div/lang/no.js | 19 + sources/plugins/div/lang/pl.js | 19 + sources/plugins/div/lang/pt-br.js | 19 + sources/plugins/div/lang/pt.js | 19 + sources/plugins/div/lang/ro.js | 19 + sources/plugins/div/lang/ru.js | 19 + sources/plugins/div/lang/si.js | 19 + sources/plugins/div/lang/sk.js | 19 + sources/plugins/div/lang/sl.js | 19 + sources/plugins/div/lang/sq.js | 19 + sources/plugins/div/lang/sr-latn.js | 19 + sources/plugins/div/lang/sr.js | 19 + sources/plugins/div/lang/sv.js | 19 + sources/plugins/div/lang/th.js | 19 + sources/plugins/div/lang/tr.js | 19 + sources/plugins/div/lang/tt.js | 19 + sources/plugins/div/lang/ug.js | 19 + sources/plugins/div/lang/uk.js | 19 + sources/plugins/div/lang/vi.js | 19 + sources/plugins/div/lang/zh-cn.js | 19 + sources/plugins/div/lang/zh.js | 19 + sources/plugins/div/plugin.js | 131 + sources/plugins/elementspath/lang/af.js | 8 + sources/plugins/elementspath/lang/ar.js | 8 + sources/plugins/elementspath/lang/bg.js | 8 + sources/plugins/elementspath/lang/bn.js | 8 + sources/plugins/elementspath/lang/bs.js | 8 + sources/plugins/elementspath/lang/ca.js | 8 + sources/plugins/elementspath/lang/cs.js | 8 + sources/plugins/elementspath/lang/cy.js | 8 + sources/plugins/elementspath/lang/da.js | 8 + sources/plugins/elementspath/lang/de.js | 8 + sources/plugins/elementspath/lang/el.js | 8 + sources/plugins/elementspath/lang/en-au.js | 8 + sources/plugins/elementspath/lang/en-ca.js | 8 + sources/plugins/elementspath/lang/en-gb.js | 8 + sources/plugins/elementspath/lang/en.js | 8 + sources/plugins/elementspath/lang/eo.js | 8 + sources/plugins/elementspath/lang/es.js | 8 + sources/plugins/elementspath/lang/et.js | 8 + sources/plugins/elementspath/lang/eu.js | 8 + sources/plugins/elementspath/lang/fa.js | 8 + sources/plugins/elementspath/lang/fi.js | 8 + sources/plugins/elementspath/lang/fo.js | 8 + sources/plugins/elementspath/lang/fr-ca.js | 8 + sources/plugins/elementspath/lang/fr.js | 8 + sources/plugins/elementspath/lang/gl.js | 8 + sources/plugins/elementspath/lang/gu.js | 8 + sources/plugins/elementspath/lang/he.js | 8 + sources/plugins/elementspath/lang/hi.js | 8 + sources/plugins/elementspath/lang/hr.js | 8 + sources/plugins/elementspath/lang/hu.js | 8 + sources/plugins/elementspath/lang/is.js | 8 + sources/plugins/elementspath/lang/it.js | 8 + sources/plugins/elementspath/lang/ja.js | 8 + sources/plugins/elementspath/lang/ka.js | 8 + sources/plugins/elementspath/lang/km.js | 8 + sources/plugins/elementspath/lang/ko.js | 8 + sources/plugins/elementspath/lang/ku.js | 8 + sources/plugins/elementspath/lang/lt.js | 8 + sources/plugins/elementspath/lang/lv.js | 8 + sources/plugins/elementspath/lang/mk.js | 8 + sources/plugins/elementspath/lang/mn.js | 8 + sources/plugins/elementspath/lang/ms.js | 8 + sources/plugins/elementspath/lang/nb.js | 8 + sources/plugins/elementspath/lang/nl.js | 8 + sources/plugins/elementspath/lang/no.js | 8 + sources/plugins/elementspath/lang/pl.js | 8 + sources/plugins/elementspath/lang/pt-br.js | 8 + sources/plugins/elementspath/lang/pt.js | 8 + sources/plugins/elementspath/lang/ro.js | 8 + sources/plugins/elementspath/lang/ru.js | 8 + sources/plugins/elementspath/lang/si.js | 8 + sources/plugins/elementspath/lang/sk.js | 8 + sources/plugins/elementspath/lang/sl.js | 8 + sources/plugins/elementspath/lang/sq.js | 8 + sources/plugins/elementspath/lang/sr-latn.js | 8 + sources/plugins/elementspath/lang/sr.js | 8 + sources/plugins/elementspath/lang/sv.js | 8 + sources/plugins/elementspath/lang/th.js | 8 + sources/plugins/elementspath/lang/tr.js | 8 + sources/plugins/elementspath/lang/tt.js | 8 + sources/plugins/elementspath/lang/ug.js | 8 + sources/plugins/elementspath/lang/uk.js | 8 + sources/plugins/elementspath/lang/vi.js | 8 + sources/plugins/elementspath/lang/zh-cn.js | 8 + sources/plugins/elementspath/lang/zh.js | 8 + sources/plugins/elementspath/plugin.js | 235 + sources/plugins/enterkey/plugin.js | 566 ++ .../plugins/enterkey/samples/enterkey.html | 106 + sources/plugins/entities/plugin.js | 239 + sources/plugins/fakeobjects/lang/af.js | 11 + sources/plugins/fakeobjects/lang/ar.js | 11 + sources/plugins/fakeobjects/lang/bg.js | 11 + sources/plugins/fakeobjects/lang/bn.js | 11 + sources/plugins/fakeobjects/lang/bs.js | 11 + sources/plugins/fakeobjects/lang/ca.js | 11 + sources/plugins/fakeobjects/lang/cs.js | 11 + sources/plugins/fakeobjects/lang/cy.js | 11 + sources/plugins/fakeobjects/lang/da.js | 11 + sources/plugins/fakeobjects/lang/de.js | 11 + sources/plugins/fakeobjects/lang/el.js | 11 + sources/plugins/fakeobjects/lang/en-au.js | 11 + sources/plugins/fakeobjects/lang/en-ca.js | 11 + sources/plugins/fakeobjects/lang/en-gb.js | 11 + sources/plugins/fakeobjects/lang/en.js | 11 + sources/plugins/fakeobjects/lang/eo.js | 11 + sources/plugins/fakeobjects/lang/es.js | 11 + sources/plugins/fakeobjects/lang/et.js | 11 + sources/plugins/fakeobjects/lang/eu.js | 11 + sources/plugins/fakeobjects/lang/fa.js | 11 + sources/plugins/fakeobjects/lang/fi.js | 11 + sources/plugins/fakeobjects/lang/fo.js | 11 + sources/plugins/fakeobjects/lang/fr-ca.js | 11 + sources/plugins/fakeobjects/lang/fr.js | 11 + sources/plugins/fakeobjects/lang/gl.js | 11 + sources/plugins/fakeobjects/lang/gu.js | 11 + sources/plugins/fakeobjects/lang/he.js | 11 + sources/plugins/fakeobjects/lang/hi.js | 11 + sources/plugins/fakeobjects/lang/hr.js | 11 + sources/plugins/fakeobjects/lang/hu.js | 11 + sources/plugins/fakeobjects/lang/id.js | 11 + sources/plugins/fakeobjects/lang/is.js | 11 + sources/plugins/fakeobjects/lang/it.js | 11 + sources/plugins/fakeobjects/lang/ja.js | 11 + sources/plugins/fakeobjects/lang/ka.js | 11 + sources/plugins/fakeobjects/lang/km.js | 11 + sources/plugins/fakeobjects/lang/ko.js | 11 + sources/plugins/fakeobjects/lang/ku.js | 11 + sources/plugins/fakeobjects/lang/lt.js | 11 + sources/plugins/fakeobjects/lang/lv.js | 11 + sources/plugins/fakeobjects/lang/mk.js | 11 + sources/plugins/fakeobjects/lang/mn.js | 11 + sources/plugins/fakeobjects/lang/ms.js | 11 + sources/plugins/fakeobjects/lang/nb.js | 11 + sources/plugins/fakeobjects/lang/nl.js | 11 + sources/plugins/fakeobjects/lang/no.js | 11 + sources/plugins/fakeobjects/lang/pl.js | 11 + sources/plugins/fakeobjects/lang/pt-br.js | 11 + sources/plugins/fakeobjects/lang/pt.js | 11 + sources/plugins/fakeobjects/lang/ro.js | 11 + sources/plugins/fakeobjects/lang/ru.js | 11 + sources/plugins/fakeobjects/lang/si.js | 11 + sources/plugins/fakeobjects/lang/sk.js | 11 + sources/plugins/fakeobjects/lang/sl.js | 11 + sources/plugins/fakeobjects/lang/sq.js | 11 + sources/plugins/fakeobjects/lang/sr-latn.js | 11 + sources/plugins/fakeobjects/lang/sr.js | 11 + sources/plugins/fakeobjects/lang/sv.js | 11 + sources/plugins/fakeobjects/lang/th.js | 11 + sources/plugins/fakeobjects/lang/tr.js | 11 + sources/plugins/fakeobjects/lang/tt.js | 11 + sources/plugins/fakeobjects/lang/ug.js | 11 + sources/plugins/fakeobjects/lang/uk.js | 11 + sources/plugins/fakeobjects/lang/vi.js | 11 + sources/plugins/fakeobjects/lang/zh-cn.js | 11 + sources/plugins/fakeobjects/lang/zh.js | 11 + sources/plugins/fakeobjects/plugin.js | 183 + sources/plugins/filebrowser/plugin.js | 573 ++ sources/plugins/find/dialogs/find.js | 802 ++ sources/plugins/find/icons/find-rtl.png | Bin 0 -> 980 bytes sources/plugins/find/icons/find.png | Bin 0 -> 980 bytes sources/plugins/find/icons/hidpi/find-rtl.png | Bin 0 -> 2417 bytes sources/plugins/find/icons/hidpi/find.png | Bin 0 -> 2417 bytes sources/plugins/find/icons/hidpi/replace.png | Bin 0 -> 2761 bytes sources/plugins/find/icons/replace.png | Bin 0 -> 948 bytes sources/plugins/find/lang/af.js | 18 + sources/plugins/find/lang/ar.js | 18 + sources/plugins/find/lang/bg.js | 18 + sources/plugins/find/lang/bn.js | 18 + sources/plugins/find/lang/bs.js | 18 + sources/plugins/find/lang/ca.js | 18 + sources/plugins/find/lang/cs.js | 18 + sources/plugins/find/lang/cy.js | 18 + sources/plugins/find/lang/da.js | 18 + sources/plugins/find/lang/de.js | 18 + sources/plugins/find/lang/el.js | 18 + sources/plugins/find/lang/en-au.js | 18 + sources/plugins/find/lang/en-ca.js | 18 + sources/plugins/find/lang/en-gb.js | 18 + sources/plugins/find/lang/en.js | 18 + sources/plugins/find/lang/eo.js | 18 + sources/plugins/find/lang/es.js | 18 + sources/plugins/find/lang/et.js | 18 + sources/plugins/find/lang/eu.js | 18 + sources/plugins/find/lang/fa.js | 18 + sources/plugins/find/lang/fi.js | 18 + sources/plugins/find/lang/fo.js | 18 + sources/plugins/find/lang/fr-ca.js | 18 + sources/plugins/find/lang/fr.js | 18 + sources/plugins/find/lang/gl.js | 18 + sources/plugins/find/lang/gu.js | 18 + sources/plugins/find/lang/he.js | 18 + sources/plugins/find/lang/hi.js | 18 + sources/plugins/find/lang/hr.js | 18 + sources/plugins/find/lang/hu.js | 18 + sources/plugins/find/lang/id.js | 18 + sources/plugins/find/lang/is.js | 18 + sources/plugins/find/lang/it.js | 18 + sources/plugins/find/lang/ja.js | 18 + sources/plugins/find/lang/ka.js | 18 + sources/plugins/find/lang/km.js | 18 + sources/plugins/find/lang/ko.js | 18 + sources/plugins/find/lang/ku.js | 18 + sources/plugins/find/lang/lt.js | 18 + sources/plugins/find/lang/lv.js | 18 + sources/plugins/find/lang/mk.js | 18 + sources/plugins/find/lang/mn.js | 18 + sources/plugins/find/lang/ms.js | 18 + sources/plugins/find/lang/nb.js | 18 + sources/plugins/find/lang/nl.js | 18 + sources/plugins/find/lang/no.js | 18 + sources/plugins/find/lang/pl.js | 18 + sources/plugins/find/lang/pt-br.js | 18 + sources/plugins/find/lang/pt.js | 18 + sources/plugins/find/lang/ro.js | 18 + sources/plugins/find/lang/ru.js | 18 + sources/plugins/find/lang/si.js | 18 + sources/plugins/find/lang/sk.js | 18 + sources/plugins/find/lang/sl.js | 18 + sources/plugins/find/lang/sq.js | 18 + sources/plugins/find/lang/sr-latn.js | 18 + sources/plugins/find/lang/sr.js | 18 + sources/plugins/find/lang/sv.js | 18 + sources/plugins/find/lang/th.js | 18 + sources/plugins/find/lang/tr.js | 18 + sources/plugins/find/lang/tt.js | 18 + sources/plugins/find/lang/ug.js | 18 + sources/plugins/find/lang/uk.js | 18 + sources/plugins/find/lang/vi.js | 18 + sources/plugins/find/lang/zh-cn.js | 18 + sources/plugins/find/lang/zh.js | 18 + sources/plugins/find/plugin.js | 52 + sources/plugins/flash/dialogs/flash.js | 647 ++ sources/plugins/flash/icons/flash.png | Bin 0 -> 1038 bytes sources/plugins/flash/icons/hidpi/flash.png | Bin 0 -> 2532 bytes sources/plugins/flash/images/placeholder.png | Bin 0 -> 256 bytes sources/plugins/flash/lang/af.js | 43 + sources/plugins/flash/lang/ar.js | 43 + sources/plugins/flash/lang/bg.js | 43 + sources/plugins/flash/lang/bn.js | 43 + sources/plugins/flash/lang/bs.js | 43 + sources/plugins/flash/lang/ca.js | 43 + sources/plugins/flash/lang/cs.js | 43 + sources/plugins/flash/lang/cy.js | 43 + sources/plugins/flash/lang/da.js | 43 + sources/plugins/flash/lang/de.js | 43 + sources/plugins/flash/lang/el.js | 43 + sources/plugins/flash/lang/en-au.js | 43 + sources/plugins/flash/lang/en-ca.js | 43 + sources/plugins/flash/lang/en-gb.js | 43 + sources/plugins/flash/lang/en.js | 43 + sources/plugins/flash/lang/eo.js | 43 + sources/plugins/flash/lang/es.js | 43 + sources/plugins/flash/lang/et.js | 43 + sources/plugins/flash/lang/eu.js | 43 + sources/plugins/flash/lang/fa.js | 43 + sources/plugins/flash/lang/fi.js | 43 + sources/plugins/flash/lang/fo.js | 43 + sources/plugins/flash/lang/fr-ca.js | 43 + sources/plugins/flash/lang/fr.js | 43 + sources/plugins/flash/lang/gl.js | 43 + sources/plugins/flash/lang/gu.js | 43 + sources/plugins/flash/lang/he.js | 43 + sources/plugins/flash/lang/hi.js | 43 + sources/plugins/flash/lang/hr.js | 43 + sources/plugins/flash/lang/hu.js | 43 + sources/plugins/flash/lang/id.js | 43 + sources/plugins/flash/lang/is.js | 43 + sources/plugins/flash/lang/it.js | 43 + sources/plugins/flash/lang/ja.js | 43 + sources/plugins/flash/lang/ka.js | 43 + sources/plugins/flash/lang/km.js | 43 + sources/plugins/flash/lang/ko.js | 43 + sources/plugins/flash/lang/ku.js | 43 + sources/plugins/flash/lang/lt.js | 43 + sources/plugins/flash/lang/lv.js | 43 + sources/plugins/flash/lang/mk.js | 43 + sources/plugins/flash/lang/mn.js | 43 + sources/plugins/flash/lang/ms.js | 43 + sources/plugins/flash/lang/nb.js | 43 + sources/plugins/flash/lang/nl.js | 43 + sources/plugins/flash/lang/no.js | 43 + sources/plugins/flash/lang/pl.js | 43 + sources/plugins/flash/lang/pt-br.js | 43 + sources/plugins/flash/lang/pt.js | 43 + sources/plugins/flash/lang/ro.js | 43 + sources/plugins/flash/lang/ru.js | 43 + sources/plugins/flash/lang/si.js | 43 + sources/plugins/flash/lang/sk.js | 43 + sources/plugins/flash/lang/sl.js | 43 + sources/plugins/flash/lang/sq.js | 43 + sources/plugins/flash/lang/sr-latn.js | 43 + sources/plugins/flash/lang/sr.js | 43 + sources/plugins/flash/lang/sv.js | 43 + sources/plugins/flash/lang/th.js | 43 + sources/plugins/flash/lang/tr.js | 43 + sources/plugins/flash/lang/tt.js | 43 + sources/plugins/flash/lang/ug.js | 43 + sources/plugins/flash/lang/uk.js | 43 + sources/plugins/flash/lang/vi.js | 43 + sources/plugins/flash/lang/zh-cn.js | 43 + sources/plugins/flash/lang/zh.js | 43 + sources/plugins/flash/plugin.js | 151 + sources/plugins/floatingspace/plugin.js | 406 + sources/plugins/floatpanel/plugin.js | 598 ++ sources/plugins/font/lang/af.js | 14 + sources/plugins/font/lang/ar.js | 14 + sources/plugins/font/lang/bg.js | 14 + sources/plugins/font/lang/bn.js | 14 + sources/plugins/font/lang/bs.js | 14 + sources/plugins/font/lang/ca.js | 14 + sources/plugins/font/lang/cs.js | 14 + sources/plugins/font/lang/cy.js | 14 + sources/plugins/font/lang/da.js | 14 + sources/plugins/font/lang/de.js | 14 + sources/plugins/font/lang/el.js | 14 + sources/plugins/font/lang/en-au.js | 14 + sources/plugins/font/lang/en-ca.js | 14 + sources/plugins/font/lang/en-gb.js | 14 + sources/plugins/font/lang/en.js | 14 + sources/plugins/font/lang/eo.js | 14 + sources/plugins/font/lang/es.js | 14 + sources/plugins/font/lang/et.js | 14 + sources/plugins/font/lang/eu.js | 14 + sources/plugins/font/lang/fa.js | 14 + sources/plugins/font/lang/fi.js | 14 + sources/plugins/font/lang/fo.js | 14 + sources/plugins/font/lang/fr-ca.js | 14 + sources/plugins/font/lang/fr.js | 14 + sources/plugins/font/lang/gl.js | 14 + sources/plugins/font/lang/gu.js | 14 + sources/plugins/font/lang/he.js | 14 + sources/plugins/font/lang/hi.js | 14 + sources/plugins/font/lang/hr.js | 14 + sources/plugins/font/lang/hu.js | 14 + sources/plugins/font/lang/id.js | 14 + sources/plugins/font/lang/is.js | 14 + sources/plugins/font/lang/it.js | 14 + sources/plugins/font/lang/ja.js | 14 + sources/plugins/font/lang/ka.js | 14 + sources/plugins/font/lang/km.js | 14 + sources/plugins/font/lang/ko.js | 14 + sources/plugins/font/lang/ku.js | 14 + sources/plugins/font/lang/lt.js | 14 + sources/plugins/font/lang/lv.js | 14 + sources/plugins/font/lang/mk.js | 14 + sources/plugins/font/lang/mn.js | 14 + sources/plugins/font/lang/ms.js | 14 + sources/plugins/font/lang/nb.js | 14 + sources/plugins/font/lang/nl.js | 14 + sources/plugins/font/lang/no.js | 14 + sources/plugins/font/lang/pl.js | 14 + sources/plugins/font/lang/pt-br.js | 14 + sources/plugins/font/lang/pt.js | 14 + sources/plugins/font/lang/ro.js | 14 + sources/plugins/font/lang/ru.js | 14 + sources/plugins/font/lang/si.js | 14 + sources/plugins/font/lang/sk.js | 14 + sources/plugins/font/lang/sl.js | 14 + sources/plugins/font/lang/sq.js | 14 + sources/plugins/font/lang/sr-latn.js | 14 + sources/plugins/font/lang/sr.js | 14 + sources/plugins/font/lang/sv.js | 14 + sources/plugins/font/lang/th.js | 14 + sources/plugins/font/lang/tr.js | 14 + sources/plugins/font/lang/tt.js | 14 + sources/plugins/font/lang/ug.js | 14 + sources/plugins/font/lang/uk.js | 14 + sources/plugins/font/lang/vi.js | 14 + sources/plugins/font/lang/zh-cn.js | 14 + sources/plugins/font/lang/zh.js | 14 + sources/plugins/font/plugin.js | 313 + sources/plugins/format/lang/af.js | 18 + sources/plugins/format/lang/ar.js | 18 + sources/plugins/format/lang/bg.js | 18 + sources/plugins/format/lang/bn.js | 18 + sources/plugins/format/lang/bs.js | 18 + sources/plugins/format/lang/ca.js | 18 + sources/plugins/format/lang/cs.js | 18 + sources/plugins/format/lang/cy.js | 18 + sources/plugins/format/lang/da.js | 18 + sources/plugins/format/lang/de.js | 18 + sources/plugins/format/lang/el.js | 18 + sources/plugins/format/lang/en-au.js | 18 + sources/plugins/format/lang/en-ca.js | 18 + sources/plugins/format/lang/en-gb.js | 18 + sources/plugins/format/lang/en.js | 18 + sources/plugins/format/lang/eo.js | 18 + sources/plugins/format/lang/es.js | 18 + sources/plugins/format/lang/et.js | 18 + sources/plugins/format/lang/eu.js | 18 + sources/plugins/format/lang/fa.js | 18 + sources/plugins/format/lang/fi.js | 18 + sources/plugins/format/lang/fo.js | 18 + sources/plugins/format/lang/fr-ca.js | 18 + sources/plugins/format/lang/fr.js | 18 + sources/plugins/format/lang/gl.js | 18 + sources/plugins/format/lang/gu.js | 18 + sources/plugins/format/lang/he.js | 18 + sources/plugins/format/lang/hi.js | 18 + sources/plugins/format/lang/hr.js | 18 + sources/plugins/format/lang/hu.js | 18 + sources/plugins/format/lang/id.js | 18 + sources/plugins/format/lang/is.js | 18 + sources/plugins/format/lang/it.js | 18 + sources/plugins/format/lang/ja.js | 18 + sources/plugins/format/lang/ka.js | 18 + sources/plugins/format/lang/km.js | 18 + sources/plugins/format/lang/ko.js | 18 + sources/plugins/format/lang/ku.js | 18 + sources/plugins/format/lang/lt.js | 18 + sources/plugins/format/lang/lv.js | 18 + sources/plugins/format/lang/mk.js | 18 + sources/plugins/format/lang/mn.js | 18 + sources/plugins/format/lang/ms.js | 18 + sources/plugins/format/lang/nb.js | 18 + sources/plugins/format/lang/nl.js | 18 + sources/plugins/format/lang/no.js | 18 + sources/plugins/format/lang/pl.js | 18 + sources/plugins/format/lang/pt-br.js | 18 + sources/plugins/format/lang/pt.js | 18 + sources/plugins/format/lang/ro.js | 18 + sources/plugins/format/lang/ru.js | 18 + sources/plugins/format/lang/si.js | 18 + sources/plugins/format/lang/sk.js | 18 + sources/plugins/format/lang/sl.js | 18 + sources/plugins/format/lang/sq.js | 18 + sources/plugins/format/lang/sr-latn.js | 18 + sources/plugins/format/lang/sr.js | 18 + sources/plugins/format/lang/sv.js | 18 + sources/plugins/format/lang/th.js | 18 + sources/plugins/format/lang/tr.js | 18 + sources/plugins/format/lang/tt.js | 18 + sources/plugins/format/lang/ug.js | 18 + sources/plugins/format/lang/uk.js | 18 + sources/plugins/format/lang/vi.js | 18 + sources/plugins/format/lang/zh-cn.js | 18 + sources/plugins/format/lang/zh.js | 18 + sources/plugins/format/plugin.js | 279 + sources/plugins/forms/dialogs/button.js | 100 + sources/plugins/forms/dialogs/checkbox.js | 146 + sources/plugins/forms/dialogs/form.js | 145 + sources/plugins/forms/dialogs/hiddenfield.js | 83 + sources/plugins/forms/dialogs/radio.js | 129 + sources/plugins/forms/dialogs/select.js | 505 + sources/plugins/forms/dialogs/textarea.js | 128 + sources/plugins/forms/dialogs/textfield.js | 193 + sources/plugins/forms/icons/button.png | Bin 0 -> 528 bytes sources/plugins/forms/icons/checkbox.png | Bin 0 -> 756 bytes sources/plugins/forms/icons/form.png | Bin 0 -> 590 bytes sources/plugins/forms/icons/hiddenfield.png | Bin 0 -> 239 bytes sources/plugins/forms/icons/hidpi/button.png | Bin 0 -> 933 bytes .../plugins/forms/icons/hidpi/checkbox.png | Bin 0 -> 1780 bytes sources/plugins/forms/icons/hidpi/form.png | Bin 0 -> 1348 bytes .../plugins/forms/icons/hidpi/hiddenfield.png | Bin 0 -> 2166 bytes .../plugins/forms/icons/hidpi/imagebutton.png | Bin 0 -> 1398 bytes sources/plugins/forms/icons/hidpi/radio.png | Bin 0 -> 2435 bytes .../plugins/forms/icons/hidpi/select-rtl.png | Bin 0 -> 1451 bytes sources/plugins/forms/icons/hidpi/select.png | Bin 0 -> 1452 bytes .../forms/icons/hidpi/textarea-rtl.png | Bin 0 -> 1732 bytes .../plugins/forms/icons/hidpi/textarea.png | Bin 0 -> 1680 bytes .../forms/icons/hidpi/textfield-rtl.png | Bin 0 -> 1324 bytes .../plugins/forms/icons/hidpi/textfield.png | Bin 0 -> 1324 bytes sources/plugins/forms/icons/imagebutton.png | Bin 0 -> 680 bytes sources/plugins/forms/icons/radio.png | Bin 0 -> 874 bytes sources/plugins/forms/icons/select-rtl.png | Bin 0 -> 617 bytes sources/plugins/forms/icons/select.png | Bin 0 -> 616 bytes sources/plugins/forms/icons/textarea-rtl.png | Bin 0 -> 706 bytes sources/plugins/forms/icons/textarea.png | Bin 0 -> 677 bytes sources/plugins/forms/icons/textfield-rtl.png | Bin 0 -> 588 bytes sources/plugins/forms/icons/textfield.png | Bin 0 -> 588 bytes sources/plugins/forms/images/hiddenfield.gif | Bin 0 -> 178 bytes sources/plugins/forms/lang/af.js | 71 + sources/plugins/forms/lang/ar.js | 71 + sources/plugins/forms/lang/bg.js | 71 + sources/plugins/forms/lang/bn.js | 71 + sources/plugins/forms/lang/bs.js | 71 + sources/plugins/forms/lang/ca.js | 71 + sources/plugins/forms/lang/cs.js | 71 + sources/plugins/forms/lang/cy.js | 71 + sources/plugins/forms/lang/da.js | 71 + sources/plugins/forms/lang/de.js | 71 + sources/plugins/forms/lang/el.js | 71 + sources/plugins/forms/lang/en-au.js | 71 + sources/plugins/forms/lang/en-ca.js | 71 + sources/plugins/forms/lang/en-gb.js | 71 + sources/plugins/forms/lang/en.js | 71 + sources/plugins/forms/lang/eo.js | 71 + sources/plugins/forms/lang/es.js | 71 + sources/plugins/forms/lang/et.js | 71 + sources/plugins/forms/lang/eu.js | 71 + sources/plugins/forms/lang/fa.js | 71 + sources/plugins/forms/lang/fi.js | 71 + sources/plugins/forms/lang/fo.js | 71 + sources/plugins/forms/lang/fr-ca.js | 71 + sources/plugins/forms/lang/fr.js | 71 + sources/plugins/forms/lang/gl.js | 71 + sources/plugins/forms/lang/gu.js | 71 + sources/plugins/forms/lang/he.js | 71 + sources/plugins/forms/lang/hi.js | 71 + sources/plugins/forms/lang/hr.js | 71 + sources/plugins/forms/lang/hu.js | 71 + sources/plugins/forms/lang/id.js | 71 + sources/plugins/forms/lang/is.js | 71 + sources/plugins/forms/lang/it.js | 71 + sources/plugins/forms/lang/ja.js | 71 + sources/plugins/forms/lang/ka.js | 71 + sources/plugins/forms/lang/km.js | 71 + sources/plugins/forms/lang/ko.js | 71 + sources/plugins/forms/lang/ku.js | 71 + sources/plugins/forms/lang/lt.js | 71 + sources/plugins/forms/lang/lv.js | 71 + sources/plugins/forms/lang/mk.js | 71 + sources/plugins/forms/lang/mn.js | 71 + sources/plugins/forms/lang/ms.js | 71 + sources/plugins/forms/lang/nb.js | 71 + sources/plugins/forms/lang/nl.js | 71 + sources/plugins/forms/lang/no.js | 71 + sources/plugins/forms/lang/pl.js | 71 + sources/plugins/forms/lang/pt-br.js | 71 + sources/plugins/forms/lang/pt.js | 71 + sources/plugins/forms/lang/ro.js | 71 + sources/plugins/forms/lang/ru.js | 71 + sources/plugins/forms/lang/si.js | 71 + sources/plugins/forms/lang/sk.js | 71 + sources/plugins/forms/lang/sl.js | 71 + sources/plugins/forms/lang/sq.js | 71 + sources/plugins/forms/lang/sr-latn.js | 71 + sources/plugins/forms/lang/sr.js | 71 + sources/plugins/forms/lang/sv.js | 71 + sources/plugins/forms/lang/th.js | 71 + sources/plugins/forms/lang/tr.js | 71 + sources/plugins/forms/lang/tt.js | 71 + sources/plugins/forms/lang/ug.js | 71 + sources/plugins/forms/lang/uk.js | 71 + sources/plugins/forms/lang/vi.js | 71 + sources/plugins/forms/lang/zh-cn.js | 71 + sources/plugins/forms/lang/zh.js | 71 + sources/plugins/forms/plugin.js | 279 + .../icons/hidpi/horizontalrule.png | Bin 0 -> 939 bytes .../horizontalrule/icons/horizontalrule.png | Bin 0 -> 519 bytes sources/plugins/horizontalrule/lang/af.js | 7 + sources/plugins/horizontalrule/lang/ar.js | 7 + sources/plugins/horizontalrule/lang/bg.js | 7 + sources/plugins/horizontalrule/lang/bn.js | 7 + sources/plugins/horizontalrule/lang/bs.js | 7 + sources/plugins/horizontalrule/lang/ca.js | 7 + sources/plugins/horizontalrule/lang/cs.js | 7 + sources/plugins/horizontalrule/lang/cy.js | 7 + sources/plugins/horizontalrule/lang/da.js | 7 + sources/plugins/horizontalrule/lang/de.js | 7 + sources/plugins/horizontalrule/lang/el.js | 7 + sources/plugins/horizontalrule/lang/en-au.js | 7 + sources/plugins/horizontalrule/lang/en-ca.js | 7 + sources/plugins/horizontalrule/lang/en-gb.js | 7 + sources/plugins/horizontalrule/lang/en.js | 7 + sources/plugins/horizontalrule/lang/eo.js | 7 + sources/plugins/horizontalrule/lang/es.js | 7 + sources/plugins/horizontalrule/lang/et.js | 7 + sources/plugins/horizontalrule/lang/eu.js | 7 + sources/plugins/horizontalrule/lang/fa.js | 7 + sources/plugins/horizontalrule/lang/fi.js | 7 + sources/plugins/horizontalrule/lang/fo.js | 7 + sources/plugins/horizontalrule/lang/fr-ca.js | 7 + sources/plugins/horizontalrule/lang/fr.js | 7 + sources/plugins/horizontalrule/lang/gl.js | 7 + sources/plugins/horizontalrule/lang/gu.js | 7 + sources/plugins/horizontalrule/lang/he.js | 7 + sources/plugins/horizontalrule/lang/hi.js | 7 + sources/plugins/horizontalrule/lang/hr.js | 7 + sources/plugins/horizontalrule/lang/hu.js | 7 + sources/plugins/horizontalrule/lang/id.js | 7 + sources/plugins/horizontalrule/lang/is.js | 7 + sources/plugins/horizontalrule/lang/it.js | 7 + sources/plugins/horizontalrule/lang/ja.js | 7 + sources/plugins/horizontalrule/lang/ka.js | 7 + sources/plugins/horizontalrule/lang/km.js | 7 + sources/plugins/horizontalrule/lang/ko.js | 7 + sources/plugins/horizontalrule/lang/ku.js | 7 + sources/plugins/horizontalrule/lang/lt.js | 7 + sources/plugins/horizontalrule/lang/lv.js | 7 + sources/plugins/horizontalrule/lang/mk.js | 7 + sources/plugins/horizontalrule/lang/mn.js | 7 + sources/plugins/horizontalrule/lang/ms.js | 7 + sources/plugins/horizontalrule/lang/nb.js | 7 + sources/plugins/horizontalrule/lang/nl.js | 7 + sources/plugins/horizontalrule/lang/no.js | 7 + sources/plugins/horizontalrule/lang/pl.js | 7 + sources/plugins/horizontalrule/lang/pt-br.js | 7 + sources/plugins/horizontalrule/lang/pt.js | 7 + sources/plugins/horizontalrule/lang/ro.js | 7 + sources/plugins/horizontalrule/lang/ru.js | 7 + sources/plugins/horizontalrule/lang/si.js | 7 + sources/plugins/horizontalrule/lang/sk.js | 7 + sources/plugins/horizontalrule/lang/sl.js | 7 + sources/plugins/horizontalrule/lang/sq.js | 7 + .../plugins/horizontalrule/lang/sr-latn.js | 7 + sources/plugins/horizontalrule/lang/sr.js | 7 + sources/plugins/horizontalrule/lang/sv.js | 7 + sources/plugins/horizontalrule/lang/th.js | 7 + sources/plugins/horizontalrule/lang/tr.js | 7 + sources/plugins/horizontalrule/lang/tt.js | 7 + sources/plugins/horizontalrule/lang/ug.js | 7 + sources/plugins/horizontalrule/lang/uk.js | 7 + sources/plugins/horizontalrule/lang/vi.js | 7 + sources/plugins/horizontalrule/lang/zh-cn.js | 7 + sources/plugins/horizontalrule/lang/zh.js | 7 + sources/plugins/horizontalrule/plugin.js | 43 + sources/plugins/htmlwriter/plugin.js | 359 + .../assets/outputforflash/outputforflash.fla | Bin 0 -> 85504 bytes .../assets/outputforflash/outputforflash.swf | Bin 0 -> 15571 bytes .../assets/outputforflash/swfobject.js | 5 + .../htmlwriter/samples/outputforflash.html | 283 + .../htmlwriter/samples/outputhtml.html | 224 + sources/plugins/iframe/dialogs/iframe.js | 207 + sources/plugins/iframe/icons/hidpi/iframe.png | Bin 0 -> 3091 bytes sources/plugins/iframe/icons/iframe.png | Bin 0 -> 989 bytes sources/plugins/iframe/images/placeholder.png | Bin 0 -> 265 bytes sources/plugins/iframe/lang/af.js | 11 + sources/plugins/iframe/lang/ar.js | 11 + sources/plugins/iframe/lang/bg.js | 11 + sources/plugins/iframe/lang/bn.js | 11 + sources/plugins/iframe/lang/bs.js | 11 + sources/plugins/iframe/lang/ca.js | 11 + sources/plugins/iframe/lang/cs.js | 11 + sources/plugins/iframe/lang/cy.js | 11 + sources/plugins/iframe/lang/da.js | 11 + sources/plugins/iframe/lang/de.js | 11 + sources/plugins/iframe/lang/el.js | 11 + sources/plugins/iframe/lang/en-au.js | 11 + sources/plugins/iframe/lang/en-ca.js | 11 + sources/plugins/iframe/lang/en-gb.js | 11 + sources/plugins/iframe/lang/en.js | 11 + sources/plugins/iframe/lang/eo.js | 11 + sources/plugins/iframe/lang/es.js | 11 + sources/plugins/iframe/lang/et.js | 11 + sources/plugins/iframe/lang/eu.js | 11 + sources/plugins/iframe/lang/fa.js | 11 + sources/plugins/iframe/lang/fi.js | 11 + sources/plugins/iframe/lang/fo.js | 11 + sources/plugins/iframe/lang/fr-ca.js | 11 + sources/plugins/iframe/lang/fr.js | 11 + sources/plugins/iframe/lang/gl.js | 11 + sources/plugins/iframe/lang/gu.js | 11 + sources/plugins/iframe/lang/he.js | 11 + sources/plugins/iframe/lang/hi.js | 11 + sources/plugins/iframe/lang/hr.js | 11 + sources/plugins/iframe/lang/hu.js | 11 + sources/plugins/iframe/lang/id.js | 11 + sources/plugins/iframe/lang/is.js | 11 + sources/plugins/iframe/lang/it.js | 11 + sources/plugins/iframe/lang/ja.js | 11 + sources/plugins/iframe/lang/ka.js | 11 + sources/plugins/iframe/lang/km.js | 11 + sources/plugins/iframe/lang/ko.js | 11 + sources/plugins/iframe/lang/ku.js | 11 + sources/plugins/iframe/lang/lt.js | 11 + sources/plugins/iframe/lang/lv.js | 11 + sources/plugins/iframe/lang/mk.js | 11 + sources/plugins/iframe/lang/mn.js | 11 + sources/plugins/iframe/lang/ms.js | 11 + sources/plugins/iframe/lang/nb.js | 11 + sources/plugins/iframe/lang/nl.js | 11 + sources/plugins/iframe/lang/no.js | 11 + sources/plugins/iframe/lang/pl.js | 11 + sources/plugins/iframe/lang/pt-br.js | 11 + sources/plugins/iframe/lang/pt.js | 11 + sources/plugins/iframe/lang/ro.js | 11 + sources/plugins/iframe/lang/ru.js | 11 + sources/plugins/iframe/lang/si.js | 11 + sources/plugins/iframe/lang/sk.js | 11 + sources/plugins/iframe/lang/sl.js | 11 + sources/plugins/iframe/lang/sq.js | 11 + sources/plugins/iframe/lang/sr-latn.js | 11 + sources/plugins/iframe/lang/sr.js | 11 + sources/plugins/iframe/lang/sv.js | 11 + sources/plugins/iframe/lang/th.js | 11 + sources/plugins/iframe/lang/tr.js | 11 + sources/plugins/iframe/lang/tt.js | 11 + sources/plugins/iframe/lang/ug.js | 11 + sources/plugins/iframe/lang/uk.js | 11 + sources/plugins/iframe/lang/vi.js | 11 + sources/plugins/iframe/lang/zh-cn.js | 11 + sources/plugins/iframe/lang/zh.js | 11 + sources/plugins/iframe/plugin.js | 85 + sources/plugins/image/dialogs/image.js | 1251 +++ sources/plugins/image/icons/hidpi/image.png | Bin 0 -> 1745 bytes sources/plugins/image/icons/image.png | Bin 0 -> 756 bytes sources/plugins/image/images/noimage.png | Bin 0 -> 1610 bytes sources/plugins/image/lang/af.js | 25 + sources/plugins/image/lang/ar.js | 25 + sources/plugins/image/lang/bg.js | 25 + sources/plugins/image/lang/bn.js | 25 + sources/plugins/image/lang/bs.js | 25 + sources/plugins/image/lang/ca.js | 25 + sources/plugins/image/lang/cs.js | 25 + sources/plugins/image/lang/cy.js | 25 + sources/plugins/image/lang/da.js | 25 + sources/plugins/image/lang/de.js | 25 + sources/plugins/image/lang/el.js | 25 + sources/plugins/image/lang/en-au.js | 25 + sources/plugins/image/lang/en-ca.js | 25 + sources/plugins/image/lang/en-gb.js | 25 + sources/plugins/image/lang/en.js | 25 + sources/plugins/image/lang/eo.js | 25 + sources/plugins/image/lang/es.js | 25 + sources/plugins/image/lang/et.js | 25 + sources/plugins/image/lang/eu.js | 25 + sources/plugins/image/lang/fa.js | 25 + sources/plugins/image/lang/fi.js | 25 + sources/plugins/image/lang/fo.js | 25 + sources/plugins/image/lang/fr-ca.js | 25 + sources/plugins/image/lang/fr.js | 25 + sources/plugins/image/lang/gl.js | 25 + sources/plugins/image/lang/gu.js | 25 + sources/plugins/image/lang/he.js | 25 + sources/plugins/image/lang/hi.js | 25 + sources/plugins/image/lang/hr.js | 25 + sources/plugins/image/lang/hu.js | 25 + sources/plugins/image/lang/id.js | 25 + sources/plugins/image/lang/is.js | 25 + sources/plugins/image/lang/it.js | 25 + sources/plugins/image/lang/ja.js | 25 + sources/plugins/image/lang/ka.js | 25 + sources/plugins/image/lang/km.js | 25 + sources/plugins/image/lang/ko.js | 25 + sources/plugins/image/lang/ku.js | 25 + sources/plugins/image/lang/lt.js | 25 + sources/plugins/image/lang/lv.js | 25 + sources/plugins/image/lang/mk.js | 25 + sources/plugins/image/lang/mn.js | 25 + sources/plugins/image/lang/ms.js | 25 + sources/plugins/image/lang/nb.js | 25 + sources/plugins/image/lang/nl.js | 25 + sources/plugins/image/lang/no.js | 25 + sources/plugins/image/lang/pl.js | 25 + sources/plugins/image/lang/pt-br.js | 25 + sources/plugins/image/lang/pt.js | 25 + sources/plugins/image/lang/ro.js | 25 + sources/plugins/image/lang/ru.js | 25 + sources/plugins/image/lang/si.js | 25 + sources/plugins/image/lang/sk.js | 25 + sources/plugins/image/lang/sl.js | 25 + sources/plugins/image/lang/sq.js | 25 + sources/plugins/image/lang/sr-latn.js | 25 + sources/plugins/image/lang/sr.js | 25 + sources/plugins/image/lang/sv.js | 25 + sources/plugins/image/lang/th.js | 25 + sources/plugins/image/lang/tr.js | 25 + sources/plugins/image/lang/tt.js | 25 + sources/plugins/image/lang/ug.js | 25 + sources/plugins/image/lang/uk.js | 25 + sources/plugins/image/lang/vi.js | 25 + sources/plugins/image/lang/zh-cn.js | 25 + sources/plugins/image/lang/zh.js | 25 + sources/plugins/image/plugin.js | 183 + sources/plugins/imagebrowser/LICENSE.txt | 10 + sources/plugins/imagebrowser/README.rst | 69 + .../plugins/imagebrowser/browser/browser.css | 62 + .../plugins/imagebrowser/browser/browser.html | 25 + .../plugins/imagebrowser/browser/browser.js | 136 + .../imagebrowser/browser/jquery-1.9.1.min.js | 5 + sources/plugins/imagebrowser/plugin.js | 14 + sources/plugins/indent/dev/indent.html | 284 + .../plugins/indent/icons/hidpi/indent-rtl.png | Bin 0 -> 1610 bytes sources/plugins/indent/icons/hidpi/indent.png | Bin 0 -> 1573 bytes .../indent/icons/hidpi/outdent-rtl.png | Bin 0 -> 1584 bytes .../plugins/indent/icons/hidpi/outdent.png | Bin 0 -> 1598 bytes sources/plugins/indent/icons/indent-rtl.png | Bin 0 -> 726 bytes sources/plugins/indent/icons/indent.png | Bin 0 -> 711 bytes sources/plugins/indent/icons/outdent-rtl.png | Bin 0 -> 708 bytes sources/plugins/indent/icons/outdent.png | Bin 0 -> 699 bytes sources/plugins/indent/lang/af.js | 8 + sources/plugins/indent/lang/ar.js | 8 + sources/plugins/indent/lang/bg.js | 8 + sources/plugins/indent/lang/bn.js | 8 + sources/plugins/indent/lang/bs.js | 8 + sources/plugins/indent/lang/ca.js | 8 + sources/plugins/indent/lang/cs.js | 8 + sources/plugins/indent/lang/cy.js | 8 + sources/plugins/indent/lang/da.js | 8 + sources/plugins/indent/lang/de.js | 8 + sources/plugins/indent/lang/el.js | 8 + sources/plugins/indent/lang/en-au.js | 8 + sources/plugins/indent/lang/en-ca.js | 8 + sources/plugins/indent/lang/en-gb.js | 8 + sources/plugins/indent/lang/en.js | 8 + sources/plugins/indent/lang/eo.js | 8 + sources/plugins/indent/lang/es.js | 8 + sources/plugins/indent/lang/et.js | 8 + sources/plugins/indent/lang/eu.js | 8 + sources/plugins/indent/lang/fa.js | 8 + sources/plugins/indent/lang/fi.js | 8 + sources/plugins/indent/lang/fo.js | 8 + sources/plugins/indent/lang/fr-ca.js | 8 + sources/plugins/indent/lang/fr.js | 8 + sources/plugins/indent/lang/gl.js | 8 + sources/plugins/indent/lang/gu.js | 8 + sources/plugins/indent/lang/he.js | 8 + sources/plugins/indent/lang/hi.js | 8 + sources/plugins/indent/lang/hr.js | 8 + sources/plugins/indent/lang/hu.js | 8 + sources/plugins/indent/lang/id.js | 8 + sources/plugins/indent/lang/is.js | 8 + sources/plugins/indent/lang/it.js | 8 + sources/plugins/indent/lang/ja.js | 8 + sources/plugins/indent/lang/ka.js | 8 + sources/plugins/indent/lang/km.js | 8 + sources/plugins/indent/lang/ko.js | 8 + sources/plugins/indent/lang/ku.js | 8 + sources/plugins/indent/lang/lt.js | 8 + sources/plugins/indent/lang/lv.js | 8 + sources/plugins/indent/lang/mk.js | 8 + sources/plugins/indent/lang/mn.js | 8 + sources/plugins/indent/lang/ms.js | 8 + sources/plugins/indent/lang/nb.js | 8 + sources/plugins/indent/lang/nl.js | 8 + sources/plugins/indent/lang/no.js | 8 + sources/plugins/indent/lang/pl.js | 8 + sources/plugins/indent/lang/pt-br.js | 8 + sources/plugins/indent/lang/pt.js | 8 + sources/plugins/indent/lang/ro.js | 8 + sources/plugins/indent/lang/ru.js | 8 + sources/plugins/indent/lang/si.js | 8 + sources/plugins/indent/lang/sk.js | 8 + sources/plugins/indent/lang/sl.js | 8 + sources/plugins/indent/lang/sq.js | 8 + sources/plugins/indent/lang/sr-latn.js | 8 + sources/plugins/indent/lang/sr.js | 8 + sources/plugins/indent/lang/sv.js | 8 + sources/plugins/indent/lang/th.js | 8 + sources/plugins/indent/lang/tr.js | 8 + sources/plugins/indent/lang/tt.js | 8 + sources/plugins/indent/lang/ug.js | 8 + sources/plugins/indent/lang/uk.js | 8 + sources/plugins/indent/lang/vi.js | 8 + sources/plugins/indent/lang/zh-cn.js | 8 + sources/plugins/indent/lang/zh.js | 8 + sources/plugins/indent/plugin.js | 461 + sources/plugins/indentblock/plugin.js | 298 + sources/plugins/indentlist/plugin.js | 318 + .../justify/icons/hidpi/justifyblock.png | Bin 0 -> 882 bytes .../justify/icons/hidpi/justifycenter.png | Bin 0 -> 1142 bytes .../justify/icons/hidpi/justifyleft.png | Bin 0 -> 1042 bytes .../justify/icons/hidpi/justifyright.png | Bin 0 -> 1048 bytes .../plugins/justify/icons/justifyblock.png | Bin 0 -> 496 bytes .../plugins/justify/icons/justifycenter.png | Bin 0 -> 609 bytes sources/plugins/justify/icons/justifyleft.png | Bin 0 -> 558 bytes .../plugins/justify/icons/justifyright.png | Bin 0 -> 554 bytes sources/plugins/justify/lang/af.js | 10 + sources/plugins/justify/lang/ar.js | 10 + sources/plugins/justify/lang/bg.js | 10 + sources/plugins/justify/lang/bn.js | 10 + sources/plugins/justify/lang/bs.js | 10 + sources/plugins/justify/lang/ca.js | 10 + sources/plugins/justify/lang/cs.js | 10 + sources/plugins/justify/lang/cy.js | 10 + sources/plugins/justify/lang/da.js | 10 + sources/plugins/justify/lang/de.js | 10 + sources/plugins/justify/lang/el.js | 10 + sources/plugins/justify/lang/en-au.js | 10 + sources/plugins/justify/lang/en-ca.js | 10 + sources/plugins/justify/lang/en-gb.js | 10 + sources/plugins/justify/lang/en.js | 10 + sources/plugins/justify/lang/eo.js | 10 + sources/plugins/justify/lang/es.js | 10 + sources/plugins/justify/lang/et.js | 10 + sources/plugins/justify/lang/eu.js | 10 + sources/plugins/justify/lang/fa.js | 10 + sources/plugins/justify/lang/fi.js | 10 + sources/plugins/justify/lang/fo.js | 10 + sources/plugins/justify/lang/fr-ca.js | 10 + sources/plugins/justify/lang/fr.js | 10 + sources/plugins/justify/lang/gl.js | 10 + sources/plugins/justify/lang/gu.js | 10 + sources/plugins/justify/lang/he.js | 10 + sources/plugins/justify/lang/hi.js | 10 + sources/plugins/justify/lang/hr.js | 10 + sources/plugins/justify/lang/hu.js | 10 + sources/plugins/justify/lang/id.js | 10 + sources/plugins/justify/lang/is.js | 10 + sources/plugins/justify/lang/it.js | 10 + sources/plugins/justify/lang/ja.js | 10 + sources/plugins/justify/lang/ka.js | 10 + sources/plugins/justify/lang/km.js | 10 + sources/plugins/justify/lang/ko.js | 10 + sources/plugins/justify/lang/ku.js | 10 + sources/plugins/justify/lang/lt.js | 10 + sources/plugins/justify/lang/lv.js | 10 + sources/plugins/justify/lang/mk.js | 10 + sources/plugins/justify/lang/mn.js | 10 + sources/plugins/justify/lang/ms.js | 10 + sources/plugins/justify/lang/nb.js | 10 + sources/plugins/justify/lang/nl.js | 10 + sources/plugins/justify/lang/no.js | 10 + sources/plugins/justify/lang/pl.js | 10 + sources/plugins/justify/lang/pt-br.js | 10 + sources/plugins/justify/lang/pt.js | 10 + sources/plugins/justify/lang/ro.js | 10 + sources/plugins/justify/lang/ru.js | 10 + sources/plugins/justify/lang/si.js | 10 + sources/plugins/justify/lang/sk.js | 10 + sources/plugins/justify/lang/sl.js | 10 + sources/plugins/justify/lang/sq.js | 10 + sources/plugins/justify/lang/sr-latn.js | 10 + sources/plugins/justify/lang/sr.js | 10 + sources/plugins/justify/lang/sv.js | 10 + sources/plugins/justify/lang/th.js | 10 + sources/plugins/justify/lang/tr.js | 10 + sources/plugins/justify/lang/tt.js | 10 + sources/plugins/justify/lang/ug.js | 10 + sources/plugins/justify/lang/uk.js | 10 + sources/plugins/justify/lang/vi.js | 10 + sources/plugins/justify/lang/zh-cn.js | 10 + sources/plugins/justify/lang/zh.js | 10 + sources/plugins/justify/plugin.js | 245 + sources/plugins/link/dialogs/anchor.js | 105 + sources/plugins/link/dialogs/link.js | 904 ++ sources/plugins/link/icons/anchor-rtl.png | Bin 0 -> 764 bytes sources/plugins/link/icons/anchor.png | Bin 0 -> 757 bytes .../plugins/link/icons/hidpi/anchor-rtl.png | Bin 0 -> 1654 bytes sources/plugins/link/icons/hidpi/anchor.png | Bin 0 -> 1633 bytes sources/plugins/link/icons/hidpi/link.png | Bin 0 -> 1620 bytes sources/plugins/link/icons/hidpi/unlink.png | Bin 0 -> 2209 bytes sources/plugins/link/icons/link.png | Bin 0 -> 656 bytes sources/plugins/link/icons/unlink.png | Bin 0 -> 812 bytes sources/plugins/link/images/anchor.png | Bin 0 -> 589 bytes sources/plugins/link/images/hidpi/anchor.png | Bin 0 -> 1379 bytes sources/plugins/link/lang/af.js | 65 + sources/plugins/link/lang/ar.js | 65 + sources/plugins/link/lang/bg.js | 65 + sources/plugins/link/lang/bn.js | 65 + sources/plugins/link/lang/bs.js | 65 + sources/plugins/link/lang/ca.js | 65 + sources/plugins/link/lang/cs.js | 65 + sources/plugins/link/lang/cy.js | 65 + sources/plugins/link/lang/da.js | 65 + sources/plugins/link/lang/de.js | 65 + sources/plugins/link/lang/el.js | 65 + sources/plugins/link/lang/en-au.js | 65 + sources/plugins/link/lang/en-ca.js | 65 + sources/plugins/link/lang/en-gb.js | 65 + sources/plugins/link/lang/en.js | 65 + sources/plugins/link/lang/eo.js | 65 + sources/plugins/link/lang/es.js | 65 + sources/plugins/link/lang/et.js | 65 + sources/plugins/link/lang/eu.js | 65 + sources/plugins/link/lang/fa.js | 65 + sources/plugins/link/lang/fi.js | 65 + sources/plugins/link/lang/fo.js | 65 + sources/plugins/link/lang/fr-ca.js | 65 + sources/plugins/link/lang/fr.js | 65 + sources/plugins/link/lang/gl.js | 65 + sources/plugins/link/lang/gu.js | 65 + sources/plugins/link/lang/he.js | 65 + sources/plugins/link/lang/hi.js | 65 + sources/plugins/link/lang/hr.js | 65 + sources/plugins/link/lang/hu.js | 65 + sources/plugins/link/lang/id.js | 65 + sources/plugins/link/lang/is.js | 65 + sources/plugins/link/lang/it.js | 65 + sources/plugins/link/lang/ja.js | 65 + sources/plugins/link/lang/ka.js | 65 + sources/plugins/link/lang/km.js | 65 + sources/plugins/link/lang/ko.js | 65 + sources/plugins/link/lang/ku.js | 65 + sources/plugins/link/lang/lt.js | 65 + sources/plugins/link/lang/lv.js | 65 + sources/plugins/link/lang/mk.js | 65 + sources/plugins/link/lang/mn.js | 65 + sources/plugins/link/lang/ms.js | 65 + sources/plugins/link/lang/nb.js | 65 + sources/plugins/link/lang/nl.js | 65 + sources/plugins/link/lang/no.js | 65 + sources/plugins/link/lang/pl.js | 65 + sources/plugins/link/lang/pt-br.js | 65 + sources/plugins/link/lang/pt.js | 65 + sources/plugins/link/lang/ro.js | 65 + sources/plugins/link/lang/ru.js | 65 + sources/plugins/link/lang/si.js | 65 + sources/plugins/link/lang/sk.js | 65 + sources/plugins/link/lang/sl.js | 65 + sources/plugins/link/lang/sq.js | 65 + sources/plugins/link/lang/sr-latn.js | 65 + sources/plugins/link/lang/sr.js | 65 + sources/plugins/link/lang/sv.js | 65 + sources/plugins/link/lang/th.js | 65 + sources/plugins/link/lang/tr.js | 65 + sources/plugins/link/lang/tt.js | 65 + sources/plugins/link/lang/ug.js | 65 + sources/plugins/link/lang/uk.js | 65 + sources/plugins/link/lang/vi.js | 65 + sources/plugins/link/lang/zh-cn.js | 65 + sources/plugins/link/lang/zh.js | 65 + sources/plugins/link/plugin.js | 787 ++ .../plugins/list/icons/bulletedlist-rtl.png | Bin 0 -> 647 bytes sources/plugins/list/icons/bulletedlist.png | Bin 0 -> 646 bytes .../list/icons/hidpi/bulletedlist-rtl.png | Bin 0 -> 1451 bytes .../plugins/list/icons/hidpi/bulletedlist.png | Bin 0 -> 1441 bytes .../list/icons/hidpi/numberedlist-rtl.png | Bin 0 -> 1248 bytes .../plugins/list/icons/hidpi/numberedlist.png | Bin 0 -> 1218 bytes .../plugins/list/icons/numberedlist-rtl.png | Bin 0 -> 666 bytes sources/plugins/list/icons/numberedlist.png | Bin 0 -> 645 bytes sources/plugins/list/lang/af.js | 8 + sources/plugins/list/lang/ar.js | 8 + sources/plugins/list/lang/bg.js | 8 + sources/plugins/list/lang/bn.js | 8 + sources/plugins/list/lang/bs.js | 8 + sources/plugins/list/lang/ca.js | 8 + sources/plugins/list/lang/cs.js | 8 + sources/plugins/list/lang/cy.js | 8 + sources/plugins/list/lang/da.js | 8 + sources/plugins/list/lang/de.js | 8 + sources/plugins/list/lang/el.js | 8 + sources/plugins/list/lang/en-au.js | 8 + sources/plugins/list/lang/en-ca.js | 8 + sources/plugins/list/lang/en-gb.js | 8 + sources/plugins/list/lang/en.js | 8 + sources/plugins/list/lang/eo.js | 8 + sources/plugins/list/lang/es.js | 8 + sources/plugins/list/lang/et.js | 8 + sources/plugins/list/lang/eu.js | 8 + sources/plugins/list/lang/fa.js | 8 + sources/plugins/list/lang/fi.js | 8 + sources/plugins/list/lang/fo.js | 8 + sources/plugins/list/lang/fr-ca.js | 8 + sources/plugins/list/lang/fr.js | 8 + sources/plugins/list/lang/gl.js | 8 + sources/plugins/list/lang/gu.js | 8 + sources/plugins/list/lang/he.js | 8 + sources/plugins/list/lang/hi.js | 8 + sources/plugins/list/lang/hr.js | 8 + sources/plugins/list/lang/hu.js | 8 + sources/plugins/list/lang/id.js | 8 + sources/plugins/list/lang/is.js | 8 + sources/plugins/list/lang/it.js | 8 + sources/plugins/list/lang/ja.js | 8 + sources/plugins/list/lang/ka.js | 8 + sources/plugins/list/lang/km.js | 8 + sources/plugins/list/lang/ko.js | 8 + sources/plugins/list/lang/ku.js | 8 + sources/plugins/list/lang/lt.js | 8 + sources/plugins/list/lang/lv.js | 8 + sources/plugins/list/lang/mk.js | 8 + sources/plugins/list/lang/mn.js | 8 + sources/plugins/list/lang/ms.js | 8 + sources/plugins/list/lang/nb.js | 8 + sources/plugins/list/lang/nl.js | 8 + sources/plugins/list/lang/no.js | 8 + sources/plugins/list/lang/pl.js | 8 + sources/plugins/list/lang/pt-br.js | 8 + sources/plugins/list/lang/pt.js | 8 + sources/plugins/list/lang/ro.js | 8 + sources/plugins/list/lang/ru.js | 8 + sources/plugins/list/lang/si.js | 8 + sources/plugins/list/lang/sk.js | 8 + sources/plugins/list/lang/sl.js | 8 + sources/plugins/list/lang/sq.js | 8 + sources/plugins/list/lang/sr-latn.js | 8 + sources/plugins/list/lang/sr.js | 8 + sources/plugins/list/lang/sv.js | 8 + sources/plugins/list/lang/th.js | 8 + sources/plugins/list/lang/tr.js | 8 + sources/plugins/list/lang/tt.js | 8 + sources/plugins/list/lang/ug.js | 8 + sources/plugins/list/lang/uk.js | 8 + sources/plugins/list/lang/vi.js | 8 + sources/plugins/list/lang/zh-cn.js | 8 + sources/plugins/list/lang/zh.js | 8 + sources/plugins/list/plugin.js | 1111 +++ sources/plugins/listblock/plugin.js | 241 + .../plugins/liststyle/dialogs/liststyle.js | 189 + sources/plugins/liststyle/lang/af.js | 25 + sources/plugins/liststyle/lang/ar.js | 25 + sources/plugins/liststyle/lang/bg.js | 25 + sources/plugins/liststyle/lang/bn.js | 25 + sources/plugins/liststyle/lang/bs.js | 25 + sources/plugins/liststyle/lang/ca.js | 25 + sources/plugins/liststyle/lang/cs.js | 25 + sources/plugins/liststyle/lang/cy.js | 25 + sources/plugins/liststyle/lang/da.js | 25 + sources/plugins/liststyle/lang/de.js | 25 + sources/plugins/liststyle/lang/el.js | 25 + sources/plugins/liststyle/lang/en-au.js | 25 + sources/plugins/liststyle/lang/en-ca.js | 25 + sources/plugins/liststyle/lang/en-gb.js | 25 + sources/plugins/liststyle/lang/en.js | 25 + sources/plugins/liststyle/lang/eo.js | 25 + sources/plugins/liststyle/lang/es.js | 25 + sources/plugins/liststyle/lang/et.js | 25 + sources/plugins/liststyle/lang/eu.js | 25 + sources/plugins/liststyle/lang/fa.js | 25 + sources/plugins/liststyle/lang/fi.js | 25 + sources/plugins/liststyle/lang/fo.js | 25 + sources/plugins/liststyle/lang/fr-ca.js | 25 + sources/plugins/liststyle/lang/fr.js | 25 + sources/plugins/liststyle/lang/gl.js | 25 + sources/plugins/liststyle/lang/gu.js | 25 + sources/plugins/liststyle/lang/he.js | 25 + sources/plugins/liststyle/lang/hi.js | 25 + sources/plugins/liststyle/lang/hr.js | 25 + sources/plugins/liststyle/lang/hu.js | 25 + sources/plugins/liststyle/lang/id.js | 25 + sources/plugins/liststyle/lang/is.js | 25 + sources/plugins/liststyle/lang/it.js | 25 + sources/plugins/liststyle/lang/ja.js | 25 + sources/plugins/liststyle/lang/ka.js | 25 + sources/plugins/liststyle/lang/km.js | 25 + sources/plugins/liststyle/lang/ko.js | 25 + sources/plugins/liststyle/lang/ku.js | 25 + sources/plugins/liststyle/lang/lt.js | 25 + sources/plugins/liststyle/lang/lv.js | 25 + sources/plugins/liststyle/lang/mk.js | 25 + sources/plugins/liststyle/lang/mn.js | 25 + sources/plugins/liststyle/lang/ms.js | 25 + sources/plugins/liststyle/lang/nb.js | 25 + sources/plugins/liststyle/lang/nl.js | 25 + sources/plugins/liststyle/lang/no.js | 25 + sources/plugins/liststyle/lang/pl.js | 25 + sources/plugins/liststyle/lang/pt-br.js | 25 + sources/plugins/liststyle/lang/pt.js | 25 + sources/plugins/liststyle/lang/ro.js | 25 + sources/plugins/liststyle/lang/ru.js | 25 + sources/plugins/liststyle/lang/si.js | 25 + sources/plugins/liststyle/lang/sk.js | 25 + sources/plugins/liststyle/lang/sl.js | 25 + sources/plugins/liststyle/lang/sq.js | 25 + sources/plugins/liststyle/lang/sr-latn.js | 25 + sources/plugins/liststyle/lang/sr.js | 25 + sources/plugins/liststyle/lang/sv.js | 25 + sources/plugins/liststyle/lang/th.js | 25 + sources/plugins/liststyle/lang/tr.js | 25 + sources/plugins/liststyle/lang/tt.js | 25 + sources/plugins/liststyle/lang/ug.js | 25 + sources/plugins/liststyle/lang/uk.js | 25 + sources/plugins/liststyle/lang/vi.js | 25 + sources/plugins/liststyle/lang/zh-cn.js | 25 + sources/plugins/liststyle/lang/zh.js | 25 + sources/plugins/liststyle/plugin.js | 69 + sources/plugins/magicline/dev/magicline.html | 594 ++ .../magicline/images/hidpi/icon-rtl.png | Bin 0 -> 176 bytes .../plugins/magicline/images/hidpi/icon.png | Bin 0 -> 199 bytes sources/plugins/magicline/images/icon-rtl.png | Bin 0 -> 138 bytes sources/plugins/magicline/images/icon.png | Bin 0 -> 133 bytes sources/plugins/magicline/lang/af.js | 8 + sources/plugins/magicline/lang/ar.js | 8 + sources/plugins/magicline/lang/bg.js | 8 + sources/plugins/magicline/lang/ca.js | 8 + sources/plugins/magicline/lang/cs.js | 8 + sources/plugins/magicline/lang/cy.js | 8 + sources/plugins/magicline/lang/da.js | 8 + sources/plugins/magicline/lang/de.js | 8 + sources/plugins/magicline/lang/el.js | 8 + sources/plugins/magicline/lang/en-gb.js | 8 + sources/plugins/magicline/lang/en.js | 8 + sources/plugins/magicline/lang/eo.js | 8 + sources/plugins/magicline/lang/es.js | 8 + sources/plugins/magicline/lang/et.js | 8 + sources/plugins/magicline/lang/eu.js | 8 + sources/plugins/magicline/lang/fa.js | 8 + sources/plugins/magicline/lang/fi.js | 8 + sources/plugins/magicline/lang/fr-ca.js | 8 + sources/plugins/magicline/lang/fr.js | 8 + sources/plugins/magicline/lang/gl.js | 8 + sources/plugins/magicline/lang/he.js | 8 + sources/plugins/magicline/lang/hr.js | 8 + sources/plugins/magicline/lang/hu.js | 8 + sources/plugins/magicline/lang/id.js | 8 + sources/plugins/magicline/lang/it.js | 8 + sources/plugins/magicline/lang/ja.js | 8 + sources/plugins/magicline/lang/km.js | 8 + sources/plugins/magicline/lang/ko.js | 8 + sources/plugins/magicline/lang/ku.js | 8 + sources/plugins/magicline/lang/lv.js | 8 + sources/plugins/magicline/lang/nb.js | 8 + sources/plugins/magicline/lang/nl.js | 8 + sources/plugins/magicline/lang/no.js | 8 + sources/plugins/magicline/lang/pl.js | 8 + sources/plugins/magicline/lang/pt-br.js | 8 + sources/plugins/magicline/lang/pt.js | 8 + sources/plugins/magicline/lang/ru.js | 8 + sources/plugins/magicline/lang/si.js | 8 + sources/plugins/magicline/lang/sk.js | 8 + sources/plugins/magicline/lang/sl.js | 8 + sources/plugins/magicline/lang/sq.js | 8 + sources/plugins/magicline/lang/sv.js | 8 + sources/plugins/magicline/lang/tr.js | 8 + sources/plugins/magicline/lang/tt.js | 8 + sources/plugins/magicline/lang/ug.js | 8 + sources/plugins/magicline/lang/uk.js | 8 + sources/plugins/magicline/lang/vi.js | 8 + sources/plugins/magicline/lang/zh-cn.js | 8 + sources/plugins/magicline/lang/zh.js | 8 + sources/plugins/magicline/plugin.js | 1874 ++++ .../plugins/magicline/samples/magicline.html | 209 + .../plugins/maximize/icons/hidpi/maximize.png | Bin 0 -> 2462 bytes sources/plugins/maximize/icons/maximize.png | Bin 0 -> 921 bytes sources/plugins/maximize/lang/af.js | 8 + sources/plugins/maximize/lang/ar.js | 8 + sources/plugins/maximize/lang/bg.js | 8 + sources/plugins/maximize/lang/bn.js | 8 + sources/plugins/maximize/lang/bs.js | 8 + sources/plugins/maximize/lang/ca.js | 8 + sources/plugins/maximize/lang/cs.js | 8 + sources/plugins/maximize/lang/cy.js | 8 + sources/plugins/maximize/lang/da.js | 8 + sources/plugins/maximize/lang/de.js | 8 + sources/plugins/maximize/lang/el.js | 8 + sources/plugins/maximize/lang/en-au.js | 8 + sources/plugins/maximize/lang/en-ca.js | 8 + sources/plugins/maximize/lang/en-gb.js | 8 + sources/plugins/maximize/lang/en.js | 8 + sources/plugins/maximize/lang/eo.js | 8 + sources/plugins/maximize/lang/es.js | 8 + sources/plugins/maximize/lang/et.js | 8 + sources/plugins/maximize/lang/eu.js | 8 + sources/plugins/maximize/lang/fa.js | 8 + sources/plugins/maximize/lang/fi.js | 8 + sources/plugins/maximize/lang/fo.js | 8 + sources/plugins/maximize/lang/fr-ca.js | 8 + sources/plugins/maximize/lang/fr.js | 8 + sources/plugins/maximize/lang/gl.js | 8 + sources/plugins/maximize/lang/gu.js | 8 + sources/plugins/maximize/lang/he.js | 8 + sources/plugins/maximize/lang/hi.js | 8 + sources/plugins/maximize/lang/hr.js | 8 + sources/plugins/maximize/lang/hu.js | 8 + sources/plugins/maximize/lang/id.js | 8 + sources/plugins/maximize/lang/is.js | 8 + sources/plugins/maximize/lang/it.js | 8 + sources/plugins/maximize/lang/ja.js | 8 + sources/plugins/maximize/lang/ka.js | 8 + sources/plugins/maximize/lang/km.js | 8 + sources/plugins/maximize/lang/ko.js | 8 + sources/plugins/maximize/lang/ku.js | 8 + sources/plugins/maximize/lang/lt.js | 8 + sources/plugins/maximize/lang/lv.js | 8 + sources/plugins/maximize/lang/mk.js | 8 + sources/plugins/maximize/lang/mn.js | 8 + sources/plugins/maximize/lang/ms.js | 8 + sources/plugins/maximize/lang/nb.js | 8 + sources/plugins/maximize/lang/nl.js | 8 + sources/plugins/maximize/lang/no.js | 8 + sources/plugins/maximize/lang/pl.js | 8 + sources/plugins/maximize/lang/pt-br.js | 8 + sources/plugins/maximize/lang/pt.js | 8 + sources/plugins/maximize/lang/ro.js | 8 + sources/plugins/maximize/lang/ru.js | 8 + sources/plugins/maximize/lang/si.js | 8 + sources/plugins/maximize/lang/sk.js | 8 + sources/plugins/maximize/lang/sl.js | 8 + sources/plugins/maximize/lang/sq.js | 8 + sources/plugins/maximize/lang/sr-latn.js | 8 + sources/plugins/maximize/lang/sr.js | 8 + sources/plugins/maximize/lang/sv.js | 8 + sources/plugins/maximize/lang/th.js | 8 + sources/plugins/maximize/lang/tr.js | 8 + sources/plugins/maximize/lang/tt.js | 8 + sources/plugins/maximize/lang/ug.js | 8 + sources/plugins/maximize/lang/uk.js | 8 + sources/plugins/maximize/lang/vi.js | 8 + sources/plugins/maximize/lang/zh-cn.js | 8 + sources/plugins/maximize/lang/zh.js | 8 + sources/plugins/maximize/plugin.js | 314 + sources/plugins/menu/plugin.js | 545 + sources/plugins/menubutton/plugin.js | 101 + .../newpage/icons/hidpi/newpage-rtl.png | Bin 0 -> 1070 bytes .../plugins/newpage/icons/hidpi/newpage.png | Bin 0 -> 1112 bytes sources/plugins/newpage/icons/newpage-rtl.png | Bin 0 -> 575 bytes sources/plugins/newpage/icons/newpage.png | Bin 0 -> 580 bytes sources/plugins/newpage/lang/af.js | 7 + sources/plugins/newpage/lang/ar.js | 7 + sources/plugins/newpage/lang/bg.js | 7 + sources/plugins/newpage/lang/bn.js | 7 + sources/plugins/newpage/lang/bs.js | 7 + sources/plugins/newpage/lang/ca.js | 7 + sources/plugins/newpage/lang/cs.js | 7 + sources/plugins/newpage/lang/cy.js | 7 + sources/plugins/newpage/lang/da.js | 7 + sources/plugins/newpage/lang/de.js | 7 + sources/plugins/newpage/lang/el.js | 7 + sources/plugins/newpage/lang/en-au.js | 7 + sources/plugins/newpage/lang/en-ca.js | 7 + sources/plugins/newpage/lang/en-gb.js | 7 + sources/plugins/newpage/lang/en.js | 7 + sources/plugins/newpage/lang/eo.js | 7 + sources/plugins/newpage/lang/es.js | 7 + sources/plugins/newpage/lang/et.js | 7 + sources/plugins/newpage/lang/eu.js | 7 + sources/plugins/newpage/lang/fa.js | 7 + sources/plugins/newpage/lang/fi.js | 7 + sources/plugins/newpage/lang/fo.js | 7 + sources/plugins/newpage/lang/fr-ca.js | 7 + sources/plugins/newpage/lang/fr.js | 7 + sources/plugins/newpage/lang/gl.js | 7 + sources/plugins/newpage/lang/gu.js | 7 + sources/plugins/newpage/lang/he.js | 7 + sources/plugins/newpage/lang/hi.js | 7 + sources/plugins/newpage/lang/hr.js | 7 + sources/plugins/newpage/lang/hu.js | 7 + sources/plugins/newpage/lang/id.js | 7 + sources/plugins/newpage/lang/is.js | 7 + sources/plugins/newpage/lang/it.js | 7 + sources/plugins/newpage/lang/ja.js | 7 + sources/plugins/newpage/lang/ka.js | 7 + sources/plugins/newpage/lang/km.js | 7 + sources/plugins/newpage/lang/ko.js | 7 + sources/plugins/newpage/lang/ku.js | 7 + sources/plugins/newpage/lang/lt.js | 7 + sources/plugins/newpage/lang/lv.js | 7 + sources/plugins/newpage/lang/mk.js | 7 + sources/plugins/newpage/lang/mn.js | 7 + sources/plugins/newpage/lang/ms.js | 7 + sources/plugins/newpage/lang/nb.js | 7 + sources/plugins/newpage/lang/nl.js | 7 + sources/plugins/newpage/lang/no.js | 7 + sources/plugins/newpage/lang/pl.js | 7 + sources/plugins/newpage/lang/pt-br.js | 7 + sources/plugins/newpage/lang/pt.js | 7 + sources/plugins/newpage/lang/ro.js | 7 + sources/plugins/newpage/lang/ru.js | 7 + sources/plugins/newpage/lang/si.js | 7 + sources/plugins/newpage/lang/sk.js | 7 + sources/plugins/newpage/lang/sl.js | 7 + sources/plugins/newpage/lang/sq.js | 7 + sources/plugins/newpage/lang/sr-latn.js | 7 + sources/plugins/newpage/lang/sr.js | 7 + sources/plugins/newpage/lang/sv.js | 7 + sources/plugins/newpage/lang/th.js | 7 + sources/plugins/newpage/lang/tr.js | 7 + sources/plugins/newpage/lang/tt.js | 7 + sources/plugins/newpage/lang/ug.js | 7 + sources/plugins/newpage/lang/uk.js | 7 + sources/plugins/newpage/lang/vi.js | 7 + sources/plugins/newpage/lang/zh-cn.js | 7 + sources/plugins/newpage/lang/zh.js | 7 + sources/plugins/newpage/plugin.js | 53 + .../pagebreak/icons/hidpi/pagebreak-rtl.png | Bin 0 -> 1318 bytes .../pagebreak/icons/hidpi/pagebreak.png | Bin 0 -> 1299 bytes .../plugins/pagebreak/icons/pagebreak-rtl.png | Bin 0 -> 629 bytes sources/plugins/pagebreak/icons/pagebreak.png | Bin 0 -> 602 bytes .../plugins/pagebreak/images/pagebreak.gif | Bin 0 -> 99 bytes sources/plugins/pagebreak/lang/af.js | 8 + sources/plugins/pagebreak/lang/ar.js | 8 + sources/plugins/pagebreak/lang/bg.js | 8 + sources/plugins/pagebreak/lang/bn.js | 8 + sources/plugins/pagebreak/lang/bs.js | 8 + sources/plugins/pagebreak/lang/ca.js | 8 + sources/plugins/pagebreak/lang/cs.js | 8 + sources/plugins/pagebreak/lang/cy.js | 8 + sources/plugins/pagebreak/lang/da.js | 8 + sources/plugins/pagebreak/lang/de.js | 8 + sources/plugins/pagebreak/lang/el.js | 8 + sources/plugins/pagebreak/lang/en-au.js | 8 + sources/plugins/pagebreak/lang/en-ca.js | 8 + sources/plugins/pagebreak/lang/en-gb.js | 8 + sources/plugins/pagebreak/lang/en.js | 8 + sources/plugins/pagebreak/lang/eo.js | 8 + sources/plugins/pagebreak/lang/es.js | 8 + sources/plugins/pagebreak/lang/et.js | 8 + sources/plugins/pagebreak/lang/eu.js | 8 + sources/plugins/pagebreak/lang/fa.js | 8 + sources/plugins/pagebreak/lang/fi.js | 8 + sources/plugins/pagebreak/lang/fo.js | 8 + sources/plugins/pagebreak/lang/fr-ca.js | 8 + sources/plugins/pagebreak/lang/fr.js | 8 + sources/plugins/pagebreak/lang/gl.js | 8 + sources/plugins/pagebreak/lang/gu.js | 8 + sources/plugins/pagebreak/lang/he.js | 8 + sources/plugins/pagebreak/lang/hi.js | 8 + sources/plugins/pagebreak/lang/hr.js | 8 + sources/plugins/pagebreak/lang/hu.js | 8 + sources/plugins/pagebreak/lang/id.js | 8 + sources/plugins/pagebreak/lang/is.js | 8 + sources/plugins/pagebreak/lang/it.js | 8 + sources/plugins/pagebreak/lang/ja.js | 8 + sources/plugins/pagebreak/lang/ka.js | 8 + sources/plugins/pagebreak/lang/km.js | 8 + sources/plugins/pagebreak/lang/ko.js | 8 + sources/plugins/pagebreak/lang/ku.js | 8 + sources/plugins/pagebreak/lang/lt.js | 8 + sources/plugins/pagebreak/lang/lv.js | 8 + sources/plugins/pagebreak/lang/mk.js | 8 + sources/plugins/pagebreak/lang/mn.js | 8 + sources/plugins/pagebreak/lang/ms.js | 8 + sources/plugins/pagebreak/lang/nb.js | 8 + sources/plugins/pagebreak/lang/nl.js | 8 + sources/plugins/pagebreak/lang/no.js | 8 + sources/plugins/pagebreak/lang/pl.js | 8 + sources/plugins/pagebreak/lang/pt-br.js | 8 + sources/plugins/pagebreak/lang/pt.js | 8 + sources/plugins/pagebreak/lang/ro.js | 8 + sources/plugins/pagebreak/lang/ru.js | 8 + sources/plugins/pagebreak/lang/si.js | 8 + sources/plugins/pagebreak/lang/sk.js | 8 + sources/plugins/pagebreak/lang/sl.js | 8 + sources/plugins/pagebreak/lang/sq.js | 8 + sources/plugins/pagebreak/lang/sr-latn.js | 8 + sources/plugins/pagebreak/lang/sr.js | 8 + sources/plugins/pagebreak/lang/sv.js | 8 + sources/plugins/pagebreak/lang/th.js | 8 + sources/plugins/pagebreak/lang/tr.js | 8 + sources/plugins/pagebreak/lang/tt.js | 8 + sources/plugins/pagebreak/lang/ug.js | 8 + sources/plugins/pagebreak/lang/uk.js | 8 + sources/plugins/pagebreak/lang/vi.js | 8 + sources/plugins/pagebreak/lang/zh-cn.js | 8 + sources/plugins/pagebreak/lang/zh.js | 8 + sources/plugins/pagebreak/plugin.js | 160 + sources/plugins/panel/plugin.js | 403 + sources/plugins/panelbutton/plugin.js | 138 + .../plugins/pastefromword/filter/default.js | 1251 +++ .../icons/hidpi/pastefromword-rtl.png | Bin 0 -> 2090 bytes .../icons/hidpi/pastefromword.png | Bin 0 -> 2105 bytes .../pastefromword/icons/pastefromword-rtl.png | Bin 0 -> 720 bytes .../pastefromword/icons/pastefromword.png | Bin 0 -> 723 bytes sources/plugins/pastefromword/lang/af.js | 10 + sources/plugins/pastefromword/lang/ar.js | 10 + sources/plugins/pastefromword/lang/bg.js | 10 + sources/plugins/pastefromword/lang/bn.js | 10 + sources/plugins/pastefromword/lang/bs.js | 10 + sources/plugins/pastefromword/lang/ca.js | 10 + sources/plugins/pastefromword/lang/cs.js | 10 + sources/plugins/pastefromword/lang/cy.js | 10 + sources/plugins/pastefromword/lang/da.js | 10 + sources/plugins/pastefromword/lang/de.js | 10 + sources/plugins/pastefromword/lang/el.js | 10 + sources/plugins/pastefromword/lang/en-au.js | 10 + sources/plugins/pastefromword/lang/en-ca.js | 10 + sources/plugins/pastefromword/lang/en-gb.js | 10 + sources/plugins/pastefromword/lang/en.js | 10 + sources/plugins/pastefromword/lang/eo.js | 10 + sources/plugins/pastefromword/lang/es.js | 10 + sources/plugins/pastefromword/lang/et.js | 10 + sources/plugins/pastefromword/lang/eu.js | 10 + sources/plugins/pastefromword/lang/fa.js | 10 + sources/plugins/pastefromword/lang/fi.js | 10 + sources/plugins/pastefromword/lang/fo.js | 10 + sources/plugins/pastefromword/lang/fr-ca.js | 10 + sources/plugins/pastefromword/lang/fr.js | 10 + sources/plugins/pastefromword/lang/gl.js | 10 + sources/plugins/pastefromword/lang/gu.js | 10 + sources/plugins/pastefromword/lang/he.js | 10 + sources/plugins/pastefromword/lang/hi.js | 10 + sources/plugins/pastefromword/lang/hr.js | 10 + sources/plugins/pastefromword/lang/hu.js | 10 + sources/plugins/pastefromword/lang/id.js | 10 + sources/plugins/pastefromword/lang/is.js | 10 + sources/plugins/pastefromword/lang/it.js | 10 + sources/plugins/pastefromword/lang/ja.js | 10 + sources/plugins/pastefromword/lang/ka.js | 10 + sources/plugins/pastefromword/lang/km.js | 10 + sources/plugins/pastefromword/lang/ko.js | 10 + sources/plugins/pastefromword/lang/ku.js | 10 + sources/plugins/pastefromword/lang/lt.js | 10 + sources/plugins/pastefromword/lang/lv.js | 10 + sources/plugins/pastefromword/lang/mk.js | 10 + sources/plugins/pastefromword/lang/mn.js | 10 + sources/plugins/pastefromword/lang/ms.js | 10 + sources/plugins/pastefromword/lang/nb.js | 10 + sources/plugins/pastefromword/lang/nl.js | 10 + sources/plugins/pastefromword/lang/no.js | 10 + sources/plugins/pastefromword/lang/pl.js | 10 + sources/plugins/pastefromword/lang/pt-br.js | 10 + sources/plugins/pastefromword/lang/pt.js | 10 + sources/plugins/pastefromword/lang/ro.js | 10 + sources/plugins/pastefromword/lang/ru.js | 10 + sources/plugins/pastefromword/lang/si.js | 10 + sources/plugins/pastefromword/lang/sk.js | 10 + sources/plugins/pastefromword/lang/sl.js | 10 + sources/plugins/pastefromword/lang/sq.js | 10 + sources/plugins/pastefromword/lang/sr-latn.js | 10 + sources/plugins/pastefromword/lang/sr.js | 10 + sources/plugins/pastefromword/lang/sv.js | 10 + sources/plugins/pastefromword/lang/th.js | 10 + sources/plugins/pastefromword/lang/tr.js | 10 + sources/plugins/pastefromword/lang/tt.js | 10 + sources/plugins/pastefromword/lang/ug.js | 10 + sources/plugins/pastefromword/lang/uk.js | 10 + sources/plugins/pastefromword/lang/vi.js | 10 + sources/plugins/pastefromword/lang/zh-cn.js | 10 + sources/plugins/pastefromword/lang/zh.js | 10 + sources/plugins/pastefromword/plugin.js | 149 + .../pastetext/icons/hidpi/pastetext-rtl.png | Bin 0 -> 1950 bytes .../pastetext/icons/hidpi/pastetext.png | Bin 0 -> 1963 bytes .../plugins/pastetext/icons/pastetext-rtl.png | Bin 0 -> 752 bytes sources/plugins/pastetext/icons/pastetext.png | Bin 0 -> 750 bytes sources/plugins/pastetext/lang/af.js | 8 + sources/plugins/pastetext/lang/ar.js | 8 + sources/plugins/pastetext/lang/bg.js | 8 + sources/plugins/pastetext/lang/bn.js | 8 + sources/plugins/pastetext/lang/bs.js | 8 + sources/plugins/pastetext/lang/ca.js | 8 + sources/plugins/pastetext/lang/cs.js | 8 + sources/plugins/pastetext/lang/cy.js | 8 + sources/plugins/pastetext/lang/da.js | 8 + sources/plugins/pastetext/lang/de.js | 8 + sources/plugins/pastetext/lang/el.js | 8 + sources/plugins/pastetext/lang/en-au.js | 8 + sources/plugins/pastetext/lang/en-ca.js | 8 + sources/plugins/pastetext/lang/en-gb.js | 8 + sources/plugins/pastetext/lang/en.js | 8 + sources/plugins/pastetext/lang/eo.js | 8 + sources/plugins/pastetext/lang/es.js | 8 + sources/plugins/pastetext/lang/et.js | 8 + sources/plugins/pastetext/lang/eu.js | 8 + sources/plugins/pastetext/lang/fa.js | 8 + sources/plugins/pastetext/lang/fi.js | 8 + sources/plugins/pastetext/lang/fo.js | 8 + sources/plugins/pastetext/lang/fr-ca.js | 8 + sources/plugins/pastetext/lang/fr.js | 8 + sources/plugins/pastetext/lang/gl.js | 8 + sources/plugins/pastetext/lang/gu.js | 8 + sources/plugins/pastetext/lang/he.js | 8 + sources/plugins/pastetext/lang/hi.js | 8 + sources/plugins/pastetext/lang/hr.js | 8 + sources/plugins/pastetext/lang/hu.js | 8 + sources/plugins/pastetext/lang/id.js | 8 + sources/plugins/pastetext/lang/is.js | 8 + sources/plugins/pastetext/lang/it.js | 8 + sources/plugins/pastetext/lang/ja.js | 8 + sources/plugins/pastetext/lang/ka.js | 8 + sources/plugins/pastetext/lang/km.js | 8 + sources/plugins/pastetext/lang/ko.js | 8 + sources/plugins/pastetext/lang/ku.js | 8 + sources/plugins/pastetext/lang/lt.js | 8 + sources/plugins/pastetext/lang/lv.js | 8 + sources/plugins/pastetext/lang/mk.js | 8 + sources/plugins/pastetext/lang/mn.js | 8 + sources/plugins/pastetext/lang/ms.js | 8 + sources/plugins/pastetext/lang/nb.js | 8 + sources/plugins/pastetext/lang/nl.js | 8 + sources/plugins/pastetext/lang/no.js | 8 + sources/plugins/pastetext/lang/pl.js | 8 + sources/plugins/pastetext/lang/pt-br.js | 8 + sources/plugins/pastetext/lang/pt.js | 8 + sources/plugins/pastetext/lang/ro.js | 8 + sources/plugins/pastetext/lang/ru.js | 8 + sources/plugins/pastetext/lang/si.js | 8 + sources/plugins/pastetext/lang/sk.js | 8 + sources/plugins/pastetext/lang/sl.js | 8 + sources/plugins/pastetext/lang/sq.js | 8 + sources/plugins/pastetext/lang/sr-latn.js | 8 + sources/plugins/pastetext/lang/sr.js | 8 + sources/plugins/pastetext/lang/sv.js | 8 + sources/plugins/pastetext/lang/th.js | 8 + sources/plugins/pastetext/lang/tr.js | 8 + sources/plugins/pastetext/lang/tt.js | 8 + sources/plugins/pastetext/lang/ug.js | 8 + sources/plugins/pastetext/lang/uk.js | 8 + sources/plugins/pastetext/lang/vi.js | 8 + sources/plugins/pastetext/lang/zh-cn.js | 8 + sources/plugins/pastetext/lang/zh.js | 8 + sources/plugins/pastetext/plugin.js | 83 + sources/plugins/popup/plugin.js | 65 + .../preview/icons/hidpi/preview-rtl.png | Bin 0 -> 2145 bytes .../plugins/preview/icons/hidpi/preview.png | Bin 0 -> 2204 bytes sources/plugins/preview/icons/preview-rtl.png | Bin 0 -> 850 bytes sources/plugins/preview/icons/preview.png | Bin 0 -> 855 bytes sources/plugins/preview/lang/af.js | 7 + sources/plugins/preview/lang/ar.js | 7 + sources/plugins/preview/lang/bg.js | 7 + sources/plugins/preview/lang/bn.js | 7 + sources/plugins/preview/lang/bs.js | 7 + sources/plugins/preview/lang/ca.js | 7 + sources/plugins/preview/lang/cs.js | 7 + sources/plugins/preview/lang/cy.js | 7 + sources/plugins/preview/lang/da.js | 7 + sources/plugins/preview/lang/de.js | 7 + sources/plugins/preview/lang/el.js | 7 + sources/plugins/preview/lang/en-au.js | 7 + sources/plugins/preview/lang/en-ca.js | 7 + sources/plugins/preview/lang/en-gb.js | 7 + sources/plugins/preview/lang/en.js | 7 + sources/plugins/preview/lang/eo.js | 7 + sources/plugins/preview/lang/es.js | 7 + sources/plugins/preview/lang/et.js | 7 + sources/plugins/preview/lang/eu.js | 7 + sources/plugins/preview/lang/fa.js | 7 + sources/plugins/preview/lang/fi.js | 7 + sources/plugins/preview/lang/fo.js | 7 + sources/plugins/preview/lang/fr-ca.js | 7 + sources/plugins/preview/lang/fr.js | 7 + sources/plugins/preview/lang/gl.js | 7 + sources/plugins/preview/lang/gu.js | 7 + sources/plugins/preview/lang/he.js | 7 + sources/plugins/preview/lang/hi.js | 7 + sources/plugins/preview/lang/hr.js | 7 + sources/plugins/preview/lang/hu.js | 7 + sources/plugins/preview/lang/id.js | 7 + sources/plugins/preview/lang/is.js | 7 + sources/plugins/preview/lang/it.js | 7 + sources/plugins/preview/lang/ja.js | 7 + sources/plugins/preview/lang/ka.js | 7 + sources/plugins/preview/lang/km.js | 7 + sources/plugins/preview/lang/ko.js | 7 + sources/plugins/preview/lang/ku.js | 7 + sources/plugins/preview/lang/lt.js | 7 + sources/plugins/preview/lang/lv.js | 7 + sources/plugins/preview/lang/mk.js | 7 + sources/plugins/preview/lang/mn.js | 7 + sources/plugins/preview/lang/ms.js | 7 + sources/plugins/preview/lang/nb.js | 7 + sources/plugins/preview/lang/nl.js | 7 + sources/plugins/preview/lang/no.js | 7 + sources/plugins/preview/lang/pl.js | 7 + sources/plugins/preview/lang/pt-br.js | 7 + sources/plugins/preview/lang/pt.js | 7 + sources/plugins/preview/lang/ro.js | 7 + sources/plugins/preview/lang/ru.js | 7 + sources/plugins/preview/lang/si.js | 7 + sources/plugins/preview/lang/sk.js | 7 + sources/plugins/preview/lang/sl.js | 7 + sources/plugins/preview/lang/sq.js | 7 + sources/plugins/preview/lang/sr-latn.js | 7 + sources/plugins/preview/lang/sr.js | 7 + sources/plugins/preview/lang/sv.js | 7 + sources/plugins/preview/lang/th.js | 7 + sources/plugins/preview/lang/tr.js | 7 + sources/plugins/preview/lang/tt.js | 7 + sources/plugins/preview/lang/ug.js | 7 + sources/plugins/preview/lang/uk.js | 7 + sources/plugins/preview/lang/vi.js | 7 + sources/plugins/preview/lang/zh-cn.js | 7 + sources/plugins/preview/lang/zh.js | 7 + sources/plugins/preview/plugin.js | 145 + sources/plugins/preview/preview.html | 13 + sources/plugins/print/icons/hidpi/print.png | Bin 0 -> 1648 bytes sources/plugins/print/icons/print.png | Bin 0 -> 765 bytes sources/plugins/print/lang/af.js | 7 + sources/plugins/print/lang/ar.js | 7 + sources/plugins/print/lang/bg.js | 7 + sources/plugins/print/lang/bn.js | 7 + sources/plugins/print/lang/bs.js | 7 + sources/plugins/print/lang/ca.js | 7 + sources/plugins/print/lang/cs.js | 7 + sources/plugins/print/lang/cy.js | 7 + sources/plugins/print/lang/da.js | 7 + sources/plugins/print/lang/de.js | 7 + sources/plugins/print/lang/el.js | 7 + sources/plugins/print/lang/en-au.js | 7 + sources/plugins/print/lang/en-ca.js | 7 + sources/plugins/print/lang/en-gb.js | 7 + sources/plugins/print/lang/en.js | 7 + sources/plugins/print/lang/eo.js | 7 + sources/plugins/print/lang/es.js | 7 + sources/plugins/print/lang/et.js | 7 + sources/plugins/print/lang/eu.js | 7 + sources/plugins/print/lang/fa.js | 7 + sources/plugins/print/lang/fi.js | 7 + sources/plugins/print/lang/fo.js | 7 + sources/plugins/print/lang/fr-ca.js | 7 + sources/plugins/print/lang/fr.js | 7 + sources/plugins/print/lang/gl.js | 7 + sources/plugins/print/lang/gu.js | 7 + sources/plugins/print/lang/he.js | 7 + sources/plugins/print/lang/hi.js | 7 + sources/plugins/print/lang/hr.js | 7 + sources/plugins/print/lang/hu.js | 7 + sources/plugins/print/lang/id.js | 7 + sources/plugins/print/lang/is.js | 7 + sources/plugins/print/lang/it.js | 7 + sources/plugins/print/lang/ja.js | 7 + sources/plugins/print/lang/ka.js | 7 + sources/plugins/print/lang/km.js | 7 + sources/plugins/print/lang/ko.js | 7 + sources/plugins/print/lang/ku.js | 7 + sources/plugins/print/lang/lt.js | 7 + sources/plugins/print/lang/lv.js | 7 + sources/plugins/print/lang/mk.js | 7 + sources/plugins/print/lang/mn.js | 7 + sources/plugins/print/lang/ms.js | 7 + sources/plugins/print/lang/nb.js | 7 + sources/plugins/print/lang/nl.js | 7 + sources/plugins/print/lang/no.js | 7 + sources/plugins/print/lang/pl.js | 7 + sources/plugins/print/lang/pt-br.js | 7 + sources/plugins/print/lang/pt.js | 7 + sources/plugins/print/lang/ro.js | 7 + sources/plugins/print/lang/ru.js | 7 + sources/plugins/print/lang/si.js | 7 + sources/plugins/print/lang/sk.js | 7 + sources/plugins/print/lang/sl.js | 7 + sources/plugins/print/lang/sq.js | 7 + sources/plugins/print/lang/sr-latn.js | 7 + sources/plugins/print/lang/sr.js | 7 + sources/plugins/print/lang/sv.js | 7 + sources/plugins/print/lang/th.js | 7 + sources/plugins/print/lang/tr.js | 7 + sources/plugins/print/lang/tt.js | 7 + sources/plugins/print/lang/ug.js | 7 + sources/plugins/print/lang/uk.js | 7 + sources/plugins/print/lang/vi.js | 7 + sources/plugins/print/lang/zh-cn.js | 7 + sources/plugins/print/lang/zh.js | 7 + sources/plugins/print/plugin.js | 46 + .../removeformat/icons/hidpi/removeformat.png | Bin 0 -> 2119 bytes .../removeformat/icons/removeformat.png | Bin 0 -> 871 bytes sources/plugins/removeformat/lang/af.js | 7 + sources/plugins/removeformat/lang/ar.js | 7 + sources/plugins/removeformat/lang/bg.js | 7 + sources/plugins/removeformat/lang/bn.js | 7 + sources/plugins/removeformat/lang/bs.js | 7 + sources/plugins/removeformat/lang/ca.js | 7 + sources/plugins/removeformat/lang/cs.js | 7 + sources/plugins/removeformat/lang/cy.js | 7 + sources/plugins/removeformat/lang/da.js | 7 + sources/plugins/removeformat/lang/de.js | 7 + sources/plugins/removeformat/lang/el.js | 7 + sources/plugins/removeformat/lang/en-au.js | 7 + sources/plugins/removeformat/lang/en-ca.js | 7 + sources/plugins/removeformat/lang/en-gb.js | 7 + sources/plugins/removeformat/lang/en.js | 7 + sources/plugins/removeformat/lang/eo.js | 7 + sources/plugins/removeformat/lang/es.js | 7 + sources/plugins/removeformat/lang/et.js | 7 + sources/plugins/removeformat/lang/eu.js | 7 + sources/plugins/removeformat/lang/fa.js | 7 + sources/plugins/removeformat/lang/fi.js | 7 + sources/plugins/removeformat/lang/fo.js | 7 + sources/plugins/removeformat/lang/fr-ca.js | 7 + sources/plugins/removeformat/lang/fr.js | 7 + sources/plugins/removeformat/lang/gl.js | 7 + sources/plugins/removeformat/lang/gu.js | 7 + sources/plugins/removeformat/lang/he.js | 7 + sources/plugins/removeformat/lang/hi.js | 7 + sources/plugins/removeformat/lang/hr.js | 7 + sources/plugins/removeformat/lang/hu.js | 7 + sources/plugins/removeformat/lang/id.js | 7 + sources/plugins/removeformat/lang/is.js | 7 + sources/plugins/removeformat/lang/it.js | 7 + sources/plugins/removeformat/lang/ja.js | 7 + sources/plugins/removeformat/lang/ka.js | 7 + sources/plugins/removeformat/lang/km.js | 7 + sources/plugins/removeformat/lang/ko.js | 7 + sources/plugins/removeformat/lang/ku.js | 7 + sources/plugins/removeformat/lang/lt.js | 7 + sources/plugins/removeformat/lang/lv.js | 7 + sources/plugins/removeformat/lang/mk.js | 7 + sources/plugins/removeformat/lang/mn.js | 7 + sources/plugins/removeformat/lang/ms.js | 7 + sources/plugins/removeformat/lang/nb.js | 7 + sources/plugins/removeformat/lang/nl.js | 7 + sources/plugins/removeformat/lang/no.js | 7 + sources/plugins/removeformat/lang/pl.js | 7 + sources/plugins/removeformat/lang/pt-br.js | 7 + sources/plugins/removeformat/lang/pt.js | 7 + sources/plugins/removeformat/lang/ro.js | 7 + sources/plugins/removeformat/lang/ru.js | 7 + sources/plugins/removeformat/lang/si.js | 7 + sources/plugins/removeformat/lang/sk.js | 7 + sources/plugins/removeformat/lang/sl.js | 7 + sources/plugins/removeformat/lang/sq.js | 7 + sources/plugins/removeformat/lang/sr-latn.js | 7 + sources/plugins/removeformat/lang/sr.js | 7 + sources/plugins/removeformat/lang/sv.js | 7 + sources/plugins/removeformat/lang/th.js | 7 + sources/plugins/removeformat/lang/tr.js | 7 + sources/plugins/removeformat/lang/tt.js | 7 + sources/plugins/removeformat/lang/ug.js | 7 + sources/plugins/removeformat/lang/uk.js | 7 + sources/plugins/removeformat/lang/vi.js | 7 + sources/plugins/removeformat/lang/zh-cn.js | 7 + sources/plugins/removeformat/lang/zh.js | 7 + sources/plugins/removeformat/plugin.js | 193 + sources/plugins/resize/plugin.js | 187 + sources/plugins/richcombo/plugin.js | 434 + sources/plugins/save/icons/hidpi/save.png | Bin 0 -> 1648 bytes sources/plugins/save/icons/save.png | Bin 0 -> 716 bytes sources/plugins/save/lang/af.js | 7 + sources/plugins/save/lang/ar.js | 7 + sources/plugins/save/lang/bg.js | 7 + sources/plugins/save/lang/bn.js | 7 + sources/plugins/save/lang/bs.js | 7 + sources/plugins/save/lang/ca.js | 7 + sources/plugins/save/lang/cs.js | 7 + sources/plugins/save/lang/cy.js | 7 + sources/plugins/save/lang/da.js | 7 + sources/plugins/save/lang/de.js | 7 + sources/plugins/save/lang/el.js | 7 + sources/plugins/save/lang/en-au.js | 7 + sources/plugins/save/lang/en-ca.js | 7 + sources/plugins/save/lang/en-gb.js | 7 + sources/plugins/save/lang/en.js | 7 + sources/plugins/save/lang/eo.js | 7 + sources/plugins/save/lang/es.js | 7 + sources/plugins/save/lang/et.js | 7 + sources/plugins/save/lang/eu.js | 7 + sources/plugins/save/lang/fa.js | 7 + sources/plugins/save/lang/fi.js | 7 + sources/plugins/save/lang/fo.js | 7 + sources/plugins/save/lang/fr-ca.js | 7 + sources/plugins/save/lang/fr.js | 7 + sources/plugins/save/lang/gl.js | 7 + sources/plugins/save/lang/gu.js | 7 + sources/plugins/save/lang/he.js | 7 + sources/plugins/save/lang/hi.js | 7 + sources/plugins/save/lang/hr.js | 7 + sources/plugins/save/lang/hu.js | 7 + sources/plugins/save/lang/id.js | 7 + sources/plugins/save/lang/is.js | 7 + sources/plugins/save/lang/it.js | 7 + sources/plugins/save/lang/ja.js | 7 + sources/plugins/save/lang/ka.js | 7 + sources/plugins/save/lang/km.js | 7 + sources/plugins/save/lang/ko.js | 7 + sources/plugins/save/lang/ku.js | 7 + sources/plugins/save/lang/lt.js | 7 + sources/plugins/save/lang/lv.js | 7 + sources/plugins/save/lang/mk.js | 7 + sources/plugins/save/lang/mn.js | 7 + sources/plugins/save/lang/ms.js | 7 + sources/plugins/save/lang/nb.js | 7 + sources/plugins/save/lang/nl.js | 7 + sources/plugins/save/lang/no.js | 7 + sources/plugins/save/lang/pl.js | 7 + sources/plugins/save/lang/pt-br.js | 7 + sources/plugins/save/lang/pt.js | 7 + sources/plugins/save/lang/ro.js | 7 + sources/plugins/save/lang/ru.js | 7 + sources/plugins/save/lang/si.js | 7 + sources/plugins/save/lang/sk.js | 7 + sources/plugins/save/lang/sl.js | 7 + sources/plugins/save/lang/sq.js | 7 + sources/plugins/save/lang/sr-latn.js | 7 + sources/plugins/save/lang/sr.js | 7 + sources/plugins/save/lang/sv.js | 7 + sources/plugins/save/lang/th.js | 7 + sources/plugins/save/lang/tr.js | 7 + sources/plugins/save/lang/tt.js | 7 + sources/plugins/save/lang/ug.js | 7 + sources/plugins/save/lang/uk.js | 7 + sources/plugins/save/lang/vi.js | 7 + sources/plugins/save/lang/zh-cn.js | 7 + sources/plugins/save/lang/zh.js | 7 + sources/plugins/save/plugin.js | 67 + sources/plugins/scayt/CHANGELOG.md | 20 + sources/plugins/scayt/LICENSE.md | 28 + sources/plugins/scayt/README.md | 25 + sources/plugins/scayt/dialogs/options.js | 573 ++ sources/plugins/scayt/dialogs/toolbar.css | 71 + sources/plugins/scayt/icons/hidpi/scayt.png | Bin 0 -> 2816 bytes sources/plugins/scayt/icons/scayt.png | Bin 0 -> 839 bytes sources/plugins/scayt/lang/af.js | 13 + sources/plugins/scayt/lang/ar.js | 13 + sources/plugins/scayt/lang/bg.js | 13 + sources/plugins/scayt/lang/bn.js | 13 + sources/plugins/scayt/lang/bs.js | 13 + sources/plugins/scayt/lang/ca.js | 13 + sources/plugins/scayt/lang/cs.js | 13 + sources/plugins/scayt/lang/cy.js | 13 + sources/plugins/scayt/lang/da.js | 13 + sources/plugins/scayt/lang/de.js | 13 + sources/plugins/scayt/lang/el.js | 13 + sources/plugins/scayt/lang/en-au.js | 13 + sources/plugins/scayt/lang/en-ca.js | 13 + sources/plugins/scayt/lang/en-gb.js | 13 + sources/plugins/scayt/lang/en.js | 13 + sources/plugins/scayt/lang/eo.js | 13 + sources/plugins/scayt/lang/es.js | 13 + sources/plugins/scayt/lang/et.js | 13 + sources/plugins/scayt/lang/eu.js | 13 + sources/plugins/scayt/lang/fa.js | 13 + sources/plugins/scayt/lang/fi.js | 13 + sources/plugins/scayt/lang/fo.js | 13 + sources/plugins/scayt/lang/fr-ca.js | 13 + sources/plugins/scayt/lang/fr.js | 13 + sources/plugins/scayt/lang/gl.js | 13 + sources/plugins/scayt/lang/gu.js | 13 + sources/plugins/scayt/lang/he.js | 13 + sources/plugins/scayt/lang/hi.js | 13 + sources/plugins/scayt/lang/hr.js | 13 + sources/plugins/scayt/lang/hu.js | 13 + sources/plugins/scayt/lang/is.js | 13 + sources/plugins/scayt/lang/it.js | 13 + sources/plugins/scayt/lang/ja.js | 13 + sources/plugins/scayt/lang/ka.js | 13 + sources/plugins/scayt/lang/km.js | 13 + sources/plugins/scayt/lang/ko.js | 13 + sources/plugins/scayt/lang/ku.js | 13 + sources/plugins/scayt/lang/lt.js | 13 + sources/plugins/scayt/lang/lv.js | 13 + sources/plugins/scayt/lang/mk.js | 13 + sources/plugins/scayt/lang/mn.js | 13 + sources/plugins/scayt/lang/ms.js | 13 + sources/plugins/scayt/lang/nb.js | 13 + sources/plugins/scayt/lang/nl.js | 13 + sources/plugins/scayt/lang/no.js | 13 + sources/plugins/scayt/lang/pl.js | 13 + sources/plugins/scayt/lang/pt-br.js | 13 + sources/plugins/scayt/lang/pt.js | 13 + sources/plugins/scayt/lang/ro.js | 13 + sources/plugins/scayt/lang/ru.js | 13 + sources/plugins/scayt/lang/sk.js | 13 + sources/plugins/scayt/lang/sl.js | 13 + sources/plugins/scayt/lang/sr-latn.js | 13 + sources/plugins/scayt/lang/sr.js | 13 + sources/plugins/scayt/lang/sv.js | 13 + sources/plugins/scayt/lang/th.js | 13 + sources/plugins/scayt/lang/tr.js | 13 + sources/plugins/scayt/lang/ug.js | 13 + sources/plugins/scayt/lang/uk.js | 13 + sources/plugins/scayt/lang/vi.js | 13 + sources/plugins/scayt/lang/zh-cn.js | 13 + sources/plugins/scayt/lang/zh.js | 13 + sources/plugins/scayt/plugin.js | 1800 ++++ .../selectall/icons/hidpi/selectall.png | Bin 0 -> 1093 bytes sources/plugins/selectall/icons/selectall.png | Bin 0 -> 665 bytes sources/plugins/selectall/lang/af.js | 7 + sources/plugins/selectall/lang/ar.js | 7 + sources/plugins/selectall/lang/bg.js | 7 + sources/plugins/selectall/lang/bn.js | 7 + sources/plugins/selectall/lang/bs.js | 7 + sources/plugins/selectall/lang/ca.js | 7 + sources/plugins/selectall/lang/cs.js | 7 + sources/plugins/selectall/lang/cy.js | 7 + sources/plugins/selectall/lang/da.js | 7 + sources/plugins/selectall/lang/de.js | 7 + sources/plugins/selectall/lang/el.js | 7 + sources/plugins/selectall/lang/en-au.js | 7 + sources/plugins/selectall/lang/en-ca.js | 7 + sources/plugins/selectall/lang/en-gb.js | 7 + sources/plugins/selectall/lang/en.js | 7 + sources/plugins/selectall/lang/eo.js | 7 + sources/plugins/selectall/lang/es.js | 7 + sources/plugins/selectall/lang/et.js | 7 + sources/plugins/selectall/lang/eu.js | 7 + sources/plugins/selectall/lang/fa.js | 7 + sources/plugins/selectall/lang/fi.js | 7 + sources/plugins/selectall/lang/fo.js | 7 + sources/plugins/selectall/lang/fr-ca.js | 7 + sources/plugins/selectall/lang/fr.js | 7 + sources/plugins/selectall/lang/gl.js | 7 + sources/plugins/selectall/lang/gu.js | 7 + sources/plugins/selectall/lang/he.js | 7 + sources/plugins/selectall/lang/hi.js | 7 + sources/plugins/selectall/lang/hr.js | 7 + sources/plugins/selectall/lang/hu.js | 7 + sources/plugins/selectall/lang/id.js | 7 + sources/plugins/selectall/lang/is.js | 7 + sources/plugins/selectall/lang/it.js | 7 + sources/plugins/selectall/lang/ja.js | 7 + sources/plugins/selectall/lang/ka.js | 7 + sources/plugins/selectall/lang/km.js | 7 + sources/plugins/selectall/lang/ko.js | 7 + sources/plugins/selectall/lang/ku.js | 7 + sources/plugins/selectall/lang/lt.js | 7 + sources/plugins/selectall/lang/lv.js | 7 + sources/plugins/selectall/lang/mk.js | 7 + sources/plugins/selectall/lang/mn.js | 7 + sources/plugins/selectall/lang/ms.js | 7 + sources/plugins/selectall/lang/nb.js | 7 + sources/plugins/selectall/lang/nl.js | 7 + sources/plugins/selectall/lang/no.js | 7 + sources/plugins/selectall/lang/pl.js | 7 + sources/plugins/selectall/lang/pt-br.js | 7 + sources/plugins/selectall/lang/pt.js | 7 + sources/plugins/selectall/lang/ro.js | 7 + sources/plugins/selectall/lang/ru.js | 7 + sources/plugins/selectall/lang/si.js | 7 + sources/plugins/selectall/lang/sk.js | 7 + sources/plugins/selectall/lang/sl.js | 7 + sources/plugins/selectall/lang/sq.js | 7 + sources/plugins/selectall/lang/sr-latn.js | 7 + sources/plugins/selectall/lang/sr.js | 7 + sources/plugins/selectall/lang/sv.js | 7 + sources/plugins/selectall/lang/th.js | 7 + sources/plugins/selectall/lang/tr.js | 7 + sources/plugins/selectall/lang/tt.js | 7 + sources/plugins/selectall/lang/ug.js | 7 + sources/plugins/selectall/lang/uk.js | 7 + sources/plugins/selectall/lang/vi.js | 7 + sources/plugins/selectall/lang/zh-cn.js | 7 + sources/plugins/selectall/lang/zh.js | 7 + sources/plugins/selectall/plugin.js | 60 + .../showblocks/icons/hidpi/showblocks-rtl.png | Bin 0 -> 1853 bytes .../showblocks/icons/hidpi/showblocks.png | Bin 0 -> 1895 bytes .../showblocks/icons/showblocks-rtl.png | Bin 0 -> 691 bytes .../plugins/showblocks/icons/showblocks.png | Bin 0 -> 701 bytes .../showblocks/images/block_address.png | Bin 0 -> 152 bytes .../showblocks/images/block_blockquote.png | Bin 0 -> 154 bytes .../plugins/showblocks/images/block_div.png | Bin 0 -> 127 bytes .../plugins/showblocks/images/block_h1.png | Bin 0 -> 120 bytes .../plugins/showblocks/images/block_h2.png | Bin 0 -> 127 bytes .../plugins/showblocks/images/block_h3.png | Bin 0 -> 123 bytes .../plugins/showblocks/images/block_h4.png | Bin 0 -> 123 bytes .../plugins/showblocks/images/block_h5.png | Bin 0 -> 126 bytes .../plugins/showblocks/images/block_h6.png | Bin 0 -> 123 bytes sources/plugins/showblocks/images/block_p.png | Bin 0 -> 115 bytes .../plugins/showblocks/images/block_pre.png | Bin 0 -> 128 bytes sources/plugins/showblocks/lang/af.js | 7 + sources/plugins/showblocks/lang/ar.js | 7 + sources/plugins/showblocks/lang/bg.js | 7 + sources/plugins/showblocks/lang/bn.js | 7 + sources/plugins/showblocks/lang/bs.js | 7 + sources/plugins/showblocks/lang/ca.js | 7 + sources/plugins/showblocks/lang/cs.js | 7 + sources/plugins/showblocks/lang/cy.js | 7 + sources/plugins/showblocks/lang/da.js | 7 + sources/plugins/showblocks/lang/de.js | 7 + sources/plugins/showblocks/lang/el.js | 7 + sources/plugins/showblocks/lang/en-au.js | 7 + sources/plugins/showblocks/lang/en-ca.js | 7 + sources/plugins/showblocks/lang/en-gb.js | 7 + sources/plugins/showblocks/lang/en.js | 7 + sources/plugins/showblocks/lang/eo.js | 7 + sources/plugins/showblocks/lang/es.js | 7 + sources/plugins/showblocks/lang/et.js | 7 + sources/plugins/showblocks/lang/eu.js | 7 + sources/plugins/showblocks/lang/fa.js | 7 + sources/plugins/showblocks/lang/fi.js | 7 + sources/plugins/showblocks/lang/fo.js | 7 + sources/plugins/showblocks/lang/fr-ca.js | 7 + sources/plugins/showblocks/lang/fr.js | 7 + sources/plugins/showblocks/lang/gl.js | 7 + sources/plugins/showblocks/lang/gu.js | 7 + sources/plugins/showblocks/lang/he.js | 7 + sources/plugins/showblocks/lang/hi.js | 7 + sources/plugins/showblocks/lang/hr.js | 7 + sources/plugins/showblocks/lang/hu.js | 7 + sources/plugins/showblocks/lang/id.js | 7 + sources/plugins/showblocks/lang/is.js | 7 + sources/plugins/showblocks/lang/it.js | 7 + sources/plugins/showblocks/lang/ja.js | 7 + sources/plugins/showblocks/lang/ka.js | 7 + sources/plugins/showblocks/lang/km.js | 7 + sources/plugins/showblocks/lang/ko.js | 7 + sources/plugins/showblocks/lang/ku.js | 7 + sources/plugins/showblocks/lang/lt.js | 7 + sources/plugins/showblocks/lang/lv.js | 7 + sources/plugins/showblocks/lang/mk.js | 7 + sources/plugins/showblocks/lang/mn.js | 7 + sources/plugins/showblocks/lang/ms.js | 7 + sources/plugins/showblocks/lang/nb.js | 7 + sources/plugins/showblocks/lang/nl.js | 7 + sources/plugins/showblocks/lang/no.js | 7 + sources/plugins/showblocks/lang/pl.js | 7 + sources/plugins/showblocks/lang/pt-br.js | 7 + sources/plugins/showblocks/lang/pt.js | 7 + sources/plugins/showblocks/lang/ro.js | 7 + sources/plugins/showblocks/lang/ru.js | 7 + sources/plugins/showblocks/lang/si.js | 7 + sources/plugins/showblocks/lang/sk.js | 7 + sources/plugins/showblocks/lang/sl.js | 7 + sources/plugins/showblocks/lang/sq.js | 7 + sources/plugins/showblocks/lang/sr-latn.js | 7 + sources/plugins/showblocks/lang/sr.js | 7 + sources/plugins/showblocks/lang/sv.js | 7 + sources/plugins/showblocks/lang/th.js | 7 + sources/plugins/showblocks/lang/tr.js | 7 + sources/plugins/showblocks/lang/tt.js | 7 + sources/plugins/showblocks/lang/ug.js | 7 + sources/plugins/showblocks/lang/uk.js | 7 + sources/plugins/showblocks/lang/vi.js | 7 + sources/plugins/showblocks/lang/zh-cn.js | 7 + sources/plugins/showblocks/lang/zh.js | 7 + sources/plugins/showblocks/plugin.js | 153 + sources/plugins/showborders/plugin.js | 174 + sources/plugins/smiley/dialogs/smiley.js | 193 + sources/plugins/smiley/icons/hidpi/smiley.png | Bin 0 -> 3073 bytes sources/plugins/smiley/icons/smiley.png | Bin 0 -> 916 bytes sources/plugins/smiley/images/angel_smile.gif | Bin 0 -> 1245 bytes sources/plugins/smiley/images/angel_smile.png | Bin 0 -> 1172 bytes sources/plugins/smiley/images/angry_smile.gif | Bin 0 -> 1219 bytes sources/plugins/smiley/images/angry_smile.png | Bin 0 -> 1220 bytes .../plugins/smiley/images/broken_heart.gif | Bin 0 -> 732 bytes .../plugins/smiley/images/broken_heart.png | Bin 0 -> 1139 bytes .../plugins/smiley/images/confused_smile.gif | Bin 0 -> 1202 bytes .../plugins/smiley/images/confused_smile.png | Bin 0 -> 1101 bytes sources/plugins/smiley/images/cry_smile.gif | Bin 0 -> 795 bytes sources/plugins/smiley/images/cry_smile.png | Bin 0 -> 1214 bytes sources/plugins/smiley/images/devil_smile.gif | Bin 0 -> 1239 bytes sources/plugins/smiley/images/devil_smile.png | Bin 0 -> 1220 bytes .../smiley/images/embaressed_smile.gif | Bin 0 -> 786 bytes .../smiley/images/embarrassed_smile.gif | Bin 0 -> 786 bytes .../smiley/images/embarrassed_smile.png | Bin 0 -> 1145 bytes sources/plugins/smiley/images/envelope.gif | Bin 0 -> 506 bytes sources/plugins/smiley/images/envelope.png | Bin 0 -> 760 bytes sources/plugins/smiley/images/heart.gif | Bin 0 -> 692 bytes sources/plugins/smiley/images/heart.png | Bin 0 -> 999 bytes sources/plugins/smiley/images/kiss.gif | Bin 0 -> 683 bytes sources/plugins/smiley/images/kiss.png | Bin 0 -> 1003 bytes sources/plugins/smiley/images/lightbulb.gif | Bin 0 -> 660 bytes sources/plugins/smiley/images/lightbulb.png | Bin 0 -> 919 bytes sources/plugins/smiley/images/omg_smile.gif | Bin 0 -> 820 bytes sources/plugins/smiley/images/omg_smile.png | Bin 0 -> 1122 bytes .../plugins/smiley/images/regular_smile.gif | Bin 0 -> 1209 bytes .../plugins/smiley/images/regular_smile.png | Bin 0 -> 1084 bytes sources/plugins/smiley/images/sad_smile.gif | Bin 0 -> 782 bytes sources/plugins/smiley/images/sad_smile.png | Bin 0 -> 1115 bytes .../plugins/smiley/images/shades_smile.gif | Bin 0 -> 1231 bytes .../plugins/smiley/images/shades_smile.png | Bin 0 -> 1204 bytes sources/plugins/smiley/images/teeth_smile.gif | Bin 0 -> 1201 bytes sources/plugins/smiley/images/teeth_smile.png | Bin 0 -> 1183 bytes sources/plugins/smiley/images/thumbs_down.gif | Bin 0 -> 715 bytes sources/plugins/smiley/images/thumbs_down.png | Bin 0 -> 985 bytes sources/plugins/smiley/images/thumbs_up.gif | Bin 0 -> 714 bytes sources/plugins/smiley/images/thumbs_up.png | Bin 0 -> 959 bytes .../plugins/smiley/images/tongue_smile.gif | Bin 0 -> 1210 bytes .../plugins/smiley/images/tongue_smile.png | Bin 0 -> 1132 bytes .../plugins/smiley/images/tounge_smile.gif | Bin 0 -> 1210 bytes .../images/whatchutalkingabout_smile.gif | Bin 0 -> 775 bytes .../images/whatchutalkingabout_smile.png | Bin 0 -> 1039 bytes sources/plugins/smiley/images/wink_smile.gif | Bin 0 -> 1202 bytes sources/plugins/smiley/images/wink_smile.png | Bin 0 -> 1114 bytes sources/plugins/smiley/lang/af.js | 9 + sources/plugins/smiley/lang/ar.js | 9 + sources/plugins/smiley/lang/bg.js | 9 + sources/plugins/smiley/lang/bn.js | 9 + sources/plugins/smiley/lang/bs.js | 9 + sources/plugins/smiley/lang/ca.js | 9 + sources/plugins/smiley/lang/cs.js | 9 + sources/plugins/smiley/lang/cy.js | 9 + sources/plugins/smiley/lang/da.js | 9 + sources/plugins/smiley/lang/de.js | 9 + sources/plugins/smiley/lang/el.js | 9 + sources/plugins/smiley/lang/en-au.js | 9 + sources/plugins/smiley/lang/en-ca.js | 9 + sources/plugins/smiley/lang/en-gb.js | 9 + sources/plugins/smiley/lang/en.js | 9 + sources/plugins/smiley/lang/eo.js | 9 + sources/plugins/smiley/lang/es.js | 9 + sources/plugins/smiley/lang/et.js | 9 + sources/plugins/smiley/lang/eu.js | 9 + sources/plugins/smiley/lang/fa.js | 9 + sources/plugins/smiley/lang/fi.js | 9 + sources/plugins/smiley/lang/fo.js | 9 + sources/plugins/smiley/lang/fr-ca.js | 9 + sources/plugins/smiley/lang/fr.js | 9 + sources/plugins/smiley/lang/gl.js | 9 + sources/plugins/smiley/lang/gu.js | 9 + sources/plugins/smiley/lang/he.js | 9 + sources/plugins/smiley/lang/hi.js | 9 + sources/plugins/smiley/lang/hr.js | 9 + sources/plugins/smiley/lang/hu.js | 9 + sources/plugins/smiley/lang/id.js | 9 + sources/plugins/smiley/lang/is.js | 9 + sources/plugins/smiley/lang/it.js | 9 + sources/plugins/smiley/lang/ja.js | 9 + sources/plugins/smiley/lang/ka.js | 9 + sources/plugins/smiley/lang/km.js | 9 + sources/plugins/smiley/lang/ko.js | 9 + sources/plugins/smiley/lang/ku.js | 9 + sources/plugins/smiley/lang/lt.js | 9 + sources/plugins/smiley/lang/lv.js | 9 + sources/plugins/smiley/lang/mk.js | 9 + sources/plugins/smiley/lang/mn.js | 9 + sources/plugins/smiley/lang/ms.js | 9 + sources/plugins/smiley/lang/nb.js | 9 + sources/plugins/smiley/lang/nl.js | 9 + sources/plugins/smiley/lang/no.js | 9 + sources/plugins/smiley/lang/pl.js | 9 + sources/plugins/smiley/lang/pt-br.js | 9 + sources/plugins/smiley/lang/pt.js | 9 + sources/plugins/smiley/lang/ro.js | 9 + sources/plugins/smiley/lang/ru.js | 9 + sources/plugins/smiley/lang/si.js | 9 + sources/plugins/smiley/lang/sk.js | 9 + sources/plugins/smiley/lang/sl.js | 9 + sources/plugins/smiley/lang/sq.js | 9 + sources/plugins/smiley/lang/sr-latn.js | 9 + sources/plugins/smiley/lang/sr.js | 9 + sources/plugins/smiley/lang/sv.js | 9 + sources/plugins/smiley/lang/th.js | 9 + sources/plugins/smiley/lang/tr.js | 9 + sources/plugins/smiley/lang/tt.js | 9 + sources/plugins/smiley/lang/ug.js | 9 + sources/plugins/smiley/lang/uk.js | 9 + sources/plugins/smiley/lang/vi.js | 9 + sources/plugins/smiley/lang/zh-cn.js | 9 + sources/plugins/smiley/lang/zh.js | 9 + sources/plugins/smiley/plugin.js | 98 + .../sourcearea/icons/hidpi/source-rtl.png | Bin 0 -> 1968 bytes .../plugins/sourcearea/icons/hidpi/source.png | Bin 0 -> 1999 bytes .../plugins/sourcearea/icons/source-rtl.png | Bin 0 -> 762 bytes sources/plugins/sourcearea/icons/source.png | Bin 0 -> 764 bytes sources/plugins/sourcearea/lang/af.js | 7 + sources/plugins/sourcearea/lang/ar.js | 7 + sources/plugins/sourcearea/lang/bg.js | 7 + sources/plugins/sourcearea/lang/bn.js | 7 + sources/plugins/sourcearea/lang/bs.js | 7 + sources/plugins/sourcearea/lang/ca.js | 7 + sources/plugins/sourcearea/lang/cs.js | 7 + sources/plugins/sourcearea/lang/cy.js | 7 + sources/plugins/sourcearea/lang/da.js | 7 + sources/plugins/sourcearea/lang/de.js | 7 + sources/plugins/sourcearea/lang/el.js | 7 + sources/plugins/sourcearea/lang/en-au.js | 7 + sources/plugins/sourcearea/lang/en-ca.js | 7 + sources/plugins/sourcearea/lang/en-gb.js | 7 + sources/plugins/sourcearea/lang/en.js | 7 + sources/plugins/sourcearea/lang/eo.js | 7 + sources/plugins/sourcearea/lang/es.js | 7 + sources/plugins/sourcearea/lang/et.js | 7 + sources/plugins/sourcearea/lang/eu.js | 7 + sources/plugins/sourcearea/lang/fa.js | 7 + sources/plugins/sourcearea/lang/fi.js | 7 + sources/plugins/sourcearea/lang/fo.js | 7 + sources/plugins/sourcearea/lang/fr-ca.js | 7 + sources/plugins/sourcearea/lang/fr.js | 7 + sources/plugins/sourcearea/lang/gl.js | 7 + sources/plugins/sourcearea/lang/gu.js | 7 + sources/plugins/sourcearea/lang/he.js | 7 + sources/plugins/sourcearea/lang/hi.js | 7 + sources/plugins/sourcearea/lang/hr.js | 7 + sources/plugins/sourcearea/lang/hu.js | 7 + sources/plugins/sourcearea/lang/id.js | 7 + sources/plugins/sourcearea/lang/is.js | 7 + sources/plugins/sourcearea/lang/it.js | 7 + sources/plugins/sourcearea/lang/ja.js | 7 + sources/plugins/sourcearea/lang/ka.js | 7 + sources/plugins/sourcearea/lang/km.js | 7 + sources/plugins/sourcearea/lang/ko.js | 7 + sources/plugins/sourcearea/lang/ku.js | 7 + sources/plugins/sourcearea/lang/lt.js | 7 + sources/plugins/sourcearea/lang/lv.js | 7 + sources/plugins/sourcearea/lang/mk.js | 7 + sources/plugins/sourcearea/lang/mn.js | 7 + sources/plugins/sourcearea/lang/ms.js | 7 + sources/plugins/sourcearea/lang/nb.js | 7 + sources/plugins/sourcearea/lang/nl.js | 7 + sources/plugins/sourcearea/lang/no.js | 7 + sources/plugins/sourcearea/lang/pl.js | 7 + sources/plugins/sourcearea/lang/pt-br.js | 7 + sources/plugins/sourcearea/lang/pt.js | 7 + sources/plugins/sourcearea/lang/ro.js | 7 + sources/plugins/sourcearea/lang/ru.js | 7 + sources/plugins/sourcearea/lang/si.js | 7 + sources/plugins/sourcearea/lang/sk.js | 7 + sources/plugins/sourcearea/lang/sl.js | 7 + sources/plugins/sourcearea/lang/sq.js | 7 + sources/plugins/sourcearea/lang/sr-latn.js | 7 + sources/plugins/sourcearea/lang/sr.js | 7 + sources/plugins/sourcearea/lang/sv.js | 7 + sources/plugins/sourcearea/lang/th.js | 7 + sources/plugins/sourcearea/lang/tr.js | 7 + sources/plugins/sourcearea/lang/tt.js | 7 + sources/plugins/sourcearea/lang/ug.js | 7 + sources/plugins/sourcearea/lang/uk.js | 7 + sources/plugins/sourcearea/lang/vi.js | 7 + sources/plugins/sourcearea/lang/zh-cn.js | 7 + sources/plugins/sourcearea/lang/zh.js | 7 + sources/plugins/sourcearea/plugin.js | 168 + .../dialogs/lang/_translationstatus.txt | 20 + .../plugins/specialchar/dialogs/lang/af.js | 125 + .../plugins/specialchar/dialogs/lang/ar.js | 125 + .../plugins/specialchar/dialogs/lang/bg.js | 125 + .../plugins/specialchar/dialogs/lang/ca.js | 125 + .../plugins/specialchar/dialogs/lang/cs.js | 125 + .../plugins/specialchar/dialogs/lang/cy.js | 125 + .../plugins/specialchar/dialogs/lang/da.js | 125 + .../plugins/specialchar/dialogs/lang/de.js | 125 + .../plugins/specialchar/dialogs/lang/el.js | 125 + .../plugins/specialchar/dialogs/lang/en-gb.js | 125 + .../plugins/specialchar/dialogs/lang/en.js | 125 + .../plugins/specialchar/dialogs/lang/eo.js | 125 + .../plugins/specialchar/dialogs/lang/es.js | 125 + .../plugins/specialchar/dialogs/lang/et.js | 125 + .../plugins/specialchar/dialogs/lang/eu.js | 125 + .../plugins/specialchar/dialogs/lang/fa.js | 125 + .../plugins/specialchar/dialogs/lang/fi.js | 125 + .../plugins/specialchar/dialogs/lang/fr-ca.js | 125 + .../plugins/specialchar/dialogs/lang/fr.js | 125 + .../plugins/specialchar/dialogs/lang/gl.js | 125 + .../plugins/specialchar/dialogs/lang/he.js | 125 + .../plugins/specialchar/dialogs/lang/hr.js | 125 + .../plugins/specialchar/dialogs/lang/hu.js | 125 + .../plugins/specialchar/dialogs/lang/id.js | 125 + .../plugins/specialchar/dialogs/lang/it.js | 125 + .../plugins/specialchar/dialogs/lang/ja.js | 125 + .../plugins/specialchar/dialogs/lang/km.js | 125 + .../plugins/specialchar/dialogs/lang/ko.js | 125 + .../plugins/specialchar/dialogs/lang/ku.js | 125 + .../plugins/specialchar/dialogs/lang/lt.js | 125 + .../plugins/specialchar/dialogs/lang/lv.js | 125 + .../plugins/specialchar/dialogs/lang/nb.js | 125 + .../plugins/specialchar/dialogs/lang/nl.js | 125 + .../plugins/specialchar/dialogs/lang/no.js | 125 + .../plugins/specialchar/dialogs/lang/pl.js | 125 + .../plugins/specialchar/dialogs/lang/pt-br.js | 125 + .../plugins/specialchar/dialogs/lang/pt.js | 125 + .../plugins/specialchar/dialogs/lang/ru.js | 125 + .../plugins/specialchar/dialogs/lang/si.js | 125 + .../plugins/specialchar/dialogs/lang/sk.js | 125 + .../plugins/specialchar/dialogs/lang/sl.js | 125 + .../plugins/specialchar/dialogs/lang/sq.js | 125 + .../plugins/specialchar/dialogs/lang/sv.js | 125 + .../plugins/specialchar/dialogs/lang/th.js | 125 + .../plugins/specialchar/dialogs/lang/tr.js | 125 + .../plugins/specialchar/dialogs/lang/tt.js | 125 + .../plugins/specialchar/dialogs/lang/ug.js | 125 + .../plugins/specialchar/dialogs/lang/uk.js | 125 + .../plugins/specialchar/dialogs/lang/vi.js | 125 + .../plugins/specialchar/dialogs/lang/zh-cn.js | 125 + .../plugins/specialchar/dialogs/lang/zh.js | 125 + .../specialchar/dialogs/specialchar.js | 297 + .../specialchar/icons/hidpi/specialchar.png | Bin 0 -> 2615 bytes .../plugins/specialchar/icons/specialchar.png | Bin 0 -> 970 bytes .../specialchar/lang/_translationstatus.txt | 63 + sources/plugins/specialchar/lang/af.js | 9 + sources/plugins/specialchar/lang/ar.js | 9 + sources/plugins/specialchar/lang/bg.js | 9 + sources/plugins/specialchar/lang/bn.js | 9 + sources/plugins/specialchar/lang/bs.js | 9 + sources/plugins/specialchar/lang/ca.js | 9 + sources/plugins/specialchar/lang/cs.js | 9 + sources/plugins/specialchar/lang/cy.js | 9 + sources/plugins/specialchar/lang/da.js | 9 + sources/plugins/specialchar/lang/de.js | 9 + sources/plugins/specialchar/lang/el.js | 9 + sources/plugins/specialchar/lang/en-au.js | 9 + sources/plugins/specialchar/lang/en-ca.js | 9 + sources/plugins/specialchar/lang/en-gb.js | 9 + sources/plugins/specialchar/lang/en.js | 9 + sources/plugins/specialchar/lang/eo.js | 9 + sources/plugins/specialchar/lang/es.js | 9 + sources/plugins/specialchar/lang/et.js | 9 + sources/plugins/specialchar/lang/eu.js | 9 + sources/plugins/specialchar/lang/fa.js | 9 + sources/plugins/specialchar/lang/fi.js | 9 + sources/plugins/specialchar/lang/fo.js | 9 + sources/plugins/specialchar/lang/fr-ca.js | 9 + sources/plugins/specialchar/lang/fr.js | 9 + sources/plugins/specialchar/lang/gl.js | 9 + sources/plugins/specialchar/lang/gu.js | 9 + sources/plugins/specialchar/lang/he.js | 9 + sources/plugins/specialchar/lang/hi.js | 9 + sources/plugins/specialchar/lang/hr.js | 9 + sources/plugins/specialchar/lang/hu.js | 9 + sources/plugins/specialchar/lang/id.js | 9 + sources/plugins/specialchar/lang/is.js | 9 + sources/plugins/specialchar/lang/it.js | 9 + sources/plugins/specialchar/lang/ja.js | 9 + sources/plugins/specialchar/lang/ka.js | 9 + sources/plugins/specialchar/lang/km.js | 9 + sources/plugins/specialchar/lang/ko.js | 9 + sources/plugins/specialchar/lang/ku.js | 9 + sources/plugins/specialchar/lang/lt.js | 9 + sources/plugins/specialchar/lang/lv.js | 9 + sources/plugins/specialchar/lang/mk.js | 9 + sources/plugins/specialchar/lang/mn.js | 9 + sources/plugins/specialchar/lang/ms.js | 9 + sources/plugins/specialchar/lang/nb.js | 9 + sources/plugins/specialchar/lang/nl.js | 9 + sources/plugins/specialchar/lang/no.js | 9 + sources/plugins/specialchar/lang/pl.js | 9 + sources/plugins/specialchar/lang/pt-br.js | 9 + sources/plugins/specialchar/lang/pt.js | 9 + sources/plugins/specialchar/lang/ro.js | 9 + sources/plugins/specialchar/lang/ru.js | 9 + sources/plugins/specialchar/lang/si.js | 9 + sources/plugins/specialchar/lang/sk.js | 9 + sources/plugins/specialchar/lang/sl.js | 9 + sources/plugins/specialchar/lang/sq.js | 9 + sources/plugins/specialchar/lang/sr-latn.js | 9 + sources/plugins/specialchar/lang/sr.js | 9 + sources/plugins/specialchar/lang/sv.js | 9 + sources/plugins/specialchar/lang/th.js | 9 + sources/plugins/specialchar/lang/tr.js | 9 + sources/plugins/specialchar/lang/tt.js | 9 + sources/plugins/specialchar/lang/ug.js | 9 + sources/plugins/specialchar/lang/uk.js | 9 + sources/plugins/specialchar/lang/vi.js | 9 + sources/plugins/specialchar/lang/zh-cn.js | 9 + sources/plugins/specialchar/lang/zh.js | 9 + sources/plugins/specialchar/plugin.js | 83 + sources/plugins/stylescombo/lang/af.js | 11 + sources/plugins/stylescombo/lang/ar.js | 11 + sources/plugins/stylescombo/lang/bg.js | 11 + sources/plugins/stylescombo/lang/bn.js | 11 + sources/plugins/stylescombo/lang/bs.js | 11 + sources/plugins/stylescombo/lang/ca.js | 11 + sources/plugins/stylescombo/lang/cs.js | 11 + sources/plugins/stylescombo/lang/cy.js | 11 + sources/plugins/stylescombo/lang/da.js | 11 + sources/plugins/stylescombo/lang/de.js | 11 + sources/plugins/stylescombo/lang/el.js | 11 + sources/plugins/stylescombo/lang/en-au.js | 11 + sources/plugins/stylescombo/lang/en-ca.js | 11 + sources/plugins/stylescombo/lang/en-gb.js | 11 + sources/plugins/stylescombo/lang/en.js | 11 + sources/plugins/stylescombo/lang/eo.js | 11 + sources/plugins/stylescombo/lang/es.js | 11 + sources/plugins/stylescombo/lang/et.js | 11 + sources/plugins/stylescombo/lang/eu.js | 11 + sources/plugins/stylescombo/lang/fa.js | 11 + sources/plugins/stylescombo/lang/fi.js | 11 + sources/plugins/stylescombo/lang/fo.js | 11 + sources/plugins/stylescombo/lang/fr-ca.js | 11 + sources/plugins/stylescombo/lang/fr.js | 11 + sources/plugins/stylescombo/lang/gl.js | 11 + sources/plugins/stylescombo/lang/gu.js | 11 + sources/plugins/stylescombo/lang/he.js | 11 + sources/plugins/stylescombo/lang/hi.js | 11 + sources/plugins/stylescombo/lang/hr.js | 11 + sources/plugins/stylescombo/lang/hu.js | 11 + sources/plugins/stylescombo/lang/id.js | 11 + sources/plugins/stylescombo/lang/is.js | 11 + sources/plugins/stylescombo/lang/it.js | 11 + sources/plugins/stylescombo/lang/ja.js | 11 + sources/plugins/stylescombo/lang/ka.js | 11 + sources/plugins/stylescombo/lang/km.js | 11 + sources/plugins/stylescombo/lang/ko.js | 11 + sources/plugins/stylescombo/lang/ku.js | 11 + sources/plugins/stylescombo/lang/lt.js | 11 + sources/plugins/stylescombo/lang/lv.js | 11 + sources/plugins/stylescombo/lang/mk.js | 11 + sources/plugins/stylescombo/lang/mn.js | 11 + sources/plugins/stylescombo/lang/ms.js | 11 + sources/plugins/stylescombo/lang/nb.js | 11 + sources/plugins/stylescombo/lang/nl.js | 11 + sources/plugins/stylescombo/lang/no.js | 11 + sources/plugins/stylescombo/lang/pl.js | 11 + sources/plugins/stylescombo/lang/pt-br.js | 11 + sources/plugins/stylescombo/lang/pt.js | 11 + sources/plugins/stylescombo/lang/ro.js | 11 + sources/plugins/stylescombo/lang/ru.js | 11 + sources/plugins/stylescombo/lang/si.js | 11 + sources/plugins/stylescombo/lang/sk.js | 11 + sources/plugins/stylescombo/lang/sl.js | 11 + sources/plugins/stylescombo/lang/sq.js | 11 + sources/plugins/stylescombo/lang/sr-latn.js | 11 + sources/plugins/stylescombo/lang/sr.js | 11 + sources/plugins/stylescombo/lang/sv.js | 11 + sources/plugins/stylescombo/lang/th.js | 11 + sources/plugins/stylescombo/lang/tr.js | 11 + sources/plugins/stylescombo/lang/tt.js | 11 + sources/plugins/stylescombo/lang/ug.js | 11 + sources/plugins/stylescombo/lang/uk.js | 11 + sources/plugins/stylescombo/lang/vi.js | 11 + sources/plugins/stylescombo/lang/zh-cn.js | 11 + sources/plugins/stylescombo/lang/zh.js | 11 + sources/plugins/stylescombo/plugin.js | 193 + sources/plugins/tab/plugin.js | 302 + sources/plugins/table/dialogs/table.js | 541 + sources/plugins/table/icons/hidpi/table.png | Bin 0 -> 1006 bytes sources/plugins/table/icons/table.png | Bin 0 -> 535 bytes sources/plugins/table/lang/af.js | 74 + sources/plugins/table/lang/ar.js | 74 + sources/plugins/table/lang/bg.js | 74 + sources/plugins/table/lang/bn.js | 74 + sources/plugins/table/lang/bs.js | 74 + sources/plugins/table/lang/ca.js | 74 + sources/plugins/table/lang/cs.js | 74 + sources/plugins/table/lang/cy.js | 74 + sources/plugins/table/lang/da.js | 74 + sources/plugins/table/lang/de.js | 74 + sources/plugins/table/lang/el.js | 74 + sources/plugins/table/lang/en-au.js | 74 + sources/plugins/table/lang/en-ca.js | 74 + sources/plugins/table/lang/en-gb.js | 74 + sources/plugins/table/lang/en.js | 74 + sources/plugins/table/lang/eo.js | 74 + sources/plugins/table/lang/es.js | 74 + sources/plugins/table/lang/et.js | 74 + sources/plugins/table/lang/eu.js | 74 + sources/plugins/table/lang/fa.js | 74 + sources/plugins/table/lang/fi.js | 74 + sources/plugins/table/lang/fo.js | 74 + sources/plugins/table/lang/fr-ca.js | 74 + sources/plugins/table/lang/fr.js | 74 + sources/plugins/table/lang/gl.js | 74 + sources/plugins/table/lang/gu.js | 74 + sources/plugins/table/lang/he.js | 74 + sources/plugins/table/lang/hi.js | 74 + sources/plugins/table/lang/hr.js | 74 + sources/plugins/table/lang/hu.js | 74 + sources/plugins/table/lang/id.js | 74 + sources/plugins/table/lang/is.js | 74 + sources/plugins/table/lang/it.js | 74 + sources/plugins/table/lang/ja.js | 74 + sources/plugins/table/lang/ka.js | 74 + sources/plugins/table/lang/km.js | 74 + sources/plugins/table/lang/ko.js | 74 + sources/plugins/table/lang/ku.js | 74 + sources/plugins/table/lang/lt.js | 74 + sources/plugins/table/lang/lv.js | 74 + sources/plugins/table/lang/mk.js | 74 + sources/plugins/table/lang/mn.js | 74 + sources/plugins/table/lang/ms.js | 74 + sources/plugins/table/lang/nb.js | 74 + sources/plugins/table/lang/nl.js | 74 + sources/plugins/table/lang/no.js | 74 + sources/plugins/table/lang/pl.js | 74 + sources/plugins/table/lang/pt-br.js | 74 + sources/plugins/table/lang/pt.js | 74 + sources/plugins/table/lang/ro.js | 74 + sources/plugins/table/lang/ru.js | 74 + sources/plugins/table/lang/si.js | 74 + sources/plugins/table/lang/sk.js | 74 + sources/plugins/table/lang/sl.js | 74 + sources/plugins/table/lang/sq.js | 74 + sources/plugins/table/lang/sr-latn.js | 74 + sources/plugins/table/lang/sr.js | 74 + sources/plugins/table/lang/sv.js | 74 + sources/plugins/table/lang/th.js | 74 + sources/plugins/table/lang/tr.js | 74 + sources/plugins/table/lang/tt.js | 74 + sources/plugins/table/lang/ug.js | 74 + sources/plugins/table/lang/uk.js | 74 + sources/plugins/table/lang/vi.js | 74 + sources/plugins/table/lang/zh-cn.js | 74 + sources/plugins/table/lang/zh.js | 74 + sources/plugins/table/plugin.js | 109 + .../plugins/tabletools/dialogs/tableCell.js | 474 + sources/plugins/tabletools/plugin.js | 1005 ++ .../plugins/templates/dialogs/templates.css | 84 + .../plugins/templates/dialogs/templates.js | 199 + .../templates/icons/hidpi/templates-rtl.png | Bin 0 -> 1387 bytes .../templates/icons/hidpi/templates.png | Bin 0 -> 1387 bytes .../plugins/templates/icons/templates-rtl.png | Bin 0 -> 639 bytes sources/plugins/templates/icons/templates.png | Bin 0 -> 639 bytes sources/plugins/templates/lang/af.js | 12 + sources/plugins/templates/lang/ar.js | 12 + sources/plugins/templates/lang/bg.js | 12 + sources/plugins/templates/lang/bn.js | 12 + sources/plugins/templates/lang/bs.js | 12 + sources/plugins/templates/lang/ca.js | 12 + sources/plugins/templates/lang/cs.js | 12 + sources/plugins/templates/lang/cy.js | 12 + sources/plugins/templates/lang/da.js | 12 + sources/plugins/templates/lang/de.js | 12 + sources/plugins/templates/lang/el.js | 12 + sources/plugins/templates/lang/en-au.js | 12 + sources/plugins/templates/lang/en-ca.js | 12 + sources/plugins/templates/lang/en-gb.js | 12 + sources/plugins/templates/lang/en.js | 12 + sources/plugins/templates/lang/eo.js | 12 + sources/plugins/templates/lang/es.js | 12 + sources/plugins/templates/lang/et.js | 12 + sources/plugins/templates/lang/eu.js | 12 + sources/plugins/templates/lang/fa.js | 12 + sources/plugins/templates/lang/fi.js | 12 + sources/plugins/templates/lang/fo.js | 12 + sources/plugins/templates/lang/fr-ca.js | 12 + sources/plugins/templates/lang/fr.js | 12 + sources/plugins/templates/lang/gl.js | 12 + sources/plugins/templates/lang/gu.js | 12 + sources/plugins/templates/lang/he.js | 12 + sources/plugins/templates/lang/hi.js | 12 + sources/plugins/templates/lang/hr.js | 12 + sources/plugins/templates/lang/hu.js | 12 + sources/plugins/templates/lang/id.js | 12 + sources/plugins/templates/lang/is.js | 12 + sources/plugins/templates/lang/it.js | 12 + sources/plugins/templates/lang/ja.js | 12 + sources/plugins/templates/lang/ka.js | 12 + sources/plugins/templates/lang/km.js | 12 + sources/plugins/templates/lang/ko.js | 12 + sources/plugins/templates/lang/ku.js | 12 + sources/plugins/templates/lang/lt.js | 12 + sources/plugins/templates/lang/lv.js | 12 + sources/plugins/templates/lang/mk.js | 12 + sources/plugins/templates/lang/mn.js | 12 + sources/plugins/templates/lang/ms.js | 12 + sources/plugins/templates/lang/nb.js | 12 + sources/plugins/templates/lang/nl.js | 12 + sources/plugins/templates/lang/no.js | 12 + sources/plugins/templates/lang/pl.js | 12 + sources/plugins/templates/lang/pt-br.js | 12 + sources/plugins/templates/lang/pt.js | 12 + sources/plugins/templates/lang/ro.js | 12 + sources/plugins/templates/lang/ru.js | 12 + sources/plugins/templates/lang/si.js | 12 + sources/plugins/templates/lang/sk.js | 12 + sources/plugins/templates/lang/sl.js | 12 + sources/plugins/templates/lang/sq.js | 12 + sources/plugins/templates/lang/sr-latn.js | 12 + sources/plugins/templates/lang/sr.js | 12 + sources/plugins/templates/lang/sv.js | 12 + sources/plugins/templates/lang/th.js | 12 + sources/plugins/templates/lang/tr.js | 12 + sources/plugins/templates/lang/tt.js | 12 + sources/plugins/templates/lang/ug.js | 12 + sources/plugins/templates/lang/uk.js | 12 + sources/plugins/templates/lang/vi.js | 12 + sources/plugins/templates/lang/zh-cn.js | 12 + sources/plugins/templates/lang/zh.js | 12 + sources/plugins/templates/plugin.js | 93 + .../plugins/templates/templates/default.js | 87 + .../templates/templates/images/template1.gif | Bin 0 -> 375 bytes .../templates/templates/images/template2.gif | Bin 0 -> 333 bytes .../templates/templates/images/template3.gif | Bin 0 -> 422 bytes sources/plugins/toolbar/lang/af.js | 22 + sources/plugins/toolbar/lang/ar.js | 22 + sources/plugins/toolbar/lang/bg.js | 22 + sources/plugins/toolbar/lang/bn.js | 22 + sources/plugins/toolbar/lang/bs.js | 22 + sources/plugins/toolbar/lang/ca.js | 22 + sources/plugins/toolbar/lang/cs.js | 22 + sources/plugins/toolbar/lang/cy.js | 22 + sources/plugins/toolbar/lang/da.js | 22 + sources/plugins/toolbar/lang/de.js | 22 + sources/plugins/toolbar/lang/el.js | 22 + sources/plugins/toolbar/lang/en-au.js | 22 + sources/plugins/toolbar/lang/en-ca.js | 22 + sources/plugins/toolbar/lang/en-gb.js | 22 + sources/plugins/toolbar/lang/en.js | 22 + sources/plugins/toolbar/lang/eo.js | 22 + sources/plugins/toolbar/lang/es.js | 22 + sources/plugins/toolbar/lang/et.js | 22 + sources/plugins/toolbar/lang/eu.js | 22 + sources/plugins/toolbar/lang/fa.js | 22 + sources/plugins/toolbar/lang/fi.js | 22 + sources/plugins/toolbar/lang/fo.js | 22 + sources/plugins/toolbar/lang/fr-ca.js | 22 + sources/plugins/toolbar/lang/fr.js | 22 + sources/plugins/toolbar/lang/gl.js | 22 + sources/plugins/toolbar/lang/gu.js | 22 + sources/plugins/toolbar/lang/he.js | 22 + sources/plugins/toolbar/lang/hi.js | 22 + sources/plugins/toolbar/lang/hr.js | 22 + sources/plugins/toolbar/lang/hu.js | 22 + sources/plugins/toolbar/lang/id.js | 22 + sources/plugins/toolbar/lang/is.js | 22 + sources/plugins/toolbar/lang/it.js | 22 + sources/plugins/toolbar/lang/ja.js | 22 + sources/plugins/toolbar/lang/ka.js | 22 + sources/plugins/toolbar/lang/km.js | 22 + sources/plugins/toolbar/lang/ko.js | 22 + sources/plugins/toolbar/lang/ku.js | 22 + sources/plugins/toolbar/lang/lt.js | 22 + sources/plugins/toolbar/lang/lv.js | 22 + sources/plugins/toolbar/lang/mk.js | 22 + sources/plugins/toolbar/lang/mn.js | 22 + sources/plugins/toolbar/lang/ms.js | 22 + sources/plugins/toolbar/lang/nb.js | 22 + sources/plugins/toolbar/lang/nl.js | 22 + sources/plugins/toolbar/lang/no.js | 22 + sources/plugins/toolbar/lang/pl.js | 22 + sources/plugins/toolbar/lang/pt-br.js | 22 + sources/plugins/toolbar/lang/pt.js | 22 + sources/plugins/toolbar/lang/ro.js | 22 + sources/plugins/toolbar/lang/ru.js | 22 + sources/plugins/toolbar/lang/si.js | 22 + sources/plugins/toolbar/lang/sk.js | 22 + sources/plugins/toolbar/lang/sl.js | 22 + sources/plugins/toolbar/lang/sq.js | 22 + sources/plugins/toolbar/lang/sr-latn.js | 22 + sources/plugins/toolbar/lang/sr.js | 22 + sources/plugins/toolbar/lang/sv.js | 22 + sources/plugins/toolbar/lang/th.js | 22 + sources/plugins/toolbar/lang/tr.js | 22 + sources/plugins/toolbar/lang/tt.js | 22 + sources/plugins/toolbar/lang/ug.js | 22 + sources/plugins/toolbar/lang/uk.js | 22 + sources/plugins/toolbar/lang/vi.js | 22 + sources/plugins/toolbar/lang/zh-cn.js | 22 + sources/plugins/toolbar/lang/zh.js | 22 + sources/plugins/toolbar/plugin.js | 803 ++ sources/plugins/toolbar/samples/toolbar.html | 235 + sources/plugins/undo/dev/snapshot.html | 86 + sources/plugins/undo/icons/hidpi/redo-rtl.png | Bin 0 -> 1869 bytes sources/plugins/undo/icons/hidpi/redo.png | Bin 0 -> 1783 bytes sources/plugins/undo/icons/hidpi/undo-rtl.png | Bin 0 -> 1783 bytes sources/plugins/undo/icons/hidpi/undo.png | Bin 0 -> 1869 bytes sources/plugins/undo/icons/redo-rtl.png | Bin 0 -> 849 bytes sources/plugins/undo/icons/redo.png | Bin 0 -> 842 bytes sources/plugins/undo/icons/undo-rtl.png | Bin 0 -> 842 bytes sources/plugins/undo/icons/undo.png | Bin 0 -> 850 bytes sources/plugins/undo/lang/af.js | 8 + sources/plugins/undo/lang/ar.js | 8 + sources/plugins/undo/lang/bg.js | 8 + sources/plugins/undo/lang/bn.js | 8 + sources/plugins/undo/lang/bs.js | 8 + sources/plugins/undo/lang/ca.js | 8 + sources/plugins/undo/lang/cs.js | 8 + sources/plugins/undo/lang/cy.js | 8 + sources/plugins/undo/lang/da.js | 8 + sources/plugins/undo/lang/de.js | 8 + sources/plugins/undo/lang/el.js | 8 + sources/plugins/undo/lang/en-au.js | 8 + sources/plugins/undo/lang/en-ca.js | 8 + sources/plugins/undo/lang/en-gb.js | 8 + sources/plugins/undo/lang/en.js | 8 + sources/plugins/undo/lang/eo.js | 8 + sources/plugins/undo/lang/es.js | 8 + sources/plugins/undo/lang/et.js | 8 + sources/plugins/undo/lang/eu.js | 8 + sources/plugins/undo/lang/fa.js | 8 + sources/plugins/undo/lang/fi.js | 8 + sources/plugins/undo/lang/fo.js | 8 + sources/plugins/undo/lang/fr-ca.js | 8 + sources/plugins/undo/lang/fr.js | 8 + sources/plugins/undo/lang/gl.js | 8 + sources/plugins/undo/lang/gu.js | 8 + sources/plugins/undo/lang/he.js | 8 + sources/plugins/undo/lang/hi.js | 8 + sources/plugins/undo/lang/hr.js | 8 + sources/plugins/undo/lang/hu.js | 8 + sources/plugins/undo/lang/id.js | 8 + sources/plugins/undo/lang/is.js | 8 + sources/plugins/undo/lang/it.js | 8 + sources/plugins/undo/lang/ja.js | 8 + sources/plugins/undo/lang/ka.js | 8 + sources/plugins/undo/lang/km.js | 8 + sources/plugins/undo/lang/ko.js | 8 + sources/plugins/undo/lang/ku.js | 8 + sources/plugins/undo/lang/lt.js | 8 + sources/plugins/undo/lang/lv.js | 8 + sources/plugins/undo/lang/mk.js | 8 + sources/plugins/undo/lang/mn.js | 8 + sources/plugins/undo/lang/ms.js | 8 + sources/plugins/undo/lang/nb.js | 8 + sources/plugins/undo/lang/nl.js | 8 + sources/plugins/undo/lang/no.js | 8 + sources/plugins/undo/lang/pl.js | 8 + sources/plugins/undo/lang/pt-br.js | 8 + sources/plugins/undo/lang/pt.js | 8 + sources/plugins/undo/lang/ro.js | 8 + sources/plugins/undo/lang/ru.js | 8 + sources/plugins/undo/lang/si.js | 8 + sources/plugins/undo/lang/sk.js | 8 + sources/plugins/undo/lang/sl.js | 8 + sources/plugins/undo/lang/sq.js | 8 + sources/plugins/undo/lang/sr-latn.js | 8 + sources/plugins/undo/lang/sr.js | 8 + sources/plugins/undo/lang/sv.js | 8 + sources/plugins/undo/lang/th.js | 8 + sources/plugins/undo/lang/tr.js | 8 + sources/plugins/undo/lang/tt.js | 8 + sources/plugins/undo/lang/ug.js | 8 + sources/plugins/undo/lang/uk.js | 8 + sources/plugins/undo/lang/vi.js | 8 + sources/plugins/undo/lang/zh-cn.js | 8 + sources/plugins/undo/lang/zh.js | 8 + sources/plugins/undo/plugin.js | 1328 +++ sources/plugins/wsc/LICENSE.md | 28 + sources/plugins/wsc/README.md | 25 + sources/plugins/wsc/dialogs/ciframe.html | 66 + sources/plugins/wsc/dialogs/tmpFrameset.html | 52 + sources/plugins/wsc/dialogs/wsc.css | 82 + sources/plugins/wsc/dialogs/wsc.js | 3152 ++++++ sources/plugins/wsc/dialogs/wsc_ie.js | 176 + .../plugins/wsc/icons/hidpi/spellchecker.png | Bin 0 -> 2816 bytes sources/plugins/wsc/icons/spellchecker.png | Bin 0 -> 836 bytes sources/plugins/wsc/lang/af.js | 24 + sources/plugins/wsc/lang/ar.js | 24 + sources/plugins/wsc/lang/bg.js | 24 + sources/plugins/wsc/lang/bn.js | 24 + sources/plugins/wsc/lang/bs.js | 24 + sources/plugins/wsc/lang/ca.js | 24 + sources/plugins/wsc/lang/cs.js | 24 + sources/plugins/wsc/lang/cy.js | 24 + sources/plugins/wsc/lang/da.js | 24 + sources/plugins/wsc/lang/de.js | 24 + sources/plugins/wsc/lang/el.js | 24 + sources/plugins/wsc/lang/en-au.js | 24 + sources/plugins/wsc/lang/en-ca.js | 24 + sources/plugins/wsc/lang/en-gb.js | 24 + sources/plugins/wsc/lang/en.js | 24 + sources/plugins/wsc/lang/eo.js | 24 + sources/plugins/wsc/lang/es.js | 24 + sources/plugins/wsc/lang/et.js | 24 + sources/plugins/wsc/lang/eu.js | 24 + sources/plugins/wsc/lang/fa.js | 24 + sources/plugins/wsc/lang/fi.js | 24 + sources/plugins/wsc/lang/fo.js | 24 + sources/plugins/wsc/lang/fr-ca.js | 24 + sources/plugins/wsc/lang/fr.js | 24 + sources/plugins/wsc/lang/gl.js | 24 + sources/plugins/wsc/lang/gu.js | 24 + sources/plugins/wsc/lang/he.js | 24 + sources/plugins/wsc/lang/hi.js | 24 + sources/plugins/wsc/lang/hr.js | 24 + sources/plugins/wsc/lang/hu.js | 24 + sources/plugins/wsc/lang/is.js | 24 + sources/plugins/wsc/lang/it.js | 24 + sources/plugins/wsc/lang/ja.js | 24 + sources/plugins/wsc/lang/ka.js | 24 + sources/plugins/wsc/lang/km.js | 24 + sources/plugins/wsc/lang/ko.js | 24 + sources/plugins/wsc/lang/ku.js | 24 + sources/plugins/wsc/lang/lt.js | 24 + sources/plugins/wsc/lang/lv.js | 24 + sources/plugins/wsc/lang/mk.js | 24 + sources/plugins/wsc/lang/mn.js | 24 + sources/plugins/wsc/lang/ms.js | 24 + sources/plugins/wsc/lang/nb.js | 24 + sources/plugins/wsc/lang/nl.js | 24 + sources/plugins/wsc/lang/no.js | 24 + sources/plugins/wsc/lang/pl.js | 24 + sources/plugins/wsc/lang/pt-br.js | 24 + sources/plugins/wsc/lang/pt.js | 24 + sources/plugins/wsc/lang/ro.js | 24 + sources/plugins/wsc/lang/ru.js | 24 + sources/plugins/wsc/lang/sk.js | 24 + sources/plugins/wsc/lang/sl.js | 24 + sources/plugins/wsc/lang/sr-latn.js | 24 + sources/plugins/wsc/lang/sr.js | 24 + sources/plugins/wsc/lang/sv.js | 24 + sources/plugins/wsc/lang/th.js | 24 + sources/plugins/wsc/lang/tr.js | 24 + sources/plugins/wsc/lang/ug.js | 24 + sources/plugins/wsc/lang/uk.js | 24 + sources/plugins/wsc/lang/vi.js | 24 + sources/plugins/wsc/lang/zh-cn.js | 24 + sources/plugins/wsc/lang/zh.js | 24 + sources/plugins/wsc/plugin.js | 142 + sources/plugins/wysiwygarea/plugin.js | 708 ++ .../plugins/wysiwygarea/samples/fullpage.html | 80 + sources/samples/css/samples.css | 1640 ++++ sources/samples/img/github-top.png | Bin 0 -> 383 bytes sources/samples/img/header-bg.png | Bin 0 -> 13086 bytes sources/samples/img/header-separator.png | Bin 0 -> 123 bytes sources/samples/img/logo.png | Bin 0 -> 5891 bytes sources/samples/img/navigation-tip.png | Bin 0 -> 12029 bytes sources/samples/index.html | 128 + sources/samples/js/sample.js | 54 + sources/samples/js/sf.js | 673 ++ sources/samples/old/ajax.html | 85 + sources/samples/old/api.html | 210 + sources/samples/old/appendto.html | 59 + sources/samples/old/assets/inlineall/logo.png | Bin 0 -> 4283 bytes .../old/assets/outputxhtml/outputxhtml.css | 204 + sources/samples/old/assets/posteddata.php | 59 + sources/samples/old/assets/sample.jpg | Bin 0 -> 14449 bytes .../old/assets/uilanguages/languages.js | 89 + sources/samples/old/datafiltering.html | 508 + sources/samples/old/divreplace.html | 144 + sources/samples/old/index.html | 111 + sources/samples/old/inlineall.html | 314 + sources/samples/old/inlinebycode.html | 124 + sources/samples/old/inlinetextarea.html | 113 + sources/samples/old/jquery.html | 103 + sources/samples/old/readonly.html | 76 + sources/samples/old/replacebyclass.html | 60 + sources/samples/old/replacebycode.html | 59 + sources/samples/old/sample.css | 357 + sources/samples/old/sample.js | 51 + sources/samples/old/sample_posteddata.php | 16 + sources/samples/old/tabindex.html | 78 + sources/samples/old/uicolor.html | 72 + sources/samples/old/uilanguages.html | 122 + sources/samples/old/xhtmlstyle.html | 234 + sources/samples/toolbarconfigurator/bender.js | 52 + .../toolbarconfigurator/css/fontello.css | 55 + .../toolbarconfigurator/font/LICENSE.txt | 12 + .../toolbarconfigurator/font/config.json | 28 + .../toolbarconfigurator/font/fontello.eot | Bin 0 -> 4988 bytes .../toolbarconfigurator/font/fontello.svg | 14 + .../toolbarconfigurator/font/fontello.ttf | Bin 0 -> 4820 bytes .../toolbarconfigurator/font/fontello.woff | Bin 0 -> 2904 bytes .../samples/toolbarconfigurator/index.html | 446 + .../js/abstracttoolbarmodifier.js | 566 ++ .../js/fulltoolbareditor.js | 365 + .../toolbarconfigurator/js/toolbarmodifier.js | 1366 +++ .../js/toolbartextmodifier.js | 623 ++ .../toolbarconfigurator/less/base.less | 38 + .../less/toolbarmodifier.less | 508 + .../lib/codemirror/LICENSE | 19 + .../lib/codemirror/README.md | 12 + .../lib/codemirror/codemirror.css | 325 + .../lib/codemirror/codemirror.js | 8738 +++++++++++++++++ .../lib/codemirror/javascript.js | 701 ++ .../lib/codemirror/neo.css | 36 + .../lib/codemirror/show-hint.css | 38 + .../lib/codemirror/show-hint.js | 392 + .../samples/toolbarconfigurator/package.json | 12 + .../samples/toolbarconfigurator/tests/one.js | 9 + sources/skins/moono/colorpanel.css | 127 + sources/skins/moono/dev/icons16.png | Bin 0 -> 29947 bytes sources/skins/moono/dev/icons16.svg | 2374 +++++ sources/skins/moono/dev/icons32.png | Bin 0 -> 75488 bytes sources/skins/moono/dev/icons32.svg | 2722 +++++ sources/skins/moono/dev/locations.json | 144 + sources/skins/moono/dialog.css | 1060 ++ sources/skins/moono/dialog_ie.css | 62 + sources/skins/moono/dialog_ie7.css | 68 + sources/skins/moono/dialog_ie8.css | 24 + sources/skins/moono/dialog_iequirks.css | 21 + sources/skins/moono/editor.css | 69 + sources/skins/moono/editor_gecko.css | 25 + sources/skins/moono/editor_ie.css | 71 + sources/skins/moono/editor_ie7.css | 213 + sources/skins/moono/editor_ie8.css | 27 + sources/skins/moono/editor_iequirks.css | 79 + sources/skins/moono/elementspath.css | 76 + sources/skins/moono/images/arrow.png | Bin 0 -> 191 bytes sources/skins/moono/images/close.png | Bin 0 -> 468 bytes sources/skins/moono/images/hidpi/close.png | Bin 0 -> 1271 bytes .../skins/moono/images/hidpi/lock-open.png | Bin 0 -> 1329 bytes sources/skins/moono/images/hidpi/lock.png | Bin 0 -> 1299 bytes sources/skins/moono/images/hidpi/refresh.png | Bin 0 -> 1842 bytes sources/skins/moono/images/lock-open.png | Bin 0 -> 349 bytes sources/skins/moono/images/lock.png | Bin 0 -> 475 bytes sources/skins/moono/images/refresh.png | Bin 0 -> 422 bytes sources/skins/moono/images/spinner.gif | Bin 0 -> 2984 bytes sources/skins/moono/mainui.css | 214 + sources/skins/moono/menu.css | 201 + sources/skins/moono/notification.css | 168 + sources/skins/moono/panel.css | 237 + sources/skins/moono/presets.css | 41 + sources/skins/moono/readme.md | 49 + sources/skins/moono/reset.css | 115 + sources/skins/moono/richcombo.css | 210 + sources/skins/moono/skin.js | 319 + sources/skins/moono/toolbar.css | 387 + sources/styles.js | 112 + 4108 files changed, 198888 insertions(+) create mode 100644 README.md create mode 100644 build-config.js create mode 100644 component.json create mode 100644 composer.json create mode 100644 release/CHANGES.md create mode 100644 release/LICENSE.md create mode 100644 release/README.md create mode 100644 release/adapters/jquery.js create mode 100644 release/ckeditor.js create mode 100644 release/config.js create mode 100644 release/contents.css create mode 100644 release/lang/en.js create mode 100644 release/lang/fr.js create mode 100644 release/plugins/a11yhelp/dialogs/a11yhelp.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/_translationstatus.txt create mode 100644 release/plugins/a11yhelp/dialogs/lang/af.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ar.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/bg.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ca.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/cs.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/cy.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/da.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/de.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/el.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/en-gb.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/en.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/eo.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/es.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/et.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/eu.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/fa.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/fi.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/fo.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/fr-ca.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/fr.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/gl.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/gu.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/he.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/hi.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/hr.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/hu.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/id.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/it.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ja.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/km.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ko.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ku.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/lt.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/lv.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/mk.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/mn.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/nb.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/nl.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/no.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/pl.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/pt-br.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/pt.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ro.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ru.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/si.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sk.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sl.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sq.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sr-latn.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sr.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sv.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/th.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/tr.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/tt.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ug.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/uk.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/vi.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/zh-cn.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/zh.js create mode 100644 release/plugins/about/dialogs/about.js create mode 100644 release/plugins/about/dialogs/hidpi/logo_ckeditor.png create mode 100644 release/plugins/about/dialogs/logo_ckeditor.png create mode 100644 release/plugins/clipboard/dialogs/paste.js create mode 100644 release/plugins/colordialog/dialogs/colordialog.js create mode 100644 release/plugins/dialog/dialogDefinition.js create mode 100644 release/plugins/div/dialogs/div.js create mode 100644 release/plugins/find/dialogs/find.js create mode 100644 release/plugins/flash/dialogs/flash.js create mode 100644 release/plugins/flash/images/placeholder.png create mode 100644 release/plugins/forms/dialogs/button.js create mode 100644 release/plugins/forms/dialogs/checkbox.js create mode 100644 release/plugins/forms/dialogs/form.js create mode 100644 release/plugins/forms/dialogs/hiddenfield.js create mode 100644 release/plugins/forms/dialogs/radio.js create mode 100644 release/plugins/forms/dialogs/select.js create mode 100644 release/plugins/forms/dialogs/textarea.js create mode 100644 release/plugins/forms/dialogs/textfield.js create mode 100644 release/plugins/forms/images/hiddenfield.gif create mode 100644 release/plugins/icons.png create mode 100644 release/plugins/icons_hidpi.png create mode 100644 release/plugins/iframe/dialogs/iframe.js create mode 100644 release/plugins/iframe/images/placeholder.png create mode 100644 release/plugins/image/dialogs/image.js create mode 100644 release/plugins/image/images/noimage.png create mode 100644 release/plugins/imagebrowser/LICENSE.txt create mode 100644 release/plugins/imagebrowser/README.rst create mode 100644 release/plugins/imagebrowser/browser/browser.css create mode 100644 release/plugins/imagebrowser/browser/browser.html create mode 100644 release/plugins/imagebrowser/browser/browser.js create mode 100644 release/plugins/imagebrowser/browser/jquery-1.9.1.min.js create mode 100644 release/plugins/link/dialogs/anchor.js create mode 100644 release/plugins/link/dialogs/link.js create mode 100644 release/plugins/link/images/anchor.png create mode 100644 release/plugins/link/images/hidpi/anchor.png create mode 100644 release/plugins/liststyle/dialogs/liststyle.js create mode 100644 release/plugins/magicline/images/hidpi/icon-rtl.png create mode 100644 release/plugins/magicline/images/hidpi/icon.png create mode 100644 release/plugins/magicline/images/icon-rtl.png create mode 100644 release/plugins/magicline/images/icon.png create mode 100644 release/plugins/pagebreak/images/pagebreak.gif create mode 100644 release/plugins/pastefromword/filter/default.js create mode 100644 release/plugins/preview/preview.html create mode 100644 release/plugins/scayt/CHANGELOG.md create mode 100644 release/plugins/scayt/LICENSE.md create mode 100644 release/plugins/scayt/README.md create mode 100644 release/plugins/scayt/dialogs/options.js create mode 100644 release/plugins/scayt/dialogs/toolbar.css create mode 100644 release/plugins/showblocks/images/block_address.png create mode 100644 release/plugins/showblocks/images/block_blockquote.png create mode 100644 release/plugins/showblocks/images/block_div.png create mode 100644 release/plugins/showblocks/images/block_h1.png create mode 100644 release/plugins/showblocks/images/block_h2.png create mode 100644 release/plugins/showblocks/images/block_h3.png create mode 100644 release/plugins/showblocks/images/block_h4.png create mode 100644 release/plugins/showblocks/images/block_h5.png create mode 100644 release/plugins/showblocks/images/block_h6.png create mode 100644 release/plugins/showblocks/images/block_p.png create mode 100644 release/plugins/showblocks/images/block_pre.png create mode 100644 release/plugins/smiley/dialogs/smiley.js create mode 100644 release/plugins/smiley/images/angel_smile.gif create mode 100644 release/plugins/smiley/images/angel_smile.png create mode 100644 release/plugins/smiley/images/angry_smile.gif create mode 100644 release/plugins/smiley/images/angry_smile.png create mode 100644 release/plugins/smiley/images/broken_heart.gif create mode 100644 release/plugins/smiley/images/broken_heart.png create mode 100644 release/plugins/smiley/images/confused_smile.gif create mode 100644 release/plugins/smiley/images/confused_smile.png create mode 100644 release/plugins/smiley/images/cry_smile.gif create mode 100644 release/plugins/smiley/images/cry_smile.png create mode 100644 release/plugins/smiley/images/devil_smile.gif create mode 100644 release/plugins/smiley/images/devil_smile.png create mode 100644 release/plugins/smiley/images/embaressed_smile.gif create mode 100644 release/plugins/smiley/images/embarrassed_smile.gif create mode 100644 release/plugins/smiley/images/embarrassed_smile.png create mode 100644 release/plugins/smiley/images/envelope.gif create mode 100644 release/plugins/smiley/images/envelope.png create mode 100644 release/plugins/smiley/images/heart.gif create mode 100644 release/plugins/smiley/images/heart.png create mode 100644 release/plugins/smiley/images/kiss.gif create mode 100644 release/plugins/smiley/images/kiss.png create mode 100644 release/plugins/smiley/images/lightbulb.gif create mode 100644 release/plugins/smiley/images/lightbulb.png create mode 100644 release/plugins/smiley/images/omg_smile.gif create mode 100644 release/plugins/smiley/images/omg_smile.png create mode 100644 release/plugins/smiley/images/regular_smile.gif create mode 100644 release/plugins/smiley/images/regular_smile.png create mode 100644 release/plugins/smiley/images/sad_smile.gif create mode 100644 release/plugins/smiley/images/sad_smile.png create mode 100644 release/plugins/smiley/images/shades_smile.gif create mode 100644 release/plugins/smiley/images/shades_smile.png create mode 100644 release/plugins/smiley/images/teeth_smile.gif create mode 100644 release/plugins/smiley/images/teeth_smile.png create mode 100644 release/plugins/smiley/images/thumbs_down.gif create mode 100644 release/plugins/smiley/images/thumbs_down.png create mode 100644 release/plugins/smiley/images/thumbs_up.gif create mode 100644 release/plugins/smiley/images/thumbs_up.png create mode 100644 release/plugins/smiley/images/tongue_smile.gif create mode 100644 release/plugins/smiley/images/tongue_smile.png create mode 100644 release/plugins/smiley/images/tounge_smile.gif create mode 100644 release/plugins/smiley/images/whatchutalkingabout_smile.gif create mode 100644 release/plugins/smiley/images/whatchutalkingabout_smile.png create mode 100644 release/plugins/smiley/images/wink_smile.gif create mode 100644 release/plugins/smiley/images/wink_smile.png create mode 100644 release/plugins/specialchar/dialogs/lang/_translationstatus.txt create mode 100644 release/plugins/specialchar/dialogs/lang/af.js create mode 100644 release/plugins/specialchar/dialogs/lang/ar.js create mode 100644 release/plugins/specialchar/dialogs/lang/bg.js create mode 100644 release/plugins/specialchar/dialogs/lang/ca.js create mode 100644 release/plugins/specialchar/dialogs/lang/cs.js create mode 100644 release/plugins/specialchar/dialogs/lang/cy.js create mode 100644 release/plugins/specialchar/dialogs/lang/da.js create mode 100644 release/plugins/specialchar/dialogs/lang/de.js create mode 100644 release/plugins/specialchar/dialogs/lang/el.js create mode 100644 release/plugins/specialchar/dialogs/lang/en-gb.js create mode 100644 release/plugins/specialchar/dialogs/lang/en.js create mode 100644 release/plugins/specialchar/dialogs/lang/eo.js create mode 100644 release/plugins/specialchar/dialogs/lang/es.js create mode 100644 release/plugins/specialchar/dialogs/lang/et.js create mode 100644 release/plugins/specialchar/dialogs/lang/eu.js create mode 100644 release/plugins/specialchar/dialogs/lang/fa.js create mode 100644 release/plugins/specialchar/dialogs/lang/fi.js create mode 100644 release/plugins/specialchar/dialogs/lang/fr-ca.js create mode 100644 release/plugins/specialchar/dialogs/lang/fr.js create mode 100644 release/plugins/specialchar/dialogs/lang/gl.js create mode 100644 release/plugins/specialchar/dialogs/lang/he.js create mode 100644 release/plugins/specialchar/dialogs/lang/hr.js create mode 100644 release/plugins/specialchar/dialogs/lang/hu.js create mode 100644 release/plugins/specialchar/dialogs/lang/id.js create mode 100644 release/plugins/specialchar/dialogs/lang/it.js create mode 100644 release/plugins/specialchar/dialogs/lang/ja.js create mode 100644 release/plugins/specialchar/dialogs/lang/km.js create mode 100644 release/plugins/specialchar/dialogs/lang/ko.js create mode 100644 release/plugins/specialchar/dialogs/lang/ku.js create mode 100644 release/plugins/specialchar/dialogs/lang/lt.js create mode 100644 release/plugins/specialchar/dialogs/lang/lv.js create mode 100644 release/plugins/specialchar/dialogs/lang/nb.js create mode 100644 release/plugins/specialchar/dialogs/lang/nl.js create mode 100644 release/plugins/specialchar/dialogs/lang/no.js create mode 100644 release/plugins/specialchar/dialogs/lang/pl.js create mode 100644 release/plugins/specialchar/dialogs/lang/pt-br.js create mode 100644 release/plugins/specialchar/dialogs/lang/pt.js create mode 100644 release/plugins/specialchar/dialogs/lang/ru.js create mode 100644 release/plugins/specialchar/dialogs/lang/si.js create mode 100644 release/plugins/specialchar/dialogs/lang/sk.js create mode 100644 release/plugins/specialchar/dialogs/lang/sl.js create mode 100644 release/plugins/specialchar/dialogs/lang/sq.js create mode 100644 release/plugins/specialchar/dialogs/lang/sv.js create mode 100644 release/plugins/specialchar/dialogs/lang/th.js create mode 100644 release/plugins/specialchar/dialogs/lang/tr.js create mode 100644 release/plugins/specialchar/dialogs/lang/tt.js create mode 100644 release/plugins/specialchar/dialogs/lang/ug.js create mode 100644 release/plugins/specialchar/dialogs/lang/uk.js create mode 100644 release/plugins/specialchar/dialogs/lang/vi.js create mode 100644 release/plugins/specialchar/dialogs/lang/zh-cn.js create mode 100644 release/plugins/specialchar/dialogs/lang/zh.js create mode 100644 release/plugins/specialchar/dialogs/specialchar.js create mode 100644 release/plugins/table/dialogs/table.js create mode 100644 release/plugins/tabletools/dialogs/tableCell.js create mode 100644 release/plugins/templates/dialogs/templates.css create mode 100644 release/plugins/templates/dialogs/templates.js create mode 100644 release/plugins/templates/templates/default.js create mode 100644 release/plugins/templates/templates/images/template1.gif create mode 100644 release/plugins/templates/templates/images/template2.gif create mode 100644 release/plugins/templates/templates/images/template3.gif create mode 100644 release/plugins/wsc/LICENSE.md create mode 100644 release/plugins/wsc/README.md create mode 100644 release/plugins/wsc/dialogs/ciframe.html create mode 100644 release/plugins/wsc/dialogs/tmpFrameset.html create mode 100644 release/plugins/wsc/dialogs/wsc.css create mode 100644 release/plugins/wsc/dialogs/wsc.js create mode 100644 release/plugins/wsc/dialogs/wsc_ie.js create mode 100644 release/samples/css/samples.css create mode 100644 release/samples/img/github-top.png create mode 100644 release/samples/img/header-bg.png create mode 100644 release/samples/img/header-separator.png create mode 100644 release/samples/img/logo.png create mode 100644 release/samples/img/navigation-tip.png create mode 100644 release/samples/index.html create mode 100644 release/samples/js/sample.js create mode 100644 release/samples/js/sf.js create mode 100644 release/samples/old/ajax.html create mode 100644 release/samples/old/api.html create mode 100644 release/samples/old/appendto.html create mode 100644 release/samples/old/assets/inlineall/logo.png create mode 100644 release/samples/old/assets/outputxhtml/outputxhtml.css create mode 100644 release/samples/old/assets/posteddata.php create mode 100644 release/samples/old/assets/sample.jpg create mode 100644 release/samples/old/assets/uilanguages/languages.js create mode 100644 release/samples/old/datafiltering.html create mode 100644 release/samples/old/dialog/assets/my_dialog.js create mode 100644 release/samples/old/dialog/dialog.html create mode 100644 release/samples/old/divreplace.html create mode 100644 release/samples/old/enterkey/enterkey.html create mode 100644 release/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla create mode 100644 release/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf create mode 100644 release/samples/old/htmlwriter/assets/outputforflash/swfobject.js create mode 100644 release/samples/old/htmlwriter/outputforflash.html create mode 100644 release/samples/old/htmlwriter/outputhtml.html create mode 100644 release/samples/old/index.html create mode 100644 release/samples/old/inlineall.html create mode 100644 release/samples/old/inlinebycode.html create mode 100644 release/samples/old/inlinetextarea.html create mode 100644 release/samples/old/jquery.html create mode 100644 release/samples/old/magicline/magicline.html create mode 100644 release/samples/old/readonly.html create mode 100644 release/samples/old/replacebyclass.html create mode 100644 release/samples/old/replacebycode.html create mode 100644 release/samples/old/sample.css create mode 100644 release/samples/old/sample.js create mode 100644 release/samples/old/sample_posteddata.php create mode 100644 release/samples/old/tabindex.html create mode 100644 release/samples/old/toolbar/toolbar.html create mode 100644 release/samples/old/uicolor.html create mode 100644 release/samples/old/uilanguages.html create mode 100644 release/samples/old/wysiwygarea/fullpage.html create mode 100644 release/samples/old/xhtmlstyle.html create mode 100644 release/samples/toolbarconfigurator/css/fontello.css create mode 100644 release/samples/toolbarconfigurator/font/LICENSE.txt create mode 100644 release/samples/toolbarconfigurator/font/config.json create mode 100644 release/samples/toolbarconfigurator/font/fontello.eot create mode 100644 release/samples/toolbarconfigurator/font/fontello.svg create mode 100644 release/samples/toolbarconfigurator/font/fontello.ttf create mode 100644 release/samples/toolbarconfigurator/font/fontello.woff create mode 100644 release/samples/toolbarconfigurator/index.html create mode 100644 release/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js create mode 100644 release/samples/toolbarconfigurator/js/fulltoolbareditor.js create mode 100644 release/samples/toolbarconfigurator/js/toolbarmodifier.js create mode 100644 release/samples/toolbarconfigurator/js/toolbartextmodifier.js create mode 100644 release/samples/toolbarconfigurator/lib/codemirror/LICENSE create mode 100644 release/samples/toolbarconfigurator/lib/codemirror/codemirror.css create mode 100644 release/samples/toolbarconfigurator/lib/codemirror/codemirror.js create mode 100644 release/samples/toolbarconfigurator/lib/codemirror/javascript.js create mode 100644 release/samples/toolbarconfigurator/lib/codemirror/neo.css create mode 100644 release/samples/toolbarconfigurator/lib/codemirror/show-hint.css create mode 100644 release/samples/toolbarconfigurator/lib/codemirror/show-hint.js create mode 100644 release/skins/moono/dialog.css create mode 100644 release/skins/moono/dialog_ie.css create mode 100644 release/skins/moono/dialog_ie7.css create mode 100644 release/skins/moono/dialog_ie8.css create mode 100644 release/skins/moono/dialog_iequirks.css create mode 100644 release/skins/moono/editor.css create mode 100644 release/skins/moono/editor_gecko.css create mode 100644 release/skins/moono/editor_ie.css create mode 100644 release/skins/moono/editor_ie7.css create mode 100644 release/skins/moono/editor_ie8.css create mode 100644 release/skins/moono/editor_iequirks.css create mode 100644 release/skins/moono/icons.png create mode 100644 release/skins/moono/icons_hidpi.png create mode 100644 release/skins/moono/images/arrow.png create mode 100644 release/skins/moono/images/close.png create mode 100644 release/skins/moono/images/hidpi/close.png create mode 100644 release/skins/moono/images/hidpi/lock-open.png create mode 100644 release/skins/moono/images/hidpi/lock.png create mode 100644 release/skins/moono/images/hidpi/refresh.png create mode 100644 release/skins/moono/images/lock-open.png create mode 100644 release/skins/moono/images/lock.png create mode 100644 release/skins/moono/images/refresh.png create mode 100644 release/skins/moono/images/spinner.gif create mode 100644 release/skins/moono/readme.md create mode 100644 release/styles.js create mode 100644 sources/CHANGES.md create mode 100644 sources/LICENSE.md create mode 100644 sources/README.md create mode 100644 sources/ckeditor.js create mode 100644 sources/config.js create mode 100644 sources/contents.css create mode 100644 sources/core/_bootstrap.js create mode 100644 sources/core/ckeditor.js create mode 100644 sources/core/ckeditor_base.js create mode 100644 sources/core/ckeditor_basic.js create mode 100644 sources/core/command.js create mode 100644 sources/core/commanddefinition.js create mode 100644 sources/core/config.js create mode 100644 sources/core/creators/inline.js create mode 100644 sources/core/creators/themedui.js create mode 100644 sources/core/dataprocessor.js create mode 100644 sources/core/dom.js create mode 100644 sources/core/dom/comment.js create mode 100644 sources/core/dom/document.js create mode 100644 sources/core/dom/documentfragment.js create mode 100644 sources/core/dom/domobject.js create mode 100644 sources/core/dom/element.js create mode 100644 sources/core/dom/elementpath.js create mode 100644 sources/core/dom/event.js create mode 100644 sources/core/dom/iterator.js create mode 100644 sources/core/dom/node.js create mode 100644 sources/core/dom/nodelist.js create mode 100644 sources/core/dom/range.js create mode 100644 sources/core/dom/rangelist.js create mode 100644 sources/core/dom/text.js create mode 100644 sources/core/dom/walker.js create mode 100644 sources/core/dom/window.js create mode 100644 sources/core/dtd.js create mode 100644 sources/core/editable.js create mode 100644 sources/core/editor.js create mode 100644 sources/core/editor_basic.js create mode 100644 sources/core/env.js create mode 100644 sources/core/event.js create mode 100644 sources/core/eventInfo.js create mode 100644 sources/core/filter.js create mode 100644 sources/core/focusmanager.js create mode 100644 sources/core/htmldataprocessor.js create mode 100644 sources/core/htmlparser.js create mode 100644 sources/core/htmlparser/basicwriter.js create mode 100644 sources/core/htmlparser/cdata.js create mode 100644 sources/core/htmlparser/comment.js create mode 100644 sources/core/htmlparser/element.js create mode 100644 sources/core/htmlparser/filter.js create mode 100644 sources/core/htmlparser/fragment.js create mode 100644 sources/core/htmlparser/node.js create mode 100644 sources/core/htmlparser/text.js create mode 100644 sources/core/keystrokehandler.js create mode 100644 sources/core/lang.js create mode 100644 sources/core/loader.js create mode 100644 sources/core/log.js create mode 100644 sources/core/plugindefinition.js create mode 100644 sources/core/plugins.js create mode 100644 sources/core/resourcemanager.js create mode 100644 sources/core/scriptloader.js create mode 100644 sources/core/selection.js create mode 100644 sources/core/skin.js create mode 100644 sources/core/style.js create mode 100644 sources/core/template.js create mode 100644 sources/core/tools.js create mode 100644 sources/core/ui.js create mode 100644 sources/lang/_translationstatus.txt create mode 100644 sources/lang/af.js create mode 100644 sources/lang/ar.js create mode 100644 sources/lang/bg.js create mode 100644 sources/lang/bn.js create mode 100644 sources/lang/bs.js create mode 100644 sources/lang/ca.js create mode 100644 sources/lang/cs.js create mode 100644 sources/lang/cy.js create mode 100644 sources/lang/da.js create mode 100644 sources/lang/de.js create mode 100644 sources/lang/el.js create mode 100644 sources/lang/en-au.js create mode 100644 sources/lang/en-ca.js create mode 100644 sources/lang/en-gb.js create mode 100644 sources/lang/en.js create mode 100644 sources/lang/eo.js create mode 100644 sources/lang/es.js create mode 100644 sources/lang/et.js create mode 100644 sources/lang/eu.js create mode 100644 sources/lang/fa.js create mode 100644 sources/lang/fi.js create mode 100644 sources/lang/fo.js create mode 100644 sources/lang/fr-ca.js create mode 100644 sources/lang/fr.js create mode 100644 sources/lang/gl.js create mode 100644 sources/lang/gu.js create mode 100644 sources/lang/he.js create mode 100644 sources/lang/hi.js create mode 100644 sources/lang/hr.js create mode 100644 sources/lang/hu.js create mode 100644 sources/lang/id.js create mode 100644 sources/lang/is.js create mode 100644 sources/lang/it.js create mode 100644 sources/lang/ja.js create mode 100644 sources/lang/ka.js create mode 100644 sources/lang/km.js create mode 100644 sources/lang/ko.js create mode 100644 sources/lang/ku.js create mode 100644 sources/lang/lt.js create mode 100644 sources/lang/lv.js create mode 100644 sources/lang/mk.js create mode 100644 sources/lang/mn.js create mode 100644 sources/lang/ms.js create mode 100644 sources/lang/nb.js create mode 100644 sources/lang/nl.js create mode 100644 sources/lang/no.js create mode 100644 sources/lang/pl.js create mode 100644 sources/lang/pt-br.js create mode 100644 sources/lang/pt.js create mode 100644 sources/lang/ro.js create mode 100644 sources/lang/ru.js create mode 100644 sources/lang/si.js create mode 100644 sources/lang/sk.js create mode 100644 sources/lang/sl.js create mode 100644 sources/lang/sq.js create mode 100644 sources/lang/sr-latn.js create mode 100644 sources/lang/sr.js create mode 100644 sources/lang/sv.js create mode 100644 sources/lang/th.js create mode 100644 sources/lang/tr.js create mode 100644 sources/lang/tt.js create mode 100644 sources/lang/ug.js create mode 100644 sources/lang/uk.js create mode 100644 sources/lang/vi.js create mode 100644 sources/lang/zh-cn.js create mode 100644 sources/lang/zh.js create mode 100644 sources/plugins/a11yhelp/dialogs/a11yhelp.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/_translationstatus.txt create mode 100644 sources/plugins/a11yhelp/dialogs/lang/af.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/ar.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/bg.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/ca.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/cs.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/cy.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/da.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/de.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/el.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/en-gb.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/en.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/eo.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/es.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/et.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/eu.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/fa.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/fi.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/fo.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/fr-ca.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/fr.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/gl.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/gu.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/he.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/hi.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/hr.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/hu.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/id.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/it.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/ja.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/km.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/ko.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/ku.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/lt.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/lv.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/mk.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/mn.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/nb.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/nl.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/no.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/pl.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/pt-br.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/pt.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/ro.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/ru.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/si.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/sk.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/sl.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/sq.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/sr-latn.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/sr.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/sv.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/th.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/tr.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/tt.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/ug.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/uk.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/vi.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/zh-cn.js create mode 100644 sources/plugins/a11yhelp/dialogs/lang/zh.js create mode 100644 sources/plugins/a11yhelp/plugin.js create mode 100644 sources/plugins/about/dialogs/about.js create mode 100644 sources/plugins/about/dialogs/hidpi/logo_ckeditor.png create mode 100644 sources/plugins/about/dialogs/logo_ckeditor.png create mode 100644 sources/plugins/about/icons/about.png create mode 100644 sources/plugins/about/icons/hidpi/about.png create mode 100644 sources/plugins/about/lang/af.js create mode 100644 sources/plugins/about/lang/ar.js create mode 100644 sources/plugins/about/lang/bg.js create mode 100644 sources/plugins/about/lang/bn.js create mode 100644 sources/plugins/about/lang/bs.js create mode 100644 sources/plugins/about/lang/ca.js create mode 100644 sources/plugins/about/lang/cs.js create mode 100644 sources/plugins/about/lang/cy.js create mode 100644 sources/plugins/about/lang/da.js create mode 100644 sources/plugins/about/lang/de.js create mode 100644 sources/plugins/about/lang/el.js create mode 100644 sources/plugins/about/lang/en-au.js create mode 100644 sources/plugins/about/lang/en-ca.js create mode 100644 sources/plugins/about/lang/en-gb.js create mode 100644 sources/plugins/about/lang/en.js create mode 100644 sources/plugins/about/lang/eo.js create mode 100644 sources/plugins/about/lang/es.js create mode 100644 sources/plugins/about/lang/et.js create mode 100644 sources/plugins/about/lang/eu.js create mode 100644 sources/plugins/about/lang/fa.js create mode 100644 sources/plugins/about/lang/fi.js create mode 100644 sources/plugins/about/lang/fo.js create mode 100644 sources/plugins/about/lang/fr-ca.js create mode 100644 sources/plugins/about/lang/fr.js create mode 100644 sources/plugins/about/lang/gl.js create mode 100644 sources/plugins/about/lang/gu.js create mode 100644 sources/plugins/about/lang/he.js create mode 100644 sources/plugins/about/lang/hi.js create mode 100644 sources/plugins/about/lang/hr.js create mode 100644 sources/plugins/about/lang/hu.js create mode 100644 sources/plugins/about/lang/id.js create mode 100644 sources/plugins/about/lang/is.js create mode 100644 sources/plugins/about/lang/it.js create mode 100644 sources/plugins/about/lang/ja.js create mode 100644 sources/plugins/about/lang/ka.js create mode 100644 sources/plugins/about/lang/km.js create mode 100644 sources/plugins/about/lang/ko.js create mode 100644 sources/plugins/about/lang/ku.js create mode 100644 sources/plugins/about/lang/lt.js create mode 100644 sources/plugins/about/lang/lv.js create mode 100644 sources/plugins/about/lang/mk.js create mode 100644 sources/plugins/about/lang/mn.js create mode 100644 sources/plugins/about/lang/ms.js create mode 100644 sources/plugins/about/lang/nb.js create mode 100644 sources/plugins/about/lang/nl.js create mode 100644 sources/plugins/about/lang/no.js create mode 100644 sources/plugins/about/lang/pl.js create mode 100644 sources/plugins/about/lang/pt-br.js create mode 100644 sources/plugins/about/lang/pt.js create mode 100644 sources/plugins/about/lang/ro.js create mode 100644 sources/plugins/about/lang/ru.js create mode 100644 sources/plugins/about/lang/si.js create mode 100644 sources/plugins/about/lang/sk.js create mode 100644 sources/plugins/about/lang/sl.js create mode 100644 sources/plugins/about/lang/sq.js create mode 100644 sources/plugins/about/lang/sr-latn.js create mode 100644 sources/plugins/about/lang/sr.js create mode 100644 sources/plugins/about/lang/sv.js create mode 100644 sources/plugins/about/lang/th.js create mode 100644 sources/plugins/about/lang/tr.js create mode 100644 sources/plugins/about/lang/tt.js create mode 100644 sources/plugins/about/lang/ug.js create mode 100644 sources/plugins/about/lang/uk.js create mode 100644 sources/plugins/about/lang/vi.js create mode 100644 sources/plugins/about/lang/zh-cn.js create mode 100644 sources/plugins/about/lang/zh.js create mode 100644 sources/plugins/about/plugin.js create mode 100644 sources/plugins/basicstyles/icons/bold.png create mode 100644 sources/plugins/basicstyles/icons/hidpi/bold.png create mode 100644 sources/plugins/basicstyles/icons/hidpi/italic.png create mode 100644 sources/plugins/basicstyles/icons/hidpi/strike.png create mode 100644 sources/plugins/basicstyles/icons/hidpi/subscript.png create mode 100644 sources/plugins/basicstyles/icons/hidpi/superscript.png create mode 100644 sources/plugins/basicstyles/icons/hidpi/underline.png create mode 100644 sources/plugins/basicstyles/icons/italic.png create mode 100644 sources/plugins/basicstyles/icons/strike.png create mode 100644 sources/plugins/basicstyles/icons/subscript.png create mode 100644 sources/plugins/basicstyles/icons/superscript.png create mode 100644 sources/plugins/basicstyles/icons/underline.png create mode 100644 sources/plugins/basicstyles/lang/af.js create mode 100644 sources/plugins/basicstyles/lang/ar.js create mode 100644 sources/plugins/basicstyles/lang/bg.js create mode 100644 sources/plugins/basicstyles/lang/bn.js create mode 100644 sources/plugins/basicstyles/lang/bs.js create mode 100644 sources/plugins/basicstyles/lang/ca.js create mode 100644 sources/plugins/basicstyles/lang/cs.js create mode 100644 sources/plugins/basicstyles/lang/cy.js create mode 100644 sources/plugins/basicstyles/lang/da.js create mode 100644 sources/plugins/basicstyles/lang/de.js create mode 100644 sources/plugins/basicstyles/lang/el.js create mode 100644 sources/plugins/basicstyles/lang/en-au.js create mode 100644 sources/plugins/basicstyles/lang/en-ca.js create mode 100644 sources/plugins/basicstyles/lang/en-gb.js create mode 100644 sources/plugins/basicstyles/lang/en.js create mode 100644 sources/plugins/basicstyles/lang/eo.js create mode 100644 sources/plugins/basicstyles/lang/es.js create mode 100644 sources/plugins/basicstyles/lang/et.js create mode 100644 sources/plugins/basicstyles/lang/eu.js create mode 100644 sources/plugins/basicstyles/lang/fa.js create mode 100644 sources/plugins/basicstyles/lang/fi.js create mode 100644 sources/plugins/basicstyles/lang/fo.js create mode 100644 sources/plugins/basicstyles/lang/fr-ca.js create mode 100644 sources/plugins/basicstyles/lang/fr.js create mode 100644 sources/plugins/basicstyles/lang/gl.js create mode 100644 sources/plugins/basicstyles/lang/gu.js create mode 100644 sources/plugins/basicstyles/lang/he.js create mode 100644 sources/plugins/basicstyles/lang/hi.js create mode 100644 sources/plugins/basicstyles/lang/hr.js create mode 100644 sources/plugins/basicstyles/lang/hu.js create mode 100644 sources/plugins/basicstyles/lang/id.js create mode 100644 sources/plugins/basicstyles/lang/is.js create mode 100644 sources/plugins/basicstyles/lang/it.js create mode 100644 sources/plugins/basicstyles/lang/ja.js create mode 100644 sources/plugins/basicstyles/lang/ka.js create mode 100644 sources/plugins/basicstyles/lang/km.js create mode 100644 sources/plugins/basicstyles/lang/ko.js create mode 100644 sources/plugins/basicstyles/lang/ku.js create mode 100644 sources/plugins/basicstyles/lang/lt.js create mode 100644 sources/plugins/basicstyles/lang/lv.js create mode 100644 sources/plugins/basicstyles/lang/mk.js create mode 100644 sources/plugins/basicstyles/lang/mn.js create mode 100644 sources/plugins/basicstyles/lang/ms.js create mode 100644 sources/plugins/basicstyles/lang/nb.js create mode 100644 sources/plugins/basicstyles/lang/nl.js create mode 100644 sources/plugins/basicstyles/lang/no.js create mode 100644 sources/plugins/basicstyles/lang/pl.js create mode 100644 sources/plugins/basicstyles/lang/pt-br.js create mode 100644 sources/plugins/basicstyles/lang/pt.js create mode 100644 sources/plugins/basicstyles/lang/ro.js create mode 100644 sources/plugins/basicstyles/lang/ru.js create mode 100644 sources/plugins/basicstyles/lang/si.js create mode 100644 sources/plugins/basicstyles/lang/sk.js create mode 100644 sources/plugins/basicstyles/lang/sl.js create mode 100644 sources/plugins/basicstyles/lang/sq.js create mode 100644 sources/plugins/basicstyles/lang/sr-latn.js create mode 100644 sources/plugins/basicstyles/lang/sr.js create mode 100644 sources/plugins/basicstyles/lang/sv.js create mode 100644 sources/plugins/basicstyles/lang/th.js create mode 100644 sources/plugins/basicstyles/lang/tr.js create mode 100644 sources/plugins/basicstyles/lang/tt.js create mode 100644 sources/plugins/basicstyles/lang/ug.js create mode 100644 sources/plugins/basicstyles/lang/uk.js create mode 100644 sources/plugins/basicstyles/lang/vi.js create mode 100644 sources/plugins/basicstyles/lang/zh-cn.js create mode 100644 sources/plugins/basicstyles/lang/zh.js create mode 100644 sources/plugins/basicstyles/plugin.js create mode 100644 sources/plugins/bidi/icons/bidiltr.png create mode 100644 sources/plugins/bidi/icons/bidirtl.png create mode 100644 sources/plugins/bidi/icons/hidpi/bidiltr.png create mode 100644 sources/plugins/bidi/icons/hidpi/bidirtl.png create mode 100644 sources/plugins/bidi/lang/af.js create mode 100644 sources/plugins/bidi/lang/ar.js create mode 100644 sources/plugins/bidi/lang/bg.js create mode 100644 sources/plugins/bidi/lang/bn.js create mode 100644 sources/plugins/bidi/lang/bs.js create mode 100644 sources/plugins/bidi/lang/ca.js create mode 100644 sources/plugins/bidi/lang/cs.js create mode 100644 sources/plugins/bidi/lang/cy.js create mode 100644 sources/plugins/bidi/lang/da.js create mode 100644 sources/plugins/bidi/lang/de.js create mode 100644 sources/plugins/bidi/lang/el.js create mode 100644 sources/plugins/bidi/lang/en-au.js create mode 100644 sources/plugins/bidi/lang/en-ca.js create mode 100644 sources/plugins/bidi/lang/en-gb.js create mode 100644 sources/plugins/bidi/lang/en.js create mode 100644 sources/plugins/bidi/lang/eo.js create mode 100644 sources/plugins/bidi/lang/es.js create mode 100644 sources/plugins/bidi/lang/et.js create mode 100644 sources/plugins/bidi/lang/eu.js create mode 100644 sources/plugins/bidi/lang/fa.js create mode 100644 sources/plugins/bidi/lang/fi.js create mode 100644 sources/plugins/bidi/lang/fo.js create mode 100644 sources/plugins/bidi/lang/fr-ca.js create mode 100644 sources/plugins/bidi/lang/fr.js create mode 100644 sources/plugins/bidi/lang/gl.js create mode 100644 sources/plugins/bidi/lang/gu.js create mode 100644 sources/plugins/bidi/lang/he.js create mode 100644 sources/plugins/bidi/lang/hi.js create mode 100644 sources/plugins/bidi/lang/hr.js create mode 100644 sources/plugins/bidi/lang/hu.js create mode 100644 sources/plugins/bidi/lang/id.js create mode 100644 sources/plugins/bidi/lang/is.js create mode 100644 sources/plugins/bidi/lang/it.js create mode 100644 sources/plugins/bidi/lang/ja.js create mode 100644 sources/plugins/bidi/lang/ka.js create mode 100644 sources/plugins/bidi/lang/km.js create mode 100644 sources/plugins/bidi/lang/ko.js create mode 100644 sources/plugins/bidi/lang/ku.js create mode 100644 sources/plugins/bidi/lang/lt.js create mode 100644 sources/plugins/bidi/lang/lv.js create mode 100644 sources/plugins/bidi/lang/mk.js create mode 100644 sources/plugins/bidi/lang/mn.js create mode 100644 sources/plugins/bidi/lang/ms.js create mode 100644 sources/plugins/bidi/lang/nb.js create mode 100644 sources/plugins/bidi/lang/nl.js create mode 100644 sources/plugins/bidi/lang/no.js create mode 100644 sources/plugins/bidi/lang/pl.js create mode 100644 sources/plugins/bidi/lang/pt-br.js create mode 100644 sources/plugins/bidi/lang/pt.js create mode 100644 sources/plugins/bidi/lang/ro.js create mode 100644 sources/plugins/bidi/lang/ru.js create mode 100644 sources/plugins/bidi/lang/si.js create mode 100644 sources/plugins/bidi/lang/sk.js create mode 100644 sources/plugins/bidi/lang/sl.js create mode 100644 sources/plugins/bidi/lang/sq.js create mode 100644 sources/plugins/bidi/lang/sr-latn.js create mode 100644 sources/plugins/bidi/lang/sr.js create mode 100644 sources/plugins/bidi/lang/sv.js create mode 100644 sources/plugins/bidi/lang/th.js create mode 100644 sources/plugins/bidi/lang/tr.js create mode 100644 sources/plugins/bidi/lang/tt.js create mode 100644 sources/plugins/bidi/lang/ug.js create mode 100644 sources/plugins/bidi/lang/uk.js create mode 100644 sources/plugins/bidi/lang/vi.js create mode 100644 sources/plugins/bidi/lang/zh-cn.js create mode 100644 sources/plugins/bidi/lang/zh.js create mode 100644 sources/plugins/bidi/plugin.js create mode 100644 sources/plugins/blockquote/icons/blockquote.png create mode 100644 sources/plugins/blockquote/icons/hidpi/blockquote.png create mode 100644 sources/plugins/blockquote/lang/af.js create mode 100644 sources/plugins/blockquote/lang/ar.js create mode 100644 sources/plugins/blockquote/lang/bg.js create mode 100644 sources/plugins/blockquote/lang/bn.js create mode 100644 sources/plugins/blockquote/lang/bs.js create mode 100644 sources/plugins/blockquote/lang/ca.js create mode 100644 sources/plugins/blockquote/lang/cs.js create mode 100644 sources/plugins/blockquote/lang/cy.js create mode 100644 sources/plugins/blockquote/lang/da.js create mode 100644 sources/plugins/blockquote/lang/de.js create mode 100644 sources/plugins/blockquote/lang/el.js create mode 100644 sources/plugins/blockquote/lang/en-au.js create mode 100644 sources/plugins/blockquote/lang/en-ca.js create mode 100644 sources/plugins/blockquote/lang/en-gb.js create mode 100644 sources/plugins/blockquote/lang/en.js create mode 100644 sources/plugins/blockquote/lang/eo.js create mode 100644 sources/plugins/blockquote/lang/es.js create mode 100644 sources/plugins/blockquote/lang/et.js create mode 100644 sources/plugins/blockquote/lang/eu.js create mode 100644 sources/plugins/blockquote/lang/fa.js create mode 100644 sources/plugins/blockquote/lang/fi.js create mode 100644 sources/plugins/blockquote/lang/fo.js create mode 100644 sources/plugins/blockquote/lang/fr-ca.js create mode 100644 sources/plugins/blockquote/lang/fr.js create mode 100644 sources/plugins/blockquote/lang/gl.js create mode 100644 sources/plugins/blockquote/lang/gu.js create mode 100644 sources/plugins/blockquote/lang/he.js create mode 100644 sources/plugins/blockquote/lang/hi.js create mode 100644 sources/plugins/blockquote/lang/hr.js create mode 100644 sources/plugins/blockquote/lang/hu.js create mode 100644 sources/plugins/blockquote/lang/id.js create mode 100644 sources/plugins/blockquote/lang/is.js create mode 100644 sources/plugins/blockquote/lang/it.js create mode 100644 sources/plugins/blockquote/lang/ja.js create mode 100644 sources/plugins/blockquote/lang/ka.js create mode 100644 sources/plugins/blockquote/lang/km.js create mode 100644 sources/plugins/blockquote/lang/ko.js create mode 100644 sources/plugins/blockquote/lang/ku.js create mode 100644 sources/plugins/blockquote/lang/lt.js create mode 100644 sources/plugins/blockquote/lang/lv.js create mode 100644 sources/plugins/blockquote/lang/mk.js create mode 100644 sources/plugins/blockquote/lang/mn.js create mode 100644 sources/plugins/blockquote/lang/ms.js create mode 100644 sources/plugins/blockquote/lang/nb.js create mode 100644 sources/plugins/blockquote/lang/nl.js create mode 100644 sources/plugins/blockquote/lang/no.js create mode 100644 sources/plugins/blockquote/lang/pl.js create mode 100644 sources/plugins/blockquote/lang/pt-br.js create mode 100644 sources/plugins/blockquote/lang/pt.js create mode 100644 sources/plugins/blockquote/lang/ro.js create mode 100644 sources/plugins/blockquote/lang/ru.js create mode 100644 sources/plugins/blockquote/lang/si.js create mode 100644 sources/plugins/blockquote/lang/sk.js create mode 100644 sources/plugins/blockquote/lang/sl.js create mode 100644 sources/plugins/blockquote/lang/sq.js create mode 100644 sources/plugins/blockquote/lang/sr-latn.js create mode 100644 sources/plugins/blockquote/lang/sr.js create mode 100644 sources/plugins/blockquote/lang/sv.js create mode 100644 sources/plugins/blockquote/lang/th.js create mode 100644 sources/plugins/blockquote/lang/tr.js create mode 100644 sources/plugins/blockquote/lang/tt.js create mode 100644 sources/plugins/blockquote/lang/ug.js create mode 100644 sources/plugins/blockquote/lang/uk.js create mode 100644 sources/plugins/blockquote/lang/vi.js create mode 100644 sources/plugins/blockquote/lang/zh-cn.js create mode 100644 sources/plugins/blockquote/lang/zh.js create mode 100644 sources/plugins/blockquote/plugin.js create mode 100644 sources/plugins/button/lang/af.js create mode 100644 sources/plugins/button/lang/ar.js create mode 100644 sources/plugins/button/lang/bg.js create mode 100644 sources/plugins/button/lang/ca.js create mode 100644 sources/plugins/button/lang/cs.js create mode 100644 sources/plugins/button/lang/da.js create mode 100644 sources/plugins/button/lang/de.js create mode 100644 sources/plugins/button/lang/el.js create mode 100644 sources/plugins/button/lang/en-gb.js create mode 100644 sources/plugins/button/lang/en.js create mode 100644 sources/plugins/button/lang/eo.js create mode 100644 sources/plugins/button/lang/es.js create mode 100644 sources/plugins/button/lang/eu.js create mode 100644 sources/plugins/button/lang/fa.js create mode 100644 sources/plugins/button/lang/fi.js create mode 100644 sources/plugins/button/lang/fr.js create mode 100644 sources/plugins/button/lang/gl.js create mode 100644 sources/plugins/button/lang/he.js create mode 100644 sources/plugins/button/lang/hu.js create mode 100644 sources/plugins/button/lang/id.js create mode 100644 sources/plugins/button/lang/it.js create mode 100644 sources/plugins/button/lang/ja.js create mode 100644 sources/plugins/button/lang/km.js create mode 100644 sources/plugins/button/lang/ko.js create mode 100644 sources/plugins/button/lang/ku.js create mode 100644 sources/plugins/button/lang/lt.js create mode 100644 sources/plugins/button/lang/nb.js create mode 100644 sources/plugins/button/lang/nl.js create mode 100644 sources/plugins/button/lang/pl.js create mode 100644 sources/plugins/button/lang/pt-br.js create mode 100644 sources/plugins/button/lang/pt.js create mode 100644 sources/plugins/button/lang/ro.js create mode 100644 sources/plugins/button/lang/ru.js create mode 100644 sources/plugins/button/lang/sk.js create mode 100644 sources/plugins/button/lang/sl.js create mode 100644 sources/plugins/button/lang/sq.js create mode 100644 sources/plugins/button/lang/sv.js create mode 100644 sources/plugins/button/lang/tr.js create mode 100644 sources/plugins/button/lang/tt.js create mode 100644 sources/plugins/button/lang/ug.js create mode 100644 sources/plugins/button/lang/uk.js create mode 100644 sources/plugins/button/lang/vi.js create mode 100644 sources/plugins/button/lang/zh-cn.js create mode 100644 sources/plugins/button/lang/zh.js create mode 100644 sources/plugins/button/plugin.js create mode 100644 sources/plugins/clipboard/dev/clipboard.html create mode 100644 sources/plugins/clipboard/dev/console.js create mode 100644 sources/plugins/clipboard/dev/dnd.html create mode 100644 sources/plugins/clipboard/dialogs/paste.js create mode 100644 sources/plugins/clipboard/icons/copy-rtl.png create mode 100644 sources/plugins/clipboard/icons/copy.png create mode 100644 sources/plugins/clipboard/icons/cut-rtl.png create mode 100644 sources/plugins/clipboard/icons/cut.png create mode 100644 sources/plugins/clipboard/icons/hidpi/copy-rtl.png create mode 100644 sources/plugins/clipboard/icons/hidpi/copy.png create mode 100644 sources/plugins/clipboard/icons/hidpi/cut-rtl.png create mode 100644 sources/plugins/clipboard/icons/hidpi/cut.png create mode 100644 sources/plugins/clipboard/icons/hidpi/paste-rtl.png create mode 100644 sources/plugins/clipboard/icons/hidpi/paste.png create mode 100644 sources/plugins/clipboard/icons/paste-rtl.png create mode 100644 sources/plugins/clipboard/icons/paste.png create mode 100644 sources/plugins/clipboard/lang/af.js create mode 100644 sources/plugins/clipboard/lang/ar.js create mode 100644 sources/plugins/clipboard/lang/bg.js create mode 100644 sources/plugins/clipboard/lang/bn.js create mode 100644 sources/plugins/clipboard/lang/bs.js create mode 100644 sources/plugins/clipboard/lang/ca.js create mode 100644 sources/plugins/clipboard/lang/cs.js create mode 100644 sources/plugins/clipboard/lang/cy.js create mode 100644 sources/plugins/clipboard/lang/da.js create mode 100644 sources/plugins/clipboard/lang/de.js create mode 100644 sources/plugins/clipboard/lang/el.js create mode 100644 sources/plugins/clipboard/lang/en-au.js create mode 100644 sources/plugins/clipboard/lang/en-ca.js create mode 100644 sources/plugins/clipboard/lang/en-gb.js create mode 100644 sources/plugins/clipboard/lang/en.js create mode 100644 sources/plugins/clipboard/lang/eo.js create mode 100644 sources/plugins/clipboard/lang/es.js create mode 100644 sources/plugins/clipboard/lang/et.js create mode 100644 sources/plugins/clipboard/lang/eu.js create mode 100644 sources/plugins/clipboard/lang/fa.js create mode 100644 sources/plugins/clipboard/lang/fi.js create mode 100644 sources/plugins/clipboard/lang/fo.js create mode 100644 sources/plugins/clipboard/lang/fr-ca.js create mode 100644 sources/plugins/clipboard/lang/fr.js create mode 100644 sources/plugins/clipboard/lang/gl.js create mode 100644 sources/plugins/clipboard/lang/gu.js create mode 100644 sources/plugins/clipboard/lang/he.js create mode 100644 sources/plugins/clipboard/lang/hi.js create mode 100644 sources/plugins/clipboard/lang/hr.js create mode 100644 sources/plugins/clipboard/lang/hu.js create mode 100644 sources/plugins/clipboard/lang/id.js create mode 100644 sources/plugins/clipboard/lang/is.js create mode 100644 sources/plugins/clipboard/lang/it.js create mode 100644 sources/plugins/clipboard/lang/ja.js create mode 100644 sources/plugins/clipboard/lang/ka.js create mode 100644 sources/plugins/clipboard/lang/km.js create mode 100644 sources/plugins/clipboard/lang/ko.js create mode 100644 sources/plugins/clipboard/lang/ku.js create mode 100644 sources/plugins/clipboard/lang/lt.js create mode 100644 sources/plugins/clipboard/lang/lv.js create mode 100644 sources/plugins/clipboard/lang/mk.js create mode 100644 sources/plugins/clipboard/lang/mn.js create mode 100644 sources/plugins/clipboard/lang/ms.js create mode 100644 sources/plugins/clipboard/lang/nb.js create mode 100644 sources/plugins/clipboard/lang/nl.js create mode 100644 sources/plugins/clipboard/lang/no.js create mode 100644 sources/plugins/clipboard/lang/pl.js create mode 100644 sources/plugins/clipboard/lang/pt-br.js create mode 100644 sources/plugins/clipboard/lang/pt.js create mode 100644 sources/plugins/clipboard/lang/ro.js create mode 100644 sources/plugins/clipboard/lang/ru.js create mode 100644 sources/plugins/clipboard/lang/si.js create mode 100644 sources/plugins/clipboard/lang/sk.js create mode 100644 sources/plugins/clipboard/lang/sl.js create mode 100644 sources/plugins/clipboard/lang/sq.js create mode 100644 sources/plugins/clipboard/lang/sr-latn.js create mode 100644 sources/plugins/clipboard/lang/sr.js create mode 100644 sources/plugins/clipboard/lang/sv.js create mode 100644 sources/plugins/clipboard/lang/th.js create mode 100644 sources/plugins/clipboard/lang/tr.js create mode 100644 sources/plugins/clipboard/lang/tt.js create mode 100644 sources/plugins/clipboard/lang/ug.js create mode 100644 sources/plugins/clipboard/lang/uk.js create mode 100644 sources/plugins/clipboard/lang/vi.js create mode 100644 sources/plugins/clipboard/lang/zh-cn.js create mode 100644 sources/plugins/clipboard/lang/zh.js create mode 100644 sources/plugins/clipboard/plugin.js create mode 100644 sources/plugins/colorbutton/icons/bgcolor.png create mode 100644 sources/plugins/colorbutton/icons/hidpi/bgcolor.png create mode 100644 sources/plugins/colorbutton/icons/hidpi/textcolor.png create mode 100644 sources/plugins/colorbutton/icons/textcolor.png create mode 100644 sources/plugins/colorbutton/lang/af.js create mode 100644 sources/plugins/colorbutton/lang/ar.js create mode 100644 sources/plugins/colorbutton/lang/bg.js create mode 100644 sources/plugins/colorbutton/lang/bn.js create mode 100644 sources/plugins/colorbutton/lang/bs.js create mode 100644 sources/plugins/colorbutton/lang/ca.js create mode 100644 sources/plugins/colorbutton/lang/cs.js create mode 100644 sources/plugins/colorbutton/lang/cy.js create mode 100644 sources/plugins/colorbutton/lang/da.js create mode 100644 sources/plugins/colorbutton/lang/de.js create mode 100644 sources/plugins/colorbutton/lang/el.js create mode 100644 sources/plugins/colorbutton/lang/en-au.js create mode 100644 sources/plugins/colorbutton/lang/en-ca.js create mode 100644 sources/plugins/colorbutton/lang/en-gb.js create mode 100644 sources/plugins/colorbutton/lang/en.js create mode 100644 sources/plugins/colorbutton/lang/eo.js create mode 100644 sources/plugins/colorbutton/lang/es.js create mode 100644 sources/plugins/colorbutton/lang/et.js create mode 100644 sources/plugins/colorbutton/lang/eu.js create mode 100644 sources/plugins/colorbutton/lang/fa.js create mode 100644 sources/plugins/colorbutton/lang/fi.js create mode 100644 sources/plugins/colorbutton/lang/fo.js create mode 100644 sources/plugins/colorbutton/lang/fr-ca.js create mode 100644 sources/plugins/colorbutton/lang/fr.js create mode 100644 sources/plugins/colorbutton/lang/gl.js create mode 100644 sources/plugins/colorbutton/lang/gu.js create mode 100644 sources/plugins/colorbutton/lang/he.js create mode 100644 sources/plugins/colorbutton/lang/hi.js create mode 100644 sources/plugins/colorbutton/lang/hr.js create mode 100644 sources/plugins/colorbutton/lang/hu.js create mode 100644 sources/plugins/colorbutton/lang/id.js create mode 100644 sources/plugins/colorbutton/lang/is.js create mode 100644 sources/plugins/colorbutton/lang/it.js create mode 100644 sources/plugins/colorbutton/lang/ja.js create mode 100644 sources/plugins/colorbutton/lang/ka.js create mode 100644 sources/plugins/colorbutton/lang/km.js create mode 100644 sources/plugins/colorbutton/lang/ko.js create mode 100644 sources/plugins/colorbutton/lang/ku.js create mode 100644 sources/plugins/colorbutton/lang/lt.js create mode 100644 sources/plugins/colorbutton/lang/lv.js create mode 100644 sources/plugins/colorbutton/lang/mk.js create mode 100644 sources/plugins/colorbutton/lang/mn.js create mode 100644 sources/plugins/colorbutton/lang/ms.js create mode 100644 sources/plugins/colorbutton/lang/nb.js create mode 100644 sources/plugins/colorbutton/lang/nl.js create mode 100644 sources/plugins/colorbutton/lang/no.js create mode 100644 sources/plugins/colorbutton/lang/pl.js create mode 100644 sources/plugins/colorbutton/lang/pt-br.js create mode 100644 sources/plugins/colorbutton/lang/pt.js create mode 100644 sources/plugins/colorbutton/lang/ro.js create mode 100644 sources/plugins/colorbutton/lang/ru.js create mode 100644 sources/plugins/colorbutton/lang/si.js create mode 100644 sources/plugins/colorbutton/lang/sk.js create mode 100644 sources/plugins/colorbutton/lang/sl.js create mode 100644 sources/plugins/colorbutton/lang/sq.js create mode 100644 sources/plugins/colorbutton/lang/sr-latn.js create mode 100644 sources/plugins/colorbutton/lang/sr.js create mode 100644 sources/plugins/colorbutton/lang/sv.js create mode 100644 sources/plugins/colorbutton/lang/th.js create mode 100644 sources/plugins/colorbutton/lang/tr.js create mode 100644 sources/plugins/colorbutton/lang/tt.js create mode 100644 sources/plugins/colorbutton/lang/ug.js create mode 100644 sources/plugins/colorbutton/lang/uk.js create mode 100644 sources/plugins/colorbutton/lang/vi.js create mode 100644 sources/plugins/colorbutton/lang/zh-cn.js create mode 100644 sources/plugins/colorbutton/lang/zh.js create mode 100644 sources/plugins/colorbutton/plugin.js create mode 100644 sources/plugins/colordialog/dialogs/colordialog.js create mode 100644 sources/plugins/colordialog/lang/af.js create mode 100644 sources/plugins/colordialog/lang/ar.js create mode 100644 sources/plugins/colordialog/lang/bg.js create mode 100644 sources/plugins/colordialog/lang/bn.js create mode 100644 sources/plugins/colordialog/lang/bs.js create mode 100644 sources/plugins/colordialog/lang/ca.js create mode 100644 sources/plugins/colordialog/lang/cs.js create mode 100644 sources/plugins/colordialog/lang/cy.js create mode 100644 sources/plugins/colordialog/lang/da.js create mode 100644 sources/plugins/colordialog/lang/de.js create mode 100644 sources/plugins/colordialog/lang/el.js create mode 100644 sources/plugins/colordialog/lang/en-au.js create mode 100644 sources/plugins/colordialog/lang/en-ca.js create mode 100644 sources/plugins/colordialog/lang/en-gb.js create mode 100644 sources/plugins/colordialog/lang/en.js create mode 100644 sources/plugins/colordialog/lang/eo.js create mode 100644 sources/plugins/colordialog/lang/es.js create mode 100644 sources/plugins/colordialog/lang/et.js create mode 100644 sources/plugins/colordialog/lang/eu.js create mode 100644 sources/plugins/colordialog/lang/fa.js create mode 100644 sources/plugins/colordialog/lang/fi.js create mode 100644 sources/plugins/colordialog/lang/fo.js create mode 100644 sources/plugins/colordialog/lang/fr-ca.js create mode 100644 sources/plugins/colordialog/lang/fr.js create mode 100644 sources/plugins/colordialog/lang/gl.js create mode 100644 sources/plugins/colordialog/lang/gu.js create mode 100644 sources/plugins/colordialog/lang/he.js create mode 100644 sources/plugins/colordialog/lang/hi.js create mode 100644 sources/plugins/colordialog/lang/hr.js create mode 100644 sources/plugins/colordialog/lang/hu.js create mode 100644 sources/plugins/colordialog/lang/id.js create mode 100644 sources/plugins/colordialog/lang/is.js create mode 100644 sources/plugins/colordialog/lang/it.js create mode 100644 sources/plugins/colordialog/lang/ja.js create mode 100644 sources/plugins/colordialog/lang/ka.js create mode 100644 sources/plugins/colordialog/lang/km.js create mode 100644 sources/plugins/colordialog/lang/ko.js create mode 100644 sources/plugins/colordialog/lang/ku.js create mode 100644 sources/plugins/colordialog/lang/lt.js create mode 100644 sources/plugins/colordialog/lang/lv.js create mode 100644 sources/plugins/colordialog/lang/mk.js create mode 100644 sources/plugins/colordialog/lang/mn.js create mode 100644 sources/plugins/colordialog/lang/ms.js create mode 100644 sources/plugins/colordialog/lang/nb.js create mode 100644 sources/plugins/colordialog/lang/nl.js create mode 100644 sources/plugins/colordialog/lang/no.js create mode 100644 sources/plugins/colordialog/lang/pl.js create mode 100644 sources/plugins/colordialog/lang/pt-br.js create mode 100644 sources/plugins/colordialog/lang/pt.js create mode 100644 sources/plugins/colordialog/lang/ro.js create mode 100644 sources/plugins/colordialog/lang/ru.js create mode 100644 sources/plugins/colordialog/lang/si.js create mode 100644 sources/plugins/colordialog/lang/sk.js create mode 100644 sources/plugins/colordialog/lang/sl.js create mode 100644 sources/plugins/colordialog/lang/sq.js create mode 100644 sources/plugins/colordialog/lang/sr-latn.js create mode 100644 sources/plugins/colordialog/lang/sr.js create mode 100644 sources/plugins/colordialog/lang/sv.js create mode 100644 sources/plugins/colordialog/lang/th.js create mode 100644 sources/plugins/colordialog/lang/tr.js create mode 100644 sources/plugins/colordialog/lang/tt.js create mode 100644 sources/plugins/colordialog/lang/ug.js create mode 100644 sources/plugins/colordialog/lang/uk.js create mode 100644 sources/plugins/colordialog/lang/vi.js create mode 100644 sources/plugins/colordialog/lang/zh-cn.js create mode 100644 sources/plugins/colordialog/lang/zh.js create mode 100644 sources/plugins/colordialog/plugin.js create mode 100644 sources/plugins/contextmenu/lang/af.js create mode 100644 sources/plugins/contextmenu/lang/ar.js create mode 100644 sources/plugins/contextmenu/lang/bg.js create mode 100644 sources/plugins/contextmenu/lang/bn.js create mode 100644 sources/plugins/contextmenu/lang/bs.js create mode 100644 sources/plugins/contextmenu/lang/ca.js create mode 100644 sources/plugins/contextmenu/lang/cs.js create mode 100644 sources/plugins/contextmenu/lang/cy.js create mode 100644 sources/plugins/contextmenu/lang/da.js create mode 100644 sources/plugins/contextmenu/lang/de.js create mode 100644 sources/plugins/contextmenu/lang/el.js create mode 100644 sources/plugins/contextmenu/lang/en-au.js create mode 100644 sources/plugins/contextmenu/lang/en-ca.js create mode 100644 sources/plugins/contextmenu/lang/en-gb.js create mode 100644 sources/plugins/contextmenu/lang/en.js create mode 100644 sources/plugins/contextmenu/lang/eo.js create mode 100644 sources/plugins/contextmenu/lang/es.js create mode 100644 sources/plugins/contextmenu/lang/et.js create mode 100644 sources/plugins/contextmenu/lang/eu.js create mode 100644 sources/plugins/contextmenu/lang/fa.js create mode 100644 sources/plugins/contextmenu/lang/fi.js create mode 100644 sources/plugins/contextmenu/lang/fo.js create mode 100644 sources/plugins/contextmenu/lang/fr-ca.js create mode 100644 sources/plugins/contextmenu/lang/fr.js create mode 100644 sources/plugins/contextmenu/lang/gl.js create mode 100644 sources/plugins/contextmenu/lang/gu.js create mode 100644 sources/plugins/contextmenu/lang/he.js create mode 100644 sources/plugins/contextmenu/lang/hi.js create mode 100644 sources/plugins/contextmenu/lang/hr.js create mode 100644 sources/plugins/contextmenu/lang/hu.js create mode 100644 sources/plugins/contextmenu/lang/id.js create mode 100644 sources/plugins/contextmenu/lang/is.js create mode 100644 sources/plugins/contextmenu/lang/it.js create mode 100644 sources/plugins/contextmenu/lang/ja.js create mode 100644 sources/plugins/contextmenu/lang/ka.js create mode 100644 sources/plugins/contextmenu/lang/km.js create mode 100644 sources/plugins/contextmenu/lang/ko.js create mode 100644 sources/plugins/contextmenu/lang/ku.js create mode 100644 sources/plugins/contextmenu/lang/lt.js create mode 100644 sources/plugins/contextmenu/lang/lv.js create mode 100644 sources/plugins/contextmenu/lang/mk.js create mode 100644 sources/plugins/contextmenu/lang/mn.js create mode 100644 sources/plugins/contextmenu/lang/ms.js create mode 100644 sources/plugins/contextmenu/lang/nb.js create mode 100644 sources/plugins/contextmenu/lang/nl.js create mode 100644 sources/plugins/contextmenu/lang/no.js create mode 100644 sources/plugins/contextmenu/lang/pl.js create mode 100644 sources/plugins/contextmenu/lang/pt-br.js create mode 100644 sources/plugins/contextmenu/lang/pt.js create mode 100644 sources/plugins/contextmenu/lang/ro.js create mode 100644 sources/plugins/contextmenu/lang/ru.js create mode 100644 sources/plugins/contextmenu/lang/si.js create mode 100644 sources/plugins/contextmenu/lang/sk.js create mode 100644 sources/plugins/contextmenu/lang/sl.js create mode 100644 sources/plugins/contextmenu/lang/sq.js create mode 100644 sources/plugins/contextmenu/lang/sr-latn.js create mode 100644 sources/plugins/contextmenu/lang/sr.js create mode 100644 sources/plugins/contextmenu/lang/sv.js create mode 100644 sources/plugins/contextmenu/lang/th.js create mode 100644 sources/plugins/contextmenu/lang/tr.js create mode 100644 sources/plugins/contextmenu/lang/tt.js create mode 100644 sources/plugins/contextmenu/lang/ug.js create mode 100644 sources/plugins/contextmenu/lang/uk.js create mode 100644 sources/plugins/contextmenu/lang/vi.js create mode 100644 sources/plugins/contextmenu/lang/zh-cn.js create mode 100644 sources/plugins/contextmenu/lang/zh.js create mode 100644 sources/plugins/contextmenu/plugin.js create mode 100644 sources/plugins/dialog/dialogDefinition.js create mode 100644 sources/plugins/dialog/plugin.js create mode 100644 sources/plugins/dialog/samples/assets/my_dialog.js create mode 100644 sources/plugins/dialog/samples/dialog.html create mode 100644 sources/plugins/dialogadvtab/plugin.js create mode 100644 sources/plugins/dialogui/plugin.js create mode 100644 sources/plugins/div/dialogs/div.js create mode 100644 sources/plugins/div/icons/creatediv.png create mode 100644 sources/plugins/div/icons/hidpi/creatediv.png create mode 100644 sources/plugins/div/lang/af.js create mode 100644 sources/plugins/div/lang/ar.js create mode 100644 sources/plugins/div/lang/bg.js create mode 100644 sources/plugins/div/lang/bn.js create mode 100644 sources/plugins/div/lang/bs.js create mode 100644 sources/plugins/div/lang/ca.js create mode 100644 sources/plugins/div/lang/cs.js create mode 100644 sources/plugins/div/lang/cy.js create mode 100644 sources/plugins/div/lang/da.js create mode 100644 sources/plugins/div/lang/de.js create mode 100644 sources/plugins/div/lang/el.js create mode 100644 sources/plugins/div/lang/en-au.js create mode 100644 sources/plugins/div/lang/en-ca.js create mode 100644 sources/plugins/div/lang/en-gb.js create mode 100644 sources/plugins/div/lang/en.js create mode 100644 sources/plugins/div/lang/eo.js create mode 100644 sources/plugins/div/lang/es.js create mode 100644 sources/plugins/div/lang/et.js create mode 100644 sources/plugins/div/lang/eu.js create mode 100644 sources/plugins/div/lang/fa.js create mode 100644 sources/plugins/div/lang/fi.js create mode 100644 sources/plugins/div/lang/fo.js create mode 100644 sources/plugins/div/lang/fr-ca.js create mode 100644 sources/plugins/div/lang/fr.js create mode 100644 sources/plugins/div/lang/gl.js create mode 100644 sources/plugins/div/lang/gu.js create mode 100644 sources/plugins/div/lang/he.js create mode 100644 sources/plugins/div/lang/hi.js create mode 100644 sources/plugins/div/lang/hr.js create mode 100644 sources/plugins/div/lang/hu.js create mode 100644 sources/plugins/div/lang/id.js create mode 100644 sources/plugins/div/lang/is.js create mode 100644 sources/plugins/div/lang/it.js create mode 100644 sources/plugins/div/lang/ja.js create mode 100644 sources/plugins/div/lang/ka.js create mode 100644 sources/plugins/div/lang/km.js create mode 100644 sources/plugins/div/lang/ko.js create mode 100644 sources/plugins/div/lang/ku.js create mode 100644 sources/plugins/div/lang/lt.js create mode 100644 sources/plugins/div/lang/lv.js create mode 100644 sources/plugins/div/lang/mk.js create mode 100644 sources/plugins/div/lang/mn.js create mode 100644 sources/plugins/div/lang/ms.js create mode 100644 sources/plugins/div/lang/nb.js create mode 100644 sources/plugins/div/lang/nl.js create mode 100644 sources/plugins/div/lang/no.js create mode 100644 sources/plugins/div/lang/pl.js create mode 100644 sources/plugins/div/lang/pt-br.js create mode 100644 sources/plugins/div/lang/pt.js create mode 100644 sources/plugins/div/lang/ro.js create mode 100644 sources/plugins/div/lang/ru.js create mode 100644 sources/plugins/div/lang/si.js create mode 100644 sources/plugins/div/lang/sk.js create mode 100644 sources/plugins/div/lang/sl.js create mode 100644 sources/plugins/div/lang/sq.js create mode 100644 sources/plugins/div/lang/sr-latn.js create mode 100644 sources/plugins/div/lang/sr.js create mode 100644 sources/plugins/div/lang/sv.js create mode 100644 sources/plugins/div/lang/th.js create mode 100644 sources/plugins/div/lang/tr.js create mode 100644 sources/plugins/div/lang/tt.js create mode 100644 sources/plugins/div/lang/ug.js create mode 100644 sources/plugins/div/lang/uk.js create mode 100644 sources/plugins/div/lang/vi.js create mode 100644 sources/plugins/div/lang/zh-cn.js create mode 100644 sources/plugins/div/lang/zh.js create mode 100644 sources/plugins/div/plugin.js create mode 100644 sources/plugins/elementspath/lang/af.js create mode 100644 sources/plugins/elementspath/lang/ar.js create mode 100644 sources/plugins/elementspath/lang/bg.js create mode 100644 sources/plugins/elementspath/lang/bn.js create mode 100644 sources/plugins/elementspath/lang/bs.js create mode 100644 sources/plugins/elementspath/lang/ca.js create mode 100644 sources/plugins/elementspath/lang/cs.js create mode 100644 sources/plugins/elementspath/lang/cy.js create mode 100644 sources/plugins/elementspath/lang/da.js create mode 100644 sources/plugins/elementspath/lang/de.js create mode 100644 sources/plugins/elementspath/lang/el.js create mode 100644 sources/plugins/elementspath/lang/en-au.js create mode 100644 sources/plugins/elementspath/lang/en-ca.js create mode 100644 sources/plugins/elementspath/lang/en-gb.js create mode 100644 sources/plugins/elementspath/lang/en.js create mode 100644 sources/plugins/elementspath/lang/eo.js create mode 100644 sources/plugins/elementspath/lang/es.js create mode 100644 sources/plugins/elementspath/lang/et.js create mode 100644 sources/plugins/elementspath/lang/eu.js create mode 100644 sources/plugins/elementspath/lang/fa.js create mode 100644 sources/plugins/elementspath/lang/fi.js create mode 100644 sources/plugins/elementspath/lang/fo.js create mode 100644 sources/plugins/elementspath/lang/fr-ca.js create mode 100644 sources/plugins/elementspath/lang/fr.js create mode 100644 sources/plugins/elementspath/lang/gl.js create mode 100644 sources/plugins/elementspath/lang/gu.js create mode 100644 sources/plugins/elementspath/lang/he.js create mode 100644 sources/plugins/elementspath/lang/hi.js create mode 100644 sources/plugins/elementspath/lang/hr.js create mode 100644 sources/plugins/elementspath/lang/hu.js create mode 100644 sources/plugins/elementspath/lang/is.js create mode 100644 sources/plugins/elementspath/lang/it.js create mode 100644 sources/plugins/elementspath/lang/ja.js create mode 100644 sources/plugins/elementspath/lang/ka.js create mode 100644 sources/plugins/elementspath/lang/km.js create mode 100644 sources/plugins/elementspath/lang/ko.js create mode 100644 sources/plugins/elementspath/lang/ku.js create mode 100644 sources/plugins/elementspath/lang/lt.js create mode 100644 sources/plugins/elementspath/lang/lv.js create mode 100644 sources/plugins/elementspath/lang/mk.js create mode 100644 sources/plugins/elementspath/lang/mn.js create mode 100644 sources/plugins/elementspath/lang/ms.js create mode 100644 sources/plugins/elementspath/lang/nb.js create mode 100644 sources/plugins/elementspath/lang/nl.js create mode 100644 sources/plugins/elementspath/lang/no.js create mode 100644 sources/plugins/elementspath/lang/pl.js create mode 100644 sources/plugins/elementspath/lang/pt-br.js create mode 100644 sources/plugins/elementspath/lang/pt.js create mode 100644 sources/plugins/elementspath/lang/ro.js create mode 100644 sources/plugins/elementspath/lang/ru.js create mode 100644 sources/plugins/elementspath/lang/si.js create mode 100644 sources/plugins/elementspath/lang/sk.js create mode 100644 sources/plugins/elementspath/lang/sl.js create mode 100644 sources/plugins/elementspath/lang/sq.js create mode 100644 sources/plugins/elementspath/lang/sr-latn.js create mode 100644 sources/plugins/elementspath/lang/sr.js create mode 100644 sources/plugins/elementspath/lang/sv.js create mode 100644 sources/plugins/elementspath/lang/th.js create mode 100644 sources/plugins/elementspath/lang/tr.js create mode 100644 sources/plugins/elementspath/lang/tt.js create mode 100644 sources/plugins/elementspath/lang/ug.js create mode 100644 sources/plugins/elementspath/lang/uk.js create mode 100644 sources/plugins/elementspath/lang/vi.js create mode 100644 sources/plugins/elementspath/lang/zh-cn.js create mode 100644 sources/plugins/elementspath/lang/zh.js create mode 100644 sources/plugins/elementspath/plugin.js create mode 100644 sources/plugins/enterkey/plugin.js create mode 100644 sources/plugins/enterkey/samples/enterkey.html create mode 100644 sources/plugins/entities/plugin.js create mode 100644 sources/plugins/fakeobjects/lang/af.js create mode 100644 sources/plugins/fakeobjects/lang/ar.js create mode 100644 sources/plugins/fakeobjects/lang/bg.js create mode 100644 sources/plugins/fakeobjects/lang/bn.js create mode 100644 sources/plugins/fakeobjects/lang/bs.js create mode 100644 sources/plugins/fakeobjects/lang/ca.js create mode 100644 sources/plugins/fakeobjects/lang/cs.js create mode 100644 sources/plugins/fakeobjects/lang/cy.js create mode 100644 sources/plugins/fakeobjects/lang/da.js create mode 100644 sources/plugins/fakeobjects/lang/de.js create mode 100644 sources/plugins/fakeobjects/lang/el.js create mode 100644 sources/plugins/fakeobjects/lang/en-au.js create mode 100644 sources/plugins/fakeobjects/lang/en-ca.js create mode 100644 sources/plugins/fakeobjects/lang/en-gb.js create mode 100644 sources/plugins/fakeobjects/lang/en.js create mode 100644 sources/plugins/fakeobjects/lang/eo.js create mode 100644 sources/plugins/fakeobjects/lang/es.js create mode 100644 sources/plugins/fakeobjects/lang/et.js create mode 100644 sources/plugins/fakeobjects/lang/eu.js create mode 100644 sources/plugins/fakeobjects/lang/fa.js create mode 100644 sources/plugins/fakeobjects/lang/fi.js create mode 100644 sources/plugins/fakeobjects/lang/fo.js create mode 100644 sources/plugins/fakeobjects/lang/fr-ca.js create mode 100644 sources/plugins/fakeobjects/lang/fr.js create mode 100644 sources/plugins/fakeobjects/lang/gl.js create mode 100644 sources/plugins/fakeobjects/lang/gu.js create mode 100644 sources/plugins/fakeobjects/lang/he.js create mode 100644 sources/plugins/fakeobjects/lang/hi.js create mode 100644 sources/plugins/fakeobjects/lang/hr.js create mode 100644 sources/plugins/fakeobjects/lang/hu.js create mode 100644 sources/plugins/fakeobjects/lang/id.js create mode 100644 sources/plugins/fakeobjects/lang/is.js create mode 100644 sources/plugins/fakeobjects/lang/it.js create mode 100644 sources/plugins/fakeobjects/lang/ja.js create mode 100644 sources/plugins/fakeobjects/lang/ka.js create mode 100644 sources/plugins/fakeobjects/lang/km.js create mode 100644 sources/plugins/fakeobjects/lang/ko.js create mode 100644 sources/plugins/fakeobjects/lang/ku.js create mode 100644 sources/plugins/fakeobjects/lang/lt.js create mode 100644 sources/plugins/fakeobjects/lang/lv.js create mode 100644 sources/plugins/fakeobjects/lang/mk.js create mode 100644 sources/plugins/fakeobjects/lang/mn.js create mode 100644 sources/plugins/fakeobjects/lang/ms.js create mode 100644 sources/plugins/fakeobjects/lang/nb.js create mode 100644 sources/plugins/fakeobjects/lang/nl.js create mode 100644 sources/plugins/fakeobjects/lang/no.js create mode 100644 sources/plugins/fakeobjects/lang/pl.js create mode 100644 sources/plugins/fakeobjects/lang/pt-br.js create mode 100644 sources/plugins/fakeobjects/lang/pt.js create mode 100644 sources/plugins/fakeobjects/lang/ro.js create mode 100644 sources/plugins/fakeobjects/lang/ru.js create mode 100644 sources/plugins/fakeobjects/lang/si.js create mode 100644 sources/plugins/fakeobjects/lang/sk.js create mode 100644 sources/plugins/fakeobjects/lang/sl.js create mode 100644 sources/plugins/fakeobjects/lang/sq.js create mode 100644 sources/plugins/fakeobjects/lang/sr-latn.js create mode 100644 sources/plugins/fakeobjects/lang/sr.js create mode 100644 sources/plugins/fakeobjects/lang/sv.js create mode 100644 sources/plugins/fakeobjects/lang/th.js create mode 100644 sources/plugins/fakeobjects/lang/tr.js create mode 100644 sources/plugins/fakeobjects/lang/tt.js create mode 100644 sources/plugins/fakeobjects/lang/ug.js create mode 100644 sources/plugins/fakeobjects/lang/uk.js create mode 100644 sources/plugins/fakeobjects/lang/vi.js create mode 100644 sources/plugins/fakeobjects/lang/zh-cn.js create mode 100644 sources/plugins/fakeobjects/lang/zh.js create mode 100644 sources/plugins/fakeobjects/plugin.js create mode 100644 sources/plugins/filebrowser/plugin.js create mode 100644 sources/plugins/find/dialogs/find.js create mode 100644 sources/plugins/find/icons/find-rtl.png create mode 100644 sources/plugins/find/icons/find.png create mode 100644 sources/plugins/find/icons/hidpi/find-rtl.png create mode 100644 sources/plugins/find/icons/hidpi/find.png create mode 100644 sources/plugins/find/icons/hidpi/replace.png create mode 100644 sources/plugins/find/icons/replace.png create mode 100644 sources/plugins/find/lang/af.js create mode 100644 sources/plugins/find/lang/ar.js create mode 100644 sources/plugins/find/lang/bg.js create mode 100644 sources/plugins/find/lang/bn.js create mode 100644 sources/plugins/find/lang/bs.js create mode 100644 sources/plugins/find/lang/ca.js create mode 100644 sources/plugins/find/lang/cs.js create mode 100644 sources/plugins/find/lang/cy.js create mode 100644 sources/plugins/find/lang/da.js create mode 100644 sources/plugins/find/lang/de.js create mode 100644 sources/plugins/find/lang/el.js create mode 100644 sources/plugins/find/lang/en-au.js create mode 100644 sources/plugins/find/lang/en-ca.js create mode 100644 sources/plugins/find/lang/en-gb.js create mode 100644 sources/plugins/find/lang/en.js create mode 100644 sources/plugins/find/lang/eo.js create mode 100644 sources/plugins/find/lang/es.js create mode 100644 sources/plugins/find/lang/et.js create mode 100644 sources/plugins/find/lang/eu.js create mode 100644 sources/plugins/find/lang/fa.js create mode 100644 sources/plugins/find/lang/fi.js create mode 100644 sources/plugins/find/lang/fo.js create mode 100644 sources/plugins/find/lang/fr-ca.js create mode 100644 sources/plugins/find/lang/fr.js create mode 100644 sources/plugins/find/lang/gl.js create mode 100644 sources/plugins/find/lang/gu.js create mode 100644 sources/plugins/find/lang/he.js create mode 100644 sources/plugins/find/lang/hi.js create mode 100644 sources/plugins/find/lang/hr.js create mode 100644 sources/plugins/find/lang/hu.js create mode 100644 sources/plugins/find/lang/id.js create mode 100644 sources/plugins/find/lang/is.js create mode 100644 sources/plugins/find/lang/it.js create mode 100644 sources/plugins/find/lang/ja.js create mode 100644 sources/plugins/find/lang/ka.js create mode 100644 sources/plugins/find/lang/km.js create mode 100644 sources/plugins/find/lang/ko.js create mode 100644 sources/plugins/find/lang/ku.js create mode 100644 sources/plugins/find/lang/lt.js create mode 100644 sources/plugins/find/lang/lv.js create mode 100644 sources/plugins/find/lang/mk.js create mode 100644 sources/plugins/find/lang/mn.js create mode 100644 sources/plugins/find/lang/ms.js create mode 100644 sources/plugins/find/lang/nb.js create mode 100644 sources/plugins/find/lang/nl.js create mode 100644 sources/plugins/find/lang/no.js create mode 100644 sources/plugins/find/lang/pl.js create mode 100644 sources/plugins/find/lang/pt-br.js create mode 100644 sources/plugins/find/lang/pt.js create mode 100644 sources/plugins/find/lang/ro.js create mode 100644 sources/plugins/find/lang/ru.js create mode 100644 sources/plugins/find/lang/si.js create mode 100644 sources/plugins/find/lang/sk.js create mode 100644 sources/plugins/find/lang/sl.js create mode 100644 sources/plugins/find/lang/sq.js create mode 100644 sources/plugins/find/lang/sr-latn.js create mode 100644 sources/plugins/find/lang/sr.js create mode 100644 sources/plugins/find/lang/sv.js create mode 100644 sources/plugins/find/lang/th.js create mode 100644 sources/plugins/find/lang/tr.js create mode 100644 sources/plugins/find/lang/tt.js create mode 100644 sources/plugins/find/lang/ug.js create mode 100644 sources/plugins/find/lang/uk.js create mode 100644 sources/plugins/find/lang/vi.js create mode 100644 sources/plugins/find/lang/zh-cn.js create mode 100644 sources/plugins/find/lang/zh.js create mode 100644 sources/plugins/find/plugin.js create mode 100644 sources/plugins/flash/dialogs/flash.js create mode 100644 sources/plugins/flash/icons/flash.png create mode 100644 sources/plugins/flash/icons/hidpi/flash.png create mode 100644 sources/plugins/flash/images/placeholder.png create mode 100644 sources/plugins/flash/lang/af.js create mode 100644 sources/plugins/flash/lang/ar.js create mode 100644 sources/plugins/flash/lang/bg.js create mode 100644 sources/plugins/flash/lang/bn.js create mode 100644 sources/plugins/flash/lang/bs.js create mode 100644 sources/plugins/flash/lang/ca.js create mode 100644 sources/plugins/flash/lang/cs.js create mode 100644 sources/plugins/flash/lang/cy.js create mode 100644 sources/plugins/flash/lang/da.js create mode 100644 sources/plugins/flash/lang/de.js create mode 100644 sources/plugins/flash/lang/el.js create mode 100644 sources/plugins/flash/lang/en-au.js create mode 100644 sources/plugins/flash/lang/en-ca.js create mode 100644 sources/plugins/flash/lang/en-gb.js create mode 100644 sources/plugins/flash/lang/en.js create mode 100644 sources/plugins/flash/lang/eo.js create mode 100644 sources/plugins/flash/lang/es.js create mode 100644 sources/plugins/flash/lang/et.js create mode 100644 sources/plugins/flash/lang/eu.js create mode 100644 sources/plugins/flash/lang/fa.js create mode 100644 sources/plugins/flash/lang/fi.js create mode 100644 sources/plugins/flash/lang/fo.js create mode 100644 sources/plugins/flash/lang/fr-ca.js create mode 100644 sources/plugins/flash/lang/fr.js create mode 100644 sources/plugins/flash/lang/gl.js create mode 100644 sources/plugins/flash/lang/gu.js create mode 100644 sources/plugins/flash/lang/he.js create mode 100644 sources/plugins/flash/lang/hi.js create mode 100644 sources/plugins/flash/lang/hr.js create mode 100644 sources/plugins/flash/lang/hu.js create mode 100644 sources/plugins/flash/lang/id.js create mode 100644 sources/plugins/flash/lang/is.js create mode 100644 sources/plugins/flash/lang/it.js create mode 100644 sources/plugins/flash/lang/ja.js create mode 100644 sources/plugins/flash/lang/ka.js create mode 100644 sources/plugins/flash/lang/km.js create mode 100644 sources/plugins/flash/lang/ko.js create mode 100644 sources/plugins/flash/lang/ku.js create mode 100644 sources/plugins/flash/lang/lt.js create mode 100644 sources/plugins/flash/lang/lv.js create mode 100644 sources/plugins/flash/lang/mk.js create mode 100644 sources/plugins/flash/lang/mn.js create mode 100644 sources/plugins/flash/lang/ms.js create mode 100644 sources/plugins/flash/lang/nb.js create mode 100644 sources/plugins/flash/lang/nl.js create mode 100644 sources/plugins/flash/lang/no.js create mode 100644 sources/plugins/flash/lang/pl.js create mode 100644 sources/plugins/flash/lang/pt-br.js create mode 100644 sources/plugins/flash/lang/pt.js create mode 100644 sources/plugins/flash/lang/ro.js create mode 100644 sources/plugins/flash/lang/ru.js create mode 100644 sources/plugins/flash/lang/si.js create mode 100644 sources/plugins/flash/lang/sk.js create mode 100644 sources/plugins/flash/lang/sl.js create mode 100644 sources/plugins/flash/lang/sq.js create mode 100644 sources/plugins/flash/lang/sr-latn.js create mode 100644 sources/plugins/flash/lang/sr.js create mode 100644 sources/plugins/flash/lang/sv.js create mode 100644 sources/plugins/flash/lang/th.js create mode 100644 sources/plugins/flash/lang/tr.js create mode 100644 sources/plugins/flash/lang/tt.js create mode 100644 sources/plugins/flash/lang/ug.js create mode 100644 sources/plugins/flash/lang/uk.js create mode 100644 sources/plugins/flash/lang/vi.js create mode 100644 sources/plugins/flash/lang/zh-cn.js create mode 100644 sources/plugins/flash/lang/zh.js create mode 100644 sources/plugins/flash/plugin.js create mode 100644 sources/plugins/floatingspace/plugin.js create mode 100644 sources/plugins/floatpanel/plugin.js create mode 100644 sources/plugins/font/lang/af.js create mode 100644 sources/plugins/font/lang/ar.js create mode 100644 sources/plugins/font/lang/bg.js create mode 100644 sources/plugins/font/lang/bn.js create mode 100644 sources/plugins/font/lang/bs.js create mode 100644 sources/plugins/font/lang/ca.js create mode 100644 sources/plugins/font/lang/cs.js create mode 100644 sources/plugins/font/lang/cy.js create mode 100644 sources/plugins/font/lang/da.js create mode 100644 sources/plugins/font/lang/de.js create mode 100644 sources/plugins/font/lang/el.js create mode 100644 sources/plugins/font/lang/en-au.js create mode 100644 sources/plugins/font/lang/en-ca.js create mode 100644 sources/plugins/font/lang/en-gb.js create mode 100644 sources/plugins/font/lang/en.js create mode 100644 sources/plugins/font/lang/eo.js create mode 100644 sources/plugins/font/lang/es.js create mode 100644 sources/plugins/font/lang/et.js create mode 100644 sources/plugins/font/lang/eu.js create mode 100644 sources/plugins/font/lang/fa.js create mode 100644 sources/plugins/font/lang/fi.js create mode 100644 sources/plugins/font/lang/fo.js create mode 100644 sources/plugins/font/lang/fr-ca.js create mode 100644 sources/plugins/font/lang/fr.js create mode 100644 sources/plugins/font/lang/gl.js create mode 100644 sources/plugins/font/lang/gu.js create mode 100644 sources/plugins/font/lang/he.js create mode 100644 sources/plugins/font/lang/hi.js create mode 100644 sources/plugins/font/lang/hr.js create mode 100644 sources/plugins/font/lang/hu.js create mode 100644 sources/plugins/font/lang/id.js create mode 100644 sources/plugins/font/lang/is.js create mode 100644 sources/plugins/font/lang/it.js create mode 100644 sources/plugins/font/lang/ja.js create mode 100644 sources/plugins/font/lang/ka.js create mode 100644 sources/plugins/font/lang/km.js create mode 100644 sources/plugins/font/lang/ko.js create mode 100644 sources/plugins/font/lang/ku.js create mode 100644 sources/plugins/font/lang/lt.js create mode 100644 sources/plugins/font/lang/lv.js create mode 100644 sources/plugins/font/lang/mk.js create mode 100644 sources/plugins/font/lang/mn.js create mode 100644 sources/plugins/font/lang/ms.js create mode 100644 sources/plugins/font/lang/nb.js create mode 100644 sources/plugins/font/lang/nl.js create mode 100644 sources/plugins/font/lang/no.js create mode 100644 sources/plugins/font/lang/pl.js create mode 100644 sources/plugins/font/lang/pt-br.js create mode 100644 sources/plugins/font/lang/pt.js create mode 100644 sources/plugins/font/lang/ro.js create mode 100644 sources/plugins/font/lang/ru.js create mode 100644 sources/plugins/font/lang/si.js create mode 100644 sources/plugins/font/lang/sk.js create mode 100644 sources/plugins/font/lang/sl.js create mode 100644 sources/plugins/font/lang/sq.js create mode 100644 sources/plugins/font/lang/sr-latn.js create mode 100644 sources/plugins/font/lang/sr.js create mode 100644 sources/plugins/font/lang/sv.js create mode 100644 sources/plugins/font/lang/th.js create mode 100644 sources/plugins/font/lang/tr.js create mode 100644 sources/plugins/font/lang/tt.js create mode 100644 sources/plugins/font/lang/ug.js create mode 100644 sources/plugins/font/lang/uk.js create mode 100644 sources/plugins/font/lang/vi.js create mode 100644 sources/plugins/font/lang/zh-cn.js create mode 100644 sources/plugins/font/lang/zh.js create mode 100644 sources/plugins/font/plugin.js create mode 100644 sources/plugins/format/lang/af.js create mode 100644 sources/plugins/format/lang/ar.js create mode 100644 sources/plugins/format/lang/bg.js create mode 100644 sources/plugins/format/lang/bn.js create mode 100644 sources/plugins/format/lang/bs.js create mode 100644 sources/plugins/format/lang/ca.js create mode 100644 sources/plugins/format/lang/cs.js create mode 100644 sources/plugins/format/lang/cy.js create mode 100644 sources/plugins/format/lang/da.js create mode 100644 sources/plugins/format/lang/de.js create mode 100644 sources/plugins/format/lang/el.js create mode 100644 sources/plugins/format/lang/en-au.js create mode 100644 sources/plugins/format/lang/en-ca.js create mode 100644 sources/plugins/format/lang/en-gb.js create mode 100644 sources/plugins/format/lang/en.js create mode 100644 sources/plugins/format/lang/eo.js create mode 100644 sources/plugins/format/lang/es.js create mode 100644 sources/plugins/format/lang/et.js create mode 100644 sources/plugins/format/lang/eu.js create mode 100644 sources/plugins/format/lang/fa.js create mode 100644 sources/plugins/format/lang/fi.js create mode 100644 sources/plugins/format/lang/fo.js create mode 100644 sources/plugins/format/lang/fr-ca.js create mode 100644 sources/plugins/format/lang/fr.js create mode 100644 sources/plugins/format/lang/gl.js create mode 100644 sources/plugins/format/lang/gu.js create mode 100644 sources/plugins/format/lang/he.js create mode 100644 sources/plugins/format/lang/hi.js create mode 100644 sources/plugins/format/lang/hr.js create mode 100644 sources/plugins/format/lang/hu.js create mode 100644 sources/plugins/format/lang/id.js create mode 100644 sources/plugins/format/lang/is.js create mode 100644 sources/plugins/format/lang/it.js create mode 100644 sources/plugins/format/lang/ja.js create mode 100644 sources/plugins/format/lang/ka.js create mode 100644 sources/plugins/format/lang/km.js create mode 100644 sources/plugins/format/lang/ko.js create mode 100644 sources/plugins/format/lang/ku.js create mode 100644 sources/plugins/format/lang/lt.js create mode 100644 sources/plugins/format/lang/lv.js create mode 100644 sources/plugins/format/lang/mk.js create mode 100644 sources/plugins/format/lang/mn.js create mode 100644 sources/plugins/format/lang/ms.js create mode 100644 sources/plugins/format/lang/nb.js create mode 100644 sources/plugins/format/lang/nl.js create mode 100644 sources/plugins/format/lang/no.js create mode 100644 sources/plugins/format/lang/pl.js create mode 100644 sources/plugins/format/lang/pt-br.js create mode 100644 sources/plugins/format/lang/pt.js create mode 100644 sources/plugins/format/lang/ro.js create mode 100644 sources/plugins/format/lang/ru.js create mode 100644 sources/plugins/format/lang/si.js create mode 100644 sources/plugins/format/lang/sk.js create mode 100644 sources/plugins/format/lang/sl.js create mode 100644 sources/plugins/format/lang/sq.js create mode 100644 sources/plugins/format/lang/sr-latn.js create mode 100644 sources/plugins/format/lang/sr.js create mode 100644 sources/plugins/format/lang/sv.js create mode 100644 sources/plugins/format/lang/th.js create mode 100644 sources/plugins/format/lang/tr.js create mode 100644 sources/plugins/format/lang/tt.js create mode 100644 sources/plugins/format/lang/ug.js create mode 100644 sources/plugins/format/lang/uk.js create mode 100644 sources/plugins/format/lang/vi.js create mode 100644 sources/plugins/format/lang/zh-cn.js create mode 100644 sources/plugins/format/lang/zh.js create mode 100644 sources/plugins/format/plugin.js create mode 100644 sources/plugins/forms/dialogs/button.js create mode 100644 sources/plugins/forms/dialogs/checkbox.js create mode 100644 sources/plugins/forms/dialogs/form.js create mode 100644 sources/plugins/forms/dialogs/hiddenfield.js create mode 100644 sources/plugins/forms/dialogs/radio.js create mode 100644 sources/plugins/forms/dialogs/select.js create mode 100644 sources/plugins/forms/dialogs/textarea.js create mode 100644 sources/plugins/forms/dialogs/textfield.js create mode 100644 sources/plugins/forms/icons/button.png create mode 100644 sources/plugins/forms/icons/checkbox.png create mode 100644 sources/plugins/forms/icons/form.png create mode 100644 sources/plugins/forms/icons/hiddenfield.png create mode 100644 sources/plugins/forms/icons/hidpi/button.png create mode 100644 sources/plugins/forms/icons/hidpi/checkbox.png create mode 100644 sources/plugins/forms/icons/hidpi/form.png create mode 100644 sources/plugins/forms/icons/hidpi/hiddenfield.png create mode 100644 sources/plugins/forms/icons/hidpi/imagebutton.png create mode 100644 sources/plugins/forms/icons/hidpi/radio.png create mode 100644 sources/plugins/forms/icons/hidpi/select-rtl.png create mode 100644 sources/plugins/forms/icons/hidpi/select.png create mode 100644 sources/plugins/forms/icons/hidpi/textarea-rtl.png create mode 100644 sources/plugins/forms/icons/hidpi/textarea.png create mode 100644 sources/plugins/forms/icons/hidpi/textfield-rtl.png create mode 100644 sources/plugins/forms/icons/hidpi/textfield.png create mode 100644 sources/plugins/forms/icons/imagebutton.png create mode 100644 sources/plugins/forms/icons/radio.png create mode 100644 sources/plugins/forms/icons/select-rtl.png create mode 100644 sources/plugins/forms/icons/select.png create mode 100644 sources/plugins/forms/icons/textarea-rtl.png create mode 100644 sources/plugins/forms/icons/textarea.png create mode 100644 sources/plugins/forms/icons/textfield-rtl.png create mode 100644 sources/plugins/forms/icons/textfield.png create mode 100644 sources/plugins/forms/images/hiddenfield.gif create mode 100644 sources/plugins/forms/lang/af.js create mode 100644 sources/plugins/forms/lang/ar.js create mode 100644 sources/plugins/forms/lang/bg.js create mode 100644 sources/plugins/forms/lang/bn.js create mode 100644 sources/plugins/forms/lang/bs.js create mode 100644 sources/plugins/forms/lang/ca.js create mode 100644 sources/plugins/forms/lang/cs.js create mode 100644 sources/plugins/forms/lang/cy.js create mode 100644 sources/plugins/forms/lang/da.js create mode 100644 sources/plugins/forms/lang/de.js create mode 100644 sources/plugins/forms/lang/el.js create mode 100644 sources/plugins/forms/lang/en-au.js create mode 100644 sources/plugins/forms/lang/en-ca.js create mode 100644 sources/plugins/forms/lang/en-gb.js create mode 100644 sources/plugins/forms/lang/en.js create mode 100644 sources/plugins/forms/lang/eo.js create mode 100644 sources/plugins/forms/lang/es.js create mode 100644 sources/plugins/forms/lang/et.js create mode 100644 sources/plugins/forms/lang/eu.js create mode 100644 sources/plugins/forms/lang/fa.js create mode 100644 sources/plugins/forms/lang/fi.js create mode 100644 sources/plugins/forms/lang/fo.js create mode 100644 sources/plugins/forms/lang/fr-ca.js create mode 100644 sources/plugins/forms/lang/fr.js create mode 100644 sources/plugins/forms/lang/gl.js create mode 100644 sources/plugins/forms/lang/gu.js create mode 100644 sources/plugins/forms/lang/he.js create mode 100644 sources/plugins/forms/lang/hi.js create mode 100644 sources/plugins/forms/lang/hr.js create mode 100644 sources/plugins/forms/lang/hu.js create mode 100644 sources/plugins/forms/lang/id.js create mode 100644 sources/plugins/forms/lang/is.js create mode 100644 sources/plugins/forms/lang/it.js create mode 100644 sources/plugins/forms/lang/ja.js create mode 100644 sources/plugins/forms/lang/ka.js create mode 100644 sources/plugins/forms/lang/km.js create mode 100644 sources/plugins/forms/lang/ko.js create mode 100644 sources/plugins/forms/lang/ku.js create mode 100644 sources/plugins/forms/lang/lt.js create mode 100644 sources/plugins/forms/lang/lv.js create mode 100644 sources/plugins/forms/lang/mk.js create mode 100644 sources/plugins/forms/lang/mn.js create mode 100644 sources/plugins/forms/lang/ms.js create mode 100644 sources/plugins/forms/lang/nb.js create mode 100644 sources/plugins/forms/lang/nl.js create mode 100644 sources/plugins/forms/lang/no.js create mode 100644 sources/plugins/forms/lang/pl.js create mode 100644 sources/plugins/forms/lang/pt-br.js create mode 100644 sources/plugins/forms/lang/pt.js create mode 100644 sources/plugins/forms/lang/ro.js create mode 100644 sources/plugins/forms/lang/ru.js create mode 100644 sources/plugins/forms/lang/si.js create mode 100644 sources/plugins/forms/lang/sk.js create mode 100644 sources/plugins/forms/lang/sl.js create mode 100644 sources/plugins/forms/lang/sq.js create mode 100644 sources/plugins/forms/lang/sr-latn.js create mode 100644 sources/plugins/forms/lang/sr.js create mode 100644 sources/plugins/forms/lang/sv.js create mode 100644 sources/plugins/forms/lang/th.js create mode 100644 sources/plugins/forms/lang/tr.js create mode 100644 sources/plugins/forms/lang/tt.js create mode 100644 sources/plugins/forms/lang/ug.js create mode 100644 sources/plugins/forms/lang/uk.js create mode 100644 sources/plugins/forms/lang/vi.js create mode 100644 sources/plugins/forms/lang/zh-cn.js create mode 100644 sources/plugins/forms/lang/zh.js create mode 100644 sources/plugins/forms/plugin.js create mode 100644 sources/plugins/horizontalrule/icons/hidpi/horizontalrule.png create mode 100644 sources/plugins/horizontalrule/icons/horizontalrule.png create mode 100644 sources/plugins/horizontalrule/lang/af.js create mode 100644 sources/plugins/horizontalrule/lang/ar.js create mode 100644 sources/plugins/horizontalrule/lang/bg.js create mode 100644 sources/plugins/horizontalrule/lang/bn.js create mode 100644 sources/plugins/horizontalrule/lang/bs.js create mode 100644 sources/plugins/horizontalrule/lang/ca.js create mode 100644 sources/plugins/horizontalrule/lang/cs.js create mode 100644 sources/plugins/horizontalrule/lang/cy.js create mode 100644 sources/plugins/horizontalrule/lang/da.js create mode 100644 sources/plugins/horizontalrule/lang/de.js create mode 100644 sources/plugins/horizontalrule/lang/el.js create mode 100644 sources/plugins/horizontalrule/lang/en-au.js create mode 100644 sources/plugins/horizontalrule/lang/en-ca.js create mode 100644 sources/plugins/horizontalrule/lang/en-gb.js create mode 100644 sources/plugins/horizontalrule/lang/en.js create mode 100644 sources/plugins/horizontalrule/lang/eo.js create mode 100644 sources/plugins/horizontalrule/lang/es.js create mode 100644 sources/plugins/horizontalrule/lang/et.js create mode 100644 sources/plugins/horizontalrule/lang/eu.js create mode 100644 sources/plugins/horizontalrule/lang/fa.js create mode 100644 sources/plugins/horizontalrule/lang/fi.js create mode 100644 sources/plugins/horizontalrule/lang/fo.js create mode 100644 sources/plugins/horizontalrule/lang/fr-ca.js create mode 100644 sources/plugins/horizontalrule/lang/fr.js create mode 100644 sources/plugins/horizontalrule/lang/gl.js create mode 100644 sources/plugins/horizontalrule/lang/gu.js create mode 100644 sources/plugins/horizontalrule/lang/he.js create mode 100644 sources/plugins/horizontalrule/lang/hi.js create mode 100644 sources/plugins/horizontalrule/lang/hr.js create mode 100644 sources/plugins/horizontalrule/lang/hu.js create mode 100644 sources/plugins/horizontalrule/lang/id.js create mode 100644 sources/plugins/horizontalrule/lang/is.js create mode 100644 sources/plugins/horizontalrule/lang/it.js create mode 100644 sources/plugins/horizontalrule/lang/ja.js create mode 100644 sources/plugins/horizontalrule/lang/ka.js create mode 100644 sources/plugins/horizontalrule/lang/km.js create mode 100644 sources/plugins/horizontalrule/lang/ko.js create mode 100644 sources/plugins/horizontalrule/lang/ku.js create mode 100644 sources/plugins/horizontalrule/lang/lt.js create mode 100644 sources/plugins/horizontalrule/lang/lv.js create mode 100644 sources/plugins/horizontalrule/lang/mk.js create mode 100644 sources/plugins/horizontalrule/lang/mn.js create mode 100644 sources/plugins/horizontalrule/lang/ms.js create mode 100644 sources/plugins/horizontalrule/lang/nb.js create mode 100644 sources/plugins/horizontalrule/lang/nl.js create mode 100644 sources/plugins/horizontalrule/lang/no.js create mode 100644 sources/plugins/horizontalrule/lang/pl.js create mode 100644 sources/plugins/horizontalrule/lang/pt-br.js create mode 100644 sources/plugins/horizontalrule/lang/pt.js create mode 100644 sources/plugins/horizontalrule/lang/ro.js create mode 100644 sources/plugins/horizontalrule/lang/ru.js create mode 100644 sources/plugins/horizontalrule/lang/si.js create mode 100644 sources/plugins/horizontalrule/lang/sk.js create mode 100644 sources/plugins/horizontalrule/lang/sl.js create mode 100644 sources/plugins/horizontalrule/lang/sq.js create mode 100644 sources/plugins/horizontalrule/lang/sr-latn.js create mode 100644 sources/plugins/horizontalrule/lang/sr.js create mode 100644 sources/plugins/horizontalrule/lang/sv.js create mode 100644 sources/plugins/horizontalrule/lang/th.js create mode 100644 sources/plugins/horizontalrule/lang/tr.js create mode 100644 sources/plugins/horizontalrule/lang/tt.js create mode 100644 sources/plugins/horizontalrule/lang/ug.js create mode 100644 sources/plugins/horizontalrule/lang/uk.js create mode 100644 sources/plugins/horizontalrule/lang/vi.js create mode 100644 sources/plugins/horizontalrule/lang/zh-cn.js create mode 100644 sources/plugins/horizontalrule/lang/zh.js create mode 100644 sources/plugins/horizontalrule/plugin.js create mode 100644 sources/plugins/htmlwriter/plugin.js create mode 100644 sources/plugins/htmlwriter/samples/assets/outputforflash/outputforflash.fla create mode 100644 sources/plugins/htmlwriter/samples/assets/outputforflash/outputforflash.swf create mode 100644 sources/plugins/htmlwriter/samples/assets/outputforflash/swfobject.js create mode 100644 sources/plugins/htmlwriter/samples/outputforflash.html create mode 100644 sources/plugins/htmlwriter/samples/outputhtml.html create mode 100644 sources/plugins/iframe/dialogs/iframe.js create mode 100644 sources/plugins/iframe/icons/hidpi/iframe.png create mode 100644 sources/plugins/iframe/icons/iframe.png create mode 100644 sources/plugins/iframe/images/placeholder.png create mode 100644 sources/plugins/iframe/lang/af.js create mode 100644 sources/plugins/iframe/lang/ar.js create mode 100644 sources/plugins/iframe/lang/bg.js create mode 100644 sources/plugins/iframe/lang/bn.js create mode 100644 sources/plugins/iframe/lang/bs.js create mode 100644 sources/plugins/iframe/lang/ca.js create mode 100644 sources/plugins/iframe/lang/cs.js create mode 100644 sources/plugins/iframe/lang/cy.js create mode 100644 sources/plugins/iframe/lang/da.js create mode 100644 sources/plugins/iframe/lang/de.js create mode 100644 sources/plugins/iframe/lang/el.js create mode 100644 sources/plugins/iframe/lang/en-au.js create mode 100644 sources/plugins/iframe/lang/en-ca.js create mode 100644 sources/plugins/iframe/lang/en-gb.js create mode 100644 sources/plugins/iframe/lang/en.js create mode 100644 sources/plugins/iframe/lang/eo.js create mode 100644 sources/plugins/iframe/lang/es.js create mode 100644 sources/plugins/iframe/lang/et.js create mode 100644 sources/plugins/iframe/lang/eu.js create mode 100644 sources/plugins/iframe/lang/fa.js create mode 100644 sources/plugins/iframe/lang/fi.js create mode 100644 sources/plugins/iframe/lang/fo.js create mode 100644 sources/plugins/iframe/lang/fr-ca.js create mode 100644 sources/plugins/iframe/lang/fr.js create mode 100644 sources/plugins/iframe/lang/gl.js create mode 100644 sources/plugins/iframe/lang/gu.js create mode 100644 sources/plugins/iframe/lang/he.js create mode 100644 sources/plugins/iframe/lang/hi.js create mode 100644 sources/plugins/iframe/lang/hr.js create mode 100644 sources/plugins/iframe/lang/hu.js create mode 100644 sources/plugins/iframe/lang/id.js create mode 100644 sources/plugins/iframe/lang/is.js create mode 100644 sources/plugins/iframe/lang/it.js create mode 100644 sources/plugins/iframe/lang/ja.js create mode 100644 sources/plugins/iframe/lang/ka.js create mode 100644 sources/plugins/iframe/lang/km.js create mode 100644 sources/plugins/iframe/lang/ko.js create mode 100644 sources/plugins/iframe/lang/ku.js create mode 100644 sources/plugins/iframe/lang/lt.js create mode 100644 sources/plugins/iframe/lang/lv.js create mode 100644 sources/plugins/iframe/lang/mk.js create mode 100644 sources/plugins/iframe/lang/mn.js create mode 100644 sources/plugins/iframe/lang/ms.js create mode 100644 sources/plugins/iframe/lang/nb.js create mode 100644 sources/plugins/iframe/lang/nl.js create mode 100644 sources/plugins/iframe/lang/no.js create mode 100644 sources/plugins/iframe/lang/pl.js create mode 100644 sources/plugins/iframe/lang/pt-br.js create mode 100644 sources/plugins/iframe/lang/pt.js create mode 100644 sources/plugins/iframe/lang/ro.js create mode 100644 sources/plugins/iframe/lang/ru.js create mode 100644 sources/plugins/iframe/lang/si.js create mode 100644 sources/plugins/iframe/lang/sk.js create mode 100644 sources/plugins/iframe/lang/sl.js create mode 100644 sources/plugins/iframe/lang/sq.js create mode 100644 sources/plugins/iframe/lang/sr-latn.js create mode 100644 sources/plugins/iframe/lang/sr.js create mode 100644 sources/plugins/iframe/lang/sv.js create mode 100644 sources/plugins/iframe/lang/th.js create mode 100644 sources/plugins/iframe/lang/tr.js create mode 100644 sources/plugins/iframe/lang/tt.js create mode 100644 sources/plugins/iframe/lang/ug.js create mode 100644 sources/plugins/iframe/lang/uk.js create mode 100644 sources/plugins/iframe/lang/vi.js create mode 100644 sources/plugins/iframe/lang/zh-cn.js create mode 100644 sources/plugins/iframe/lang/zh.js create mode 100644 sources/plugins/iframe/plugin.js create mode 100644 sources/plugins/image/dialogs/image.js create mode 100644 sources/plugins/image/icons/hidpi/image.png create mode 100644 sources/plugins/image/icons/image.png create mode 100644 sources/plugins/image/images/noimage.png create mode 100644 sources/plugins/image/lang/af.js create mode 100644 sources/plugins/image/lang/ar.js create mode 100644 sources/plugins/image/lang/bg.js create mode 100644 sources/plugins/image/lang/bn.js create mode 100644 sources/plugins/image/lang/bs.js create mode 100644 sources/plugins/image/lang/ca.js create mode 100644 sources/plugins/image/lang/cs.js create mode 100644 sources/plugins/image/lang/cy.js create mode 100644 sources/plugins/image/lang/da.js create mode 100644 sources/plugins/image/lang/de.js create mode 100644 sources/plugins/image/lang/el.js create mode 100644 sources/plugins/image/lang/en-au.js create mode 100644 sources/plugins/image/lang/en-ca.js create mode 100644 sources/plugins/image/lang/en-gb.js create mode 100644 sources/plugins/image/lang/en.js create mode 100644 sources/plugins/image/lang/eo.js create mode 100644 sources/plugins/image/lang/es.js create mode 100644 sources/plugins/image/lang/et.js create mode 100644 sources/plugins/image/lang/eu.js create mode 100644 sources/plugins/image/lang/fa.js create mode 100644 sources/plugins/image/lang/fi.js create mode 100644 sources/plugins/image/lang/fo.js create mode 100644 sources/plugins/image/lang/fr-ca.js create mode 100644 sources/plugins/image/lang/fr.js create mode 100644 sources/plugins/image/lang/gl.js create mode 100644 sources/plugins/image/lang/gu.js create mode 100644 sources/plugins/image/lang/he.js create mode 100644 sources/plugins/image/lang/hi.js create mode 100644 sources/plugins/image/lang/hr.js create mode 100644 sources/plugins/image/lang/hu.js create mode 100644 sources/plugins/image/lang/id.js create mode 100644 sources/plugins/image/lang/is.js create mode 100644 sources/plugins/image/lang/it.js create mode 100644 sources/plugins/image/lang/ja.js create mode 100644 sources/plugins/image/lang/ka.js create mode 100644 sources/plugins/image/lang/km.js create mode 100644 sources/plugins/image/lang/ko.js create mode 100644 sources/plugins/image/lang/ku.js create mode 100644 sources/plugins/image/lang/lt.js create mode 100644 sources/plugins/image/lang/lv.js create mode 100644 sources/plugins/image/lang/mk.js create mode 100644 sources/plugins/image/lang/mn.js create mode 100644 sources/plugins/image/lang/ms.js create mode 100644 sources/plugins/image/lang/nb.js create mode 100644 sources/plugins/image/lang/nl.js create mode 100644 sources/plugins/image/lang/no.js create mode 100644 sources/plugins/image/lang/pl.js create mode 100644 sources/plugins/image/lang/pt-br.js create mode 100644 sources/plugins/image/lang/pt.js create mode 100644 sources/plugins/image/lang/ro.js create mode 100644 sources/plugins/image/lang/ru.js create mode 100644 sources/plugins/image/lang/si.js create mode 100644 sources/plugins/image/lang/sk.js create mode 100644 sources/plugins/image/lang/sl.js create mode 100644 sources/plugins/image/lang/sq.js create mode 100644 sources/plugins/image/lang/sr-latn.js create mode 100644 sources/plugins/image/lang/sr.js create mode 100644 sources/plugins/image/lang/sv.js create mode 100644 sources/plugins/image/lang/th.js create mode 100644 sources/plugins/image/lang/tr.js create mode 100644 sources/plugins/image/lang/tt.js create mode 100644 sources/plugins/image/lang/ug.js create mode 100644 sources/plugins/image/lang/uk.js create mode 100644 sources/plugins/image/lang/vi.js create mode 100644 sources/plugins/image/lang/zh-cn.js create mode 100644 sources/plugins/image/lang/zh.js create mode 100644 sources/plugins/image/plugin.js create mode 100644 sources/plugins/imagebrowser/LICENSE.txt create mode 100644 sources/plugins/imagebrowser/README.rst create mode 100644 sources/plugins/imagebrowser/browser/browser.css create mode 100644 sources/plugins/imagebrowser/browser/browser.html create mode 100644 sources/plugins/imagebrowser/browser/browser.js create mode 100644 sources/plugins/imagebrowser/browser/jquery-1.9.1.min.js create mode 100644 sources/plugins/imagebrowser/plugin.js create mode 100644 sources/plugins/indent/dev/indent.html create mode 100644 sources/plugins/indent/icons/hidpi/indent-rtl.png create mode 100644 sources/plugins/indent/icons/hidpi/indent.png create mode 100644 sources/plugins/indent/icons/hidpi/outdent-rtl.png create mode 100644 sources/plugins/indent/icons/hidpi/outdent.png create mode 100644 sources/plugins/indent/icons/indent-rtl.png create mode 100644 sources/plugins/indent/icons/indent.png create mode 100644 sources/plugins/indent/icons/outdent-rtl.png create mode 100644 sources/plugins/indent/icons/outdent.png create mode 100644 sources/plugins/indent/lang/af.js create mode 100644 sources/plugins/indent/lang/ar.js create mode 100644 sources/plugins/indent/lang/bg.js create mode 100644 sources/plugins/indent/lang/bn.js create mode 100644 sources/plugins/indent/lang/bs.js create mode 100644 sources/plugins/indent/lang/ca.js create mode 100644 sources/plugins/indent/lang/cs.js create mode 100644 sources/plugins/indent/lang/cy.js create mode 100644 sources/plugins/indent/lang/da.js create mode 100644 sources/plugins/indent/lang/de.js create mode 100644 sources/plugins/indent/lang/el.js create mode 100644 sources/plugins/indent/lang/en-au.js create mode 100644 sources/plugins/indent/lang/en-ca.js create mode 100644 sources/plugins/indent/lang/en-gb.js create mode 100644 sources/plugins/indent/lang/en.js create mode 100644 sources/plugins/indent/lang/eo.js create mode 100644 sources/plugins/indent/lang/es.js create mode 100644 sources/plugins/indent/lang/et.js create mode 100644 sources/plugins/indent/lang/eu.js create mode 100644 sources/plugins/indent/lang/fa.js create mode 100644 sources/plugins/indent/lang/fi.js create mode 100644 sources/plugins/indent/lang/fo.js create mode 100644 sources/plugins/indent/lang/fr-ca.js create mode 100644 sources/plugins/indent/lang/fr.js create mode 100644 sources/plugins/indent/lang/gl.js create mode 100644 sources/plugins/indent/lang/gu.js create mode 100644 sources/plugins/indent/lang/he.js create mode 100644 sources/plugins/indent/lang/hi.js create mode 100644 sources/plugins/indent/lang/hr.js create mode 100644 sources/plugins/indent/lang/hu.js create mode 100644 sources/plugins/indent/lang/id.js create mode 100644 sources/plugins/indent/lang/is.js create mode 100644 sources/plugins/indent/lang/it.js create mode 100644 sources/plugins/indent/lang/ja.js create mode 100644 sources/plugins/indent/lang/ka.js create mode 100644 sources/plugins/indent/lang/km.js create mode 100644 sources/plugins/indent/lang/ko.js create mode 100644 sources/plugins/indent/lang/ku.js create mode 100644 sources/plugins/indent/lang/lt.js create mode 100644 sources/plugins/indent/lang/lv.js create mode 100644 sources/plugins/indent/lang/mk.js create mode 100644 sources/plugins/indent/lang/mn.js create mode 100644 sources/plugins/indent/lang/ms.js create mode 100644 sources/plugins/indent/lang/nb.js create mode 100644 sources/plugins/indent/lang/nl.js create mode 100644 sources/plugins/indent/lang/no.js create mode 100644 sources/plugins/indent/lang/pl.js create mode 100644 sources/plugins/indent/lang/pt-br.js create mode 100644 sources/plugins/indent/lang/pt.js create mode 100644 sources/plugins/indent/lang/ro.js create mode 100644 sources/plugins/indent/lang/ru.js create mode 100644 sources/plugins/indent/lang/si.js create mode 100644 sources/plugins/indent/lang/sk.js create mode 100644 sources/plugins/indent/lang/sl.js create mode 100644 sources/plugins/indent/lang/sq.js create mode 100644 sources/plugins/indent/lang/sr-latn.js create mode 100644 sources/plugins/indent/lang/sr.js create mode 100644 sources/plugins/indent/lang/sv.js create mode 100644 sources/plugins/indent/lang/th.js create mode 100644 sources/plugins/indent/lang/tr.js create mode 100644 sources/plugins/indent/lang/tt.js create mode 100644 sources/plugins/indent/lang/ug.js create mode 100644 sources/plugins/indent/lang/uk.js create mode 100644 sources/plugins/indent/lang/vi.js create mode 100644 sources/plugins/indent/lang/zh-cn.js create mode 100644 sources/plugins/indent/lang/zh.js create mode 100644 sources/plugins/indent/plugin.js create mode 100644 sources/plugins/indentblock/plugin.js create mode 100644 sources/plugins/indentlist/plugin.js create mode 100644 sources/plugins/justify/icons/hidpi/justifyblock.png create mode 100644 sources/plugins/justify/icons/hidpi/justifycenter.png create mode 100644 sources/plugins/justify/icons/hidpi/justifyleft.png create mode 100644 sources/plugins/justify/icons/hidpi/justifyright.png create mode 100644 sources/plugins/justify/icons/justifyblock.png create mode 100644 sources/plugins/justify/icons/justifycenter.png create mode 100644 sources/plugins/justify/icons/justifyleft.png create mode 100644 sources/plugins/justify/icons/justifyright.png create mode 100644 sources/plugins/justify/lang/af.js create mode 100644 sources/plugins/justify/lang/ar.js create mode 100644 sources/plugins/justify/lang/bg.js create mode 100644 sources/plugins/justify/lang/bn.js create mode 100644 sources/plugins/justify/lang/bs.js create mode 100644 sources/plugins/justify/lang/ca.js create mode 100644 sources/plugins/justify/lang/cs.js create mode 100644 sources/plugins/justify/lang/cy.js create mode 100644 sources/plugins/justify/lang/da.js create mode 100644 sources/plugins/justify/lang/de.js create mode 100644 sources/plugins/justify/lang/el.js create mode 100644 sources/plugins/justify/lang/en-au.js create mode 100644 sources/plugins/justify/lang/en-ca.js create mode 100644 sources/plugins/justify/lang/en-gb.js create mode 100644 sources/plugins/justify/lang/en.js create mode 100644 sources/plugins/justify/lang/eo.js create mode 100644 sources/plugins/justify/lang/es.js create mode 100644 sources/plugins/justify/lang/et.js create mode 100644 sources/plugins/justify/lang/eu.js create mode 100644 sources/plugins/justify/lang/fa.js create mode 100644 sources/plugins/justify/lang/fi.js create mode 100644 sources/plugins/justify/lang/fo.js create mode 100644 sources/plugins/justify/lang/fr-ca.js create mode 100644 sources/plugins/justify/lang/fr.js create mode 100644 sources/plugins/justify/lang/gl.js create mode 100644 sources/plugins/justify/lang/gu.js create mode 100644 sources/plugins/justify/lang/he.js create mode 100644 sources/plugins/justify/lang/hi.js create mode 100644 sources/plugins/justify/lang/hr.js create mode 100644 sources/plugins/justify/lang/hu.js create mode 100644 sources/plugins/justify/lang/id.js create mode 100644 sources/plugins/justify/lang/is.js create mode 100644 sources/plugins/justify/lang/it.js create mode 100644 sources/plugins/justify/lang/ja.js create mode 100644 sources/plugins/justify/lang/ka.js create mode 100644 sources/plugins/justify/lang/km.js create mode 100644 sources/plugins/justify/lang/ko.js create mode 100644 sources/plugins/justify/lang/ku.js create mode 100644 sources/plugins/justify/lang/lt.js create mode 100644 sources/plugins/justify/lang/lv.js create mode 100644 sources/plugins/justify/lang/mk.js create mode 100644 sources/plugins/justify/lang/mn.js create mode 100644 sources/plugins/justify/lang/ms.js create mode 100644 sources/plugins/justify/lang/nb.js create mode 100644 sources/plugins/justify/lang/nl.js create mode 100644 sources/plugins/justify/lang/no.js create mode 100644 sources/plugins/justify/lang/pl.js create mode 100644 sources/plugins/justify/lang/pt-br.js create mode 100644 sources/plugins/justify/lang/pt.js create mode 100644 sources/plugins/justify/lang/ro.js create mode 100644 sources/plugins/justify/lang/ru.js create mode 100644 sources/plugins/justify/lang/si.js create mode 100644 sources/plugins/justify/lang/sk.js create mode 100644 sources/plugins/justify/lang/sl.js create mode 100644 sources/plugins/justify/lang/sq.js create mode 100644 sources/plugins/justify/lang/sr-latn.js create mode 100644 sources/plugins/justify/lang/sr.js create mode 100644 sources/plugins/justify/lang/sv.js create mode 100644 sources/plugins/justify/lang/th.js create mode 100644 sources/plugins/justify/lang/tr.js create mode 100644 sources/plugins/justify/lang/tt.js create mode 100644 sources/plugins/justify/lang/ug.js create mode 100644 sources/plugins/justify/lang/uk.js create mode 100644 sources/plugins/justify/lang/vi.js create mode 100644 sources/plugins/justify/lang/zh-cn.js create mode 100644 sources/plugins/justify/lang/zh.js create mode 100644 sources/plugins/justify/plugin.js create mode 100644 sources/plugins/link/dialogs/anchor.js create mode 100644 sources/plugins/link/dialogs/link.js create mode 100644 sources/plugins/link/icons/anchor-rtl.png create mode 100644 sources/plugins/link/icons/anchor.png create mode 100644 sources/plugins/link/icons/hidpi/anchor-rtl.png create mode 100644 sources/plugins/link/icons/hidpi/anchor.png create mode 100644 sources/plugins/link/icons/hidpi/link.png create mode 100644 sources/plugins/link/icons/hidpi/unlink.png create mode 100644 sources/plugins/link/icons/link.png create mode 100644 sources/plugins/link/icons/unlink.png create mode 100644 sources/plugins/link/images/anchor.png create mode 100644 sources/plugins/link/images/hidpi/anchor.png create mode 100644 sources/plugins/link/lang/af.js create mode 100644 sources/plugins/link/lang/ar.js create mode 100644 sources/plugins/link/lang/bg.js create mode 100644 sources/plugins/link/lang/bn.js create mode 100644 sources/plugins/link/lang/bs.js create mode 100644 sources/plugins/link/lang/ca.js create mode 100644 sources/plugins/link/lang/cs.js create mode 100644 sources/plugins/link/lang/cy.js create mode 100644 sources/plugins/link/lang/da.js create mode 100644 sources/plugins/link/lang/de.js create mode 100644 sources/plugins/link/lang/el.js create mode 100644 sources/plugins/link/lang/en-au.js create mode 100644 sources/plugins/link/lang/en-ca.js create mode 100644 sources/plugins/link/lang/en-gb.js create mode 100644 sources/plugins/link/lang/en.js create mode 100644 sources/plugins/link/lang/eo.js create mode 100644 sources/plugins/link/lang/es.js create mode 100644 sources/plugins/link/lang/et.js create mode 100644 sources/plugins/link/lang/eu.js create mode 100644 sources/plugins/link/lang/fa.js create mode 100644 sources/plugins/link/lang/fi.js create mode 100644 sources/plugins/link/lang/fo.js create mode 100644 sources/plugins/link/lang/fr-ca.js create mode 100644 sources/plugins/link/lang/fr.js create mode 100644 sources/plugins/link/lang/gl.js create mode 100644 sources/plugins/link/lang/gu.js create mode 100644 sources/plugins/link/lang/he.js create mode 100644 sources/plugins/link/lang/hi.js create mode 100644 sources/plugins/link/lang/hr.js create mode 100644 sources/plugins/link/lang/hu.js create mode 100644 sources/plugins/link/lang/id.js create mode 100644 sources/plugins/link/lang/is.js create mode 100644 sources/plugins/link/lang/it.js create mode 100644 sources/plugins/link/lang/ja.js create mode 100644 sources/plugins/link/lang/ka.js create mode 100644 sources/plugins/link/lang/km.js create mode 100644 sources/plugins/link/lang/ko.js create mode 100644 sources/plugins/link/lang/ku.js create mode 100644 sources/plugins/link/lang/lt.js create mode 100644 sources/plugins/link/lang/lv.js create mode 100644 sources/plugins/link/lang/mk.js create mode 100644 sources/plugins/link/lang/mn.js create mode 100644 sources/plugins/link/lang/ms.js create mode 100644 sources/plugins/link/lang/nb.js create mode 100644 sources/plugins/link/lang/nl.js create mode 100644 sources/plugins/link/lang/no.js create mode 100644 sources/plugins/link/lang/pl.js create mode 100644 sources/plugins/link/lang/pt-br.js create mode 100644 sources/plugins/link/lang/pt.js create mode 100644 sources/plugins/link/lang/ro.js create mode 100644 sources/plugins/link/lang/ru.js create mode 100644 sources/plugins/link/lang/si.js create mode 100644 sources/plugins/link/lang/sk.js create mode 100644 sources/plugins/link/lang/sl.js create mode 100644 sources/plugins/link/lang/sq.js create mode 100644 sources/plugins/link/lang/sr-latn.js create mode 100644 sources/plugins/link/lang/sr.js create mode 100644 sources/plugins/link/lang/sv.js create mode 100644 sources/plugins/link/lang/th.js create mode 100644 sources/plugins/link/lang/tr.js create mode 100644 sources/plugins/link/lang/tt.js create mode 100644 sources/plugins/link/lang/ug.js create mode 100644 sources/plugins/link/lang/uk.js create mode 100644 sources/plugins/link/lang/vi.js create mode 100644 sources/plugins/link/lang/zh-cn.js create mode 100644 sources/plugins/link/lang/zh.js create mode 100644 sources/plugins/link/plugin.js create mode 100644 sources/plugins/list/icons/bulletedlist-rtl.png create mode 100644 sources/plugins/list/icons/bulletedlist.png create mode 100644 sources/plugins/list/icons/hidpi/bulletedlist-rtl.png create mode 100644 sources/plugins/list/icons/hidpi/bulletedlist.png create mode 100644 sources/plugins/list/icons/hidpi/numberedlist-rtl.png create mode 100644 sources/plugins/list/icons/hidpi/numberedlist.png create mode 100644 sources/plugins/list/icons/numberedlist-rtl.png create mode 100644 sources/plugins/list/icons/numberedlist.png create mode 100644 sources/plugins/list/lang/af.js create mode 100644 sources/plugins/list/lang/ar.js create mode 100644 sources/plugins/list/lang/bg.js create mode 100644 sources/plugins/list/lang/bn.js create mode 100644 sources/plugins/list/lang/bs.js create mode 100644 sources/plugins/list/lang/ca.js create mode 100644 sources/plugins/list/lang/cs.js create mode 100644 sources/plugins/list/lang/cy.js create mode 100644 sources/plugins/list/lang/da.js create mode 100644 sources/plugins/list/lang/de.js create mode 100644 sources/plugins/list/lang/el.js create mode 100644 sources/plugins/list/lang/en-au.js create mode 100644 sources/plugins/list/lang/en-ca.js create mode 100644 sources/plugins/list/lang/en-gb.js create mode 100644 sources/plugins/list/lang/en.js create mode 100644 sources/plugins/list/lang/eo.js create mode 100644 sources/plugins/list/lang/es.js create mode 100644 sources/plugins/list/lang/et.js create mode 100644 sources/plugins/list/lang/eu.js create mode 100644 sources/plugins/list/lang/fa.js create mode 100644 sources/plugins/list/lang/fi.js create mode 100644 sources/plugins/list/lang/fo.js create mode 100644 sources/plugins/list/lang/fr-ca.js create mode 100644 sources/plugins/list/lang/fr.js create mode 100644 sources/plugins/list/lang/gl.js create mode 100644 sources/plugins/list/lang/gu.js create mode 100644 sources/plugins/list/lang/he.js create mode 100644 sources/plugins/list/lang/hi.js create mode 100644 sources/plugins/list/lang/hr.js create mode 100644 sources/plugins/list/lang/hu.js create mode 100644 sources/plugins/list/lang/id.js create mode 100644 sources/plugins/list/lang/is.js create mode 100644 sources/plugins/list/lang/it.js create mode 100644 sources/plugins/list/lang/ja.js create mode 100644 sources/plugins/list/lang/ka.js create mode 100644 sources/plugins/list/lang/km.js create mode 100644 sources/plugins/list/lang/ko.js create mode 100644 sources/plugins/list/lang/ku.js create mode 100644 sources/plugins/list/lang/lt.js create mode 100644 sources/plugins/list/lang/lv.js create mode 100644 sources/plugins/list/lang/mk.js create mode 100644 sources/plugins/list/lang/mn.js create mode 100644 sources/plugins/list/lang/ms.js create mode 100644 sources/plugins/list/lang/nb.js create mode 100644 sources/plugins/list/lang/nl.js create mode 100644 sources/plugins/list/lang/no.js create mode 100644 sources/plugins/list/lang/pl.js create mode 100644 sources/plugins/list/lang/pt-br.js create mode 100644 sources/plugins/list/lang/pt.js create mode 100644 sources/plugins/list/lang/ro.js create mode 100644 sources/plugins/list/lang/ru.js create mode 100644 sources/plugins/list/lang/si.js create mode 100644 sources/plugins/list/lang/sk.js create mode 100644 sources/plugins/list/lang/sl.js create mode 100644 sources/plugins/list/lang/sq.js create mode 100644 sources/plugins/list/lang/sr-latn.js create mode 100644 sources/plugins/list/lang/sr.js create mode 100644 sources/plugins/list/lang/sv.js create mode 100644 sources/plugins/list/lang/th.js create mode 100644 sources/plugins/list/lang/tr.js create mode 100644 sources/plugins/list/lang/tt.js create mode 100644 sources/plugins/list/lang/ug.js create mode 100644 sources/plugins/list/lang/uk.js create mode 100644 sources/plugins/list/lang/vi.js create mode 100644 sources/plugins/list/lang/zh-cn.js create mode 100644 sources/plugins/list/lang/zh.js create mode 100644 sources/plugins/list/plugin.js create mode 100644 sources/plugins/listblock/plugin.js create mode 100644 sources/plugins/liststyle/dialogs/liststyle.js create mode 100644 sources/plugins/liststyle/lang/af.js create mode 100644 sources/plugins/liststyle/lang/ar.js create mode 100644 sources/plugins/liststyle/lang/bg.js create mode 100644 sources/plugins/liststyle/lang/bn.js create mode 100644 sources/plugins/liststyle/lang/bs.js create mode 100644 sources/plugins/liststyle/lang/ca.js create mode 100644 sources/plugins/liststyle/lang/cs.js create mode 100644 sources/plugins/liststyle/lang/cy.js create mode 100644 sources/plugins/liststyle/lang/da.js create mode 100644 sources/plugins/liststyle/lang/de.js create mode 100644 sources/plugins/liststyle/lang/el.js create mode 100644 sources/plugins/liststyle/lang/en-au.js create mode 100644 sources/plugins/liststyle/lang/en-ca.js create mode 100644 sources/plugins/liststyle/lang/en-gb.js create mode 100644 sources/plugins/liststyle/lang/en.js create mode 100644 sources/plugins/liststyle/lang/eo.js create mode 100644 sources/plugins/liststyle/lang/es.js create mode 100644 sources/plugins/liststyle/lang/et.js create mode 100644 sources/plugins/liststyle/lang/eu.js create mode 100644 sources/plugins/liststyle/lang/fa.js create mode 100644 sources/plugins/liststyle/lang/fi.js create mode 100644 sources/plugins/liststyle/lang/fo.js create mode 100644 sources/plugins/liststyle/lang/fr-ca.js create mode 100644 sources/plugins/liststyle/lang/fr.js create mode 100644 sources/plugins/liststyle/lang/gl.js create mode 100644 sources/plugins/liststyle/lang/gu.js create mode 100644 sources/plugins/liststyle/lang/he.js create mode 100644 sources/plugins/liststyle/lang/hi.js create mode 100644 sources/plugins/liststyle/lang/hr.js create mode 100644 sources/plugins/liststyle/lang/hu.js create mode 100644 sources/plugins/liststyle/lang/id.js create mode 100644 sources/plugins/liststyle/lang/is.js create mode 100644 sources/plugins/liststyle/lang/it.js create mode 100644 sources/plugins/liststyle/lang/ja.js create mode 100644 sources/plugins/liststyle/lang/ka.js create mode 100644 sources/plugins/liststyle/lang/km.js create mode 100644 sources/plugins/liststyle/lang/ko.js create mode 100644 sources/plugins/liststyle/lang/ku.js create mode 100644 sources/plugins/liststyle/lang/lt.js create mode 100644 sources/plugins/liststyle/lang/lv.js create mode 100644 sources/plugins/liststyle/lang/mk.js create mode 100644 sources/plugins/liststyle/lang/mn.js create mode 100644 sources/plugins/liststyle/lang/ms.js create mode 100644 sources/plugins/liststyle/lang/nb.js create mode 100644 sources/plugins/liststyle/lang/nl.js create mode 100644 sources/plugins/liststyle/lang/no.js create mode 100644 sources/plugins/liststyle/lang/pl.js create mode 100644 sources/plugins/liststyle/lang/pt-br.js create mode 100644 sources/plugins/liststyle/lang/pt.js create mode 100644 sources/plugins/liststyle/lang/ro.js create mode 100644 sources/plugins/liststyle/lang/ru.js create mode 100644 sources/plugins/liststyle/lang/si.js create mode 100644 sources/plugins/liststyle/lang/sk.js create mode 100644 sources/plugins/liststyle/lang/sl.js create mode 100644 sources/plugins/liststyle/lang/sq.js create mode 100644 sources/plugins/liststyle/lang/sr-latn.js create mode 100644 sources/plugins/liststyle/lang/sr.js create mode 100644 sources/plugins/liststyle/lang/sv.js create mode 100644 sources/plugins/liststyle/lang/th.js create mode 100644 sources/plugins/liststyle/lang/tr.js create mode 100644 sources/plugins/liststyle/lang/tt.js create mode 100644 sources/plugins/liststyle/lang/ug.js create mode 100644 sources/plugins/liststyle/lang/uk.js create mode 100644 sources/plugins/liststyle/lang/vi.js create mode 100644 sources/plugins/liststyle/lang/zh-cn.js create mode 100644 sources/plugins/liststyle/lang/zh.js create mode 100644 sources/plugins/liststyle/plugin.js create mode 100644 sources/plugins/magicline/dev/magicline.html create mode 100644 sources/plugins/magicline/images/hidpi/icon-rtl.png create mode 100644 sources/plugins/magicline/images/hidpi/icon.png create mode 100644 sources/plugins/magicline/images/icon-rtl.png create mode 100644 sources/plugins/magicline/images/icon.png create mode 100644 sources/plugins/magicline/lang/af.js create mode 100644 sources/plugins/magicline/lang/ar.js create mode 100644 sources/plugins/magicline/lang/bg.js create mode 100644 sources/plugins/magicline/lang/ca.js create mode 100644 sources/plugins/magicline/lang/cs.js create mode 100644 sources/plugins/magicline/lang/cy.js create mode 100644 sources/plugins/magicline/lang/da.js create mode 100644 sources/plugins/magicline/lang/de.js create mode 100644 sources/plugins/magicline/lang/el.js create mode 100644 sources/plugins/magicline/lang/en-gb.js create mode 100644 sources/plugins/magicline/lang/en.js create mode 100644 sources/plugins/magicline/lang/eo.js create mode 100644 sources/plugins/magicline/lang/es.js create mode 100644 sources/plugins/magicline/lang/et.js create mode 100644 sources/plugins/magicline/lang/eu.js create mode 100644 sources/plugins/magicline/lang/fa.js create mode 100644 sources/plugins/magicline/lang/fi.js create mode 100644 sources/plugins/magicline/lang/fr-ca.js create mode 100644 sources/plugins/magicline/lang/fr.js create mode 100644 sources/plugins/magicline/lang/gl.js create mode 100644 sources/plugins/magicline/lang/he.js create mode 100644 sources/plugins/magicline/lang/hr.js create mode 100644 sources/plugins/magicline/lang/hu.js create mode 100644 sources/plugins/magicline/lang/id.js create mode 100644 sources/plugins/magicline/lang/it.js create mode 100644 sources/plugins/magicline/lang/ja.js create mode 100644 sources/plugins/magicline/lang/km.js create mode 100644 sources/plugins/magicline/lang/ko.js create mode 100644 sources/plugins/magicline/lang/ku.js create mode 100644 sources/plugins/magicline/lang/lv.js create mode 100644 sources/plugins/magicline/lang/nb.js create mode 100644 sources/plugins/magicline/lang/nl.js create mode 100644 sources/plugins/magicline/lang/no.js create mode 100644 sources/plugins/magicline/lang/pl.js create mode 100644 sources/plugins/magicline/lang/pt-br.js create mode 100644 sources/plugins/magicline/lang/pt.js create mode 100644 sources/plugins/magicline/lang/ru.js create mode 100644 sources/plugins/magicline/lang/si.js create mode 100644 sources/plugins/magicline/lang/sk.js create mode 100644 sources/plugins/magicline/lang/sl.js create mode 100644 sources/plugins/magicline/lang/sq.js create mode 100644 sources/plugins/magicline/lang/sv.js create mode 100644 sources/plugins/magicline/lang/tr.js create mode 100644 sources/plugins/magicline/lang/tt.js create mode 100644 sources/plugins/magicline/lang/ug.js create mode 100644 sources/plugins/magicline/lang/uk.js create mode 100644 sources/plugins/magicline/lang/vi.js create mode 100644 sources/plugins/magicline/lang/zh-cn.js create mode 100644 sources/plugins/magicline/lang/zh.js create mode 100644 sources/plugins/magicline/plugin.js create mode 100644 sources/plugins/magicline/samples/magicline.html create mode 100644 sources/plugins/maximize/icons/hidpi/maximize.png create mode 100644 sources/plugins/maximize/icons/maximize.png create mode 100644 sources/plugins/maximize/lang/af.js create mode 100644 sources/plugins/maximize/lang/ar.js create mode 100644 sources/plugins/maximize/lang/bg.js create mode 100644 sources/plugins/maximize/lang/bn.js create mode 100644 sources/plugins/maximize/lang/bs.js create mode 100644 sources/plugins/maximize/lang/ca.js create mode 100644 sources/plugins/maximize/lang/cs.js create mode 100644 sources/plugins/maximize/lang/cy.js create mode 100644 sources/plugins/maximize/lang/da.js create mode 100644 sources/plugins/maximize/lang/de.js create mode 100644 sources/plugins/maximize/lang/el.js create mode 100644 sources/plugins/maximize/lang/en-au.js create mode 100644 sources/plugins/maximize/lang/en-ca.js create mode 100644 sources/plugins/maximize/lang/en-gb.js create mode 100644 sources/plugins/maximize/lang/en.js create mode 100644 sources/plugins/maximize/lang/eo.js create mode 100644 sources/plugins/maximize/lang/es.js create mode 100644 sources/plugins/maximize/lang/et.js create mode 100644 sources/plugins/maximize/lang/eu.js create mode 100644 sources/plugins/maximize/lang/fa.js create mode 100644 sources/plugins/maximize/lang/fi.js create mode 100644 sources/plugins/maximize/lang/fo.js create mode 100644 sources/plugins/maximize/lang/fr-ca.js create mode 100644 sources/plugins/maximize/lang/fr.js create mode 100644 sources/plugins/maximize/lang/gl.js create mode 100644 sources/plugins/maximize/lang/gu.js create mode 100644 sources/plugins/maximize/lang/he.js create mode 100644 sources/plugins/maximize/lang/hi.js create mode 100644 sources/plugins/maximize/lang/hr.js create mode 100644 sources/plugins/maximize/lang/hu.js create mode 100644 sources/plugins/maximize/lang/id.js create mode 100644 sources/plugins/maximize/lang/is.js create mode 100644 sources/plugins/maximize/lang/it.js create mode 100644 sources/plugins/maximize/lang/ja.js create mode 100644 sources/plugins/maximize/lang/ka.js create mode 100644 sources/plugins/maximize/lang/km.js create mode 100644 sources/plugins/maximize/lang/ko.js create mode 100644 sources/plugins/maximize/lang/ku.js create mode 100644 sources/plugins/maximize/lang/lt.js create mode 100644 sources/plugins/maximize/lang/lv.js create mode 100644 sources/plugins/maximize/lang/mk.js create mode 100644 sources/plugins/maximize/lang/mn.js create mode 100644 sources/plugins/maximize/lang/ms.js create mode 100644 sources/plugins/maximize/lang/nb.js create mode 100644 sources/plugins/maximize/lang/nl.js create mode 100644 sources/plugins/maximize/lang/no.js create mode 100644 sources/plugins/maximize/lang/pl.js create mode 100644 sources/plugins/maximize/lang/pt-br.js create mode 100644 sources/plugins/maximize/lang/pt.js create mode 100644 sources/plugins/maximize/lang/ro.js create mode 100644 sources/plugins/maximize/lang/ru.js create mode 100644 sources/plugins/maximize/lang/si.js create mode 100644 sources/plugins/maximize/lang/sk.js create mode 100644 sources/plugins/maximize/lang/sl.js create mode 100644 sources/plugins/maximize/lang/sq.js create mode 100644 sources/plugins/maximize/lang/sr-latn.js create mode 100644 sources/plugins/maximize/lang/sr.js create mode 100644 sources/plugins/maximize/lang/sv.js create mode 100644 sources/plugins/maximize/lang/th.js create mode 100644 sources/plugins/maximize/lang/tr.js create mode 100644 sources/plugins/maximize/lang/tt.js create mode 100644 sources/plugins/maximize/lang/ug.js create mode 100644 sources/plugins/maximize/lang/uk.js create mode 100644 sources/plugins/maximize/lang/vi.js create mode 100644 sources/plugins/maximize/lang/zh-cn.js create mode 100644 sources/plugins/maximize/lang/zh.js create mode 100644 sources/plugins/maximize/plugin.js create mode 100644 sources/plugins/menu/plugin.js create mode 100644 sources/plugins/menubutton/plugin.js create mode 100644 sources/plugins/newpage/icons/hidpi/newpage-rtl.png create mode 100644 sources/plugins/newpage/icons/hidpi/newpage.png create mode 100644 sources/plugins/newpage/icons/newpage-rtl.png create mode 100644 sources/plugins/newpage/icons/newpage.png create mode 100644 sources/plugins/newpage/lang/af.js create mode 100644 sources/plugins/newpage/lang/ar.js create mode 100644 sources/plugins/newpage/lang/bg.js create mode 100644 sources/plugins/newpage/lang/bn.js create mode 100644 sources/plugins/newpage/lang/bs.js create mode 100644 sources/plugins/newpage/lang/ca.js create mode 100644 sources/plugins/newpage/lang/cs.js create mode 100644 sources/plugins/newpage/lang/cy.js create mode 100644 sources/plugins/newpage/lang/da.js create mode 100644 sources/plugins/newpage/lang/de.js create mode 100644 sources/plugins/newpage/lang/el.js create mode 100644 sources/plugins/newpage/lang/en-au.js create mode 100644 sources/plugins/newpage/lang/en-ca.js create mode 100644 sources/plugins/newpage/lang/en-gb.js create mode 100644 sources/plugins/newpage/lang/en.js create mode 100644 sources/plugins/newpage/lang/eo.js create mode 100644 sources/plugins/newpage/lang/es.js create mode 100644 sources/plugins/newpage/lang/et.js create mode 100644 sources/plugins/newpage/lang/eu.js create mode 100644 sources/plugins/newpage/lang/fa.js create mode 100644 sources/plugins/newpage/lang/fi.js create mode 100644 sources/plugins/newpage/lang/fo.js create mode 100644 sources/plugins/newpage/lang/fr-ca.js create mode 100644 sources/plugins/newpage/lang/fr.js create mode 100644 sources/plugins/newpage/lang/gl.js create mode 100644 sources/plugins/newpage/lang/gu.js create mode 100644 sources/plugins/newpage/lang/he.js create mode 100644 sources/plugins/newpage/lang/hi.js create mode 100644 sources/plugins/newpage/lang/hr.js create mode 100644 sources/plugins/newpage/lang/hu.js create mode 100644 sources/plugins/newpage/lang/id.js create mode 100644 sources/plugins/newpage/lang/is.js create mode 100644 sources/plugins/newpage/lang/it.js create mode 100644 sources/plugins/newpage/lang/ja.js create mode 100644 sources/plugins/newpage/lang/ka.js create mode 100644 sources/plugins/newpage/lang/km.js create mode 100644 sources/plugins/newpage/lang/ko.js create mode 100644 sources/plugins/newpage/lang/ku.js create mode 100644 sources/plugins/newpage/lang/lt.js create mode 100644 sources/plugins/newpage/lang/lv.js create mode 100644 sources/plugins/newpage/lang/mk.js create mode 100644 sources/plugins/newpage/lang/mn.js create mode 100644 sources/plugins/newpage/lang/ms.js create mode 100644 sources/plugins/newpage/lang/nb.js create mode 100644 sources/plugins/newpage/lang/nl.js create mode 100644 sources/plugins/newpage/lang/no.js create mode 100644 sources/plugins/newpage/lang/pl.js create mode 100644 sources/plugins/newpage/lang/pt-br.js create mode 100644 sources/plugins/newpage/lang/pt.js create mode 100644 sources/plugins/newpage/lang/ro.js create mode 100644 sources/plugins/newpage/lang/ru.js create mode 100644 sources/plugins/newpage/lang/si.js create mode 100644 sources/plugins/newpage/lang/sk.js create mode 100644 sources/plugins/newpage/lang/sl.js create mode 100644 sources/plugins/newpage/lang/sq.js create mode 100644 sources/plugins/newpage/lang/sr-latn.js create mode 100644 sources/plugins/newpage/lang/sr.js create mode 100644 sources/plugins/newpage/lang/sv.js create mode 100644 sources/plugins/newpage/lang/th.js create mode 100644 sources/plugins/newpage/lang/tr.js create mode 100644 sources/plugins/newpage/lang/tt.js create mode 100644 sources/plugins/newpage/lang/ug.js create mode 100644 sources/plugins/newpage/lang/uk.js create mode 100644 sources/plugins/newpage/lang/vi.js create mode 100644 sources/plugins/newpage/lang/zh-cn.js create mode 100644 sources/plugins/newpage/lang/zh.js create mode 100644 sources/plugins/newpage/plugin.js create mode 100644 sources/plugins/pagebreak/icons/hidpi/pagebreak-rtl.png create mode 100644 sources/plugins/pagebreak/icons/hidpi/pagebreak.png create mode 100644 sources/plugins/pagebreak/icons/pagebreak-rtl.png create mode 100644 sources/plugins/pagebreak/icons/pagebreak.png create mode 100644 sources/plugins/pagebreak/images/pagebreak.gif create mode 100644 sources/plugins/pagebreak/lang/af.js create mode 100644 sources/plugins/pagebreak/lang/ar.js create mode 100644 sources/plugins/pagebreak/lang/bg.js create mode 100644 sources/plugins/pagebreak/lang/bn.js create mode 100644 sources/plugins/pagebreak/lang/bs.js create mode 100644 sources/plugins/pagebreak/lang/ca.js create mode 100644 sources/plugins/pagebreak/lang/cs.js create mode 100644 sources/plugins/pagebreak/lang/cy.js create mode 100644 sources/plugins/pagebreak/lang/da.js create mode 100644 sources/plugins/pagebreak/lang/de.js create mode 100644 sources/plugins/pagebreak/lang/el.js create mode 100644 sources/plugins/pagebreak/lang/en-au.js create mode 100644 sources/plugins/pagebreak/lang/en-ca.js create mode 100644 sources/plugins/pagebreak/lang/en-gb.js create mode 100644 sources/plugins/pagebreak/lang/en.js create mode 100644 sources/plugins/pagebreak/lang/eo.js create mode 100644 sources/plugins/pagebreak/lang/es.js create mode 100644 sources/plugins/pagebreak/lang/et.js create mode 100644 sources/plugins/pagebreak/lang/eu.js create mode 100644 sources/plugins/pagebreak/lang/fa.js create mode 100644 sources/plugins/pagebreak/lang/fi.js create mode 100644 sources/plugins/pagebreak/lang/fo.js create mode 100644 sources/plugins/pagebreak/lang/fr-ca.js create mode 100644 sources/plugins/pagebreak/lang/fr.js create mode 100644 sources/plugins/pagebreak/lang/gl.js create mode 100644 sources/plugins/pagebreak/lang/gu.js create mode 100644 sources/plugins/pagebreak/lang/he.js create mode 100644 sources/plugins/pagebreak/lang/hi.js create mode 100644 sources/plugins/pagebreak/lang/hr.js create mode 100644 sources/plugins/pagebreak/lang/hu.js create mode 100644 sources/plugins/pagebreak/lang/id.js create mode 100644 sources/plugins/pagebreak/lang/is.js create mode 100644 sources/plugins/pagebreak/lang/it.js create mode 100644 sources/plugins/pagebreak/lang/ja.js create mode 100644 sources/plugins/pagebreak/lang/ka.js create mode 100644 sources/plugins/pagebreak/lang/km.js create mode 100644 sources/plugins/pagebreak/lang/ko.js create mode 100644 sources/plugins/pagebreak/lang/ku.js create mode 100644 sources/plugins/pagebreak/lang/lt.js create mode 100644 sources/plugins/pagebreak/lang/lv.js create mode 100644 sources/plugins/pagebreak/lang/mk.js create mode 100644 sources/plugins/pagebreak/lang/mn.js create mode 100644 sources/plugins/pagebreak/lang/ms.js create mode 100644 sources/plugins/pagebreak/lang/nb.js create mode 100644 sources/plugins/pagebreak/lang/nl.js create mode 100644 sources/plugins/pagebreak/lang/no.js create mode 100644 sources/plugins/pagebreak/lang/pl.js create mode 100644 sources/plugins/pagebreak/lang/pt-br.js create mode 100644 sources/plugins/pagebreak/lang/pt.js create mode 100644 sources/plugins/pagebreak/lang/ro.js create mode 100644 sources/plugins/pagebreak/lang/ru.js create mode 100644 sources/plugins/pagebreak/lang/si.js create mode 100644 sources/plugins/pagebreak/lang/sk.js create mode 100644 sources/plugins/pagebreak/lang/sl.js create mode 100644 sources/plugins/pagebreak/lang/sq.js create mode 100644 sources/plugins/pagebreak/lang/sr-latn.js create mode 100644 sources/plugins/pagebreak/lang/sr.js create mode 100644 sources/plugins/pagebreak/lang/sv.js create mode 100644 sources/plugins/pagebreak/lang/th.js create mode 100644 sources/plugins/pagebreak/lang/tr.js create mode 100644 sources/plugins/pagebreak/lang/tt.js create mode 100644 sources/plugins/pagebreak/lang/ug.js create mode 100644 sources/plugins/pagebreak/lang/uk.js create mode 100644 sources/plugins/pagebreak/lang/vi.js create mode 100644 sources/plugins/pagebreak/lang/zh-cn.js create mode 100644 sources/plugins/pagebreak/lang/zh.js create mode 100644 sources/plugins/pagebreak/plugin.js create mode 100644 sources/plugins/panel/plugin.js create mode 100644 sources/plugins/panelbutton/plugin.js create mode 100644 sources/plugins/pastefromword/filter/default.js create mode 100644 sources/plugins/pastefromword/icons/hidpi/pastefromword-rtl.png create mode 100644 sources/plugins/pastefromword/icons/hidpi/pastefromword.png create mode 100644 sources/plugins/pastefromword/icons/pastefromword-rtl.png create mode 100644 sources/plugins/pastefromword/icons/pastefromword.png create mode 100644 sources/plugins/pastefromword/lang/af.js create mode 100644 sources/plugins/pastefromword/lang/ar.js create mode 100644 sources/plugins/pastefromword/lang/bg.js create mode 100644 sources/plugins/pastefromword/lang/bn.js create mode 100644 sources/plugins/pastefromword/lang/bs.js create mode 100644 sources/plugins/pastefromword/lang/ca.js create mode 100644 sources/plugins/pastefromword/lang/cs.js create mode 100644 sources/plugins/pastefromword/lang/cy.js create mode 100644 sources/plugins/pastefromword/lang/da.js create mode 100644 sources/plugins/pastefromword/lang/de.js create mode 100644 sources/plugins/pastefromword/lang/el.js create mode 100644 sources/plugins/pastefromword/lang/en-au.js create mode 100644 sources/plugins/pastefromword/lang/en-ca.js create mode 100644 sources/plugins/pastefromword/lang/en-gb.js create mode 100644 sources/plugins/pastefromword/lang/en.js create mode 100644 sources/plugins/pastefromword/lang/eo.js create mode 100644 sources/plugins/pastefromword/lang/es.js create mode 100644 sources/plugins/pastefromword/lang/et.js create mode 100644 sources/plugins/pastefromword/lang/eu.js create mode 100644 sources/plugins/pastefromword/lang/fa.js create mode 100644 sources/plugins/pastefromword/lang/fi.js create mode 100644 sources/plugins/pastefromword/lang/fo.js create mode 100644 sources/plugins/pastefromword/lang/fr-ca.js create mode 100644 sources/plugins/pastefromword/lang/fr.js create mode 100644 sources/plugins/pastefromword/lang/gl.js create mode 100644 sources/plugins/pastefromword/lang/gu.js create mode 100644 sources/plugins/pastefromword/lang/he.js create mode 100644 sources/plugins/pastefromword/lang/hi.js create mode 100644 sources/plugins/pastefromword/lang/hr.js create mode 100644 sources/plugins/pastefromword/lang/hu.js create mode 100644 sources/plugins/pastefromword/lang/id.js create mode 100644 sources/plugins/pastefromword/lang/is.js create mode 100644 sources/plugins/pastefromword/lang/it.js create mode 100644 sources/plugins/pastefromword/lang/ja.js create mode 100644 sources/plugins/pastefromword/lang/ka.js create mode 100644 sources/plugins/pastefromword/lang/km.js create mode 100644 sources/plugins/pastefromword/lang/ko.js create mode 100644 sources/plugins/pastefromword/lang/ku.js create mode 100644 sources/plugins/pastefromword/lang/lt.js create mode 100644 sources/plugins/pastefromword/lang/lv.js create mode 100644 sources/plugins/pastefromword/lang/mk.js create mode 100644 sources/plugins/pastefromword/lang/mn.js create mode 100644 sources/plugins/pastefromword/lang/ms.js create mode 100644 sources/plugins/pastefromword/lang/nb.js create mode 100644 sources/plugins/pastefromword/lang/nl.js create mode 100644 sources/plugins/pastefromword/lang/no.js create mode 100644 sources/plugins/pastefromword/lang/pl.js create mode 100644 sources/plugins/pastefromword/lang/pt-br.js create mode 100644 sources/plugins/pastefromword/lang/pt.js create mode 100644 sources/plugins/pastefromword/lang/ro.js create mode 100644 sources/plugins/pastefromword/lang/ru.js create mode 100644 sources/plugins/pastefromword/lang/si.js create mode 100644 sources/plugins/pastefromword/lang/sk.js create mode 100644 sources/plugins/pastefromword/lang/sl.js create mode 100644 sources/plugins/pastefromword/lang/sq.js create mode 100644 sources/plugins/pastefromword/lang/sr-latn.js create mode 100644 sources/plugins/pastefromword/lang/sr.js create mode 100644 sources/plugins/pastefromword/lang/sv.js create mode 100644 sources/plugins/pastefromword/lang/th.js create mode 100644 sources/plugins/pastefromword/lang/tr.js create mode 100644 sources/plugins/pastefromword/lang/tt.js create mode 100644 sources/plugins/pastefromword/lang/ug.js create mode 100644 sources/plugins/pastefromword/lang/uk.js create mode 100644 sources/plugins/pastefromword/lang/vi.js create mode 100644 sources/plugins/pastefromword/lang/zh-cn.js create mode 100644 sources/plugins/pastefromword/lang/zh.js create mode 100644 sources/plugins/pastefromword/plugin.js create mode 100644 sources/plugins/pastetext/icons/hidpi/pastetext-rtl.png create mode 100644 sources/plugins/pastetext/icons/hidpi/pastetext.png create mode 100644 sources/plugins/pastetext/icons/pastetext-rtl.png create mode 100644 sources/plugins/pastetext/icons/pastetext.png create mode 100644 sources/plugins/pastetext/lang/af.js create mode 100644 sources/plugins/pastetext/lang/ar.js create mode 100644 sources/plugins/pastetext/lang/bg.js create mode 100644 sources/plugins/pastetext/lang/bn.js create mode 100644 sources/plugins/pastetext/lang/bs.js create mode 100644 sources/plugins/pastetext/lang/ca.js create mode 100644 sources/plugins/pastetext/lang/cs.js create mode 100644 sources/plugins/pastetext/lang/cy.js create mode 100644 sources/plugins/pastetext/lang/da.js create mode 100644 sources/plugins/pastetext/lang/de.js create mode 100644 sources/plugins/pastetext/lang/el.js create mode 100644 sources/plugins/pastetext/lang/en-au.js create mode 100644 sources/plugins/pastetext/lang/en-ca.js create mode 100644 sources/plugins/pastetext/lang/en-gb.js create mode 100644 sources/plugins/pastetext/lang/en.js create mode 100644 sources/plugins/pastetext/lang/eo.js create mode 100644 sources/plugins/pastetext/lang/es.js create mode 100644 sources/plugins/pastetext/lang/et.js create mode 100644 sources/plugins/pastetext/lang/eu.js create mode 100644 sources/plugins/pastetext/lang/fa.js create mode 100644 sources/plugins/pastetext/lang/fi.js create mode 100644 sources/plugins/pastetext/lang/fo.js create mode 100644 sources/plugins/pastetext/lang/fr-ca.js create mode 100644 sources/plugins/pastetext/lang/fr.js create mode 100644 sources/plugins/pastetext/lang/gl.js create mode 100644 sources/plugins/pastetext/lang/gu.js create mode 100644 sources/plugins/pastetext/lang/he.js create mode 100644 sources/plugins/pastetext/lang/hi.js create mode 100644 sources/plugins/pastetext/lang/hr.js create mode 100644 sources/plugins/pastetext/lang/hu.js create mode 100644 sources/plugins/pastetext/lang/id.js create mode 100644 sources/plugins/pastetext/lang/is.js create mode 100644 sources/plugins/pastetext/lang/it.js create mode 100644 sources/plugins/pastetext/lang/ja.js create mode 100644 sources/plugins/pastetext/lang/ka.js create mode 100644 sources/plugins/pastetext/lang/km.js create mode 100644 sources/plugins/pastetext/lang/ko.js create mode 100644 sources/plugins/pastetext/lang/ku.js create mode 100644 sources/plugins/pastetext/lang/lt.js create mode 100644 sources/plugins/pastetext/lang/lv.js create mode 100644 sources/plugins/pastetext/lang/mk.js create mode 100644 sources/plugins/pastetext/lang/mn.js create mode 100644 sources/plugins/pastetext/lang/ms.js create mode 100644 sources/plugins/pastetext/lang/nb.js create mode 100644 sources/plugins/pastetext/lang/nl.js create mode 100644 sources/plugins/pastetext/lang/no.js create mode 100644 sources/plugins/pastetext/lang/pl.js create mode 100644 sources/plugins/pastetext/lang/pt-br.js create mode 100644 sources/plugins/pastetext/lang/pt.js create mode 100644 sources/plugins/pastetext/lang/ro.js create mode 100644 sources/plugins/pastetext/lang/ru.js create mode 100644 sources/plugins/pastetext/lang/si.js create mode 100644 sources/plugins/pastetext/lang/sk.js create mode 100644 sources/plugins/pastetext/lang/sl.js create mode 100644 sources/plugins/pastetext/lang/sq.js create mode 100644 sources/plugins/pastetext/lang/sr-latn.js create mode 100644 sources/plugins/pastetext/lang/sr.js create mode 100644 sources/plugins/pastetext/lang/sv.js create mode 100644 sources/plugins/pastetext/lang/th.js create mode 100644 sources/plugins/pastetext/lang/tr.js create mode 100644 sources/plugins/pastetext/lang/tt.js create mode 100644 sources/plugins/pastetext/lang/ug.js create mode 100644 sources/plugins/pastetext/lang/uk.js create mode 100644 sources/plugins/pastetext/lang/vi.js create mode 100644 sources/plugins/pastetext/lang/zh-cn.js create mode 100644 sources/plugins/pastetext/lang/zh.js create mode 100644 sources/plugins/pastetext/plugin.js create mode 100644 sources/plugins/popup/plugin.js create mode 100644 sources/plugins/preview/icons/hidpi/preview-rtl.png create mode 100644 sources/plugins/preview/icons/hidpi/preview.png create mode 100644 sources/plugins/preview/icons/preview-rtl.png create mode 100644 sources/plugins/preview/icons/preview.png create mode 100644 sources/plugins/preview/lang/af.js create mode 100644 sources/plugins/preview/lang/ar.js create mode 100644 sources/plugins/preview/lang/bg.js create mode 100644 sources/plugins/preview/lang/bn.js create mode 100644 sources/plugins/preview/lang/bs.js create mode 100644 sources/plugins/preview/lang/ca.js create mode 100644 sources/plugins/preview/lang/cs.js create mode 100644 sources/plugins/preview/lang/cy.js create mode 100644 sources/plugins/preview/lang/da.js create mode 100644 sources/plugins/preview/lang/de.js create mode 100644 sources/plugins/preview/lang/el.js create mode 100644 sources/plugins/preview/lang/en-au.js create mode 100644 sources/plugins/preview/lang/en-ca.js create mode 100644 sources/plugins/preview/lang/en-gb.js create mode 100644 sources/plugins/preview/lang/en.js create mode 100644 sources/plugins/preview/lang/eo.js create mode 100644 sources/plugins/preview/lang/es.js create mode 100644 sources/plugins/preview/lang/et.js create mode 100644 sources/plugins/preview/lang/eu.js create mode 100644 sources/plugins/preview/lang/fa.js create mode 100644 sources/plugins/preview/lang/fi.js create mode 100644 sources/plugins/preview/lang/fo.js create mode 100644 sources/plugins/preview/lang/fr-ca.js create mode 100644 sources/plugins/preview/lang/fr.js create mode 100644 sources/plugins/preview/lang/gl.js create mode 100644 sources/plugins/preview/lang/gu.js create mode 100644 sources/plugins/preview/lang/he.js create mode 100644 sources/plugins/preview/lang/hi.js create mode 100644 sources/plugins/preview/lang/hr.js create mode 100644 sources/plugins/preview/lang/hu.js create mode 100644 sources/plugins/preview/lang/id.js create mode 100644 sources/plugins/preview/lang/is.js create mode 100644 sources/plugins/preview/lang/it.js create mode 100644 sources/plugins/preview/lang/ja.js create mode 100644 sources/plugins/preview/lang/ka.js create mode 100644 sources/plugins/preview/lang/km.js create mode 100644 sources/plugins/preview/lang/ko.js create mode 100644 sources/plugins/preview/lang/ku.js create mode 100644 sources/plugins/preview/lang/lt.js create mode 100644 sources/plugins/preview/lang/lv.js create mode 100644 sources/plugins/preview/lang/mk.js create mode 100644 sources/plugins/preview/lang/mn.js create mode 100644 sources/plugins/preview/lang/ms.js create mode 100644 sources/plugins/preview/lang/nb.js create mode 100644 sources/plugins/preview/lang/nl.js create mode 100644 sources/plugins/preview/lang/no.js create mode 100644 sources/plugins/preview/lang/pl.js create mode 100644 sources/plugins/preview/lang/pt-br.js create mode 100644 sources/plugins/preview/lang/pt.js create mode 100644 sources/plugins/preview/lang/ro.js create mode 100644 sources/plugins/preview/lang/ru.js create mode 100644 sources/plugins/preview/lang/si.js create mode 100644 sources/plugins/preview/lang/sk.js create mode 100644 sources/plugins/preview/lang/sl.js create mode 100644 sources/plugins/preview/lang/sq.js create mode 100644 sources/plugins/preview/lang/sr-latn.js create mode 100644 sources/plugins/preview/lang/sr.js create mode 100644 sources/plugins/preview/lang/sv.js create mode 100644 sources/plugins/preview/lang/th.js create mode 100644 sources/plugins/preview/lang/tr.js create mode 100644 sources/plugins/preview/lang/tt.js create mode 100644 sources/plugins/preview/lang/ug.js create mode 100644 sources/plugins/preview/lang/uk.js create mode 100644 sources/plugins/preview/lang/vi.js create mode 100644 sources/plugins/preview/lang/zh-cn.js create mode 100644 sources/plugins/preview/lang/zh.js create mode 100644 sources/plugins/preview/plugin.js create mode 100644 sources/plugins/preview/preview.html create mode 100644 sources/plugins/print/icons/hidpi/print.png create mode 100644 sources/plugins/print/icons/print.png create mode 100644 sources/plugins/print/lang/af.js create mode 100644 sources/plugins/print/lang/ar.js create mode 100644 sources/plugins/print/lang/bg.js create mode 100644 sources/plugins/print/lang/bn.js create mode 100644 sources/plugins/print/lang/bs.js create mode 100644 sources/plugins/print/lang/ca.js create mode 100644 sources/plugins/print/lang/cs.js create mode 100644 sources/plugins/print/lang/cy.js create mode 100644 sources/plugins/print/lang/da.js create mode 100644 sources/plugins/print/lang/de.js create mode 100644 sources/plugins/print/lang/el.js create mode 100644 sources/plugins/print/lang/en-au.js create mode 100644 sources/plugins/print/lang/en-ca.js create mode 100644 sources/plugins/print/lang/en-gb.js create mode 100644 sources/plugins/print/lang/en.js create mode 100644 sources/plugins/print/lang/eo.js create mode 100644 sources/plugins/print/lang/es.js create mode 100644 sources/plugins/print/lang/et.js create mode 100644 sources/plugins/print/lang/eu.js create mode 100644 sources/plugins/print/lang/fa.js create mode 100644 sources/plugins/print/lang/fi.js create mode 100644 sources/plugins/print/lang/fo.js create mode 100644 sources/plugins/print/lang/fr-ca.js create mode 100644 sources/plugins/print/lang/fr.js create mode 100644 sources/plugins/print/lang/gl.js create mode 100644 sources/plugins/print/lang/gu.js create mode 100644 sources/plugins/print/lang/he.js create mode 100644 sources/plugins/print/lang/hi.js create mode 100644 sources/plugins/print/lang/hr.js create mode 100644 sources/plugins/print/lang/hu.js create mode 100644 sources/plugins/print/lang/id.js create mode 100644 sources/plugins/print/lang/is.js create mode 100644 sources/plugins/print/lang/it.js create mode 100644 sources/plugins/print/lang/ja.js create mode 100644 sources/plugins/print/lang/ka.js create mode 100644 sources/plugins/print/lang/km.js create mode 100644 sources/plugins/print/lang/ko.js create mode 100644 sources/plugins/print/lang/ku.js create mode 100644 sources/plugins/print/lang/lt.js create mode 100644 sources/plugins/print/lang/lv.js create mode 100644 sources/plugins/print/lang/mk.js create mode 100644 sources/plugins/print/lang/mn.js create mode 100644 sources/plugins/print/lang/ms.js create mode 100644 sources/plugins/print/lang/nb.js create mode 100644 sources/plugins/print/lang/nl.js create mode 100644 sources/plugins/print/lang/no.js create mode 100644 sources/plugins/print/lang/pl.js create mode 100644 sources/plugins/print/lang/pt-br.js create mode 100644 sources/plugins/print/lang/pt.js create mode 100644 sources/plugins/print/lang/ro.js create mode 100644 sources/plugins/print/lang/ru.js create mode 100644 sources/plugins/print/lang/si.js create mode 100644 sources/plugins/print/lang/sk.js create mode 100644 sources/plugins/print/lang/sl.js create mode 100644 sources/plugins/print/lang/sq.js create mode 100644 sources/plugins/print/lang/sr-latn.js create mode 100644 sources/plugins/print/lang/sr.js create mode 100644 sources/plugins/print/lang/sv.js create mode 100644 sources/plugins/print/lang/th.js create mode 100644 sources/plugins/print/lang/tr.js create mode 100644 sources/plugins/print/lang/tt.js create mode 100644 sources/plugins/print/lang/ug.js create mode 100644 sources/plugins/print/lang/uk.js create mode 100644 sources/plugins/print/lang/vi.js create mode 100644 sources/plugins/print/lang/zh-cn.js create mode 100644 sources/plugins/print/lang/zh.js create mode 100644 sources/plugins/print/plugin.js create mode 100644 sources/plugins/removeformat/icons/hidpi/removeformat.png create mode 100644 sources/plugins/removeformat/icons/removeformat.png create mode 100644 sources/plugins/removeformat/lang/af.js create mode 100644 sources/plugins/removeformat/lang/ar.js create mode 100644 sources/plugins/removeformat/lang/bg.js create mode 100644 sources/plugins/removeformat/lang/bn.js create mode 100644 sources/plugins/removeformat/lang/bs.js create mode 100644 sources/plugins/removeformat/lang/ca.js create mode 100644 sources/plugins/removeformat/lang/cs.js create mode 100644 sources/plugins/removeformat/lang/cy.js create mode 100644 sources/plugins/removeformat/lang/da.js create mode 100644 sources/plugins/removeformat/lang/de.js create mode 100644 sources/plugins/removeformat/lang/el.js create mode 100644 sources/plugins/removeformat/lang/en-au.js create mode 100644 sources/plugins/removeformat/lang/en-ca.js create mode 100644 sources/plugins/removeformat/lang/en-gb.js create mode 100644 sources/plugins/removeformat/lang/en.js create mode 100644 sources/plugins/removeformat/lang/eo.js create mode 100644 sources/plugins/removeformat/lang/es.js create mode 100644 sources/plugins/removeformat/lang/et.js create mode 100644 sources/plugins/removeformat/lang/eu.js create mode 100644 sources/plugins/removeformat/lang/fa.js create mode 100644 sources/plugins/removeformat/lang/fi.js create mode 100644 sources/plugins/removeformat/lang/fo.js create mode 100644 sources/plugins/removeformat/lang/fr-ca.js create mode 100644 sources/plugins/removeformat/lang/fr.js create mode 100644 sources/plugins/removeformat/lang/gl.js create mode 100644 sources/plugins/removeformat/lang/gu.js create mode 100644 sources/plugins/removeformat/lang/he.js create mode 100644 sources/plugins/removeformat/lang/hi.js create mode 100644 sources/plugins/removeformat/lang/hr.js create mode 100644 sources/plugins/removeformat/lang/hu.js create mode 100644 sources/plugins/removeformat/lang/id.js create mode 100644 sources/plugins/removeformat/lang/is.js create mode 100644 sources/plugins/removeformat/lang/it.js create mode 100644 sources/plugins/removeformat/lang/ja.js create mode 100644 sources/plugins/removeformat/lang/ka.js create mode 100644 sources/plugins/removeformat/lang/km.js create mode 100644 sources/plugins/removeformat/lang/ko.js create mode 100644 sources/plugins/removeformat/lang/ku.js create mode 100644 sources/plugins/removeformat/lang/lt.js create mode 100644 sources/plugins/removeformat/lang/lv.js create mode 100644 sources/plugins/removeformat/lang/mk.js create mode 100644 sources/plugins/removeformat/lang/mn.js create mode 100644 sources/plugins/removeformat/lang/ms.js create mode 100644 sources/plugins/removeformat/lang/nb.js create mode 100644 sources/plugins/removeformat/lang/nl.js create mode 100644 sources/plugins/removeformat/lang/no.js create mode 100644 sources/plugins/removeformat/lang/pl.js create mode 100644 sources/plugins/removeformat/lang/pt-br.js create mode 100644 sources/plugins/removeformat/lang/pt.js create mode 100644 sources/plugins/removeformat/lang/ro.js create mode 100644 sources/plugins/removeformat/lang/ru.js create mode 100644 sources/plugins/removeformat/lang/si.js create mode 100644 sources/plugins/removeformat/lang/sk.js create mode 100644 sources/plugins/removeformat/lang/sl.js create mode 100644 sources/plugins/removeformat/lang/sq.js create mode 100644 sources/plugins/removeformat/lang/sr-latn.js create mode 100644 sources/plugins/removeformat/lang/sr.js create mode 100644 sources/plugins/removeformat/lang/sv.js create mode 100644 sources/plugins/removeformat/lang/th.js create mode 100644 sources/plugins/removeformat/lang/tr.js create mode 100644 sources/plugins/removeformat/lang/tt.js create mode 100644 sources/plugins/removeformat/lang/ug.js create mode 100644 sources/plugins/removeformat/lang/uk.js create mode 100644 sources/plugins/removeformat/lang/vi.js create mode 100644 sources/plugins/removeformat/lang/zh-cn.js create mode 100644 sources/plugins/removeformat/lang/zh.js create mode 100644 sources/plugins/removeformat/plugin.js create mode 100644 sources/plugins/resize/plugin.js create mode 100644 sources/plugins/richcombo/plugin.js create mode 100644 sources/plugins/save/icons/hidpi/save.png create mode 100644 sources/plugins/save/icons/save.png create mode 100644 sources/plugins/save/lang/af.js create mode 100644 sources/plugins/save/lang/ar.js create mode 100644 sources/plugins/save/lang/bg.js create mode 100644 sources/plugins/save/lang/bn.js create mode 100644 sources/plugins/save/lang/bs.js create mode 100644 sources/plugins/save/lang/ca.js create mode 100644 sources/plugins/save/lang/cs.js create mode 100644 sources/plugins/save/lang/cy.js create mode 100644 sources/plugins/save/lang/da.js create mode 100644 sources/plugins/save/lang/de.js create mode 100644 sources/plugins/save/lang/el.js create mode 100644 sources/plugins/save/lang/en-au.js create mode 100644 sources/plugins/save/lang/en-ca.js create mode 100644 sources/plugins/save/lang/en-gb.js create mode 100644 sources/plugins/save/lang/en.js create mode 100644 sources/plugins/save/lang/eo.js create mode 100644 sources/plugins/save/lang/es.js create mode 100644 sources/plugins/save/lang/et.js create mode 100644 sources/plugins/save/lang/eu.js create mode 100644 sources/plugins/save/lang/fa.js create mode 100644 sources/plugins/save/lang/fi.js create mode 100644 sources/plugins/save/lang/fo.js create mode 100644 sources/plugins/save/lang/fr-ca.js create mode 100644 sources/plugins/save/lang/fr.js create mode 100644 sources/plugins/save/lang/gl.js create mode 100644 sources/plugins/save/lang/gu.js create mode 100644 sources/plugins/save/lang/he.js create mode 100644 sources/plugins/save/lang/hi.js create mode 100644 sources/plugins/save/lang/hr.js create mode 100644 sources/plugins/save/lang/hu.js create mode 100644 sources/plugins/save/lang/id.js create mode 100644 sources/plugins/save/lang/is.js create mode 100644 sources/plugins/save/lang/it.js create mode 100644 sources/plugins/save/lang/ja.js create mode 100644 sources/plugins/save/lang/ka.js create mode 100644 sources/plugins/save/lang/km.js create mode 100644 sources/plugins/save/lang/ko.js create mode 100644 sources/plugins/save/lang/ku.js create mode 100644 sources/plugins/save/lang/lt.js create mode 100644 sources/plugins/save/lang/lv.js create mode 100644 sources/plugins/save/lang/mk.js create mode 100644 sources/plugins/save/lang/mn.js create mode 100644 sources/plugins/save/lang/ms.js create mode 100644 sources/plugins/save/lang/nb.js create mode 100644 sources/plugins/save/lang/nl.js create mode 100644 sources/plugins/save/lang/no.js create mode 100644 sources/plugins/save/lang/pl.js create mode 100644 sources/plugins/save/lang/pt-br.js create mode 100644 sources/plugins/save/lang/pt.js create mode 100644 sources/plugins/save/lang/ro.js create mode 100644 sources/plugins/save/lang/ru.js create mode 100644 sources/plugins/save/lang/si.js create mode 100644 sources/plugins/save/lang/sk.js create mode 100644 sources/plugins/save/lang/sl.js create mode 100644 sources/plugins/save/lang/sq.js create mode 100644 sources/plugins/save/lang/sr-latn.js create mode 100644 sources/plugins/save/lang/sr.js create mode 100644 sources/plugins/save/lang/sv.js create mode 100644 sources/plugins/save/lang/th.js create mode 100644 sources/plugins/save/lang/tr.js create mode 100644 sources/plugins/save/lang/tt.js create mode 100644 sources/plugins/save/lang/ug.js create mode 100644 sources/plugins/save/lang/uk.js create mode 100644 sources/plugins/save/lang/vi.js create mode 100644 sources/plugins/save/lang/zh-cn.js create mode 100644 sources/plugins/save/lang/zh.js create mode 100644 sources/plugins/save/plugin.js create mode 100644 sources/plugins/scayt/CHANGELOG.md create mode 100644 sources/plugins/scayt/LICENSE.md create mode 100644 sources/plugins/scayt/README.md create mode 100644 sources/plugins/scayt/dialogs/options.js create mode 100644 sources/plugins/scayt/dialogs/toolbar.css create mode 100644 sources/plugins/scayt/icons/hidpi/scayt.png create mode 100644 sources/plugins/scayt/icons/scayt.png create mode 100644 sources/plugins/scayt/lang/af.js create mode 100644 sources/plugins/scayt/lang/ar.js create mode 100644 sources/plugins/scayt/lang/bg.js create mode 100644 sources/plugins/scayt/lang/bn.js create mode 100644 sources/plugins/scayt/lang/bs.js create mode 100644 sources/plugins/scayt/lang/ca.js create mode 100644 sources/plugins/scayt/lang/cs.js create mode 100644 sources/plugins/scayt/lang/cy.js create mode 100644 sources/plugins/scayt/lang/da.js create mode 100644 sources/plugins/scayt/lang/de.js create mode 100644 sources/plugins/scayt/lang/el.js create mode 100644 sources/plugins/scayt/lang/en-au.js create mode 100644 sources/plugins/scayt/lang/en-ca.js create mode 100644 sources/plugins/scayt/lang/en-gb.js create mode 100644 sources/plugins/scayt/lang/en.js create mode 100644 sources/plugins/scayt/lang/eo.js create mode 100644 sources/plugins/scayt/lang/es.js create mode 100644 sources/plugins/scayt/lang/et.js create mode 100644 sources/plugins/scayt/lang/eu.js create mode 100644 sources/plugins/scayt/lang/fa.js create mode 100644 sources/plugins/scayt/lang/fi.js create mode 100644 sources/plugins/scayt/lang/fo.js create mode 100644 sources/plugins/scayt/lang/fr-ca.js create mode 100644 sources/plugins/scayt/lang/fr.js create mode 100644 sources/plugins/scayt/lang/gl.js create mode 100644 sources/plugins/scayt/lang/gu.js create mode 100644 sources/plugins/scayt/lang/he.js create mode 100644 sources/plugins/scayt/lang/hi.js create mode 100644 sources/plugins/scayt/lang/hr.js create mode 100644 sources/plugins/scayt/lang/hu.js create mode 100644 sources/plugins/scayt/lang/is.js create mode 100644 sources/plugins/scayt/lang/it.js create mode 100644 sources/plugins/scayt/lang/ja.js create mode 100644 sources/plugins/scayt/lang/ka.js create mode 100644 sources/plugins/scayt/lang/km.js create mode 100644 sources/plugins/scayt/lang/ko.js create mode 100644 sources/plugins/scayt/lang/ku.js create mode 100644 sources/plugins/scayt/lang/lt.js create mode 100644 sources/plugins/scayt/lang/lv.js create mode 100644 sources/plugins/scayt/lang/mk.js create mode 100644 sources/plugins/scayt/lang/mn.js create mode 100644 sources/plugins/scayt/lang/ms.js create mode 100644 sources/plugins/scayt/lang/nb.js create mode 100644 sources/plugins/scayt/lang/nl.js create mode 100644 sources/plugins/scayt/lang/no.js create mode 100644 sources/plugins/scayt/lang/pl.js create mode 100644 sources/plugins/scayt/lang/pt-br.js create mode 100644 sources/plugins/scayt/lang/pt.js create mode 100644 sources/plugins/scayt/lang/ro.js create mode 100644 sources/plugins/scayt/lang/ru.js create mode 100644 sources/plugins/scayt/lang/sk.js create mode 100644 sources/plugins/scayt/lang/sl.js create mode 100644 sources/plugins/scayt/lang/sr-latn.js create mode 100644 sources/plugins/scayt/lang/sr.js create mode 100644 sources/plugins/scayt/lang/sv.js create mode 100644 sources/plugins/scayt/lang/th.js create mode 100644 sources/plugins/scayt/lang/tr.js create mode 100644 sources/plugins/scayt/lang/ug.js create mode 100644 sources/plugins/scayt/lang/uk.js create mode 100644 sources/plugins/scayt/lang/vi.js create mode 100644 sources/plugins/scayt/lang/zh-cn.js create mode 100644 sources/plugins/scayt/lang/zh.js create mode 100644 sources/plugins/scayt/plugin.js create mode 100644 sources/plugins/selectall/icons/hidpi/selectall.png create mode 100644 sources/plugins/selectall/icons/selectall.png create mode 100644 sources/plugins/selectall/lang/af.js create mode 100644 sources/plugins/selectall/lang/ar.js create mode 100644 sources/plugins/selectall/lang/bg.js create mode 100644 sources/plugins/selectall/lang/bn.js create mode 100644 sources/plugins/selectall/lang/bs.js create mode 100644 sources/plugins/selectall/lang/ca.js create mode 100644 sources/plugins/selectall/lang/cs.js create mode 100644 sources/plugins/selectall/lang/cy.js create mode 100644 sources/plugins/selectall/lang/da.js create mode 100644 sources/plugins/selectall/lang/de.js create mode 100644 sources/plugins/selectall/lang/el.js create mode 100644 sources/plugins/selectall/lang/en-au.js create mode 100644 sources/plugins/selectall/lang/en-ca.js create mode 100644 sources/plugins/selectall/lang/en-gb.js create mode 100644 sources/plugins/selectall/lang/en.js create mode 100644 sources/plugins/selectall/lang/eo.js create mode 100644 sources/plugins/selectall/lang/es.js create mode 100644 sources/plugins/selectall/lang/et.js create mode 100644 sources/plugins/selectall/lang/eu.js create mode 100644 sources/plugins/selectall/lang/fa.js create mode 100644 sources/plugins/selectall/lang/fi.js create mode 100644 sources/plugins/selectall/lang/fo.js create mode 100644 sources/plugins/selectall/lang/fr-ca.js create mode 100644 sources/plugins/selectall/lang/fr.js create mode 100644 sources/plugins/selectall/lang/gl.js create mode 100644 sources/plugins/selectall/lang/gu.js create mode 100644 sources/plugins/selectall/lang/he.js create mode 100644 sources/plugins/selectall/lang/hi.js create mode 100644 sources/plugins/selectall/lang/hr.js create mode 100644 sources/plugins/selectall/lang/hu.js create mode 100644 sources/plugins/selectall/lang/id.js create mode 100644 sources/plugins/selectall/lang/is.js create mode 100644 sources/plugins/selectall/lang/it.js create mode 100644 sources/plugins/selectall/lang/ja.js create mode 100644 sources/plugins/selectall/lang/ka.js create mode 100644 sources/plugins/selectall/lang/km.js create mode 100644 sources/plugins/selectall/lang/ko.js create mode 100644 sources/plugins/selectall/lang/ku.js create mode 100644 sources/plugins/selectall/lang/lt.js create mode 100644 sources/plugins/selectall/lang/lv.js create mode 100644 sources/plugins/selectall/lang/mk.js create mode 100644 sources/plugins/selectall/lang/mn.js create mode 100644 sources/plugins/selectall/lang/ms.js create mode 100644 sources/plugins/selectall/lang/nb.js create mode 100644 sources/plugins/selectall/lang/nl.js create mode 100644 sources/plugins/selectall/lang/no.js create mode 100644 sources/plugins/selectall/lang/pl.js create mode 100644 sources/plugins/selectall/lang/pt-br.js create mode 100644 sources/plugins/selectall/lang/pt.js create mode 100644 sources/plugins/selectall/lang/ro.js create mode 100644 sources/plugins/selectall/lang/ru.js create mode 100644 sources/plugins/selectall/lang/si.js create mode 100644 sources/plugins/selectall/lang/sk.js create mode 100644 sources/plugins/selectall/lang/sl.js create mode 100644 sources/plugins/selectall/lang/sq.js create mode 100644 sources/plugins/selectall/lang/sr-latn.js create mode 100644 sources/plugins/selectall/lang/sr.js create mode 100644 sources/plugins/selectall/lang/sv.js create mode 100644 sources/plugins/selectall/lang/th.js create mode 100644 sources/plugins/selectall/lang/tr.js create mode 100644 sources/plugins/selectall/lang/tt.js create mode 100644 sources/plugins/selectall/lang/ug.js create mode 100644 sources/plugins/selectall/lang/uk.js create mode 100644 sources/plugins/selectall/lang/vi.js create mode 100644 sources/plugins/selectall/lang/zh-cn.js create mode 100644 sources/plugins/selectall/lang/zh.js create mode 100644 sources/plugins/selectall/plugin.js create mode 100644 sources/plugins/showblocks/icons/hidpi/showblocks-rtl.png create mode 100644 sources/plugins/showblocks/icons/hidpi/showblocks.png create mode 100644 sources/plugins/showblocks/icons/showblocks-rtl.png create mode 100644 sources/plugins/showblocks/icons/showblocks.png create mode 100644 sources/plugins/showblocks/images/block_address.png create mode 100644 sources/plugins/showblocks/images/block_blockquote.png create mode 100644 sources/plugins/showblocks/images/block_div.png create mode 100644 sources/plugins/showblocks/images/block_h1.png create mode 100644 sources/plugins/showblocks/images/block_h2.png create mode 100644 sources/plugins/showblocks/images/block_h3.png create mode 100644 sources/plugins/showblocks/images/block_h4.png create mode 100644 sources/plugins/showblocks/images/block_h5.png create mode 100644 sources/plugins/showblocks/images/block_h6.png create mode 100644 sources/plugins/showblocks/images/block_p.png create mode 100644 sources/plugins/showblocks/images/block_pre.png create mode 100644 sources/plugins/showblocks/lang/af.js create mode 100644 sources/plugins/showblocks/lang/ar.js create mode 100644 sources/plugins/showblocks/lang/bg.js create mode 100644 sources/plugins/showblocks/lang/bn.js create mode 100644 sources/plugins/showblocks/lang/bs.js create mode 100644 sources/plugins/showblocks/lang/ca.js create mode 100644 sources/plugins/showblocks/lang/cs.js create mode 100644 sources/plugins/showblocks/lang/cy.js create mode 100644 sources/plugins/showblocks/lang/da.js create mode 100644 sources/plugins/showblocks/lang/de.js create mode 100644 sources/plugins/showblocks/lang/el.js create mode 100644 sources/plugins/showblocks/lang/en-au.js create mode 100644 sources/plugins/showblocks/lang/en-ca.js create mode 100644 sources/plugins/showblocks/lang/en-gb.js create mode 100644 sources/plugins/showblocks/lang/en.js create mode 100644 sources/plugins/showblocks/lang/eo.js create mode 100644 sources/plugins/showblocks/lang/es.js create mode 100644 sources/plugins/showblocks/lang/et.js create mode 100644 sources/plugins/showblocks/lang/eu.js create mode 100644 sources/plugins/showblocks/lang/fa.js create mode 100644 sources/plugins/showblocks/lang/fi.js create mode 100644 sources/plugins/showblocks/lang/fo.js create mode 100644 sources/plugins/showblocks/lang/fr-ca.js create mode 100644 sources/plugins/showblocks/lang/fr.js create mode 100644 sources/plugins/showblocks/lang/gl.js create mode 100644 sources/plugins/showblocks/lang/gu.js create mode 100644 sources/plugins/showblocks/lang/he.js create mode 100644 sources/plugins/showblocks/lang/hi.js create mode 100644 sources/plugins/showblocks/lang/hr.js create mode 100644 sources/plugins/showblocks/lang/hu.js create mode 100644 sources/plugins/showblocks/lang/id.js create mode 100644 sources/plugins/showblocks/lang/is.js create mode 100644 sources/plugins/showblocks/lang/it.js create mode 100644 sources/plugins/showblocks/lang/ja.js create mode 100644 sources/plugins/showblocks/lang/ka.js create mode 100644 sources/plugins/showblocks/lang/km.js create mode 100644 sources/plugins/showblocks/lang/ko.js create mode 100644 sources/plugins/showblocks/lang/ku.js create mode 100644 sources/plugins/showblocks/lang/lt.js create mode 100644 sources/plugins/showblocks/lang/lv.js create mode 100644 sources/plugins/showblocks/lang/mk.js create mode 100644 sources/plugins/showblocks/lang/mn.js create mode 100644 sources/plugins/showblocks/lang/ms.js create mode 100644 sources/plugins/showblocks/lang/nb.js create mode 100644 sources/plugins/showblocks/lang/nl.js create mode 100644 sources/plugins/showblocks/lang/no.js create mode 100644 sources/plugins/showblocks/lang/pl.js create mode 100644 sources/plugins/showblocks/lang/pt-br.js create mode 100644 sources/plugins/showblocks/lang/pt.js create mode 100644 sources/plugins/showblocks/lang/ro.js create mode 100644 sources/plugins/showblocks/lang/ru.js create mode 100644 sources/plugins/showblocks/lang/si.js create mode 100644 sources/plugins/showblocks/lang/sk.js create mode 100644 sources/plugins/showblocks/lang/sl.js create mode 100644 sources/plugins/showblocks/lang/sq.js create mode 100644 sources/plugins/showblocks/lang/sr-latn.js create mode 100644 sources/plugins/showblocks/lang/sr.js create mode 100644 sources/plugins/showblocks/lang/sv.js create mode 100644 sources/plugins/showblocks/lang/th.js create mode 100644 sources/plugins/showblocks/lang/tr.js create mode 100644 sources/plugins/showblocks/lang/tt.js create mode 100644 sources/plugins/showblocks/lang/ug.js create mode 100644 sources/plugins/showblocks/lang/uk.js create mode 100644 sources/plugins/showblocks/lang/vi.js create mode 100644 sources/plugins/showblocks/lang/zh-cn.js create mode 100644 sources/plugins/showblocks/lang/zh.js create mode 100644 sources/plugins/showblocks/plugin.js create mode 100644 sources/plugins/showborders/plugin.js create mode 100644 sources/plugins/smiley/dialogs/smiley.js create mode 100644 sources/plugins/smiley/icons/hidpi/smiley.png create mode 100644 sources/plugins/smiley/icons/smiley.png create mode 100644 sources/plugins/smiley/images/angel_smile.gif create mode 100644 sources/plugins/smiley/images/angel_smile.png create mode 100644 sources/plugins/smiley/images/angry_smile.gif create mode 100644 sources/plugins/smiley/images/angry_smile.png create mode 100644 sources/plugins/smiley/images/broken_heart.gif create mode 100644 sources/plugins/smiley/images/broken_heart.png create mode 100644 sources/plugins/smiley/images/confused_smile.gif create mode 100644 sources/plugins/smiley/images/confused_smile.png create mode 100644 sources/plugins/smiley/images/cry_smile.gif create mode 100644 sources/plugins/smiley/images/cry_smile.png create mode 100644 sources/plugins/smiley/images/devil_smile.gif create mode 100644 sources/plugins/smiley/images/devil_smile.png create mode 100644 sources/plugins/smiley/images/embaressed_smile.gif create mode 100644 sources/plugins/smiley/images/embarrassed_smile.gif create mode 100644 sources/plugins/smiley/images/embarrassed_smile.png create mode 100644 sources/plugins/smiley/images/envelope.gif create mode 100644 sources/plugins/smiley/images/envelope.png create mode 100644 sources/plugins/smiley/images/heart.gif create mode 100644 sources/plugins/smiley/images/heart.png create mode 100644 sources/plugins/smiley/images/kiss.gif create mode 100644 sources/plugins/smiley/images/kiss.png create mode 100644 sources/plugins/smiley/images/lightbulb.gif create mode 100644 sources/plugins/smiley/images/lightbulb.png create mode 100644 sources/plugins/smiley/images/omg_smile.gif create mode 100644 sources/plugins/smiley/images/omg_smile.png create mode 100644 sources/plugins/smiley/images/regular_smile.gif create mode 100644 sources/plugins/smiley/images/regular_smile.png create mode 100644 sources/plugins/smiley/images/sad_smile.gif create mode 100644 sources/plugins/smiley/images/sad_smile.png create mode 100644 sources/plugins/smiley/images/shades_smile.gif create mode 100644 sources/plugins/smiley/images/shades_smile.png create mode 100644 sources/plugins/smiley/images/teeth_smile.gif create mode 100644 sources/plugins/smiley/images/teeth_smile.png create mode 100644 sources/plugins/smiley/images/thumbs_down.gif create mode 100644 sources/plugins/smiley/images/thumbs_down.png create mode 100644 sources/plugins/smiley/images/thumbs_up.gif create mode 100644 sources/plugins/smiley/images/thumbs_up.png create mode 100644 sources/plugins/smiley/images/tongue_smile.gif create mode 100644 sources/plugins/smiley/images/tongue_smile.png create mode 100644 sources/plugins/smiley/images/tounge_smile.gif create mode 100644 sources/plugins/smiley/images/whatchutalkingabout_smile.gif create mode 100644 sources/plugins/smiley/images/whatchutalkingabout_smile.png create mode 100644 sources/plugins/smiley/images/wink_smile.gif create mode 100644 sources/plugins/smiley/images/wink_smile.png create mode 100644 sources/plugins/smiley/lang/af.js create mode 100644 sources/plugins/smiley/lang/ar.js create mode 100644 sources/plugins/smiley/lang/bg.js create mode 100644 sources/plugins/smiley/lang/bn.js create mode 100644 sources/plugins/smiley/lang/bs.js create mode 100644 sources/plugins/smiley/lang/ca.js create mode 100644 sources/plugins/smiley/lang/cs.js create mode 100644 sources/plugins/smiley/lang/cy.js create mode 100644 sources/plugins/smiley/lang/da.js create mode 100644 sources/plugins/smiley/lang/de.js create mode 100644 sources/plugins/smiley/lang/el.js create mode 100644 sources/plugins/smiley/lang/en-au.js create mode 100644 sources/plugins/smiley/lang/en-ca.js create mode 100644 sources/plugins/smiley/lang/en-gb.js create mode 100644 sources/plugins/smiley/lang/en.js create mode 100644 sources/plugins/smiley/lang/eo.js create mode 100644 sources/plugins/smiley/lang/es.js create mode 100644 sources/plugins/smiley/lang/et.js create mode 100644 sources/plugins/smiley/lang/eu.js create mode 100644 sources/plugins/smiley/lang/fa.js create mode 100644 sources/plugins/smiley/lang/fi.js create mode 100644 sources/plugins/smiley/lang/fo.js create mode 100644 sources/plugins/smiley/lang/fr-ca.js create mode 100644 sources/plugins/smiley/lang/fr.js create mode 100644 sources/plugins/smiley/lang/gl.js create mode 100644 sources/plugins/smiley/lang/gu.js create mode 100644 sources/plugins/smiley/lang/he.js create mode 100644 sources/plugins/smiley/lang/hi.js create mode 100644 sources/plugins/smiley/lang/hr.js create mode 100644 sources/plugins/smiley/lang/hu.js create mode 100644 sources/plugins/smiley/lang/id.js create mode 100644 sources/plugins/smiley/lang/is.js create mode 100644 sources/plugins/smiley/lang/it.js create mode 100644 sources/plugins/smiley/lang/ja.js create mode 100644 sources/plugins/smiley/lang/ka.js create mode 100644 sources/plugins/smiley/lang/km.js create mode 100644 sources/plugins/smiley/lang/ko.js create mode 100644 sources/plugins/smiley/lang/ku.js create mode 100644 sources/plugins/smiley/lang/lt.js create mode 100644 sources/plugins/smiley/lang/lv.js create mode 100644 sources/plugins/smiley/lang/mk.js create mode 100644 sources/plugins/smiley/lang/mn.js create mode 100644 sources/plugins/smiley/lang/ms.js create mode 100644 sources/plugins/smiley/lang/nb.js create mode 100644 sources/plugins/smiley/lang/nl.js create mode 100644 sources/plugins/smiley/lang/no.js create mode 100644 sources/plugins/smiley/lang/pl.js create mode 100644 sources/plugins/smiley/lang/pt-br.js create mode 100644 sources/plugins/smiley/lang/pt.js create mode 100644 sources/plugins/smiley/lang/ro.js create mode 100644 sources/plugins/smiley/lang/ru.js create mode 100644 sources/plugins/smiley/lang/si.js create mode 100644 sources/plugins/smiley/lang/sk.js create mode 100644 sources/plugins/smiley/lang/sl.js create mode 100644 sources/plugins/smiley/lang/sq.js create mode 100644 sources/plugins/smiley/lang/sr-latn.js create mode 100644 sources/plugins/smiley/lang/sr.js create mode 100644 sources/plugins/smiley/lang/sv.js create mode 100644 sources/plugins/smiley/lang/th.js create mode 100644 sources/plugins/smiley/lang/tr.js create mode 100644 sources/plugins/smiley/lang/tt.js create mode 100644 sources/plugins/smiley/lang/ug.js create mode 100644 sources/plugins/smiley/lang/uk.js create mode 100644 sources/plugins/smiley/lang/vi.js create mode 100644 sources/plugins/smiley/lang/zh-cn.js create mode 100644 sources/plugins/smiley/lang/zh.js create mode 100644 sources/plugins/smiley/plugin.js create mode 100644 sources/plugins/sourcearea/icons/hidpi/source-rtl.png create mode 100644 sources/plugins/sourcearea/icons/hidpi/source.png create mode 100644 sources/plugins/sourcearea/icons/source-rtl.png create mode 100644 sources/plugins/sourcearea/icons/source.png create mode 100644 sources/plugins/sourcearea/lang/af.js create mode 100644 sources/plugins/sourcearea/lang/ar.js create mode 100644 sources/plugins/sourcearea/lang/bg.js create mode 100644 sources/plugins/sourcearea/lang/bn.js create mode 100644 sources/plugins/sourcearea/lang/bs.js create mode 100644 sources/plugins/sourcearea/lang/ca.js create mode 100644 sources/plugins/sourcearea/lang/cs.js create mode 100644 sources/plugins/sourcearea/lang/cy.js create mode 100644 sources/plugins/sourcearea/lang/da.js create mode 100644 sources/plugins/sourcearea/lang/de.js create mode 100644 sources/plugins/sourcearea/lang/el.js create mode 100644 sources/plugins/sourcearea/lang/en-au.js create mode 100644 sources/plugins/sourcearea/lang/en-ca.js create mode 100644 sources/plugins/sourcearea/lang/en-gb.js create mode 100644 sources/plugins/sourcearea/lang/en.js create mode 100644 sources/plugins/sourcearea/lang/eo.js create mode 100644 sources/plugins/sourcearea/lang/es.js create mode 100644 sources/plugins/sourcearea/lang/et.js create mode 100644 sources/plugins/sourcearea/lang/eu.js create mode 100644 sources/plugins/sourcearea/lang/fa.js create mode 100644 sources/plugins/sourcearea/lang/fi.js create mode 100644 sources/plugins/sourcearea/lang/fo.js create mode 100644 sources/plugins/sourcearea/lang/fr-ca.js create mode 100644 sources/plugins/sourcearea/lang/fr.js create mode 100644 sources/plugins/sourcearea/lang/gl.js create mode 100644 sources/plugins/sourcearea/lang/gu.js create mode 100644 sources/plugins/sourcearea/lang/he.js create mode 100644 sources/plugins/sourcearea/lang/hi.js create mode 100644 sources/plugins/sourcearea/lang/hr.js create mode 100644 sources/plugins/sourcearea/lang/hu.js create mode 100644 sources/plugins/sourcearea/lang/id.js create mode 100644 sources/plugins/sourcearea/lang/is.js create mode 100644 sources/plugins/sourcearea/lang/it.js create mode 100644 sources/plugins/sourcearea/lang/ja.js create mode 100644 sources/plugins/sourcearea/lang/ka.js create mode 100644 sources/plugins/sourcearea/lang/km.js create mode 100644 sources/plugins/sourcearea/lang/ko.js create mode 100644 sources/plugins/sourcearea/lang/ku.js create mode 100644 sources/plugins/sourcearea/lang/lt.js create mode 100644 sources/plugins/sourcearea/lang/lv.js create mode 100644 sources/plugins/sourcearea/lang/mk.js create mode 100644 sources/plugins/sourcearea/lang/mn.js create mode 100644 sources/plugins/sourcearea/lang/ms.js create mode 100644 sources/plugins/sourcearea/lang/nb.js create mode 100644 sources/plugins/sourcearea/lang/nl.js create mode 100644 sources/plugins/sourcearea/lang/no.js create mode 100644 sources/plugins/sourcearea/lang/pl.js create mode 100644 sources/plugins/sourcearea/lang/pt-br.js create mode 100644 sources/plugins/sourcearea/lang/pt.js create mode 100644 sources/plugins/sourcearea/lang/ro.js create mode 100644 sources/plugins/sourcearea/lang/ru.js create mode 100644 sources/plugins/sourcearea/lang/si.js create mode 100644 sources/plugins/sourcearea/lang/sk.js create mode 100644 sources/plugins/sourcearea/lang/sl.js create mode 100644 sources/plugins/sourcearea/lang/sq.js create mode 100644 sources/plugins/sourcearea/lang/sr-latn.js create mode 100644 sources/plugins/sourcearea/lang/sr.js create mode 100644 sources/plugins/sourcearea/lang/sv.js create mode 100644 sources/plugins/sourcearea/lang/th.js create mode 100644 sources/plugins/sourcearea/lang/tr.js create mode 100644 sources/plugins/sourcearea/lang/tt.js create mode 100644 sources/plugins/sourcearea/lang/ug.js create mode 100644 sources/plugins/sourcearea/lang/uk.js create mode 100644 sources/plugins/sourcearea/lang/vi.js create mode 100644 sources/plugins/sourcearea/lang/zh-cn.js create mode 100644 sources/plugins/sourcearea/lang/zh.js create mode 100644 sources/plugins/sourcearea/plugin.js create mode 100644 sources/plugins/specialchar/dialogs/lang/_translationstatus.txt create mode 100644 sources/plugins/specialchar/dialogs/lang/af.js create mode 100644 sources/plugins/specialchar/dialogs/lang/ar.js create mode 100644 sources/plugins/specialchar/dialogs/lang/bg.js create mode 100644 sources/plugins/specialchar/dialogs/lang/ca.js create mode 100644 sources/plugins/specialchar/dialogs/lang/cs.js create mode 100644 sources/plugins/specialchar/dialogs/lang/cy.js create mode 100644 sources/plugins/specialchar/dialogs/lang/da.js create mode 100644 sources/plugins/specialchar/dialogs/lang/de.js create mode 100644 sources/plugins/specialchar/dialogs/lang/el.js create mode 100644 sources/plugins/specialchar/dialogs/lang/en-gb.js create mode 100644 sources/plugins/specialchar/dialogs/lang/en.js create mode 100644 sources/plugins/specialchar/dialogs/lang/eo.js create mode 100644 sources/plugins/specialchar/dialogs/lang/es.js create mode 100644 sources/plugins/specialchar/dialogs/lang/et.js create mode 100644 sources/plugins/specialchar/dialogs/lang/eu.js create mode 100644 sources/plugins/specialchar/dialogs/lang/fa.js create mode 100644 sources/plugins/specialchar/dialogs/lang/fi.js create mode 100644 sources/plugins/specialchar/dialogs/lang/fr-ca.js create mode 100644 sources/plugins/specialchar/dialogs/lang/fr.js create mode 100644 sources/plugins/specialchar/dialogs/lang/gl.js create mode 100644 sources/plugins/specialchar/dialogs/lang/he.js create mode 100644 sources/plugins/specialchar/dialogs/lang/hr.js create mode 100644 sources/plugins/specialchar/dialogs/lang/hu.js create mode 100644 sources/plugins/specialchar/dialogs/lang/id.js create mode 100644 sources/plugins/specialchar/dialogs/lang/it.js create mode 100644 sources/plugins/specialchar/dialogs/lang/ja.js create mode 100644 sources/plugins/specialchar/dialogs/lang/km.js create mode 100644 sources/plugins/specialchar/dialogs/lang/ko.js create mode 100644 sources/plugins/specialchar/dialogs/lang/ku.js create mode 100644 sources/plugins/specialchar/dialogs/lang/lt.js create mode 100644 sources/plugins/specialchar/dialogs/lang/lv.js create mode 100644 sources/plugins/specialchar/dialogs/lang/nb.js create mode 100644 sources/plugins/specialchar/dialogs/lang/nl.js create mode 100644 sources/plugins/specialchar/dialogs/lang/no.js create mode 100644 sources/plugins/specialchar/dialogs/lang/pl.js create mode 100644 sources/plugins/specialchar/dialogs/lang/pt-br.js create mode 100644 sources/plugins/specialchar/dialogs/lang/pt.js create mode 100644 sources/plugins/specialchar/dialogs/lang/ru.js create mode 100644 sources/plugins/specialchar/dialogs/lang/si.js create mode 100644 sources/plugins/specialchar/dialogs/lang/sk.js create mode 100644 sources/plugins/specialchar/dialogs/lang/sl.js create mode 100644 sources/plugins/specialchar/dialogs/lang/sq.js create mode 100644 sources/plugins/specialchar/dialogs/lang/sv.js create mode 100644 sources/plugins/specialchar/dialogs/lang/th.js create mode 100644 sources/plugins/specialchar/dialogs/lang/tr.js create mode 100644 sources/plugins/specialchar/dialogs/lang/tt.js create mode 100644 sources/plugins/specialchar/dialogs/lang/ug.js create mode 100644 sources/plugins/specialchar/dialogs/lang/uk.js create mode 100644 sources/plugins/specialchar/dialogs/lang/vi.js create mode 100644 sources/plugins/specialchar/dialogs/lang/zh-cn.js create mode 100644 sources/plugins/specialchar/dialogs/lang/zh.js create mode 100644 sources/plugins/specialchar/dialogs/specialchar.js create mode 100644 sources/plugins/specialchar/icons/hidpi/specialchar.png create mode 100644 sources/plugins/specialchar/icons/specialchar.png create mode 100644 sources/plugins/specialchar/lang/_translationstatus.txt create mode 100644 sources/plugins/specialchar/lang/af.js create mode 100644 sources/plugins/specialchar/lang/ar.js create mode 100644 sources/plugins/specialchar/lang/bg.js create mode 100644 sources/plugins/specialchar/lang/bn.js create mode 100644 sources/plugins/specialchar/lang/bs.js create mode 100644 sources/plugins/specialchar/lang/ca.js create mode 100644 sources/plugins/specialchar/lang/cs.js create mode 100644 sources/plugins/specialchar/lang/cy.js create mode 100644 sources/plugins/specialchar/lang/da.js create mode 100644 sources/plugins/specialchar/lang/de.js create mode 100644 sources/plugins/specialchar/lang/el.js create mode 100644 sources/plugins/specialchar/lang/en-au.js create mode 100644 sources/plugins/specialchar/lang/en-ca.js create mode 100644 sources/plugins/specialchar/lang/en-gb.js create mode 100644 sources/plugins/specialchar/lang/en.js create mode 100644 sources/plugins/specialchar/lang/eo.js create mode 100644 sources/plugins/specialchar/lang/es.js create mode 100644 sources/plugins/specialchar/lang/et.js create mode 100644 sources/plugins/specialchar/lang/eu.js create mode 100644 sources/plugins/specialchar/lang/fa.js create mode 100644 sources/plugins/specialchar/lang/fi.js create mode 100644 sources/plugins/specialchar/lang/fo.js create mode 100644 sources/plugins/specialchar/lang/fr-ca.js create mode 100644 sources/plugins/specialchar/lang/fr.js create mode 100644 sources/plugins/specialchar/lang/gl.js create mode 100644 sources/plugins/specialchar/lang/gu.js create mode 100644 sources/plugins/specialchar/lang/he.js create mode 100644 sources/plugins/specialchar/lang/hi.js create mode 100644 sources/plugins/specialchar/lang/hr.js create mode 100644 sources/plugins/specialchar/lang/hu.js create mode 100644 sources/plugins/specialchar/lang/id.js create mode 100644 sources/plugins/specialchar/lang/is.js create mode 100644 sources/plugins/specialchar/lang/it.js create mode 100644 sources/plugins/specialchar/lang/ja.js create mode 100644 sources/plugins/specialchar/lang/ka.js create mode 100644 sources/plugins/specialchar/lang/km.js create mode 100644 sources/plugins/specialchar/lang/ko.js create mode 100644 sources/plugins/specialchar/lang/ku.js create mode 100644 sources/plugins/specialchar/lang/lt.js create mode 100644 sources/plugins/specialchar/lang/lv.js create mode 100644 sources/plugins/specialchar/lang/mk.js create mode 100644 sources/plugins/specialchar/lang/mn.js create mode 100644 sources/plugins/specialchar/lang/ms.js create mode 100644 sources/plugins/specialchar/lang/nb.js create mode 100644 sources/plugins/specialchar/lang/nl.js create mode 100644 sources/plugins/specialchar/lang/no.js create mode 100644 sources/plugins/specialchar/lang/pl.js create mode 100644 sources/plugins/specialchar/lang/pt-br.js create mode 100644 sources/plugins/specialchar/lang/pt.js create mode 100644 sources/plugins/specialchar/lang/ro.js create mode 100644 sources/plugins/specialchar/lang/ru.js create mode 100644 sources/plugins/specialchar/lang/si.js create mode 100644 sources/plugins/specialchar/lang/sk.js create mode 100644 sources/plugins/specialchar/lang/sl.js create mode 100644 sources/plugins/specialchar/lang/sq.js create mode 100644 sources/plugins/specialchar/lang/sr-latn.js create mode 100644 sources/plugins/specialchar/lang/sr.js create mode 100644 sources/plugins/specialchar/lang/sv.js create mode 100644 sources/plugins/specialchar/lang/th.js create mode 100644 sources/plugins/specialchar/lang/tr.js create mode 100644 sources/plugins/specialchar/lang/tt.js create mode 100644 sources/plugins/specialchar/lang/ug.js create mode 100644 sources/plugins/specialchar/lang/uk.js create mode 100644 sources/plugins/specialchar/lang/vi.js create mode 100644 sources/plugins/specialchar/lang/zh-cn.js create mode 100644 sources/plugins/specialchar/lang/zh.js create mode 100644 sources/plugins/specialchar/plugin.js create mode 100644 sources/plugins/stylescombo/lang/af.js create mode 100644 sources/plugins/stylescombo/lang/ar.js create mode 100644 sources/plugins/stylescombo/lang/bg.js create mode 100644 sources/plugins/stylescombo/lang/bn.js create mode 100644 sources/plugins/stylescombo/lang/bs.js create mode 100644 sources/plugins/stylescombo/lang/ca.js create mode 100644 sources/plugins/stylescombo/lang/cs.js create mode 100644 sources/plugins/stylescombo/lang/cy.js create mode 100644 sources/plugins/stylescombo/lang/da.js create mode 100644 sources/plugins/stylescombo/lang/de.js create mode 100644 sources/plugins/stylescombo/lang/el.js create mode 100644 sources/plugins/stylescombo/lang/en-au.js create mode 100644 sources/plugins/stylescombo/lang/en-ca.js create mode 100644 sources/plugins/stylescombo/lang/en-gb.js create mode 100644 sources/plugins/stylescombo/lang/en.js create mode 100644 sources/plugins/stylescombo/lang/eo.js create mode 100644 sources/plugins/stylescombo/lang/es.js create mode 100644 sources/plugins/stylescombo/lang/et.js create mode 100644 sources/plugins/stylescombo/lang/eu.js create mode 100644 sources/plugins/stylescombo/lang/fa.js create mode 100644 sources/plugins/stylescombo/lang/fi.js create mode 100644 sources/plugins/stylescombo/lang/fo.js create mode 100644 sources/plugins/stylescombo/lang/fr-ca.js create mode 100644 sources/plugins/stylescombo/lang/fr.js create mode 100644 sources/plugins/stylescombo/lang/gl.js create mode 100644 sources/plugins/stylescombo/lang/gu.js create mode 100644 sources/plugins/stylescombo/lang/he.js create mode 100644 sources/plugins/stylescombo/lang/hi.js create mode 100644 sources/plugins/stylescombo/lang/hr.js create mode 100644 sources/plugins/stylescombo/lang/hu.js create mode 100644 sources/plugins/stylescombo/lang/id.js create mode 100644 sources/plugins/stylescombo/lang/is.js create mode 100644 sources/plugins/stylescombo/lang/it.js create mode 100644 sources/plugins/stylescombo/lang/ja.js create mode 100644 sources/plugins/stylescombo/lang/ka.js create mode 100644 sources/plugins/stylescombo/lang/km.js create mode 100644 sources/plugins/stylescombo/lang/ko.js create mode 100644 sources/plugins/stylescombo/lang/ku.js create mode 100644 sources/plugins/stylescombo/lang/lt.js create mode 100644 sources/plugins/stylescombo/lang/lv.js create mode 100644 sources/plugins/stylescombo/lang/mk.js create mode 100644 sources/plugins/stylescombo/lang/mn.js create mode 100644 sources/plugins/stylescombo/lang/ms.js create mode 100644 sources/plugins/stylescombo/lang/nb.js create mode 100644 sources/plugins/stylescombo/lang/nl.js create mode 100644 sources/plugins/stylescombo/lang/no.js create mode 100644 sources/plugins/stylescombo/lang/pl.js create mode 100644 sources/plugins/stylescombo/lang/pt-br.js create mode 100644 sources/plugins/stylescombo/lang/pt.js create mode 100644 sources/plugins/stylescombo/lang/ro.js create mode 100644 sources/plugins/stylescombo/lang/ru.js create mode 100644 sources/plugins/stylescombo/lang/si.js create mode 100644 sources/plugins/stylescombo/lang/sk.js create mode 100644 sources/plugins/stylescombo/lang/sl.js create mode 100644 sources/plugins/stylescombo/lang/sq.js create mode 100644 sources/plugins/stylescombo/lang/sr-latn.js create mode 100644 sources/plugins/stylescombo/lang/sr.js create mode 100644 sources/plugins/stylescombo/lang/sv.js create mode 100644 sources/plugins/stylescombo/lang/th.js create mode 100644 sources/plugins/stylescombo/lang/tr.js create mode 100644 sources/plugins/stylescombo/lang/tt.js create mode 100644 sources/plugins/stylescombo/lang/ug.js create mode 100644 sources/plugins/stylescombo/lang/uk.js create mode 100644 sources/plugins/stylescombo/lang/vi.js create mode 100644 sources/plugins/stylescombo/lang/zh-cn.js create mode 100644 sources/plugins/stylescombo/lang/zh.js create mode 100644 sources/plugins/stylescombo/plugin.js create mode 100644 sources/plugins/tab/plugin.js create mode 100644 sources/plugins/table/dialogs/table.js create mode 100644 sources/plugins/table/icons/hidpi/table.png create mode 100644 sources/plugins/table/icons/table.png create mode 100644 sources/plugins/table/lang/af.js create mode 100644 sources/plugins/table/lang/ar.js create mode 100644 sources/plugins/table/lang/bg.js create mode 100644 sources/plugins/table/lang/bn.js create mode 100644 sources/plugins/table/lang/bs.js create mode 100644 sources/plugins/table/lang/ca.js create mode 100644 sources/plugins/table/lang/cs.js create mode 100644 sources/plugins/table/lang/cy.js create mode 100644 sources/plugins/table/lang/da.js create mode 100644 sources/plugins/table/lang/de.js create mode 100644 sources/plugins/table/lang/el.js create mode 100644 sources/plugins/table/lang/en-au.js create mode 100644 sources/plugins/table/lang/en-ca.js create mode 100644 sources/plugins/table/lang/en-gb.js create mode 100644 sources/plugins/table/lang/en.js create mode 100644 sources/plugins/table/lang/eo.js create mode 100644 sources/plugins/table/lang/es.js create mode 100644 sources/plugins/table/lang/et.js create mode 100644 sources/plugins/table/lang/eu.js create mode 100644 sources/plugins/table/lang/fa.js create mode 100644 sources/plugins/table/lang/fi.js create mode 100644 sources/plugins/table/lang/fo.js create mode 100644 sources/plugins/table/lang/fr-ca.js create mode 100644 sources/plugins/table/lang/fr.js create mode 100644 sources/plugins/table/lang/gl.js create mode 100644 sources/plugins/table/lang/gu.js create mode 100644 sources/plugins/table/lang/he.js create mode 100644 sources/plugins/table/lang/hi.js create mode 100644 sources/plugins/table/lang/hr.js create mode 100644 sources/plugins/table/lang/hu.js create mode 100644 sources/plugins/table/lang/id.js create mode 100644 sources/plugins/table/lang/is.js create mode 100644 sources/plugins/table/lang/it.js create mode 100644 sources/plugins/table/lang/ja.js create mode 100644 sources/plugins/table/lang/ka.js create mode 100644 sources/plugins/table/lang/km.js create mode 100644 sources/plugins/table/lang/ko.js create mode 100644 sources/plugins/table/lang/ku.js create mode 100644 sources/plugins/table/lang/lt.js create mode 100644 sources/plugins/table/lang/lv.js create mode 100644 sources/plugins/table/lang/mk.js create mode 100644 sources/plugins/table/lang/mn.js create mode 100644 sources/plugins/table/lang/ms.js create mode 100644 sources/plugins/table/lang/nb.js create mode 100644 sources/plugins/table/lang/nl.js create mode 100644 sources/plugins/table/lang/no.js create mode 100644 sources/plugins/table/lang/pl.js create mode 100644 sources/plugins/table/lang/pt-br.js create mode 100644 sources/plugins/table/lang/pt.js create mode 100644 sources/plugins/table/lang/ro.js create mode 100644 sources/plugins/table/lang/ru.js create mode 100644 sources/plugins/table/lang/si.js create mode 100644 sources/plugins/table/lang/sk.js create mode 100644 sources/plugins/table/lang/sl.js create mode 100644 sources/plugins/table/lang/sq.js create mode 100644 sources/plugins/table/lang/sr-latn.js create mode 100644 sources/plugins/table/lang/sr.js create mode 100644 sources/plugins/table/lang/sv.js create mode 100644 sources/plugins/table/lang/th.js create mode 100644 sources/plugins/table/lang/tr.js create mode 100644 sources/plugins/table/lang/tt.js create mode 100644 sources/plugins/table/lang/ug.js create mode 100644 sources/plugins/table/lang/uk.js create mode 100644 sources/plugins/table/lang/vi.js create mode 100644 sources/plugins/table/lang/zh-cn.js create mode 100644 sources/plugins/table/lang/zh.js create mode 100644 sources/plugins/table/plugin.js create mode 100644 sources/plugins/tabletools/dialogs/tableCell.js create mode 100644 sources/plugins/tabletools/plugin.js create mode 100644 sources/plugins/templates/dialogs/templates.css create mode 100644 sources/plugins/templates/dialogs/templates.js create mode 100644 sources/plugins/templates/icons/hidpi/templates-rtl.png create mode 100644 sources/plugins/templates/icons/hidpi/templates.png create mode 100644 sources/plugins/templates/icons/templates-rtl.png create mode 100644 sources/plugins/templates/icons/templates.png create mode 100644 sources/plugins/templates/lang/af.js create mode 100644 sources/plugins/templates/lang/ar.js create mode 100644 sources/plugins/templates/lang/bg.js create mode 100644 sources/plugins/templates/lang/bn.js create mode 100644 sources/plugins/templates/lang/bs.js create mode 100644 sources/plugins/templates/lang/ca.js create mode 100644 sources/plugins/templates/lang/cs.js create mode 100644 sources/plugins/templates/lang/cy.js create mode 100644 sources/plugins/templates/lang/da.js create mode 100644 sources/plugins/templates/lang/de.js create mode 100644 sources/plugins/templates/lang/el.js create mode 100644 sources/plugins/templates/lang/en-au.js create mode 100644 sources/plugins/templates/lang/en-ca.js create mode 100644 sources/plugins/templates/lang/en-gb.js create mode 100644 sources/plugins/templates/lang/en.js create mode 100644 sources/plugins/templates/lang/eo.js create mode 100644 sources/plugins/templates/lang/es.js create mode 100644 sources/plugins/templates/lang/et.js create mode 100644 sources/plugins/templates/lang/eu.js create mode 100644 sources/plugins/templates/lang/fa.js create mode 100644 sources/plugins/templates/lang/fi.js create mode 100644 sources/plugins/templates/lang/fo.js create mode 100644 sources/plugins/templates/lang/fr-ca.js create mode 100644 sources/plugins/templates/lang/fr.js create mode 100644 sources/plugins/templates/lang/gl.js create mode 100644 sources/plugins/templates/lang/gu.js create mode 100644 sources/plugins/templates/lang/he.js create mode 100644 sources/plugins/templates/lang/hi.js create mode 100644 sources/plugins/templates/lang/hr.js create mode 100644 sources/plugins/templates/lang/hu.js create mode 100644 sources/plugins/templates/lang/id.js create mode 100644 sources/plugins/templates/lang/is.js create mode 100644 sources/plugins/templates/lang/it.js create mode 100644 sources/plugins/templates/lang/ja.js create mode 100644 sources/plugins/templates/lang/ka.js create mode 100644 sources/plugins/templates/lang/km.js create mode 100644 sources/plugins/templates/lang/ko.js create mode 100644 sources/plugins/templates/lang/ku.js create mode 100644 sources/plugins/templates/lang/lt.js create mode 100644 sources/plugins/templates/lang/lv.js create mode 100644 sources/plugins/templates/lang/mk.js create mode 100644 sources/plugins/templates/lang/mn.js create mode 100644 sources/plugins/templates/lang/ms.js create mode 100644 sources/plugins/templates/lang/nb.js create mode 100644 sources/plugins/templates/lang/nl.js create mode 100644 sources/plugins/templates/lang/no.js create mode 100644 sources/plugins/templates/lang/pl.js create mode 100644 sources/plugins/templates/lang/pt-br.js create mode 100644 sources/plugins/templates/lang/pt.js create mode 100644 sources/plugins/templates/lang/ro.js create mode 100644 sources/plugins/templates/lang/ru.js create mode 100644 sources/plugins/templates/lang/si.js create mode 100644 sources/plugins/templates/lang/sk.js create mode 100644 sources/plugins/templates/lang/sl.js create mode 100644 sources/plugins/templates/lang/sq.js create mode 100644 sources/plugins/templates/lang/sr-latn.js create mode 100644 sources/plugins/templates/lang/sr.js create mode 100644 sources/plugins/templates/lang/sv.js create mode 100644 sources/plugins/templates/lang/th.js create mode 100644 sources/plugins/templates/lang/tr.js create mode 100644 sources/plugins/templates/lang/tt.js create mode 100644 sources/plugins/templates/lang/ug.js create mode 100644 sources/plugins/templates/lang/uk.js create mode 100644 sources/plugins/templates/lang/vi.js create mode 100644 sources/plugins/templates/lang/zh-cn.js create mode 100644 sources/plugins/templates/lang/zh.js create mode 100644 sources/plugins/templates/plugin.js create mode 100644 sources/plugins/templates/templates/default.js create mode 100644 sources/plugins/templates/templates/images/template1.gif create mode 100644 sources/plugins/templates/templates/images/template2.gif create mode 100644 sources/plugins/templates/templates/images/template3.gif create mode 100644 sources/plugins/toolbar/lang/af.js create mode 100644 sources/plugins/toolbar/lang/ar.js create mode 100644 sources/plugins/toolbar/lang/bg.js create mode 100644 sources/plugins/toolbar/lang/bn.js create mode 100644 sources/plugins/toolbar/lang/bs.js create mode 100644 sources/plugins/toolbar/lang/ca.js create mode 100644 sources/plugins/toolbar/lang/cs.js create mode 100644 sources/plugins/toolbar/lang/cy.js create mode 100644 sources/plugins/toolbar/lang/da.js create mode 100644 sources/plugins/toolbar/lang/de.js create mode 100644 sources/plugins/toolbar/lang/el.js create mode 100644 sources/plugins/toolbar/lang/en-au.js create mode 100644 sources/plugins/toolbar/lang/en-ca.js create mode 100644 sources/plugins/toolbar/lang/en-gb.js create mode 100644 sources/plugins/toolbar/lang/en.js create mode 100644 sources/plugins/toolbar/lang/eo.js create mode 100644 sources/plugins/toolbar/lang/es.js create mode 100644 sources/plugins/toolbar/lang/et.js create mode 100644 sources/plugins/toolbar/lang/eu.js create mode 100644 sources/plugins/toolbar/lang/fa.js create mode 100644 sources/plugins/toolbar/lang/fi.js create mode 100644 sources/plugins/toolbar/lang/fo.js create mode 100644 sources/plugins/toolbar/lang/fr-ca.js create mode 100644 sources/plugins/toolbar/lang/fr.js create mode 100644 sources/plugins/toolbar/lang/gl.js create mode 100644 sources/plugins/toolbar/lang/gu.js create mode 100644 sources/plugins/toolbar/lang/he.js create mode 100644 sources/plugins/toolbar/lang/hi.js create mode 100644 sources/plugins/toolbar/lang/hr.js create mode 100644 sources/plugins/toolbar/lang/hu.js create mode 100644 sources/plugins/toolbar/lang/id.js create mode 100644 sources/plugins/toolbar/lang/is.js create mode 100644 sources/plugins/toolbar/lang/it.js create mode 100644 sources/plugins/toolbar/lang/ja.js create mode 100644 sources/plugins/toolbar/lang/ka.js create mode 100644 sources/plugins/toolbar/lang/km.js create mode 100644 sources/plugins/toolbar/lang/ko.js create mode 100644 sources/plugins/toolbar/lang/ku.js create mode 100644 sources/plugins/toolbar/lang/lt.js create mode 100644 sources/plugins/toolbar/lang/lv.js create mode 100644 sources/plugins/toolbar/lang/mk.js create mode 100644 sources/plugins/toolbar/lang/mn.js create mode 100644 sources/plugins/toolbar/lang/ms.js create mode 100644 sources/plugins/toolbar/lang/nb.js create mode 100644 sources/plugins/toolbar/lang/nl.js create mode 100644 sources/plugins/toolbar/lang/no.js create mode 100644 sources/plugins/toolbar/lang/pl.js create mode 100644 sources/plugins/toolbar/lang/pt-br.js create mode 100644 sources/plugins/toolbar/lang/pt.js create mode 100644 sources/plugins/toolbar/lang/ro.js create mode 100644 sources/plugins/toolbar/lang/ru.js create mode 100644 sources/plugins/toolbar/lang/si.js create mode 100644 sources/plugins/toolbar/lang/sk.js create mode 100644 sources/plugins/toolbar/lang/sl.js create mode 100644 sources/plugins/toolbar/lang/sq.js create mode 100644 sources/plugins/toolbar/lang/sr-latn.js create mode 100644 sources/plugins/toolbar/lang/sr.js create mode 100644 sources/plugins/toolbar/lang/sv.js create mode 100644 sources/plugins/toolbar/lang/th.js create mode 100644 sources/plugins/toolbar/lang/tr.js create mode 100644 sources/plugins/toolbar/lang/tt.js create mode 100644 sources/plugins/toolbar/lang/ug.js create mode 100644 sources/plugins/toolbar/lang/uk.js create mode 100644 sources/plugins/toolbar/lang/vi.js create mode 100644 sources/plugins/toolbar/lang/zh-cn.js create mode 100644 sources/plugins/toolbar/lang/zh.js create mode 100644 sources/plugins/toolbar/plugin.js create mode 100644 sources/plugins/toolbar/samples/toolbar.html create mode 100644 sources/plugins/undo/dev/snapshot.html create mode 100644 sources/plugins/undo/icons/hidpi/redo-rtl.png create mode 100644 sources/plugins/undo/icons/hidpi/redo.png create mode 100644 sources/plugins/undo/icons/hidpi/undo-rtl.png create mode 100644 sources/plugins/undo/icons/hidpi/undo.png create mode 100644 sources/plugins/undo/icons/redo-rtl.png create mode 100644 sources/plugins/undo/icons/redo.png create mode 100644 sources/plugins/undo/icons/undo-rtl.png create mode 100644 sources/plugins/undo/icons/undo.png create mode 100644 sources/plugins/undo/lang/af.js create mode 100644 sources/plugins/undo/lang/ar.js create mode 100644 sources/plugins/undo/lang/bg.js create mode 100644 sources/plugins/undo/lang/bn.js create mode 100644 sources/plugins/undo/lang/bs.js create mode 100644 sources/plugins/undo/lang/ca.js create mode 100644 sources/plugins/undo/lang/cs.js create mode 100644 sources/plugins/undo/lang/cy.js create mode 100644 sources/plugins/undo/lang/da.js create mode 100644 sources/plugins/undo/lang/de.js create mode 100644 sources/plugins/undo/lang/el.js create mode 100644 sources/plugins/undo/lang/en-au.js create mode 100644 sources/plugins/undo/lang/en-ca.js create mode 100644 sources/plugins/undo/lang/en-gb.js create mode 100644 sources/plugins/undo/lang/en.js create mode 100644 sources/plugins/undo/lang/eo.js create mode 100644 sources/plugins/undo/lang/es.js create mode 100644 sources/plugins/undo/lang/et.js create mode 100644 sources/plugins/undo/lang/eu.js create mode 100644 sources/plugins/undo/lang/fa.js create mode 100644 sources/plugins/undo/lang/fi.js create mode 100644 sources/plugins/undo/lang/fo.js create mode 100644 sources/plugins/undo/lang/fr-ca.js create mode 100644 sources/plugins/undo/lang/fr.js create mode 100644 sources/plugins/undo/lang/gl.js create mode 100644 sources/plugins/undo/lang/gu.js create mode 100644 sources/plugins/undo/lang/he.js create mode 100644 sources/plugins/undo/lang/hi.js create mode 100644 sources/plugins/undo/lang/hr.js create mode 100644 sources/plugins/undo/lang/hu.js create mode 100644 sources/plugins/undo/lang/id.js create mode 100644 sources/plugins/undo/lang/is.js create mode 100644 sources/plugins/undo/lang/it.js create mode 100644 sources/plugins/undo/lang/ja.js create mode 100644 sources/plugins/undo/lang/ka.js create mode 100644 sources/plugins/undo/lang/km.js create mode 100644 sources/plugins/undo/lang/ko.js create mode 100644 sources/plugins/undo/lang/ku.js create mode 100644 sources/plugins/undo/lang/lt.js create mode 100644 sources/plugins/undo/lang/lv.js create mode 100644 sources/plugins/undo/lang/mk.js create mode 100644 sources/plugins/undo/lang/mn.js create mode 100644 sources/plugins/undo/lang/ms.js create mode 100644 sources/plugins/undo/lang/nb.js create mode 100644 sources/plugins/undo/lang/nl.js create mode 100644 sources/plugins/undo/lang/no.js create mode 100644 sources/plugins/undo/lang/pl.js create mode 100644 sources/plugins/undo/lang/pt-br.js create mode 100644 sources/plugins/undo/lang/pt.js create mode 100644 sources/plugins/undo/lang/ro.js create mode 100644 sources/plugins/undo/lang/ru.js create mode 100644 sources/plugins/undo/lang/si.js create mode 100644 sources/plugins/undo/lang/sk.js create mode 100644 sources/plugins/undo/lang/sl.js create mode 100644 sources/plugins/undo/lang/sq.js create mode 100644 sources/plugins/undo/lang/sr-latn.js create mode 100644 sources/plugins/undo/lang/sr.js create mode 100644 sources/plugins/undo/lang/sv.js create mode 100644 sources/plugins/undo/lang/th.js create mode 100644 sources/plugins/undo/lang/tr.js create mode 100644 sources/plugins/undo/lang/tt.js create mode 100644 sources/plugins/undo/lang/ug.js create mode 100644 sources/plugins/undo/lang/uk.js create mode 100644 sources/plugins/undo/lang/vi.js create mode 100644 sources/plugins/undo/lang/zh-cn.js create mode 100644 sources/plugins/undo/lang/zh.js create mode 100644 sources/plugins/undo/plugin.js create mode 100644 sources/plugins/wsc/LICENSE.md create mode 100644 sources/plugins/wsc/README.md create mode 100644 sources/plugins/wsc/dialogs/ciframe.html create mode 100644 sources/plugins/wsc/dialogs/tmpFrameset.html create mode 100644 sources/plugins/wsc/dialogs/wsc.css create mode 100644 sources/plugins/wsc/dialogs/wsc.js create mode 100644 sources/plugins/wsc/dialogs/wsc_ie.js create mode 100644 sources/plugins/wsc/icons/hidpi/spellchecker.png create mode 100644 sources/plugins/wsc/icons/spellchecker.png create mode 100644 sources/plugins/wsc/lang/af.js create mode 100644 sources/plugins/wsc/lang/ar.js create mode 100644 sources/plugins/wsc/lang/bg.js create mode 100644 sources/plugins/wsc/lang/bn.js create mode 100644 sources/plugins/wsc/lang/bs.js create mode 100644 sources/plugins/wsc/lang/ca.js create mode 100644 sources/plugins/wsc/lang/cs.js create mode 100644 sources/plugins/wsc/lang/cy.js create mode 100644 sources/plugins/wsc/lang/da.js create mode 100644 sources/plugins/wsc/lang/de.js create mode 100644 sources/plugins/wsc/lang/el.js create mode 100644 sources/plugins/wsc/lang/en-au.js create mode 100644 sources/plugins/wsc/lang/en-ca.js create mode 100644 sources/plugins/wsc/lang/en-gb.js create mode 100644 sources/plugins/wsc/lang/en.js create mode 100644 sources/plugins/wsc/lang/eo.js create mode 100644 sources/plugins/wsc/lang/es.js create mode 100644 sources/plugins/wsc/lang/et.js create mode 100644 sources/plugins/wsc/lang/eu.js create mode 100644 sources/plugins/wsc/lang/fa.js create mode 100644 sources/plugins/wsc/lang/fi.js create mode 100644 sources/plugins/wsc/lang/fo.js create mode 100644 sources/plugins/wsc/lang/fr-ca.js create mode 100644 sources/plugins/wsc/lang/fr.js create mode 100644 sources/plugins/wsc/lang/gl.js create mode 100644 sources/plugins/wsc/lang/gu.js create mode 100644 sources/plugins/wsc/lang/he.js create mode 100644 sources/plugins/wsc/lang/hi.js create mode 100644 sources/plugins/wsc/lang/hr.js create mode 100644 sources/plugins/wsc/lang/hu.js create mode 100644 sources/plugins/wsc/lang/is.js create mode 100644 sources/plugins/wsc/lang/it.js create mode 100644 sources/plugins/wsc/lang/ja.js create mode 100644 sources/plugins/wsc/lang/ka.js create mode 100644 sources/plugins/wsc/lang/km.js create mode 100644 sources/plugins/wsc/lang/ko.js create mode 100644 sources/plugins/wsc/lang/ku.js create mode 100644 sources/plugins/wsc/lang/lt.js create mode 100644 sources/plugins/wsc/lang/lv.js create mode 100644 sources/plugins/wsc/lang/mk.js create mode 100644 sources/plugins/wsc/lang/mn.js create mode 100644 sources/plugins/wsc/lang/ms.js create mode 100644 sources/plugins/wsc/lang/nb.js create mode 100644 sources/plugins/wsc/lang/nl.js create mode 100644 sources/plugins/wsc/lang/no.js create mode 100644 sources/plugins/wsc/lang/pl.js create mode 100644 sources/plugins/wsc/lang/pt-br.js create mode 100644 sources/plugins/wsc/lang/pt.js create mode 100644 sources/plugins/wsc/lang/ro.js create mode 100644 sources/plugins/wsc/lang/ru.js create mode 100644 sources/plugins/wsc/lang/sk.js create mode 100644 sources/plugins/wsc/lang/sl.js create mode 100644 sources/plugins/wsc/lang/sr-latn.js create mode 100644 sources/plugins/wsc/lang/sr.js create mode 100644 sources/plugins/wsc/lang/sv.js create mode 100644 sources/plugins/wsc/lang/th.js create mode 100644 sources/plugins/wsc/lang/tr.js create mode 100644 sources/plugins/wsc/lang/ug.js create mode 100644 sources/plugins/wsc/lang/uk.js create mode 100644 sources/plugins/wsc/lang/vi.js create mode 100644 sources/plugins/wsc/lang/zh-cn.js create mode 100644 sources/plugins/wsc/lang/zh.js create mode 100644 sources/plugins/wsc/plugin.js create mode 100644 sources/plugins/wysiwygarea/plugin.js create mode 100644 sources/plugins/wysiwygarea/samples/fullpage.html create mode 100644 sources/samples/css/samples.css create mode 100644 sources/samples/img/github-top.png create mode 100644 sources/samples/img/header-bg.png create mode 100644 sources/samples/img/header-separator.png create mode 100644 sources/samples/img/logo.png create mode 100644 sources/samples/img/navigation-tip.png create mode 100644 sources/samples/index.html create mode 100644 sources/samples/js/sample.js create mode 100644 sources/samples/js/sf.js create mode 100644 sources/samples/old/ajax.html create mode 100644 sources/samples/old/api.html create mode 100644 sources/samples/old/appendto.html create mode 100644 sources/samples/old/assets/inlineall/logo.png create mode 100644 sources/samples/old/assets/outputxhtml/outputxhtml.css create mode 100644 sources/samples/old/assets/posteddata.php create mode 100644 sources/samples/old/assets/sample.jpg create mode 100644 sources/samples/old/assets/uilanguages/languages.js create mode 100644 sources/samples/old/datafiltering.html create mode 100644 sources/samples/old/divreplace.html create mode 100644 sources/samples/old/index.html create mode 100644 sources/samples/old/inlineall.html create mode 100644 sources/samples/old/inlinebycode.html create mode 100644 sources/samples/old/inlinetextarea.html create mode 100644 sources/samples/old/jquery.html create mode 100644 sources/samples/old/readonly.html create mode 100644 sources/samples/old/replacebyclass.html create mode 100644 sources/samples/old/replacebycode.html create mode 100644 sources/samples/old/sample.css create mode 100644 sources/samples/old/sample.js create mode 100644 sources/samples/old/sample_posteddata.php create mode 100644 sources/samples/old/tabindex.html create mode 100644 sources/samples/old/uicolor.html create mode 100644 sources/samples/old/uilanguages.html create mode 100644 sources/samples/old/xhtmlstyle.html create mode 100644 sources/samples/toolbarconfigurator/bender.js create mode 100644 sources/samples/toolbarconfigurator/css/fontello.css create mode 100644 sources/samples/toolbarconfigurator/font/LICENSE.txt create mode 100644 sources/samples/toolbarconfigurator/font/config.json create mode 100644 sources/samples/toolbarconfigurator/font/fontello.eot create mode 100644 sources/samples/toolbarconfigurator/font/fontello.svg create mode 100644 sources/samples/toolbarconfigurator/font/fontello.ttf create mode 100644 sources/samples/toolbarconfigurator/font/fontello.woff create mode 100644 sources/samples/toolbarconfigurator/index.html create mode 100644 sources/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js create mode 100644 sources/samples/toolbarconfigurator/js/fulltoolbareditor.js create mode 100644 sources/samples/toolbarconfigurator/js/toolbarmodifier.js create mode 100644 sources/samples/toolbarconfigurator/js/toolbartextmodifier.js create mode 100644 sources/samples/toolbarconfigurator/less/base.less create mode 100644 sources/samples/toolbarconfigurator/less/toolbarmodifier.less create mode 100644 sources/samples/toolbarconfigurator/lib/codemirror/LICENSE create mode 100644 sources/samples/toolbarconfigurator/lib/codemirror/README.md create mode 100644 sources/samples/toolbarconfigurator/lib/codemirror/codemirror.css create mode 100644 sources/samples/toolbarconfigurator/lib/codemirror/codemirror.js create mode 100644 sources/samples/toolbarconfigurator/lib/codemirror/javascript.js create mode 100644 sources/samples/toolbarconfigurator/lib/codemirror/neo.css create mode 100644 sources/samples/toolbarconfigurator/lib/codemirror/show-hint.css create mode 100644 sources/samples/toolbarconfigurator/lib/codemirror/show-hint.js create mode 100644 sources/samples/toolbarconfigurator/package.json create mode 100644 sources/samples/toolbarconfigurator/tests/one.js create mode 100644 sources/skins/moono/colorpanel.css create mode 100644 sources/skins/moono/dev/icons16.png create mode 100644 sources/skins/moono/dev/icons16.svg create mode 100644 sources/skins/moono/dev/icons32.png create mode 100644 sources/skins/moono/dev/icons32.svg create mode 100644 sources/skins/moono/dev/locations.json create mode 100644 sources/skins/moono/dialog.css create mode 100644 sources/skins/moono/dialog_ie.css create mode 100644 sources/skins/moono/dialog_ie7.css create mode 100644 sources/skins/moono/dialog_ie8.css create mode 100644 sources/skins/moono/dialog_iequirks.css create mode 100644 sources/skins/moono/editor.css create mode 100644 sources/skins/moono/editor_gecko.css create mode 100644 sources/skins/moono/editor_ie.css create mode 100644 sources/skins/moono/editor_ie7.css create mode 100644 sources/skins/moono/editor_ie8.css create mode 100644 sources/skins/moono/editor_iequirks.css create mode 100644 sources/skins/moono/elementspath.css create mode 100644 sources/skins/moono/images/arrow.png create mode 100644 sources/skins/moono/images/close.png create mode 100644 sources/skins/moono/images/hidpi/close.png create mode 100644 sources/skins/moono/images/hidpi/lock-open.png create mode 100644 sources/skins/moono/images/hidpi/lock.png create mode 100644 sources/skins/moono/images/hidpi/refresh.png create mode 100644 sources/skins/moono/images/lock-open.png create mode 100644 sources/skins/moono/images/lock.png create mode 100644 sources/skins/moono/images/refresh.png create mode 100644 sources/skins/moono/images/spinner.gif create mode 100644 sources/skins/moono/mainui.css create mode 100644 sources/skins/moono/menu.css create mode 100644 sources/skins/moono/notification.css create mode 100644 sources/skins/moono/panel.css create mode 100644 sources/skins/moono/presets.css create mode 100644 sources/skins/moono/readme.md create mode 100644 sources/skins/moono/reset.css create mode 100644 sources/skins/moono/richcombo.css create mode 100644 sources/skins/moono/skin.js create mode 100644 sources/skins/moono/toolbar.css create mode 100644 sources/styles.js diff --git a/README.md b/README.md new file mode 100644 index 00000000..5726a860 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +CKeditor Component +================== + +Package Managers +---------------- + +* [Component](https://github.com/component/component): `immae/ckeditor` +* [Composer](http://packagist.org/packages/components/jquery): `immae/ckeditor` diff --git a/build-config.js b/build-config.js new file mode 100644 index 00000000..97457e21 --- /dev/null +++ b/build-config.js @@ -0,0 +1,117 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * This file was added automatically by CKEditor builder. + * You may re-use it at any time to build CKEditor again. + * + * If you would like to build CKEditor online again + * (for example to upgrade), visit one the following links: + * + * (1) http://ckeditor.com/builder + * Visit online builder to build CKEditor from scratch. + * + * (2) http://ckeditor.com/builder/cedaf06dfb63f51e787f436bc938eb26 + * Visit online builder to build CKEditor, starting with the same setup as before. + * + * (3) http://ckeditor.com/builder/download/cedaf06dfb63f51e787f436bc938eb26 + * Straight download link to the latest version of CKEditor (Optimized) with the same setup as before. + * + * NOTE: + * This file is not used by CKEditor, you may remove it. + * Changing this file will not change your CKEditor configuration. + */ + +var CKBUILDER_CONFIG = { + skin: 'moono', + preset: 'standard', + ignore: [ + '.bender', + 'bender.js', + 'bender-err.log', + 'bender-out.log', + 'dev', + '.DS_Store', + '.editorconfig', + '.gitattributes', + '.gitignore', + 'gruntfile.js', + '.idea', + '.jscsrc', + '.jshintignore', + '.jshintrc', + 'less', + '.mailmap', + 'node_modules', + 'package.json', + 'README.md', + 'tests' + ], + plugins : { + 'a11yhelp' : 1, + 'about' : 1, + 'basicstyles' : 1, + 'bidi' : 1, + 'blockquote' : 1, + 'clipboard' : 1, + 'colorbutton' : 1, + 'colordialog' : 1, + 'contextmenu' : 1, + 'dialogadvtab' : 1, + 'div' : 1, + 'elementspath' : 1, + 'enterkey' : 1, + 'entities' : 1, + 'filebrowser' : 1, + 'find' : 1, + 'flash' : 1, + 'floatingspace' : 1, + 'font' : 1, + 'format' : 1, + 'forms' : 1, + 'horizontalrule' : 1, + 'htmlwriter' : 1, + 'iframe' : 1, + 'image' : 1, + 'imagebrowser' : 1, + 'indentblock' : 1, + 'indentlist' : 1, + 'justify' : 1, + 'link' : 1, + 'list' : 1, + 'liststyle' : 1, + 'magicline' : 1, + 'maximize' : 1, + 'newpage' : 1, + 'pagebreak' : 1, + 'pastefromword' : 1, + 'pastetext' : 1, + 'preview' : 1, + 'print' : 1, + 'removeformat' : 1, + 'resize' : 1, + 'save' : 1, + 'scayt' : 1, + 'selectall' : 1, + 'showblocks' : 1, + 'showborders' : 1, + 'smiley' : 1, + 'sourcearea' : 1, + 'specialchar' : 1, + 'stylescombo' : 1, + 'tab' : 1, + 'table' : 1, + 'tabletools' : 1, + 'templates' : 1, + 'toolbar' : 1, + 'undo' : 1, + 'wsc' : 1, + 'wysiwygarea' : 1 + }, + languages : { + 'en' : 1, + 'fr' : 1 + } +}; \ No newline at end of file diff --git a/component.json b/component.json new file mode 100644 index 00000000..d49b72ca --- /dev/null +++ b/component.json @@ -0,0 +1,24 @@ +{ + "name": "ckeditor", + "repo": "immae/connexionswing-ckeditor-component", + "version": "4.5.6", + "description": "JavaScript WYSIWYG web text editor.", + "keywords": [ + "ckeditor", + "fckeditor", + "editor", + "wysiwyg", + "html", + "richtext", + "text", + "javascript" + ], + "main": "release/ckeditor.js", + "scripts": [ + "release/ckeditor.js" + ], + "dependencies": { + "component/jquery": "*" + }, + "license": [ "GPL-2.0+", "LGPL-2.1+", "MPL-1.1+" ] +} diff --git a/composer.json b/composer.json new file mode 100644 index 00000000..9ec84754 --- /dev/null +++ b/composer.json @@ -0,0 +1,35 @@ +{ + "name": "immae/connexionswing-ckeditor-component", + "description": "CKEditor component.", + "type": "component", + "keywords": [ "ckeditor", "fckeditor", "editor", "wysiwyg", "html", "richtext", "text", "javascript" ], + "homepage": "http://ckeditor.com", + "license": [ "GPL-2.0+", "LGPL-2.1+", "MPL-1.1+" ], + "authors": [ + { + "name": "CKSource", + "homepage": "http://cksource.com" + } + ], + "require": { + "robloach/component-installer": "*", + "components/jquery": ">=1.11" + }, + "support": { + "issues": "http://dev.ckeditor.com", + "forum": "http://ckeditor.com/forums", + "wiki": "http://docs.ckeditor.com", + "source": "http://github.com/ckeditor/ckeditor-dev" + }, + "extra": { + "component": { + "scripts": [ + "release/ckeditor.js" + ], + "files": [ + "release/**", + "sources/**" + ] + } + } +} diff --git a/release/CHANGES.md b/release/CHANGES.md new file mode 100644 index 00000000..0e191498 --- /dev/null +++ b/release/CHANGES.md @@ -0,0 +1,1037 @@ +CKEditor 4 Changelog +==================== + +## CKEditor 4.5.6 + +New Features: + +* Introduced the [`CKEDITOR.tools.getCookie()`](http://docs.ckeditor.com/#!/api/CKEDITOR.tools-method-getCookie) and [`CKEDITOR.tools.setCookie()`](http://docs.ckeditor.com/#!/api/CKEDITOR.tools-method-setCookie) methods for accessing cookies. +* Introduced the [`CKEDITOR.tools.getCsrfToken()`](http://docs.ckeditor.com/#!/api/CKEDITOR.tools-method-getCsrfToken) method. The CSRF token is now automatically sent by the [File Browser](http://ckeditor.com/addon/filebrowser) and [File Tools](http://ckeditor.com/addon/filetools) plugins during file uploads. The server-side upload handlers may check it and use it to additionally secure the communication. + +Other Changes: + +* Updated [SCAYT](http://ckeditor.com/addon/scayt) (Spell Check As You Type): + - New features: + - CKEditor [Language](http://ckeditor.com/addon/language) plugin support. + - CKEditor [Placeholder](http://ckeditor.com/addon/placeholder) plugin support. + - [Drag&Drop](http://sdk.ckeditor.com/samples/fileupload.html) support. + - **Experimental** [GRAYT](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-grayt_autoStartup) (Grammar As You Type) functionality. + - Fixed issues: + * [#98](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/98): SCAYT affects dialog double-click. Fixed in SCAYT core. + * [#102](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/102): SCAYT core performance enhancements. + * [#104](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/104): SCAYT's spans leak into the clipboard and after pasting. + * [#105](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/105): A JavaScript error fired in case of multiple instances of CKEditor on one page. + * [#107](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/107): SCAYT should not check non-editable parts of content. + * [#108](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/108): Latest SCAYT copies the ID of the editor element to the iframe. + * SCAYT stops working when CKEditor [Undo plugin](http://ckeditor.com/addon/undo) not enabled. + * Issue with pasting SCAYT markup in CKEditor. + * SCAYT stops working after pressing the *Cancel* button in the WSC dialog. + +## CKEditor 4.5.5 + +Fixed Issues: + +* [#13887](https://dev.ckeditor.com/ticket/13887): Fixed: [Link](http://ckeditor.com/addon/link) plugin alters the `target` attribute value. Thanks to [SamZiemer](https://github.com/SamZiemer)! +* [#12189](http://dev.ckeditor.com/ticket/12189): Fixed: The [Link](http://ckeditor.com/addon/link) plugin dialog does not display the subject of email links if the subject parameter is not lowercase. +* [#9192](http://dev.ckeditor.com/ticket/9192): Fixed: An `undefined` string is appended to an email address added with the [Link](http://ckeditor.com/addon/link) plugin if subject and email body are empty and [`config.emailProtection`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-emailProtection) is set to `encode`. +* [#13790](https://dev.ckeditor.com/ticket/13790): Fixed: It is not possible to destroy the editor `' ); + + // Reset last data transfer. + lastDataTransfer = null; + + iframe.on( 'load', function( e ) { + e.removeListener(); + + var doc = iframe.getFrameDocument(); + doc.write( htmlToLoad ); + + editor.focusManager.add( doc.getBody() ); + + if ( CKEDITOR.env.air ) + onPasteFrameLoad.call( this, doc.getWindow().$ ); + }, dialog ); + + iframe.setCustomData( 'dialog', dialog ); + + var container = this.getElement(); + container.setHtml( '' ); + container.append( iframe ); + + // IE need a redirect on focus to make + // the cursor blinking inside iframe. (#5461) + if ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) { + var focusGrabber = CKEDITOR.dom.element.createFromHtml( '' ); + focusGrabber.on( 'focus', function() { + // Since fixDomain is called in src attribute, + // IE needs some slight delay to correctly move focus. + setTimeout( function() { + iframe.$.contentWindow.focus(); + } ); + } ); + container.append( focusGrabber ); + + // Override focus handler on field. + this.focus = function() { + focusGrabber.focus(); + this.fire( 'focus' ); + }; + } + + this.getInputElement = function() { + return iframe; + }; + + // Force container to scale in IE. + if ( CKEDITOR.env.ie ) { + container.setStyle( 'display', 'block' ); + container.setStyle( 'height', ( iframe.$.offsetHeight + 2 ) + 'px' ); + } + }, + commit: function() { + var editor = this.getDialog().getParentEditor(), + body = this.getInputElement().getFrameDocument().getBody(), + bogus = body.getBogus(), + html; + bogus && bogus.remove(); + + // Saving the contents so changes until paste is complete will not take place (#7500) + html = body.getHtml(); + + // Opera needs some time to think about what has happened and what it should do now. + setTimeout( function() { + editor.fire( 'pasteDialogCommit', { + dataValue: html, + // Avoid error if there was no paste so lastDataTransfer is null. + dataTransfer: lastDataTransfer || clipboard.initPasteDataTransfer() + } ); + }, 0 ); + } + } + ] + } ] + }; +} ); + +/** + * Internal event to pass paste dialog's data to the listeners. + * + * @private + * @event pasteDialogCommit + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + */ diff --git a/sources/plugins/clipboard/icons/copy-rtl.png b/sources/plugins/clipboard/icons/copy-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..ef724460c1da9905ab632877f2b591237c2c8a3a GIT binary patch literal 684 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 literal 0 HcmV?d00001 diff --git a/sources/plugins/clipboard/icons/hidpi/paste.png b/sources/plugins/clipboard/icons/hidpi/paste.png new file mode 100644 index 0000000000000000000000000000000000000000..f18dac3749b8abb3ef6b75afb59e0048094611e2 GIT binary patch literal 1959 zcmZ{leKZqnAIIl46j3UMnnJ|1E!ixQwY8BJ(?eEwVl%O7n5bnbQo6n6MyfR#;b=r= zHLbEcc`0VOy-ckU%cBv>y9e{kpU)r9xz6wUp7XoDpX>Vlu5+Dp-SNX?4Gn+>006+y z8;2&S6|@$5y6TzEV9cmRH|!`D4Om?pMQ_S;)fxS0TrgctNY_FGWzV{-c8R>vUMEgA zvI_>%bAx~_o+FRukM-NoTohTzeWRIvl&7hkK8pDB;TOh2AS6z04X7!-_6(6BW1Tt2 zX^r#Op1emi&{6i(I7WpAZEMRA2=iyl)^F+V=*a$ltRLRcPsi__vdeAv{ds-|!iM(O zwEMtxVuOTUn3j~ZXlu0@1xh{SkZP(4Ac0S&7vOm`vi9#U)R5t+MP;7i6IG0`t32`c z#Q<}DB6mbm0SDe)7+dHhk}8{sGWp1iZbIHW3E6Cl`A>!E5o%PXF1YIVKJ!+}1IAdD zQX0bKj|oW4#0jvIZ?3pj=vPGK4(`F&v5)M*lzb-hiKRrY301DssRK$CskgB(_p)?@ z8Jq@OTW2~h7fRlDcL#}PK5z6e4mC4i;By{b53;kXL|pdM3XusD2DStQl!%z$jDB(0 zkCWzR7U{_l^zNnbhz7!+C}*kB1Y$k5ybQlB+scC1t0EVt6&P7P^q|i0X z#mPr*SMRN5UHxzJ=gNnklSpfX07{ z0ga`x51x1W`x|PS-?HZ07YA}@tL=AgIQ-NL)N%xisW`1`R;cz_-oJ0pe)!*H#APda5vbDK##?$Er{~`;!T*-s+j=Q zjwNXi_ecEGkd6o*Zy1EAU$ezn&THHSu(8w)XY6(j%_$ad7wq-CSBT}VBpTXl3~O+^ zrx{f`IEi9#xGnp}G?@AuW*(Z!fm1@DGP1Wce3nJqUiN~9)w0V97BFU+^7C)A`ITL( zL~EO#B7%dZNJ&d-jQLrvFpU21hY-OV_NnB}YAGpY|CiaUWvcfRY7qgJgeY&ARFG4Bwx=Z8;fQQ)qE4|PHX$hg@U4!p?+ z$|_4wSKOUu`WEvIP5X}7;|N_Bq-@_S6{bq~K=&zYk5_bTF!j#WIno7*`=>iy0XiwQ zpG?Z2w+`m!E>mQ#UkfdsNr^?RM&i*X&co}HR{?@}_w>)N+)hb=W z06M*9#Ya-2-r%iSa?lqQ>?h~!VfOk?Y>u&}gKd@qM5wp{G;aQ8BR^4DE~qy6>$+7I zyvIv2@8gpwX*_T(u?^@)m|GgiNZvMkHRnlQp%=Yn0nsRXF^Du`1v_R18zf&GJuoDD zlx%Z7FZKd#YuNbQ=#x*x48FQc&olMKvC5hCZ4lp&kl`ij&f`YUbwLjMsNl$!zr`aT zuqLmFc$bf?GV=ny?GW6U`I z9=V7PUwF{oyZ_htOCN7Hfk7P<%?D!BF%#`#j{9UWB5~pMifU;|H3b`npySbGaIcv! z7ekS3zx9&V;vbcA(aD%9Ce&v{@@r5<3c)E2CLp6%+e=h>+~W!|M$z2YpOXVGbiW#Z z+|s?TJdC>GTxNw--^aG_nyP+EeOvQ4ptl%2@0wcFQ$JBNbjGD>KcIKhi^=i&Rd+_* zzu$C~9~~64jx=WV5HkgxqWn!I`y)jMuhc?b<$u-M?uY9a9(of28BbyVnzsI>nBDuf z?{`B}(_nrRCem?BeO(>e^p+DCe9#Z2XZ?P(I@m|=`RmuqMgG;K45bFh_T#i5N%;>f zT5nYx;UppayMu|%Z mjSUARBqTUTUZm1Vq0!;awAcvNgga1e0(fKa=x3<2$^Qj27pMCG literal 0 HcmV?d00001 diff --git a/sources/plugins/clipboard/icons/paste-rtl.png b/sources/plugins/clipboard/icons/paste-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..b2bfef2037e9bde801edd3a4f0ed16ff88b3158c GIT binary patch literal 724 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|i<6BP`#}JFtwUZ8d$v6tM?SHi{k}a+D+Uy63f+8_O=N)~{eSD+M z@`8;Px4Sk)vUh|j!TD^P!uhmcg{F$S3IwCUi zV70%ppk!L)HpYNyPfwgNlU~0{>)2z%)W}8msz2Gdhu&w7Z{$DF|M&0T-m6zb8P=^^ zXXcW^v4?RVWBjtqFCV5DId&~d$j#*yl;mM!-oJJ0*Rt~R@B9-io-?d?Eu|nQE4$U- z&u`!Ns=cSqR85~gJwSxj&~1~BvGMKQJ9i#D)AlXsFnhkfZ}4otwgYH{l&DZ z7@Aud7z2^EfsvJgf$x&tz?6cdAvZrIGp!Q02AiMEM}Qh6K{f>ErERK(!v>gTe~DWM4fOhGs< literal 0 HcmV?d00001 diff --git a/sources/plugins/clipboard/icons/paste.png b/sources/plugins/clipboard/icons/paste.png new file mode 100644 index 0000000000000000000000000000000000000000..b2bfef2037e9bde801edd3a4f0ed16ff88b3158c GIT binary patch literal 724 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|i<6BP`#}JFtwUZ8d$v6tM?SHi{k}a+D+Uy63f+8_O=N)~{eSD+M z@`8;Px4Sk)vUh|j!TD^P!uhmcg{F$S3IwCUi zV70%ppk!L)HpYNyPfwgNlU~0{>)2z%)W}8msz2Gdhu&w7Z{$DF|M&0T-m6zb8P=^^ zXXcW^v4?RVWBjtqFCV5DId&~d$j#*yl;mM!-oJJ0*Rt~R@B9-io-?d?Eu|nQE4$U- z&u`!Ns=cSqR85~gJwSxj&~1~BvGMKQJ9i#D)AlXsFnhkfZ}4otwgYH{l&DZ z7@Aud7z2^EfsvJgf$x&tz?6cdAvZrIGp!Q02AiMEM}Qh6K{f>ErERK(!v>gTe~DWM4fOhGs< literal 0 HcmV?d00001 diff --git a/sources/plugins/clipboard/lang/af.js b/sources/plugins/clipboard/lang/af.js new file mode 100644 index 00000000..b7dbddc5 --- /dev/null +++ b/sources/plugins/clipboard/lang/af.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'af', { + copy: 'Kopiëer', + copyError: 'U blaaier se sekuriteitsinstelling belet die kopiëringsaksie. Gebruik die sleutelbordkombinasie (Ctrl/Cmd+C).', + cut: 'Knip', + cutError: 'U blaaier se sekuriteitsinstelling belet die outomatiese knip-aksie. Gebruik die sleutelbordkombinasie (Ctrl/Cmd+X).', + paste: 'Plak', + pasteArea: 'Plak-area', + pasteMsg: 'Plak die teks in die volgende teks-area met die sleutelbordkombinasie (Ctrl/Cmd+V) en druk OK.', + securityMsg: 'Weens u blaaier se sekuriteitsinstelling is data op die knipbord nie toeganklik nie. U kan dit eers weer in hierdie venster plak.', + title: 'Byvoeg' +} ); diff --git a/sources/plugins/clipboard/lang/ar.js b/sources/plugins/clipboard/lang/ar.js new file mode 100644 index 00000000..c6b6613d --- /dev/null +++ b/sources/plugins/clipboard/lang/ar.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ar', { + copy: 'نسخ', + copyError: 'الإعدادات الأمنية للمتصفح الذي تستخدمه تمنع عمليات النسخ التلقائي. فضلاً إستخدم لوحة المفاتيح لفعل ذلك (Ctrl/Cmd+C).', + cut: 'قص', + cutError: 'الإعدادات الأمنية للمتصفح الذي تستخدمه تمنع القص التلقائي. فضلاً إستخدم لوحة المفاتيح لفعل ذلك (Ctrl/Cmd+X).', + paste: 'لصق', + pasteArea: 'منطقة اللصق', + pasteMsg: 'الصق داخل الصندوق بإستخدام زرائر (Ctrl/Cmd+V) في لوحة المفاتيح، ثم اضغط زر موافق.', + securityMsg: 'نظراً لإعدادات الأمان الخاصة بمتصفحك، لن يتمكن هذا المحرر من الوصول لمحتوى حافظتك، لذلك يجب عليك لصق المحتوى مرة أخرى في هذه النافذة.', + title: 'لصق' +} ); diff --git a/sources/plugins/clipboard/lang/bg.js b/sources/plugins/clipboard/lang/bg.js new file mode 100644 index 00000000..c700865d --- /dev/null +++ b/sources/plugins/clipboard/lang/bg.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'bg', { + copy: 'Копирай', + copyError: 'Настройките за сигурност на вашия бразуър не разрешават на редактора да изпълни запаметяването. За целта използвайте клавиатурата (Ctrl/Cmd+C).', + cut: 'Отрежи', + cutError: 'Настройките за сигурност на Вашия браузър не позволяват на редактора автоматично да изъплни действията за отрязване. Моля ползвайте клавиатурните команди за целта (ctrl+x).', + paste: 'Вмъкни', + pasteArea: 'Зона за вмъкване', + pasteMsg: 'Вмъкнете тук съдъжанието с клавиатуарата (Ctrl/Cmd+V) и натиснете OK.', + securityMsg: 'Заради настройките за сигурност на Вашия браузър, редакторът не може да прочете данните от клипборда коректно.', + title: 'Вмъкни' +} ); diff --git a/sources/plugins/clipboard/lang/bn.js b/sources/plugins/clipboard/lang/bn.js new file mode 100644 index 00000000..5df653c6 --- /dev/null +++ b/sources/plugins/clipboard/lang/bn.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'bn', { + copy: 'কপি', + copyError: 'আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কপি করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl/Cmd+C)।', + cut: 'কাট', + cutError: 'আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কাট করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl/Cmd+X)।', + paste: 'পেস্ট', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'অনুগ্রহ করে নীচের বাক্সে কিবোর্ড ব্যবহার করে (Ctrl/Cmd+V) পেস্ট করুন এবং OK চাপ দিন', + securityMsg: 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + title: 'পেস্ট' +} ); diff --git a/sources/plugins/clipboard/lang/bs.js b/sources/plugins/clipboard/lang/bs.js new file mode 100644 index 00000000..e6c11949 --- /dev/null +++ b/sources/plugins/clipboard/lang/bs.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'bs', { + copy: 'Kopiraj', + copyError: 'Sigurnosne postavke Vašeg pretraživaèa ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tastaturi (Ctrl/Cmd+C).', + cut: 'Izreži', + cutError: 'Sigurnosne postavke vašeg pretraživaèa ne dozvoljavaju operacije automatskog rezanja. Molimo koristite kraticu na tastaturi (Ctrl/Cmd+X).', + paste: 'Zalijepi', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) and hit OK', // MISSING + securityMsg: 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + title: 'Zalijepi' +} ); diff --git a/sources/plugins/clipboard/lang/ca.js b/sources/plugins/clipboard/lang/ca.js new file mode 100644 index 00000000..0445e697 --- /dev/null +++ b/sources/plugins/clipboard/lang/ca.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ca', { + copy: 'Copiar', + copyError: 'La configuració de seguretat del vostre navegador no permet executar automàticament les operacions de copiar. Si us plau, utilitzeu el teclat (Ctrl/Cmd+C).', + cut: 'Retallar', + cutError: 'La configuració de seguretat del vostre navegador no permet executar automàticament les operacions de retallar. Si us plau, utilitzeu el teclat (Ctrl/Cmd+X).', + paste: 'Enganxar', + pasteArea: 'Àrea d\'enganxat', + pasteMsg: 'Si us plau, enganxi dins del següent camp utilitzant el teclat (Ctrl/Cmd+V) i premi OK.', + securityMsg: 'A causa de la configuració de seguretat del vostre navegador, l\'editor no pot accedir a les dades del porta-retalls directament. Enganxeu-ho un altre cop en aquesta finestra.', + title: 'Enganxar' +} ); diff --git a/sources/plugins/clipboard/lang/cs.js b/sources/plugins/clipboard/lang/cs.js new file mode 100644 index 00000000..f32f1be6 --- /dev/null +++ b/sources/plugins/clipboard/lang/cs.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'cs', { + copy: 'Kopírovat', + copyError: 'Bezpečnostní nastavení vašeho prohlížeče nedovolují editoru spustit funkci pro kopírování zvoleného textu do schránky. Prosím zkopírujte zvolený text do schránky pomocí klávesnice (Ctrl/Cmd+C).', + cut: 'Vyjmout', + cutError: 'Bezpečnostní nastavení vašeho prohlížeče nedovolují editoru spustit funkci pro vyjmutí zvoleného textu do schránky. Prosím vyjměte zvolený text do schránky pomocí klávesnice (Ctrl/Cmd+X).', + paste: 'Vložit', + pasteArea: 'Oblast vkládání', + pasteMsg: 'Do následujícího pole vložte požadovaný obsah pomocí klávesnice (Ctrl/Cmd+V) a stiskněte OK.', + securityMsg: 'Z důvodů nastavení bezpečnosti vašeho prohlížeče nemůže editor přistupovat přímo do schránky. Obsah schránky prosím vložte znovu do tohoto okna.', + title: 'Vložit' +} ); diff --git a/sources/plugins/clipboard/lang/cy.js b/sources/plugins/clipboard/lang/cy.js new file mode 100644 index 00000000..65e71254 --- /dev/null +++ b/sources/plugins/clipboard/lang/cy.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'cy', { + copy: 'Copïo', + copyError: '\'Dyw gosodiadau diogelwch eich porwr ddim yn caniatàu\'r golygydd i gynnal \'gweithredoedd copïo\' yn awtomatig. Defnyddiwch y bysellfwrdd (Ctrl/Cmd+C).', + cut: 'Torri', + cutError: 'Nid yw gosodiadau diogelwch eich porwr yn caniatàu\'r golygydd i gynnal \'gweithredoedd torri\' yn awtomatig. Defnyddiwch y bysellfwrdd (Ctrl/Cmd+X).', + paste: 'Gludo', + pasteArea: 'Ardal Gludo', + pasteMsg: 'Gludwch i mewn i\'r blwch canlynol gan ddefnyddio\'r bysellfwrdd (Ctrl/Cmd+V) a phwyso Iawn.', + securityMsg: 'Oherwydd gosodiadau diogelwch eich porwr, \'dyw\'r porwr ddim yn gallu ennill mynediad i\'r data ar y clipfwrdd yn uniongyrchol. Mae angen i chi ei ludo eto i\'r ffenestr hon.', + title: 'Gludo' +} ); diff --git a/sources/plugins/clipboard/lang/da.js b/sources/plugins/clipboard/lang/da.js new file mode 100644 index 00000000..41f73069 --- /dev/null +++ b/sources/plugins/clipboard/lang/da.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'da', { + copy: 'Kopiér', + copyError: 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.

Brug i stedet tastaturet til at kopiere teksten (Ctrl/Cmd+C).', + cut: 'Klip', + cutError: 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.

Brug i stedet tastaturet til at klippe teksten (Ctrl/Cmd+X).', + paste: 'Indsæt', + pasteArea: 'Indsæt område', + pasteMsg: 'Indsæt i feltet herunder (Ctrl/Cmd+V) og klik på OK.', + securityMsg: 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.

Du skal indsætte udklipsholderens indhold i dette vindue igen.', + title: 'Indsæt' +} ); diff --git a/sources/plugins/clipboard/lang/de.js b/sources/plugins/clipboard/lang/de.js new file mode 100644 index 00000000..baeb6528 --- /dev/null +++ b/sources/plugins/clipboard/lang/de.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'de', { + copy: 'Kopieren', + copyError: 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch kopieren. Bitte benutzen Sie die System-Zwischenablage über STRG-C (kopieren).', + cut: 'Ausschneiden', + cutError: 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch auszuschneiden. Bitte benutzen Sie die System-Zwischenablage über STRG-X (ausschneiden) und STRG-V (einfügen).', + paste: 'Einfügen', + pasteArea: 'Einfügebereich', + pasteMsg: 'Bitte fügen Sie den Text in der folgenden Box über die Tastatur (mit Strg+V) ein und bestätigen Sie mit OK.', + securityMsg: 'Aufgrund von Sicherheitsbeschränkungen Ihres Browsers kann der Editor nicht direkt auf die Zwischenablage zugreifen. Bitte fügen Sie den Inhalt erneut in diesem Fenster ein.', + title: 'Einfügen' +} ); diff --git a/sources/plugins/clipboard/lang/el.js b/sources/plugins/clipboard/lang/el.js new file mode 100644 index 00000000..57158663 --- /dev/null +++ b/sources/plugins/clipboard/lang/el.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'el', { + copy: 'Αντιγραφή', + copyError: 'Οι ρυθμίσεις ασφαλείας του περιηγητή σας δεν επιτρέπουν την επιλεγμένη εργασία αντιγραφής. Παρακαλώ χρησιμοποιείστε το πληκτρολόγιο (Ctrl/Cmd+C).', + cut: 'Αποκοπή', + cutError: 'Οι ρυθμίσεις ασφαλείας του περιηγητή σας δεν επιτρέπουν την επιλεγμένη εργασία αποκοπής. Παρακαλώ χρησιμοποιείστε το πληκτρολόγιο (Ctrl/Cmd+X).', + paste: 'Επικόλληση', + pasteArea: 'Περιοχή Επικόλλησης', + pasteMsg: 'Παρακαλώ επικολλήστε στο ακόλουθο κουτί χρησιμοποιώντας το πληκτρολόγιο (Ctrl/Cmd+V) και πατήστε OK.', + securityMsg: 'Λόγων των ρυθμίσεων ασφάλειας του περιηγητή σας, ο επεξεργαστής δεν μπορεί να έχει πρόσβαση στην μνήμη επικόλλησης. Χρειάζεται να επικολλήσετε ξανά σε αυτό το παράθυρο.', + title: 'Επικόλληση' +} ); diff --git a/sources/plugins/clipboard/lang/en-au.js b/sources/plugins/clipboard/lang/en-au.js new file mode 100644 index 00000000..6c895f82 --- /dev/null +++ b/sources/plugins/clipboard/lang/en-au.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'en-au', { + copy: 'Copy', + copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + cut: 'Cut', + cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + paste: 'Paste', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) and hit OK', + securityMsg: 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', + title: 'Paste' +} ); diff --git a/sources/plugins/clipboard/lang/en-ca.js b/sources/plugins/clipboard/lang/en-ca.js new file mode 100644 index 00000000..4f1220e0 --- /dev/null +++ b/sources/plugins/clipboard/lang/en-ca.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'en-ca', { + copy: 'Copy', + copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + cut: 'Cut', + cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + paste: 'Paste', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) and hit OK', + securityMsg: 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', + title: 'Paste' +} ); diff --git a/sources/plugins/clipboard/lang/en-gb.js b/sources/plugins/clipboard/lang/en-gb.js new file mode 100644 index 00000000..a460489e --- /dev/null +++ b/sources/plugins/clipboard/lang/en-gb.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'en-gb', { + copy: 'Copy', + copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + cut: 'Cut', + cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + paste: 'Paste', + pasteArea: 'Paste Area', + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) and hit OK', + securityMsg: 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', + title: 'Paste' +} ); diff --git a/sources/plugins/clipboard/lang/en.js b/sources/plugins/clipboard/lang/en.js new file mode 100644 index 00000000..db5dd596 --- /dev/null +++ b/sources/plugins/clipboard/lang/en.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'en', { + copy: 'Copy', + copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', + cut: 'Cut', + cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', + paste: 'Paste', + pasteArea: 'Paste Area', + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) and hit OK', + securityMsg: 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', + title: 'Paste' +} ); diff --git a/sources/plugins/clipboard/lang/eo.js b/sources/plugins/clipboard/lang/eo.js new file mode 100644 index 00000000..55a62ef3 --- /dev/null +++ b/sources/plugins/clipboard/lang/eo.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'eo', { + copy: 'Kopii', + copyError: 'La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras kopiajn operaciojn. Bonvolu uzi la klavaron por tio (Ctrl/Cmd-C).', + cut: 'Eltondi', + cutError: 'La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras eltondajn operaciojn. Bonvolu uzi la klavaron por tio (Ctrl/Cmd-X).', + paste: 'Interglui', + pasteArea: 'Intergluoareo', + pasteMsg: 'Bonvolu glui la tekston en la jenan areon per uzado de la klavaro (Ctrl/Cmd+V) kaj premu OK', + securityMsg: 'Pro la sekurecagordo de via TTT-legilo, la redaktilo ne povas rekte atingi viajn datenojn en la poŝo. Bonvolu denove interglui la datenojn en tiun fenestron.', + title: 'Interglui' +} ); diff --git a/sources/plugins/clipboard/lang/es.js b/sources/plugins/clipboard/lang/es.js new file mode 100644 index 00000000..346265af --- /dev/null +++ b/sources/plugins/clipboard/lang/es.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'es', { + copy: 'Copiar', + copyError: 'La configuración de seguridad de este navegador no permite la ejecución automática de operaciones de copiado.\r\nPor favor use el teclado (Ctrl/Cmd+C).', + cut: 'Cortar', + cutError: 'La configuración de seguridad de este navegador no permite la ejecución automática de operaciones de cortado.\r\nPor favor use el teclado (Ctrl/Cmd+X).', + paste: 'Pegar', + pasteArea: 'Zona de pegado', + pasteMsg: 'Por favor pegue dentro del cuadro utilizando el teclado (Ctrl/Cmd+V);\r\nluego presione Aceptar.', + securityMsg: 'Debido a la configuración de seguridad de su navegador, el editor no tiene acceso al portapapeles.\r\nEs necesario que lo pegue de nuevo en esta ventana.', + title: 'Pegar' +} ); diff --git a/sources/plugins/clipboard/lang/et.js b/sources/plugins/clipboard/lang/et.js new file mode 100644 index 00000000..34dc3bc7 --- /dev/null +++ b/sources/plugins/clipboard/lang/et.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'et', { + copy: 'Kopeeri', + copyError: 'Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt kopeerida. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+C).', + cut: 'Lõika', + cutError: 'Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt lõigata. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+X).', + paste: 'Aseta', + pasteArea: 'Asetamise ala', + pasteMsg: 'Palun aseta tekst järgnevasse kasti kasutades klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+V) ja vajuta seejärel OK.', + securityMsg: 'Sinu veebisirvija turvaseadete tõttu ei oma redaktor otsest ligipääsu lõikelaua andmetele. Sa pead asetama need uuesti siia aknasse.', + title: 'Asetamine' +} ); diff --git a/sources/plugins/clipboard/lang/eu.js b/sources/plugins/clipboard/lang/eu.js new file mode 100644 index 00000000..6683130a --- /dev/null +++ b/sources/plugins/clipboard/lang/eu.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'eu', { + copy: 'Kopiatu', + copyError: 'Zure web nabigatzailearen segurtasun ezarpenek ez dute baimentzen testuak automatikoki kopiatzea. Mesedez teklatua erabil ezazu (Ctrl/Cmd+C).', + cut: 'Ebaki', + cutError: 'Zure web nabigatzailearen segurtasun ezarpenek ez dute baimentzen testuak automatikoki moztea. Mesedez teklatua erabil ezazu (Ctrl/Cmd+X).', + paste: 'Itsatsi', + pasteArea: 'Itsasteko area', + pasteMsg: 'Mesedez teklatua erabiliz (Ctrl/Cmd+V) ondorengo eremuan testua itsatsi eta sakatu Ados.', + securityMsg: 'Nabigatzailearen segurtasun ezarpenak direla eta, editoreak ezin du arbela zuzenean erabili. Leiho honetan berriro itsatsi behar duzu.', + title: 'Itsatsi' +} ); diff --git a/sources/plugins/clipboard/lang/fa.js b/sources/plugins/clipboard/lang/fa.js new file mode 100644 index 00000000..2bf8ae48 --- /dev/null +++ b/sources/plugins/clipboard/lang/fa.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'fa', { + copy: 'رونوشت', + copyError: 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای کپی کردن را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+C).', + cut: 'برش', + cutError: 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای برش را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+X).', + paste: 'چسباندن', + pasteArea: 'محل چسباندن', + pasteMsg: 'لطفا متن را با کلیدهای (Ctrl/Cmd+V) در این جعبهٴ متنی بچسبانید و پذیرش را بزنید.', + securityMsg: 'به خاطر تنظیمات امنیتی مرورگر شما، ویرایشگر نمیتواند دسترسی مستقیم به دادههای clipboard داشته باشد. شما باید دوباره آنرا در این پنجره بچسبانید.', + title: 'چسباندن' +} ); diff --git a/sources/plugins/clipboard/lang/fi.js b/sources/plugins/clipboard/lang/fi.js new file mode 100644 index 00000000..60f63956 --- /dev/null +++ b/sources/plugins/clipboard/lang/fi.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'fi', { + copy: 'Kopioi', + copyError: 'Selaimesi turva-asetukset eivät salli editorin toteuttaa kopioimista. Käytä näppäimistöä kopioimiseen (Ctrl+C).', + cut: 'Leikkaa', + cutError: 'Selaimesi turva-asetukset eivät salli editorin toteuttaa leikkaamista. Käytä näppäimistöä leikkaamiseen (Ctrl+X).', + paste: 'Liitä', + pasteArea: 'Leikealue', + pasteMsg: 'Liitä painamalla (Ctrl+V) ja painamalla OK.', + securityMsg: 'Selaimesi turva-asetukset eivät salli editorin käyttää leikepöytää suoraan. Sinun pitää suorittaa liittäminen tässä ikkunassa.', + title: 'Liitä' +} ); diff --git a/sources/plugins/clipboard/lang/fo.js b/sources/plugins/clipboard/lang/fo.js new file mode 100644 index 00000000..1298d096 --- /dev/null +++ b/sources/plugins/clipboard/lang/fo.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'fo', { + copy: 'Avrita', + copyError: 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í at avrita tekstin. Vinarliga nýt knappaborðið til at avrita tekstin (Ctrl/Cmd+C).', + cut: 'Kvett', + cutError: 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í at kvetta tekstin. Vinarliga nýt knappaborðið til at kvetta tekstin (Ctrl/Cmd+X).', + paste: 'Innrita', + pasteArea: 'Avritingarumráði', + pasteMsg: 'Vinarliga koyr tekstin í hendan rútin við knappaborðinum (Ctrl/Cmd+V) og klikk á Góðtak.', + securityMsg: 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í beinleiðis atgongd til avritingarminnið. Tygum mugu royna aftur í hesum rútinum.', + title: 'Innrita' +} ); diff --git a/sources/plugins/clipboard/lang/fr-ca.js b/sources/plugins/clipboard/lang/fr-ca.js new file mode 100644 index 00000000..2c01ed4e --- /dev/null +++ b/sources/plugins/clipboard/lang/fr-ca.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'fr-ca', { + copy: 'Copier', + copyError: 'Les paramètres de sécurité de votre navigateur empêchent l\'éditeur de copier automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl/Cmd+C).', + cut: 'Couper', + cutError: 'Les paramètres de sécurité de votre navigateur empêchent l\'éditeur de couper automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl/Cmd+X).', + paste: 'Coller', + pasteArea: 'Coller la zone', + pasteMsg: 'Veuillez coller dans la zone ci-dessous en utilisant le clavier (Ctrl/Cmd+V) et appuyer sur OK.', + securityMsg: 'A cause des paramètres de sécurité de votre navigateur, l\'éditeur ne peut accéder au presse-papier directement. Vous devez coller à nouveau le contenu dans cette fenêtre.', + title: 'Coller' +} ); diff --git a/sources/plugins/clipboard/lang/fr.js b/sources/plugins/clipboard/lang/fr.js new file mode 100644 index 00000000..a8dc5f9e --- /dev/null +++ b/sources/plugins/clipboard/lang/fr.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'fr', { + copy: 'Copier', + copyError: 'Les paramètres de sécurité de votre navigateur ne permettent pas à l\'éditeur d\'exécuter automatiquement des opérations de copie. Veuillez utiliser le raccourci clavier (Ctrl/Cmd+C).', + cut: 'Couper', + cutError: 'Les paramètres de sécurité de votre navigateur ne permettent pas à l\'éditeur d\'exécuter automatiquement l\'opération "couper". Veuillez utiliser le raccourci clavier (Ctrl/Cmd+X).', + paste: 'Coller', + pasteArea: 'Coller la zone', + pasteMsg: 'Veuillez coller le texte dans la zone suivante en utilisant le raccourci clavier (Ctrl/Cmd+V) et cliquez sur OK.', + securityMsg: 'A cause des paramètres de sécurité de votre navigateur, l\'éditeur n\'est pas en mesure d\'accéder directement à vos données contenues dans le presse-papier. Vous devriez réessayer de coller les données dans la fenêtre.', + title: 'Coller' +} ); diff --git a/sources/plugins/clipboard/lang/gl.js b/sources/plugins/clipboard/lang/gl.js new file mode 100644 index 00000000..7fc6b465 --- /dev/null +++ b/sources/plugins/clipboard/lang/gl.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'gl', { + copy: 'Copiar', + copyError: 'Os axustes de seguranza do seu navegador non permiten que o editor realice automaticamente as tarefas de copia. Use o teclado para iso (Ctrl/Cmd+C).', + cut: 'Cortar', + cutError: 'Os axustes de seguranza do seu navegador non permiten que o editor realice automaticamente as tarefas de corte. Use o teclado para iso (Ctrl/Cmd+X).', + paste: 'Pegar', + pasteArea: 'Zona de pegado', + pasteMsg: 'Pegue dentro do seguinte cadro usando o teclado (Ctrl/Cmd+V) e prema en Aceptar', + securityMsg: 'Por mor da configuración de seguranza do seu navegador, o editor non ten acceso ao portapapeis. É necesario pegalo novamente nesta xanela.', + title: 'Pegar' +} ); diff --git a/sources/plugins/clipboard/lang/gu.js b/sources/plugins/clipboard/lang/gu.js new file mode 100644 index 00000000..a513482f --- /dev/null +++ b/sources/plugins/clipboard/lang/gu.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'gu', { + copy: 'નકલ', + copyError: 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસ કોપી કરવાની પરવાનગી નથી આપતી. (Ctrl/Cmd+C) का प्रयोग करें।', + cut: 'કાપવું', + cutError: 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસ કટ કરવાની પરવાનગી નથી આપતી. (Ctrl/Cmd+X) નો ઉપયોગ કરો.', + paste: 'પેસ્ટ', + pasteArea: 'પેસ્ટ કરવાની જગ્યા', + pasteMsg: 'Ctrl/Cmd+V નો પ્રયોગ કરી પેસ્ટ કરો', + securityMsg: 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસના કારણે,એડિટર તમારા કિલ્પબોર્ડ ડેટા ને કોપી નથી કરી શકતો. તમારે આ વિન્ડોમાં ફરીથી પેસ્ટ કરવું પડશે.', + title: 'પેસ્ટ' +} ); diff --git a/sources/plugins/clipboard/lang/he.js b/sources/plugins/clipboard/lang/he.js new file mode 100644 index 00000000..d91fee0d --- /dev/null +++ b/sources/plugins/clipboard/lang/he.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'he', { + copy: 'העתקה', + copyError: 'הגדרות האבטחה בדפדפן שלך לא מאפשרות לעורך לבצע פעולות העתקה אוטומטיות. יש להשתמש במקלדת לשם כך (Ctrl/Cmd+C).', + cut: 'גזירה', + cutError: 'הגדרות האבטחה בדפדפן שלך לא מאפשרות לעורך לבצע פעולות גזירה אוטומטיות. יש להשתמש במקלדת לשם כך (Ctrl/Cmd+X).', + paste: 'הדבקה', + pasteArea: 'איזור הדבקה', + pasteMsg: 'נא להדביק בתוך הקופסה באמצעות (Ctrl/Cmd+V) וללחוץ על אישור.', + securityMsg: 'עקב הגדרות אבטחה בדפדפן, לא ניתן לגשת אל לוח הגזירים (Clipboard) בצורה ישירה. נא להדביק שוב בחלון זה.', + title: 'הדבקה' +} ); diff --git a/sources/plugins/clipboard/lang/hi.js b/sources/plugins/clipboard/lang/hi.js new file mode 100644 index 00000000..3660fb19 --- /dev/null +++ b/sources/plugins/clipboard/lang/hi.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'hi', { + copy: 'कॉपी', + copyError: 'आपके ब्राआउज़र की सुरक्षा सॅटिन्ग्स ने कॉपी करने की अनुमति नहीं प्रदान की है। (Ctrl/Cmd+C) का प्रयोग करें।', + cut: 'कट', + cutError: 'आपके ब्राउज़र की सुरक्षा सॅटिन्ग्स ने कट करने की अनुमति नहीं प्रदान की है। (Ctrl/Cmd+X) का प्रयोग करें।', + paste: 'पेस्ट', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Ctrl/Cmd+V का प्रयोग करके पेस्ट करें और ठीक है करें.', + securityMsg: 'आपके ब्राउज़र की सुरक्षा आपके ब्राउज़र की सुरKश सैटिंग के कारण, एडिटर आपके क्लिपबोर्ड डेटा को नहीं पा सकता है. आपको उसे इस विन्डो में दोबारा पेस्ट करना होगा.', + title: 'पेस्ट' +} ); diff --git a/sources/plugins/clipboard/lang/hr.js b/sources/plugins/clipboard/lang/hr.js new file mode 100644 index 00000000..b820eb9e --- /dev/null +++ b/sources/plugins/clipboard/lang/hr.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'hr', { + copy: 'Kopiraj', + copyError: 'Sigurnosne postavke VaÅ¡eg pretraživača ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+C).', + cut: 'Izreži', + cutError: 'Sigurnosne postavke VaÅ¡eg pretraživača ne dozvoljavaju operacije automatskog izrezivanja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+X).', + paste: 'Zalijepi', + pasteArea: 'Prostor za ljepljenje', + pasteMsg: 'Molimo zaljepite unutar doljnjeg okvira koristeći tipkovnicu (Ctrl/Cmd+V) i kliknite OK.', + securityMsg: 'Zbog sigurnosnih postavki VaÅ¡eg pretraživača, editor nema direktan pristup VaÅ¡em međuspremniku. Potrebno je ponovno zalijepiti tekst u ovaj prozor.', + title: 'Zalijepi' +} ); diff --git a/sources/plugins/clipboard/lang/hu.js b/sources/plugins/clipboard/lang/hu.js new file mode 100644 index 00000000..61829ca9 --- /dev/null +++ b/sources/plugins/clipboard/lang/hu.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'hu', { + copy: 'Másolás', + copyError: 'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a másolás műveletet. Használja az alábbi billentyűkombinációt (Ctrl/Cmd+X).', + cut: 'Kivágás', + cutError: 'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a kivágás műveletet. Használja az alábbi billentyűkombinációt (Ctrl/Cmd+X).', + paste: 'Beillesztés', + pasteArea: 'Beszúrás mező', + pasteMsg: 'Másolja be az alábbi mezőbe a Ctrl/Cmd+V billentyűk lenyomásával, majd nyomjon Rendben-t.', + securityMsg: 'A böngésző biztonsági beállításai miatt a szerkesztő nem képes hozzáférni a vágólap adataihoz. Illeszd be újra ebben az ablakban.', + title: 'Beillesztés' +} ); diff --git a/sources/plugins/clipboard/lang/id.js b/sources/plugins/clipboard/lang/id.js new file mode 100644 index 00000000..eca3852a --- /dev/null +++ b/sources/plugins/clipboard/lang/id.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'id', { + copy: 'Salin', + copyError: 'Pengaturan keamanan peramban anda tidak mengizinkan editor untuk mengeksekusi operasi menyalin secara otomatis. Mohon gunakan papan tuts (Ctrl/Cmd+C)', + cut: 'Potong', + cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', // MISSING + paste: 'Tempel', + pasteArea: 'Area Tempel', + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) and hit OK', // MISSING + securityMsg: 'Karena pengaturan keamanan peramban anda, editor tida dapat mengakses data clipboard anda secara langsung. Anda harus mem-paste kembali pada halaman ini', + title: 'Tempel' +} ); diff --git a/sources/plugins/clipboard/lang/is.js b/sources/plugins/clipboard/lang/is.js new file mode 100644 index 00000000..bdf5862f --- /dev/null +++ b/sources/plugins/clipboard/lang/is.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'is', { + copy: 'Afrita', + copyError: 'Öryggisstillingar vafrans þíns leyfa ekki afritun texta með músaraðgerð. Notaðu lyklaborðið í afrita (Ctrl/Cmd+C).', + cut: 'Klippa', + cutError: 'Öryggisstillingar vafrans þíns leyfa ekki klippingu texta með músaraðgerð. Notaðu lyklaborðið í klippa (Ctrl/Cmd+X).', + paste: 'Líma', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Límdu í svæðið hér að neðan og (Ctrl/Cmd+V) og smelltu á OK.', + securityMsg: 'Vegna öryggisstillinga í vafranum þínum fær ritillinn ekki beinan aðgang að klippuborðinu. Þú verður að líma innihaldið aftur inn í þennan glugga.', + title: 'Líma' +} ); diff --git a/sources/plugins/clipboard/lang/it.js b/sources/plugins/clipboard/lang/it.js new file mode 100644 index 00000000..443fdf2e --- /dev/null +++ b/sources/plugins/clipboard/lang/it.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'it', { + copy: 'Copia', + copyError: 'Le impostazioni di sicurezza del browser non permettono di copiare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+C).', + cut: 'Taglia', + cutError: 'Le impostazioni di sicurezza del browser non permettono di tagliare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+X).', + paste: 'Incolla', + pasteArea: 'Incolla', + pasteMsg: 'Incolla il testo all\'interno dell\'area sottostante usando la scorciatoia di tastiere (Ctrl/Cmd+V) e premi OK.', + securityMsg: 'A causa delle impostazioni di sicurezza del browser,l\'editor non è in grado di accedere direttamente agli appunti. E\' pertanto necessario incollarli di nuovo in questa finestra.', + title: 'Incolla' +} ); diff --git a/sources/plugins/clipboard/lang/ja.js b/sources/plugins/clipboard/lang/ja.js new file mode 100644 index 00000000..5697cbb7 --- /dev/null +++ b/sources/plugins/clipboard/lang/ja.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ja', { + copy: 'コピー', + copyError: 'ブラウザーのセキュリティ設定によりエディタのコピー操作を自動で実行することができません。実行するには手動でキーボードの(Ctrl/Cmd+C)を使用してください。', + cut: '切り取り', + cutError: 'ブラウザーのセキュリティ設定によりエディタの切り取り操作を自動で実行することができません。実行するには手動でキーボードの(Ctrl/Cmd+X)を使用してください。', + paste: '貼り付け', + pasteArea: '貼り付け場所', + pasteMsg: 'キーボード(Ctrl/Cmd+V)を使用して、次の入力エリア内で貼り付けて、OKを押してください。', + securityMsg: 'ブラウザのセキュリティ設定により、エディタはクリップボードデータに直接アクセスすることができません。このウィンドウは貼り付け操作を行う度に表示されます。', + title: '貼り付け' +} ); diff --git a/sources/plugins/clipboard/lang/ka.js b/sources/plugins/clipboard/lang/ka.js new file mode 100644 index 00000000..021fe08e --- /dev/null +++ b/sources/plugins/clipboard/lang/ka.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ka', { + copy: 'ასლი', + copyError: 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა ასლის ოპერაციის ავტომატურად განხორციელების საშუალებას. გამოიყენეთ კლავიატურა ამისთვის (Ctrl/Cmd+C).', + cut: 'ამოჭრა', + cutError: 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა ამოჭრის ოპერაციის ავტომატურად განხორციელების საშუალებას. გამოიყენეთ კლავიატურა ამისთვის (Ctrl/Cmd+X).', + paste: 'ჩასმა', + pasteArea: 'ჩასმის არე', + pasteMsg: 'ჩასვით ამ არის შიგნით კლავიატურის გამოყენებით (Ctrl/Cmd+V) და დააჭირეთ OK-ს', + securityMsg: 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა clipboard-ის მონაცემების წვდომის უფლებას. კიდევ უნდა ჩასვათ ტექსტი ამ ფანჯარაში.', + title: 'ჩასმა' +} ); diff --git a/sources/plugins/clipboard/lang/km.js b/sources/plugins/clipboard/lang/km.js new file mode 100644 index 00000000..0baa9d8b --- /dev/null +++ b/sources/plugins/clipboard/lang/km.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'km', { + copy: 'ចម្លង', + copyError: 'ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះ​មិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ ចំលងអត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+C)។', + cut: 'កាត់យក', + cutError: 'ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះ​មិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ កាត់អត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+X) ។', + paste: 'បិទ​ភ្ជាប់', + pasteArea: 'តំបន់​បិទ​ភ្ជាប់', + pasteMsg: 'សូមចំលងអត្ថបទទៅដាក់ក្នុងប្រអប់ដូចខាងក្រោមដោយប្រើប្រាស់ ឃី ​(Ctrl/Cmd+V) ហើយចុច OK ។', + securityMsg: 'ព្រោះតែ​ការកំណត់​សុវត្ថិភាព ប្រអប់សរសេរ​មិន​អាចចាប់​យកទិន្នន័យពីក្តារតម្បៀតខ្ទាស់​អ្នក​​ដោយផ្ទាល់​បានទេ។ អ្នក​ត្រូវចំលង​ដាក់វាម្តង​ទៀត ក្នុងផ្ទាំងនេះ។', + title: 'បិទ​ភ្ជាប់' +} ); diff --git a/sources/plugins/clipboard/lang/ko.js b/sources/plugins/clipboard/lang/ko.js new file mode 100644 index 00000000..6db8caba --- /dev/null +++ b/sources/plugins/clipboard/lang/ko.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ko', { + copy: '복사', + copyError: '브라우저의 보안설정 때문에 복사할 수 없습니다. 키보드(Ctrl/Cmd+C)를 이용해서 복사하십시오.', + cut: '잘라내기', + cutError: '브라우저의 보안설정 때문에 잘라내기 기능을 실행할 수 없습니다. 키보드(Ctrl/Cmd+X)를 이용해서 잘라내기 하십시오', + paste: '붙여넣기', + pasteArea: '붙여넣기 범위', + pasteMsg: '키보드(Ctrl/Cmd+V)를 이용해서 상자안에 붙여넣고 확인 를 누르세요.', + securityMsg: '브라우저 보안 설정으로 인해, 클립보드에 직접 접근할 수 없습니다. 이 창에 다시 붙여넣기 하십시오.', + title: '붙여넣기' +} ); diff --git a/sources/plugins/clipboard/lang/ku.js b/sources/plugins/clipboard/lang/ku.js new file mode 100644 index 00000000..91b77671 --- /dev/null +++ b/sources/plugins/clipboard/lang/ku.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ku', { + copy: 'لەبەرگرتنەوە', + copyError: 'پارێزی وێبگەڕەکەت ڕێگەنادات بەسەرنووسەکە لە لکاندنی دەقی خۆکارارنە. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+C).', + cut: 'بڕین', + cutError: 'پارێزی وێبگەڕەکەت ڕێگەنادات بە سەرنووسەکە لەبڕینی خۆکارانە. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+X).', + paste: 'لکاندن', + pasteArea: 'ناوچەی لکاندن', + pasteMsg: 'تکایە بیلکێنە لەناوەوەی ئەم سنوقە لەڕێی تەختەکلیلەکەت بە بەکارهێنانی کلیلی (Ctrl/Cmd+V) دووای کلیکی باشە بکە.', + securityMsg: 'بەهۆی شێوەپێدانی پارێزی وێبگەڕەکەت، سەرنووسەکه ناتوانێت دەستبگەیەنێت بەهەڵگیراوەکە ڕاستەوخۆ. بۆیه پێویسته دووباره بیلکێنیت لەم پەنجەرەیه.', + title: 'لکاندن' +} ); diff --git a/sources/plugins/clipboard/lang/lt.js b/sources/plugins/clipboard/lang/lt.js new file mode 100644 index 00000000..ef57ed48 --- /dev/null +++ b/sources/plugins/clipboard/lang/lt.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'lt', { + copy: 'Kopijuoti', + copyError: 'JÅ«sų narÅ¡yklės saugumo nustatymai neleidžia redaktoriui automatiÅ¡kai įvykdyti kopijavimo operacijų. Tam praÅ¡ome naudoti klaviatÅ«rą (Ctrl/Cmd+C).', + cut: 'IÅ¡kirpti', + cutError: 'JÅ«sų narÅ¡yklės saugumo nustatymai neleidžia redaktoriui automatiÅ¡kai įvykdyti iÅ¡kirpimo operacijų. Tam praÅ¡ome naudoti klaviatÅ«rą (Ctrl/Cmd+X).', + paste: 'Ä®dėti', + pasteArea: 'Ä®kelti dalį', + pasteMsg: 'Žemiau esančiame įvedimo lauke įdėkite tekstą, naudodami klaviatÅ«rą (Ctrl/Cmd+V) ir paspauskite mygtuką OK.', + securityMsg: 'Dėl jÅ«sų narÅ¡yklės saugumo nustatymų, redaktorius negali tiesiogiai pasiekti laikinosios atminties. Jums reikia nukopijuoti dar kartą į šį langą.', + title: 'Ä®dėti' +} ); diff --git a/sources/plugins/clipboard/lang/lv.js b/sources/plugins/clipboard/lang/lv.js new file mode 100644 index 00000000..f347cc4f --- /dev/null +++ b/sources/plugins/clipboard/lang/lv.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'lv', { + copy: 'Kopēt', + copyError: 'JÅ«su pārlÅ«kprogrammas droÅ¡Ä«bas iestatÄ«jumi nepieļauj redaktoram automātiski veikt kopēšanas darbÄ«bu. LÅ«dzu, izmantojiet (Ctrl/Cmd+C), lai veiktu Å¡o darbÄ«bu.', + cut: 'Izgriezt', + cutError: 'JÅ«su pārlÅ«kprogrammas droÅ¡Ä«bas iestatÄ«jumi nepieļauj redaktoram automātiski veikt izgriezÅ¡anas darbÄ«bu. LÅ«dzu, izmantojiet (Ctrl/Cmd+X), lai veiktu Å¡o darbÄ«bu.', + paste: 'IelÄ«mēt', + pasteArea: 'IelÄ«mēšanas zona', + pasteMsg: 'LÅ«dzu, ievietojiet tekstu Å¡ajā laukumā, izmantojot klaviatÅ«ru (Ctrl/Cmd+V) un apstipriniet ar DarÄ«ts!.', + securityMsg: 'JÅ«su pārlÅ«ka droÅ¡Ä«bas uzstādÄ«jumu dēļ, nav iespējams tieÅ¡i piekļūt jÅ«su starpliktuvei. Jums jāielÄ«mē atkārtoti Å¡ajā logā.', + title: 'Ievietot' +} ); diff --git a/sources/plugins/clipboard/lang/mk.js b/sources/plugins/clipboard/lang/mk.js new file mode 100644 index 00000000..3fbb5718 --- /dev/null +++ b/sources/plugins/clipboard/lang/mk.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'mk', { + copy: 'Copy', // MISSING + copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', // MISSING + cut: 'Cut', // MISSING + cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', // MISSING + paste: 'Paste', // MISSING + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) and hit OK', // MISSING + securityMsg: 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + title: 'Paste' // MISSING +} ); diff --git a/sources/plugins/clipboard/lang/mn.js b/sources/plugins/clipboard/lang/mn.js new file mode 100644 index 00000000..68c3f77e --- /dev/null +++ b/sources/plugins/clipboard/lang/mn.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'mn', { + copy: 'Хуулах', + copyError: 'Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хуулах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl/Cmd+C) товчны хослолыг ашиглана уу.', + cut: 'Хайчлах', + cutError: 'Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хайчлах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl/Cmd+X) товчны хослолыг ашиглана уу.', + paste: 'Буулгах', + pasteArea: 'Paste Area', // MISSING + pasteMsg: '(Ctrl/Cmd+V) товчийг ашиглан paste хийнэ Ò¯Ò¯. Мөн OK дар.', + securityMsg: 'Таны үзүүлэгч/browser/-н хамгаалалтын тохиргооноос болоод editor clipboard өгөгдөлрүү шууд хандах боломжгүй. Энэ цонход дахин paste хийхийг оролд.', + title: 'Буулгах' +} ); diff --git a/sources/plugins/clipboard/lang/ms.js b/sources/plugins/clipboard/lang/ms.js new file mode 100644 index 00000000..4381f047 --- /dev/null +++ b/sources/plugins/clipboard/lang/ms.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ms', { + copy: 'Salin', + copyError: 'Keselamatan perisian browser anda tidak membenarkan operasi salinan text/imej. Sila gunakan papan kekunci (Ctrl/Cmd+C).', + cut: 'Potong', + cutError: 'Keselamatan perisian browser anda tidak membenarkan operasi suntingan text/imej. Sila gunakan papan kekunci (Ctrl/Cmd+X).', + paste: 'Tampal', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) and hit OK', // MISSING + securityMsg: 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + title: 'Tampal' +} ); diff --git a/sources/plugins/clipboard/lang/nb.js b/sources/plugins/clipboard/lang/nb.js new file mode 100644 index 00000000..d2dedbfc --- /dev/null +++ b/sources/plugins/clipboard/lang/nb.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'nb', { + copy: 'Kopier', + copyError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk tastatursnarveien (Ctrl/Cmd+C).', + cut: 'Klipp ut', + cutError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk utklipping av tekst. Vennligst bruk tastatursnarveien (Ctrl/Cmd+X).', + paste: 'Lim inn', + pasteArea: 'InnlimingsomrÃ¥de', + pasteMsg: 'Vennligst lim inn i følgende boks med tastaturet (Ctrl/Cmd+V) og trykk OK.', + securityMsg: 'Din nettlesers sikkerhetsinstillinger gir ikke redigeringsverktøyet direkte tilgang til utklippstavlen. Du mÃ¥ derfor lime det inn pÃ¥ nytt i dette vinduet.', + title: 'Lim inn' +} ); diff --git a/sources/plugins/clipboard/lang/nl.js b/sources/plugins/clipboard/lang/nl.js new file mode 100644 index 00000000..b9829c53 --- /dev/null +++ b/sources/plugins/clipboard/lang/nl.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'nl', { + copy: 'Kopiëren', + copyError: 'De beveiligingsinstelling van de browser verhinderen het automatisch kopiëren. Gebruik de sneltoets Ctrl/Cmd+C van het toetsenbord.', + cut: 'Knippen', + cutError: 'De beveiligingsinstelling van de browser verhinderen het automatisch knippen. Gebruik de sneltoets Ctrl/Cmd+X van het toetsenbord.', + paste: 'Plakken', + pasteArea: 'Plakgebied', + pasteMsg: 'Plak de tekst in het volgende vak gebruikmakend van uw toetsenbord (Ctrl/Cmd+V) en klik op OK.', + securityMsg: 'Door de beveiligingsinstellingen van uw browser is het niet mogelijk om direct vanuit het klembord in de editor te plakken. Middels opnieuw plakken in dit venster kunt u de tekst alsnog plakken in de editor.', + title: 'Plakken' +} ); diff --git a/sources/plugins/clipboard/lang/no.js b/sources/plugins/clipboard/lang/no.js new file mode 100644 index 00000000..d883f6c2 --- /dev/null +++ b/sources/plugins/clipboard/lang/no.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'no', { + copy: 'Kopier', + copyError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk snarveien (Ctrl/Cmd+C).', + cut: 'Klipp ut', + cutError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk utklipping av tekst. Vennligst bruk snarveien (Ctrl/Cmd+X).', + paste: 'Lim inn', + pasteArea: 'InnlimingsomrÃ¥de', + pasteMsg: 'Vennligst lim inn i følgende boks med tastaturet (Ctrl/Cmd+V) og trykk OK.', + securityMsg: 'Din nettlesers sikkerhetsinstillinger gir ikke redigeringsverktøyet direkte tilgang til utklippstavlen. Du mÃ¥ derfor lime det inn pÃ¥ nytt i dette vinduet.', + title: 'Lim inn' +} ); diff --git a/sources/plugins/clipboard/lang/pl.js b/sources/plugins/clipboard/lang/pl.js new file mode 100644 index 00000000..ca45bd03 --- /dev/null +++ b/sources/plugins/clipboard/lang/pl.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'pl', { + copy: 'Kopiuj', + copyError: 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne kopiowanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+C.', + cut: 'Wytnij', + cutError: 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne wycinanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+X.', + paste: 'Wklej', + pasteArea: 'Obszar wklejania', + pasteMsg: 'Wklej tekst w poniższym polu, używając skrótu klawiaturowego (Ctrl/Cmd+V), i kliknij OK.', + securityMsg: 'Zabezpieczenia przeglądarki uniemożliwiają wklejenie danych bezpośrednio do edytora. Proszę ponownie wkleić dane w tym oknie.', + title: 'Wklej' +} ); diff --git a/sources/plugins/clipboard/lang/pt-br.js b/sources/plugins/clipboard/lang/pt-br.js new file mode 100644 index 00000000..895ff3db --- /dev/null +++ b/sources/plugins/clipboard/lang/pt-br.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'pt-br', { + copy: 'Copiar', + copyError: 'As configurações de segurança do seu navegador não permitem que o editor execute operações de copiar automaticamente. Por favor, utilize o teclado para copiar (Ctrl/Cmd+C).', + cut: 'Recortar', + cutError: 'As configurações de segurança do seu navegador não permitem que o editor execute operações de recortar automaticamente. Por favor, utilize o teclado para recortar (Ctrl/Cmd+X).', + paste: 'Colar', + pasteArea: 'Área para Colar', + pasteMsg: 'Transfira o link usado na caixa usando o teclado com (Ctrl/Cmd+V) e OK.', + securityMsg: 'As configurações de segurança do seu navegador não permitem que o editor acesse os dados da área de transferência diretamente. Por favor cole o conteúdo manualmente nesta janela.', + title: 'Colar' +} ); diff --git a/sources/plugins/clipboard/lang/pt.js b/sources/plugins/clipboard/lang/pt.js new file mode 100644 index 00000000..40bf99bd --- /dev/null +++ b/sources/plugins/clipboard/lang/pt.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'pt', { + copy: 'Copiar', + copyError: 'A configuração de segurança do navegador não permite a execução automática de operações de copiar. Por favor use o teclado (Ctrl/Cmd+C).', + cut: 'Cortar', + cutError: 'A configuração de segurança do navegador não permite a execução automática de operações de cortar. Por favor use o teclado (Ctrl/Cmd+X).', + paste: 'Colar', + pasteArea: 'Colar área', + pasteMsg: 'Por favor, cole dentro da seguinte caixa usando o teclado (Ctrl/Cmd+V) e prima OK.', + securityMsg: 'Devido ás definições de segurança do teu browser, o editor não pode aceder ao clipboard diretamente. É necessário que voltes a colar as informações nesta janela.', + title: 'Colar' +} ); diff --git a/sources/plugins/clipboard/lang/ro.js b/sources/plugins/clipboard/lang/ro.js new file mode 100644 index 00000000..2b34ef74 --- /dev/null +++ b/sources/plugins/clipboard/lang/ro.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ro', { + copy: 'Copiază', + copyError: 'Setările de securitate ale navigatorului (browser) pe care îl folosiÅ£i nu permit editorului să execute automat operaÅ£iunea de copiere. Vă rugăm folosiÅ£i tastatura (Ctrl/Cmd+C).', + cut: 'Taie', + cutError: 'Setările de securitate ale navigatorului (browser) pe care îl folosiÅ£i nu permit editorului să execute automat operaÅ£iunea de tăiere. Vă rugăm folosiÅ£i tastatura (Ctrl/Cmd+X).', + paste: 'Adaugă', + pasteArea: 'Suprafața de adăugare', + pasteMsg: 'Vă rugăm adăugaÅ£i în căsuÅ£a următoare folosind tastatura (Ctrl/Cmd+V) şi apăsaÅ£i OK', + securityMsg: 'Din cauza setărilor de securitate ale programului dvs. cu care navigaÅ£i pe internet (browser), editorul nu poate accesa direct datele din clipboard. Va trebui să adăugaÅ£i din nou datele în această fereastră.', + title: 'Adaugă' +} ); diff --git a/sources/plugins/clipboard/lang/ru.js b/sources/plugins/clipboard/lang/ru.js new file mode 100644 index 00000000..9790f01d --- /dev/null +++ b/sources/plugins/clipboard/lang/ru.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ru', { + copy: 'Копировать', + copyError: 'Настройки безопасности вашего браузера не разрешают редактору выполнять операции по копированию текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+C).', + cut: 'Вырезать', + cutError: 'Настройки безопасности вашего браузера не разрешают редактору выполнять операции по вырезке текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+X).', + paste: 'Вставить', + pasteArea: 'Зона для вставки', + pasteMsg: 'Пожалуйста, вставьте текст в зону ниже, используя клавиатуру (Ctrl/Cmd+V) и нажмите кнопку "OK".', + securityMsg: 'Настройки безопасности вашего браузера не разрешают редактору напрямую обращаться к буферу обмена. Вы должны вставить текст снова в это окно.', + title: 'Вставить' +} ); diff --git a/sources/plugins/clipboard/lang/si.js b/sources/plugins/clipboard/lang/si.js new file mode 100644 index 00000000..37dd1248 --- /dev/null +++ b/sources/plugins/clipboard/lang/si.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'si', { + copy: 'පිටපත් කරන්න', + copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', // MISSING + cut: 'කපාගන්න', + cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', // MISSING + paste: 'අලවන්න', + pasteArea: 'අලවන ප්‍රදේශ', + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) and hit OK', // MISSING + securityMsg: 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + title: 'අලවන්න' +} ); diff --git a/sources/plugins/clipboard/lang/sk.js b/sources/plugins/clipboard/lang/sk.js new file mode 100644 index 00000000..4f9e97a7 --- /dev/null +++ b/sources/plugins/clipboard/lang/sk.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sk', { + copy: 'KopírovaÅ¥', + copyError: 'Bezpečnostné nastavenia Vášho prehliadača nedovoľujú editoru automaticky spustiÅ¥ operáciu kopírovania. Prosím, použite na to klávesnicu (Ctrl/Cmd+C).', + cut: 'Vystrihnúť', + cutError: 'Bezpečnostné nastavenia Vášho prehliadača nedovoľujú editoru automaticky spustiÅ¥ operáciu vystrihnutia. Prosím, použite na to klávesnicu (Ctrl/Cmd+X).', + paste: 'VložiÅ¥', + pasteArea: 'Miesto pre vloženie', + pasteMsg: 'Prosím, vložte nasledovný rámček použitím klávesnice (Ctrl/Cmd+V) a stlačte OK.', + securityMsg: 'Kvôli vaÅ¡im bezpečnostným nastaveniam prehliadača editor nie je schopný pristupovaÅ¥ k vaÅ¡ej schránke na kopírovanie priamo. Vložte to preto do tohto okna.', + title: 'VložiÅ¥' +} ); diff --git a/sources/plugins/clipboard/lang/sl.js b/sources/plugins/clipboard/lang/sl.js new file mode 100644 index 00000000..4bb3b6c8 --- /dev/null +++ b/sources/plugins/clipboard/lang/sl.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sl', { + copy: 'Kopiraj', + copyError: 'Varnostne nastavitve brskalnika ne dopuščajo samodejnega kopiranja. Uporabite kombinacijo tipk na tipkovnici (Ctrl/Cmd+C).', + cut: 'Izreži', + cutError: 'Varnostne nastavitve brskalnika ne dopuščajo samodejnega izrezovanja. Uporabite kombinacijo tipk na tipkovnici (Ctrl/Cmd+X).', + paste: 'Prilepi', + pasteArea: 'Prilepi Prostor', + pasteMsg: 'Prosim prilepite v sleči okvir s pomočjo tipkovnice (Ctrl/Cmd+V) in pritisnite V redu.', + securityMsg: 'Zaradi varnostnih nastavitev vaÅ¡ega brskalnika urejevalnik ne more neposredno dostopati do odložišča. Vsebino odložišča ponovno prilepite v to okno.', + title: 'Prilepi' +} ); diff --git a/sources/plugins/clipboard/lang/sq.js b/sources/plugins/clipboard/lang/sq.js new file mode 100644 index 00000000..e5be3c6c --- /dev/null +++ b/sources/plugins/clipboard/lang/sq.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sq', { + copy: 'Kopjo', + copyError: 'Të dhënat e sigurisë së shfletuesit tuaj nuk lejojnë që redaktuesi automatikisht të kryej veprimin e kopjimit. Ju lutemi shfrytëzoni tastierën për këtë veprim (Ctrl/Cmd+C).', + cut: 'Preje', + cutError: 'Të dhënat e sigurisë së shfletuesit tuaj nuk lejojnë që redaktuesi automatikisht të kryej veprimin e prerjes. Ju lutemi shfrytëzoni tastierën për këtë veprim (Ctrl/Cmd+X).', + paste: 'Hidhe', + pasteArea: 'Hapësira Hedhëse', + pasteMsg: 'Ju lutemi hidhni brenda kutizës në vijim duke shfrytëzuar tastierën (Ctrl/Cmd+V) dhe shtypni Mirë.', + securityMsg: 'Për shkak të dhënave të sigurisë së shfletuesit tuaj, redaktuesi nuk është në gjendje të i qaset drejtpërdrejtë të dhanve të tabelës suaj të punës. Ju duhet të hidhni atë përsëri në këtë dritare.', + title: 'Hidhe' +} ); diff --git a/sources/plugins/clipboard/lang/sr-latn.js b/sources/plugins/clipboard/lang/sr-latn.js new file mode 100644 index 00000000..02a2fbe5 --- /dev/null +++ b/sources/plugins/clipboard/lang/sr-latn.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sr-latn', { + copy: 'Kopiraj', + copyError: 'Sigurnosna podeÅ¡avanja VaÅ¡eg pretraživača ne dozvoljavaju operacije automatskog kopiranja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl/Cmd+C).', + cut: 'Iseci', + cutError: 'Sigurnosna podeÅ¡avanja VaÅ¡eg pretraživača ne dozvoljavaju operacije automatskog isecanja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl/Cmd+X).', + paste: 'Zalepi', + pasteArea: 'Prostor za lepljenje', + pasteMsg: 'Molimo Vas da zalepite unutar donje povrine koristeći tastaturnu prečicu (Ctrl/Cmd+V) i da pritisnete OK.', + securityMsg: 'Zbog sigurnosnih postavki vaÅ¡eg pregledača, editor nije u mogućnosti da direktno pristupi podacima u klipbordu. Potrebno je da zalepite joÅ¡ jednom u ovom prozoru.', + title: 'Zalepi' +} ); diff --git a/sources/plugins/clipboard/lang/sr.js b/sources/plugins/clipboard/lang/sr.js new file mode 100644 index 00000000..51055eb2 --- /dev/null +++ b/sources/plugins/clipboard/lang/sr.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sr', { + copy: 'Копирај', + copyError: 'Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског копирања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+C).', + cut: 'Исеци', + cutError: 'Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског исецања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+X).', + paste: 'Залепи', + pasteArea: 'Залепи зону', + pasteMsg: 'Молимо Вас да залепите унутар доње површине користећи тастатурну пречицу (Ctrl/Cmd+V) и да притиснете OK.', + securityMsg: 'Због сигурносних подешавања претраживача, едитор не може да приступи оставу. Требате да га поново залепите у овом прозору.', + title: 'Залепи' +} ); diff --git a/sources/plugins/clipboard/lang/sv.js b/sources/plugins/clipboard/lang/sv.js new file mode 100644 index 00000000..747a1cb2 --- /dev/null +++ b/sources/plugins/clipboard/lang/sv.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'sv', { + copy: 'Kopiera', + copyError: 'Säkerhetsinställningar i Er webbläsare tillÃ¥ter inte Ã¥tgärden kopiera. Använd (Ctrl/Cmd+C) istället.', + cut: 'Klipp ut', + cutError: 'Säkerhetsinställningar i Er webbläsare tillÃ¥ter inte Ã¥tgärden klipp ut. Använd (Ctrl/Cmd+X) istället.', + paste: 'Klistra in', + pasteArea: 'Paste Area', + pasteMsg: 'Var god och klistra in Er text i rutan nedan genom att använda (Ctrl/Cmd+V) klicka sen pÃ¥ OK.', + securityMsg: 'PÃ¥ grund av din webbläsares säkerhetsinställningar kan verktyget inte fÃ¥ Ã¥tkomst till urklippsdatan. Var god och använd detta fönster istället.', + title: 'Klistra in' +} ); diff --git a/sources/plugins/clipboard/lang/th.js b/sources/plugins/clipboard/lang/th.js new file mode 100644 index 00000000..2ece4685 --- /dev/null +++ b/sources/plugins/clipboard/lang/th.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'th', { + copy: 'สำเนา', + copyError: 'ไม่สามารถสำเนาข้อความที่เลือกไว้ได้เนื่องจากการกำหนดค่าระดับความปลอดภัย. กรุณาใช้ปุ่มลัดเพื่อวางข้อความแทน (กดปุ่ม Ctrl/Cmd และตัว C พร้อมกัน).', + cut: 'ตัด', + cutError: 'ไม่สามารถตัดข้อความที่เลือกไว้ได้เนื่องจากการกำหนดค่าระดับความปลอดภัย. กรุณาใช้ปุ่มลัดเพื่อวางข้อความแทน (กดปุ่ม Ctrl/Cmd และตัว X พร้อมกัน).', + paste: 'วาง', + pasteArea: 'Paste Area', // MISSING + pasteMsg: 'กรุณาใช้คีย์บอร์ดเท่านั้น โดยกดปุ๋ม (Ctrl/Cmd และ V)พร้อมๆกัน และกด OK.', + securityMsg: 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + title: 'วาง' +} ); diff --git a/sources/plugins/clipboard/lang/tr.js b/sources/plugins/clipboard/lang/tr.js new file mode 100644 index 00000000..a960cbfe --- /dev/null +++ b/sources/plugins/clipboard/lang/tr.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'tr', { + copy: 'Kopyala', + copyError: 'Gezgin yazılımınızın güvenlik ayarları düzenleyicinin otomatik kopyalama işlemine izin vermiyor. İşlem için (Ctrl/Cmd+C) tuşlarını kullanın.', + cut: 'Kes', + cutError: 'Gezgin yazılımınızın güvenlik ayarları düzenleyicinin otomatik kesme işlemine izin vermiyor. İşlem için (Ctrl/Cmd+X) tuşlarını kullanın.', + paste: 'Yapıştır', + pasteArea: 'Yapıştırma Alanı', + pasteMsg: 'Lütfen aşağıdaki kutunun içine yapıştırın. (Ctrl/Cmd+V) ve Tamam butonunu tıklayın.', + securityMsg: 'Gezgin yazılımınızın güvenlik ayarları düzenleyicinin direkt olarak panoya erişimine izin vermiyor. Bu pencere içine tekrar yapıştırmalısınız..', + title: 'Yapıştır' +} ); diff --git a/sources/plugins/clipboard/lang/tt.js b/sources/plugins/clipboard/lang/tt.js new file mode 100644 index 00000000..3921b895 --- /dev/null +++ b/sources/plugins/clipboard/lang/tt.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'tt', { + copy: 'Күчермәләү', + copyError: 'Браузерыгызның иминлек үзлекләре автоматик рәвештә күчермәләү үтәүне тыя. Тиз төймәләрне (Ctrl/Cmd+C) кулланыгыз.', + cut: 'Кисеп алу', + cutError: 'Браузерыгызның иминлек үзлекләре автоматик рәвештә күчермәләү үтәүне тыя. Тиз төймәләрне (Ctrl/Cmd+C) кулланыгыз.', + paste: 'Өстәү', + pasteArea: 'Өстәү мәйданы', + pasteMsg: 'Please paste inside the following box using the keyboard (Ctrl/Cmd+V) and hit OK', // MISSING + securityMsg: 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING + title: 'Өстәү' +} ); diff --git a/sources/plugins/clipboard/lang/ug.js b/sources/plugins/clipboard/lang/ug.js new file mode 100644 index 00000000..6b0f0851 --- /dev/null +++ b/sources/plugins/clipboard/lang/ug.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'ug', { + copy: 'نەشر ھوقۇقىغا ئىگە بەلگىسى', + copyError: 'تور كۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى تەھرىرلىگۈچنىڭ كۆچۈر مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+C) ئارقىلىق تاماملاڭ', + cut: 'كەس', + cutError: 'تور كۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى تەھرىرلىگۈچنىڭ كەس مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+X) ئارقىلىق تاماملاڭ', + paste: 'چاپلا', + pasteArea: 'چاپلاش دائىرىسى', + pasteMsg: 'ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+V) نى ئىشلىتىپ مەزمۇننى تۆۋەندىكى رامكىغا كۆچۈرۈڭ، ئاندىن جەزملەنى بېسىڭ', + securityMsg: 'توركۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى سەۋەبىدىن بۇ تەھرىرلىگۈچ چاپلاش تاختىسىدىكى مەزمۇننى بىۋاستە زىيارەت قىلالمايدۇ، بۇ كۆزنەكتە قايتا بىر قېتىم چاپلىشىڭىز كېرەك.', + title: 'چاپلا' +} ); diff --git a/sources/plugins/clipboard/lang/uk.js b/sources/plugins/clipboard/lang/uk.js new file mode 100644 index 00000000..666be54c --- /dev/null +++ b/sources/plugins/clipboard/lang/uk.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'uk', { + copy: 'Копіювати', + copyError: 'Налаштування безпеки Вашого браузера не дозволяють редактору автоматично виконувати операції копіювання. Будь ласка, використовуйте клавіатуру для цього (Ctrl/Cmd+C).', + cut: 'Вирізати', + cutError: 'Налаштування безпеки Вашого браузера не дозволяють редактору автоматично виконувати операції вирізування. Будь ласка, використовуйте клавіатуру для цього (Ctrl/Cmd+X)', + paste: 'Вставити', + pasteArea: 'Область вставки', + pasteMsg: 'Будь ласка, вставте інформацію з буфера обміну в цю область, користуючись комбінацією клавіш (Ctrl/Cmd+V), та натисніть OK.', + securityMsg: 'Редактор не може отримати прямий доступ до буферу обміну у зв\'язку з налаштуваннями Вашого браузера. Вам потрібно вставити інформацію в це вікно.', + title: 'Вставити' +} ); diff --git a/sources/plugins/clipboard/lang/vi.js b/sources/plugins/clipboard/lang/vi.js new file mode 100644 index 00000000..dfbc8210 --- /dev/null +++ b/sources/plugins/clipboard/lang/vi.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'vi', { + copy: 'Sao chép', + copyError: 'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tá»± động thá»±c thi lệnh sao chép. Hãy sá»­ dụng bàn phím cho lệnh này (Ctrl/Cmd+C).', + cut: 'Cắt', + cutError: 'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tá»± động thá»±c thi lệnh cắt. Hãy sá»­ dụng bàn phím cho lệnh này (Ctrl/Cmd+X).', + paste: 'Dán', + pasteArea: 'Khu vá»±c dán', + pasteMsg: 'Hãy dán nội dung vào trong khung bên dưới, sá»­ dụng tổ hợp phím (Ctrl/Cmd+V) và nhấn vào nút Đồng ý.', + securityMsg: 'Do thiết lập bảo mật của trình duyệt nên trình biên tập không thể truy cập trá»±c tiếp vào nội dung đã sao chép. Bạn cần phải dán lại nội dung vào cá»­a sổ này.', + title: 'Dán' +} ); diff --git a/sources/plugins/clipboard/lang/zh-cn.js b/sources/plugins/clipboard/lang/zh-cn.js new file mode 100644 index 00000000..426e4072 --- /dev/null +++ b/sources/plugins/clipboard/lang/zh-cn.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'zh-cn', { + copy: '复制', + copyError: '您的浏览器安全设置不允许编辑器自动执行复制操作,请使用键盘快捷键(Ctrl/Cmd+C)来完成。', + cut: '剪切', + cutError: '您的浏览器安全设置不允许编辑器自动执行剪切操作,请使用键盘快捷键(Ctrl/Cmd+X)来完成。', + paste: '粘贴', + pasteArea: '粘贴区域', + pasteMsg: '请使用键盘快捷键(Ctrl/Cmd+V)把内容粘贴到下面的方框里,再按 确定', + securityMsg: '因为您的浏览器的安全设置原因,本编辑器不能直接访问您的剪贴板内容,你需要在本窗口重新粘贴一次。', + title: '粘贴' +} ); diff --git a/sources/plugins/clipboard/lang/zh.js b/sources/plugins/clipboard/lang/zh.js new file mode 100644 index 00000000..116ab664 --- /dev/null +++ b/sources/plugins/clipboard/lang/zh.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'clipboard', 'zh', { + copy: '複製', + copyError: '瀏覽器的安全性設定不允許編輯器自動執行複製動作。請使用鍵盤快捷鍵 (Ctrl/Cmd+C) 複製。', + cut: '剪下', + cutError: '瀏覽器的安全性設定不允許編輯器自動執行剪下動作。請使用鏐盤快捷鍵 (Ctrl/Cmd+X) 剪下。', + paste: '貼上', + pasteArea: '貼上區', + pasteMsg: '請使用鍵盤快捷鍵 (Ctrl/Cmd+V) 貼到下方區域中並按下「確定」。', + securityMsg: '因為瀏覽器的安全性設定,本編輯器無法直接存取您的剪貼簿資料,請您自行在本視窗進行貼上動作。', + title: '貼上' +} ); diff --git a/sources/plugins/clipboard/plugin.js b/sources/plugins/clipboard/plugin.js new file mode 100644 index 00000000..e3bc5f09 --- /dev/null +++ b/sources/plugins/clipboard/plugin.js @@ -0,0 +1,2723 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @ignore + * File overview: Clipboard support. + */ + +// +// COPY & PASTE EXECUTION FLOWS: +// -- CTRL+C +// * if ( isCustomCopyCutSupported ) +// * dataTransfer.setData( 'text/html', getSelectedHtml ) +// * else +// * browser's default behavior +// -- CTRL+X +// * listen onKey (onkeydown) +// * fire 'saveSnapshot' on editor +// * if ( isCustomCopyCutSupported ) +// * dataTransfer.setData( 'text/html', getSelectedHtml ) +// * extractSelectedHtml // remove selected contents +// * else +// * browser's default behavior +// * deferred second 'saveSnapshot' event +// -- CTRL+V +// * listen onKey (onkeydown) +// * simulate 'beforepaste' for non-IEs on editable +// * listen 'onpaste' on editable ('onbeforepaste' for IE) +// * fire 'beforePaste' on editor +// * if ( !canceled && ( htmlInDataTransfer || !external paste) && dataTransfer is not empty ) getClipboardDataByPastebin +// * fire 'paste' on editor +// * !canceled && fire 'afterPaste' on editor +// -- Copy command +// * tryToCutCopy +// * execCommand +// * !success && notification +// -- Cut command +// * fixCut +// * tryToCutCopy +// * execCommand +// * !success && notification +// -- Paste command +// * fire 'paste' on editable ('beforepaste' for IE) +// * !canceled && execCommand 'paste' +// * !success && fire 'pasteDialog' on editor +// -- Paste from native context menu & menubar +// (Fx & Webkits are handled in 'paste' default listener. +// Opera cannot be handled at all because it doesn't fire any events +// Special treatment is needed for IE, for which is this part of doc) +// * listen 'onpaste' +// * cancel native event +// * fire 'beforePaste' on editor +// * if ( !canceled && ( htmlInDataTransfer || !external paste) && dataTransfer is not empty ) getClipboardDataByPastebin +// * execIECommand( 'paste' ) -> this fires another 'paste' event, so cancel it +// * fire 'paste' on editor +// * !canceled && fire 'afterPaste' on editor +// +// +// PASTE EVENT - PREPROCESSING: +// -- Possible dataValue types: auto, text, html. +// -- Possible dataValue contents: +// * text (possible \n\r) +// * htmlified text (text + br,div,p - no presentational markup & attrs - depends on browser) +// * html +// -- Possible flags: +// * htmlified - if true then content is a HTML even if no markup inside. This flag is set +// for content from editable pastebins, because they 'htmlify' pasted content. +// +// -- Type: auto: +// * content: htmlified text -> filter, unify text markup (brs, ps, divs), set type: text +// * content: html -> filter, set type: html +// -- Type: text: +// * content: htmlified text -> filter, unify text markup +// * content: html -> filter, strip presentational markup, unify text markup +// -- Type: html: +// * content: htmlified text -> filter, unify text markup +// * content: html -> filter +// +// -- Phases: +// * if dataValue is empty copy data from dataTransfer to dataValue (priority 1) +// * filtering (priorities 3-5) - e.g. pastefromword filters +// * content type sniffing (priority 6) +// * markup transformations for text (priority 6) +// +// DRAG & DROP EXECUTION FLOWS: +// -- Drag +// * save to the global object: +// * drag timestamp (with 'cke-' prefix), +// * selected html, +// * drag range, +// * editor instance. +// * put drag timestamp into event.dataTransfer.text +// -- Drop +// * if events text == saved timestamp && editor == saved editor +// internal drag & drop occurred +// * getRangeAtDropPosition +// * create bookmarks for drag and drop ranges starting from the end of the document +// * dragRange.deleteContents() +// * fire 'paste' with saved html and drop range +// * if events text == saved timestamp && editor != saved editor +// cross editor drag & drop occurred +// * getRangeAtDropPosition +// * fire 'paste' with saved html +// * dragRange.deleteContents() +// * FF: refreshCursor on afterPaste +// * if events text != saved timestamp +// drop form external source occurred +// * getRangeAtDropPosition +// * if event contains html data then fire 'paste' with html +// * else if event contains text data then fire 'paste' with encoded text +// * FF: refreshCursor on afterPaste + +'use strict'; + +( function() { + // Register the plugin. + CKEDITOR.plugins.add( 'clipboard', { + requires: 'dialog', + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'copy,copy-rtl,cut,cut-rtl,paste,paste-rtl', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + init: function( editor ) { + var filterType, + filtersFactory = filtersFactoryFactory(); + + if ( editor.config.forcePasteAsPlainText ) { + filterType = 'plain-text'; + } else if ( editor.config.pasteFilter ) { + filterType = editor.config.pasteFilter; + } + // On Webkit the pasteFilter defaults 'semantic-content' because pasted data is so terrible + // that it must be always filtered. + else if ( CKEDITOR.env.webkit && !( 'pasteFilter' in editor.config ) ) { + filterType = 'semantic-content'; + } + + editor.pasteFilter = filtersFactory.get( filterType ); + + initPasteClipboard( editor ); + initDragDrop( editor ); + + CKEDITOR.dialog.add( 'paste', CKEDITOR.getUrl( this.path + 'dialogs/paste.js' ) ); + + editor.on( 'paste', function( evt ) { + // Init `dataTransfer` if `paste` event was fired without it, so it will be always available. + if ( !evt.data.dataTransfer ) { + evt.data.dataTransfer = new CKEDITOR.plugins.clipboard.dataTransfer(); + } + + // If dataValue is already set (manually or by paste bin), so do not override it. + if ( evt.data.dataValue ) { + return; + } + + var dataTransfer = evt.data.dataTransfer, + // IE support only text data and throws exception if we try to get html data. + // This html data object may also be empty if we drag content of the textarea. + value = dataTransfer.getData( 'text/html' ); + + if ( value ) { + evt.data.dataValue = value; + evt.data.type = 'html'; + } else { + // Try to get text data otherwise. + value = dataTransfer.getData( 'text/plain' ); + + if ( value ) { + evt.data.dataValue = editor.editable().transformPlainTextToHtml( value ); + evt.data.type = 'text'; + } + } + }, null, null, 1 ); + + editor.on( 'paste', function( evt ) { + var data = evt.data.dataValue, + blockElements = CKEDITOR.dtd.$block; + + // Filter webkit garbage. + if ( data.indexOf( 'Apple-' ) > -1 ) { + // Replace special webkit's   with simple space, because webkit + // produces them even for normal spaces. + data = data.replace( / <\/span>/gi, ' ' ); + + // Strip around white-spaces when not in forced 'html' content type. + // This spans are created only when pasting plain text into Webkit, + // but for safety reasons remove them always. + if ( evt.data.type != 'html' ) { + data = data.replace( /]*>([^<]*)<\/span>/gi, function( all, spaces ) { + // Replace tabs with 4 spaces like Fx does. + return spaces.replace( /\t/g, '    ' ); + } ); + } + + // This br is produced only when copying & pasting HTML content. + if ( data.indexOf( '
' ) > -1 ) { + evt.data.startsWithEOL = 1; + evt.data.preSniffing = 'html'; // Mark as not text. + data = data.replace( /
/, '' ); + } + + // Remove all other classes. + data = data.replace( /(<[^>]+) class="Apple-[^"]*"/gi, '$1' ); + } + + // Strip editable that was copied from inside. (#9534) + if ( data.match( /^<[^<]+cke_(editable|contents)/i ) ) { + var tmp, + editable_wrapper, + wrapper = new CKEDITOR.dom.element( 'div' ); + + wrapper.setHtml( data ); + // Verify for sure and check for nested editor UI parts. (#9675) + while ( wrapper.getChildCount() == 1 && + ( tmp = wrapper.getFirst() ) && + tmp.type == CKEDITOR.NODE_ELEMENT && // Make sure first-child is element. + ( tmp.hasClass( 'cke_editable' ) || tmp.hasClass( 'cke_contents' ) ) ) { + wrapper = editable_wrapper = tmp; + } + + // If editable wrapper was found strip it and bogus
(added on FF). + if ( editable_wrapper ) + data = editable_wrapper.getHtml().replace( /
$/i, '' ); + } + + if ( CKEDITOR.env.ie ) { + //  

->

(br.cke-pasted-remove will be removed later) + data = data.replace( /^ (?: |\r\n)?<(\w+)/g, function( match, elementName ) { + if ( elementName.toLowerCase() in blockElements ) { + evt.data.preSniffing = 'html'; // Mark as not a text. + return '<' + elementName; + } + return match; + } ); + } else if ( CKEDITOR.env.webkit ) { + //


->


+ // We don't mark br, because this situation can happen for htmlified text too. + data = data.replace( /<\/(\w+)>

<\/div>$/, function( match, elementName ) { + if ( elementName in blockElements ) { + evt.data.endsWithEOL = 1; + return ''; + } + return match; + } ); + } else if ( CKEDITOR.env.gecko ) { + // Firefox adds bogus
when user pasted text followed by space(s). + data = data.replace( /(\s)
$/, '$1' ); + } + + evt.data.dataValue = data; + }, null, null, 3 ); + + editor.on( 'paste', function( evt ) { + var dataObj = evt.data, + type = dataObj.type, + data = dataObj.dataValue, + trueType, + // Default is 'html'. + defaultType = editor.config.clipboard_defaultContentType || 'html', + transferType = dataObj.dataTransfer.getTransferType( editor ); + + // If forced type is 'html' we don't need to know true data type. + if ( type == 'html' || dataObj.preSniffing == 'html' ) { + trueType = 'html'; + } else { + trueType = recogniseContentType( data ); + } + + // Unify text markup. + if ( trueType == 'htmlifiedtext' ) { + data = htmlifiedTextHtmlification( editor.config, data ); + } + + // Strip presentational markup & unify text markup. + // Forced plain text (dialog or forcePAPT). + // Note: we do not check dontFilter option in this case, because forcePAPT was implemented + // before pasteFilter and pasteFilter is automatically used on Webkit&Blink since 4.5, so + // forcePAPT should have priority as it had before 4.5. + if ( type == 'text' && trueType == 'html' ) { + data = filterContent( editor, data, filtersFactory.get( 'plain-text' ) ); + } + // External paste and pasteFilter exists and filtering isn't disabled. + else if ( transferType == CKEDITOR.DATA_TRANSFER_EXTERNAL && editor.pasteFilter && !dataObj.dontFilter ) { + data = filterContent( editor, data, editor.pasteFilter ); + } + + if ( dataObj.startsWithEOL ) { + data = '
' + data; + } + if ( dataObj.endsWithEOL ) { + data += '
'; + } + + if ( type == 'auto' ) { + type = ( trueType == 'html' || defaultType == 'html' ) ? 'html' : 'text'; + } + + dataObj.type = type; + dataObj.dataValue = data; + delete dataObj.preSniffing; + delete dataObj.startsWithEOL; + delete dataObj.endsWithEOL; + }, null, null, 6 ); + + // Inserts processed data into the editor at the end of the + // events chain. + editor.on( 'paste', function( evt ) { + var data = evt.data; + + if ( data.dataValue ) { + editor.insertHtml( data.dataValue, data.type, data.range ); + + // Defer 'afterPaste' so all other listeners for 'paste' will be fired first. + // Fire afterPaste only if paste inserted some HTML. + setTimeout( function() { + editor.fire( 'afterPaste' ); + }, 0 ); + } + }, null, null, 1000 ); + + editor.on( 'pasteDialog', function( evt ) { + // TODO it's possible that this setTimeout is not needed any more, + // because of changes introduced in the same commit as this comment. + // Editor.getClipboardData adds listener to the dialog's events which are + // fired after a while (not like 'showDialog'). + setTimeout( function() { + // Open default paste dialog. + editor.openDialog( 'paste', evt.data ); + }, 0 ); + } ); + } + } ); + + function firePasteEvents( editor, data, withBeforePaste ) { + if ( !data.type ) { + data.type = 'auto'; + } + + if ( withBeforePaste ) { + // Fire 'beforePaste' event so clipboard flavor get customized + // by other plugins. + if ( editor.fire( 'beforePaste', data ) === false ) + return false; // Event canceled + } + + // Do not fire paste if there is no data (dataValue and dataTranfser are empty). + // This check should be done after firing 'beforePaste' because for native paste + // 'beforePaste' is by default fired even for empty clipboard. + if ( !data.dataValue && data.dataTransfer.isEmpty() ) { + return false; + } + + if ( !data.dataValue ) { + data.dataValue = ''; + } + + // Because of FF bug we need to use this hack, otherwise cursor is hidden + // or it is not possible to move it (#12420). + // Also, check that editor.toolbox exists, because the toolbar plugin might not be loaded (#13305). + if ( CKEDITOR.env.gecko && data.method == 'drop' && editor.toolbox ) { + editor.once( 'afterPaste', function() { + editor.toolbox.focus(); + } ); + } + + return editor.fire( 'paste', data ); + } + + function initPasteClipboard( editor ) { + var clipboard = CKEDITOR.plugins.clipboard, + preventBeforePasteEvent = 0, + preventPasteEvent = 0, + inReadOnly = 0; + + addListeners(); + addButtonsCommands(); + + /** + * Gets clipboard data by directly accessing the clipboard (IE only) or opening the paste dialog window. + * + * editor.getClipboardData( { title: 'Get my data' }, function( data ) { + * if ( data ) + * alert( data.type + ' ' + data.dataValue ); + * } ); + * + * @member CKEDITOR.editor + * @param {Object} options + * @param {String} [options.title] The title of the paste dialog window. + * @param {Function} callback A function that will be executed with `data.type` and `data.dataValue` + * or `null` if none of the capturing methods succeeded. + */ + editor.getClipboardData = function( options, callback ) { + var beforePasteNotCanceled = false, + dataType = 'auto', + dialogCommited = false; + + // Options are optional - args shift. + if ( !callback ) { + callback = options; + options = null; + } + + // Listen with maximum priority to handle content before everyone else. + // This callback will handle paste event that will be fired if direct + // access to the clipboard succeed in IE. + editor.on( 'paste', onPaste, null, null, 0 ); + + // Listen at the end of listeners chain to see if event wasn't canceled + // and to retrieve modified data.type. + editor.on( 'beforePaste', onBeforePaste, null, null, 1000 ); + + // getClipboardDataDirectly() will fire 'beforePaste' synchronously, so we can + // check if it was canceled and if any listener modified data.type. + + // If command didn't succeed (only IE allows to access clipboard and only if + // user agrees) open and handle paste dialog. + if ( getClipboardDataDirectly() === false ) { + // Direct access to the clipboard wasn't successful so remove listener. + editor.removeListener( 'paste', onPaste ); + + // If beforePaste was canceled do not open dialog. + // Add listeners only if dialog really opened. 'pasteDialog' can be canceled. + if ( beforePasteNotCanceled && editor.fire( 'pasteDialog', onDialogOpen ) ) { + editor.on( 'pasteDialogCommit', onDialogCommit ); + + // 'dialogHide' will be fired after 'pasteDialogCommit'. + editor.on( 'dialogHide', function( evt ) { + evt.removeListener(); + evt.data.removeListener( 'pasteDialogCommit', onDialogCommit ); + + // Because Opera has to wait a while in pasteDialog we have to wait here. + setTimeout( function() { + // Notify even if user canceled dialog (clicked 'cancel', ESC, etc). + if ( !dialogCommited ) + callback( null ); + }, 10 ); + } ); + } else { + callback( null ); + } + } + + function onPaste( evt ) { + evt.removeListener(); + evt.cancel(); + callback( evt.data ); + } + + function onBeforePaste( evt ) { + evt.removeListener(); + beforePasteNotCanceled = true; + dataType = evt.data.type; + } + + function onDialogCommit( evt ) { + evt.removeListener(); + // Cancel pasteDialogCommit so paste dialog won't automatically fire + // 'paste' evt by itself. + evt.cancel(); + dialogCommited = true; + callback( { + type: dataType, + dataValue: evt.data.dataValue, + dataTransfer: evt.data.dataTransfer, + method: 'paste' + } ); + } + + function onDialogOpen() { + this.customTitle = ( options && options.title ); + } + }; + + function addButtonsCommands() { + addButtonCommand( 'Cut', 'cut', createCutCopyCmd( 'cut' ), 10, 1 ); + addButtonCommand( 'Copy', 'copy', createCutCopyCmd( 'copy' ), 20, 4 ); + addButtonCommand( 'Paste', 'paste', createPasteCmd(), 30, 8 ); + + function addButtonCommand( buttonName, commandName, command, toolbarOrder, ctxMenuOrder ) { + var lang = editor.lang.clipboard[ commandName ]; + + editor.addCommand( commandName, command ); + editor.ui.addButton && editor.ui.addButton( buttonName, { + label: lang, + command: commandName, + toolbar: 'clipboard,' + toolbarOrder + } ); + + // If the "menu" plugin is loaded, register the menu item. + if ( editor.addMenuItems ) { + editor.addMenuItem( commandName, { + label: lang, + command: commandName, + group: 'clipboard', + order: ctxMenuOrder + } ); + } + } + } + + function addListeners() { + editor.on( 'key', onKey ); + editor.on( 'contentDom', addPasteListenersToEditable ); + + // For improved performance, we're checking the readOnly state on selectionChange instead of hooking a key event for that. + editor.on( 'selectionChange', function( evt ) { + inReadOnly = evt.data.selection.getRanges()[ 0 ].checkReadOnly(); + setToolbarStates(); + } ); + + // If the "contextmenu" plugin is loaded, register the listeners. + if ( editor.contextMenu ) { + editor.contextMenu.addListener( function( element, selection ) { + inReadOnly = selection.getRanges()[ 0 ].checkReadOnly(); + return { + cut: stateFromNamedCommand( 'cut' ), + copy: stateFromNamedCommand( 'copy' ), + paste: stateFromNamedCommand( 'paste' ) + }; + } ); + } + } + + // Add events listeners to editable. + function addPasteListenersToEditable() { + var editable = editor.editable(); + + if ( CKEDITOR.plugins.clipboard.isCustomCopyCutSupported ) { + var initOnCopyCut = function( evt ) { + // If user tries to cut in read-only editor, we must prevent default action. (#13872) + if ( !editor.readOnly || evt.name != 'cut' ) { + clipboard.initPasteDataTransfer( evt, editor ); + } + evt.data.preventDefault(); + }; + + editable.on( 'copy', initOnCopyCut ); + editable.on( 'cut', initOnCopyCut ); + + // Delete content with the low priority so one can overwrite cut data. + editable.on( 'cut', function() { + // If user tries to cut in read-only editor, we must prevent default action. (#13872) + if ( !editor.readOnly ) { + editor.extractSelectedHtml(); + } + }, null, null, 999 ); + } + + // We'll be catching all pasted content in one line, regardless of whether + // it's introduced by a document command execution (e.g. toolbar buttons) or + // user paste behaviors (e.g. CTRL+V). + editable.on( clipboard.mainPasteEvent, function( evt ) { + if ( clipboard.mainPasteEvent == 'beforepaste' && preventBeforePasteEvent ) { + return; + } + + // If you've just asked yourself why preventPasteEventNow() is not here, but + // in listener for CTRL+V and exec method of 'paste' command + // you've asked the same question we did. + // + // THE ANSWER: + // + // First thing to notice - this answer makes sense only for IE, + // because other browsers don't listen for 'paste' event. + // + // What would happen if we move preventPasteEventNow() here? + // For: + // * CTRL+V - IE fires 'beforepaste', so we prevent 'paste' and pasteDataFromClipboard(). OK. + // * editor.execCommand( 'paste' ) - we fire 'beforepaste', so we prevent + // 'paste' and pasteDataFromClipboard() and doc.execCommand( 'Paste' ). OK. + // * native context menu - IE fires 'beforepaste', so we prevent 'paste', but unfortunately + // on IE we fail with pasteDataFromClipboard() here, because of... we don't know why, but + // we just fail, so... we paste nothing. FAIL. + // * native menu bar - the same as for native context menu. + // + // But don't you know any way to distinguish first two cases from last two? + // Only one - special flag set in CTRL+V handler and exec method of 'paste' + // command. And that's what we did using preventPasteEventNow(). + + pasteDataFromClipboard( evt ); + } ); + + // It's not possible to clearly handle all four paste methods (ctrl+v, native menu bar + // native context menu, editor's command) in one 'paste/beforepaste' event in IE. + // + // For ctrl+v & editor's command it's easy to handle pasting in 'beforepaste' listener, + // so we do this. For another two methods it's better to use 'paste' event. + // + // 'paste' is always being fired after 'beforepaste' (except of weird one on opening native + // context menu), so for two methods handled in 'beforepaste' we're canceling 'paste' + // using preventPasteEvent state. + // + // 'paste' event in IE is being fired before getClipboardDataByPastebin executes its callback. + // + // QUESTION: Why didn't you handle all 4 paste methods in handler for 'paste'? + // Wouldn't this just be simpler? + // ANSWER: Then we would have to evt.data.preventDefault() only for native + // context menu and menu bar pastes. The same with execIECommand(). + // That would force us to mark CTRL+V and editor's paste command with + // special flag, other than preventPasteEvent. But we still would have to + // have preventPasteEvent for the second event fired by execIECommand. + // Code would be longer and not cleaner. + if ( clipboard.mainPasteEvent == 'beforepaste' ) { + editable.on( 'paste', function( evt ) { + if ( preventPasteEvent ) { + return; + } + + // Cancel next 'paste' event fired by execIECommand( 'paste' ) + // at the end of this callback. + preventPasteEventNow(); + + // Prevent native paste. + evt.data.preventDefault(); + + pasteDataFromClipboard( evt ); + + // Force IE to paste content into pastebin so pasteDataFromClipboard will work. + if ( !execIECommand( 'paste' ) ) { + editor.openDialog( 'paste' ); + } + } ); + + // If mainPasteEvent is 'beforePaste' (IE before Edge), + // dismiss the (wrong) 'beforepaste' event fired on context/toolbar menu open. (#7953) + editable.on( 'contextmenu', preventBeforePasteEventNow, null, null, 0 ); + + editable.on( 'beforepaste', function( evt ) { + // Do not prevent event on CTRL+V and SHIFT+INS because it blocks paste (#11970). + if ( evt.data && !evt.data.$.ctrlKey && !evt.data.$.shiftKey ) + preventBeforePasteEventNow(); + }, null, null, 0 ); + } + + editable.on( 'beforecut', function() { + !preventBeforePasteEvent && fixCut( editor ); + } ); + + var mouseupTimeout; + + // Use editor.document instead of editable in non-IEs for observing mouseup + // since editable won't fire the event if selection process started within + // iframe and ended out of the editor (#9851). + editable.attachListener( CKEDITOR.env.ie ? editable : editor.document.getDocumentElement(), 'mouseup', function() { + mouseupTimeout = setTimeout( function() { + setToolbarStates(); + }, 0 ); + } ); + + // Make sure that deferred mouseup callback isn't executed after editor instance + // had been destroyed. This may happen when editor.destroy() is called in parallel + // with mouseup event (i.e. a button with onclick callback) (#10219). + editor.on( 'destroy', function() { + clearTimeout( mouseupTimeout ); + } ); + + editable.on( 'keyup', setToolbarStates ); + } + + // Create object representing Cut or Copy commands. + function createCutCopyCmd( type ) { + return { + type: type, + canUndo: type == 'cut', // We can't undo copy to clipboard. + startDisabled: true, + exec: function() { + // Attempts to execute the Cut and Copy operations. + function tryToCutCopy( type ) { + if ( CKEDITOR.env.ie ) + return execIECommand( type ); + + // non-IEs part + try { + // Other browsers throw an error if the command is disabled. + return editor.document.$.execCommand( type, false, null ); + } catch ( e ) { + return false; + } + } + + this.type == 'cut' && fixCut(); + + var success = tryToCutCopy( this.type ); + + if ( !success ) { + // Show cutError or copyError. + editor.showNotification( editor.lang.clipboard[ this.type + 'Error' ] ); // jshint ignore:line + } + + return success; + } + }; + } + + function createPasteCmd() { + return { + // Snapshots are done manually by editable.insertXXX methods. + canUndo: false, + async: true, + + exec: function( editor, data ) { + var fire = function( data, withBeforePaste ) { + data && firePasteEvents( editor, data, !!withBeforePaste ); + + editor.fire( 'afterCommandExec', { + name: 'paste', + command: cmd, + returnValue: !!data + } ); + }, + cmd = this; + + // Check data precisely - don't open dialog on empty string. + if ( typeof data == 'string' ) + fire( { + dataValue: data, + method: 'paste', + dataTransfer: clipboard.initPasteDataTransfer() + }, 1 ); + else + editor.getClipboardData( fire ); + } + }; + } + + function preventPasteEventNow() { + preventPasteEvent = 1; + // For safety reason we should wait longer than 0/1ms. + // We don't know how long execution of quite complex getClipboardData will take + // and in for example 'paste' listener execCommand() (which fires 'paste') is called + // after getClipboardData finishes. + // Luckily, it's impossible to immediately fire another 'paste' event we want to handle, + // because we only handle there native context menu and menu bar. + setTimeout( function() { + preventPasteEvent = 0; + }, 100 ); + } + + function preventBeforePasteEventNow() { + preventBeforePasteEvent = 1; + setTimeout( function() { + preventBeforePasteEvent = 0; + }, 10 ); + } + + // Tries to execute any of the paste, cut or copy commands in IE. Returns a + // boolean indicating that the operation succeeded. + // @param {String} command *LOWER CASED* name of command ('paste', 'cut', 'copy'). + function execIECommand( command ) { + var doc = editor.document, + body = doc.getBody(), + enabled = false, + onExec = function() { + enabled = true; + }; + + // The following seems to be the only reliable way to detect that + // clipboard commands are enabled in IE. It will fire the + // onpaste/oncut/oncopy events only if the security settings allowed + // the command to execute. + body.on( command, onExec ); + + // IE7: document.execCommand has problem to paste into positioned element. + if ( CKEDITOR.env.version > 7 ) { + doc.$.execCommand( command ); + } else { + doc.$.selection.createRange().execCommand( command ); + } + + body.removeListener( command, onExec ); + + return enabled; + } + + // Cutting off control type element in IE standards breaks the selection entirely. (#4881) + function fixCut() { + if ( !CKEDITOR.env.ie || CKEDITOR.env.quirks ) + return; + + var sel = editor.getSelection(), + control, range, dummy; + + if ( ( sel.getType() == CKEDITOR.SELECTION_ELEMENT ) && ( control = sel.getSelectedElement() ) ) { + range = sel.getRanges()[ 0 ]; + dummy = editor.document.createText( '' ); + dummy.insertBefore( control ); + range.setStartBefore( dummy ); + range.setEndAfter( control ); + sel.selectRanges( [ range ] ); + + // Clear up the fix if the paste wasn't succeeded. + setTimeout( function() { + // Element still online? + if ( control.getParent() ) { + dummy.remove(); + sel.selectElement( control ); + } + }, 0 ); + } + } + + // Allow to peek clipboard content by redirecting the + // pasting content into a temporary bin and grab the content of it. + function getClipboardDataByPastebin( evt, callback ) { + var doc = editor.document, + editable = editor.editable(), + cancel = function( evt ) { + evt.cancel(); + }, + blurListener; + + // Avoid recursions on 'paste' event or consequent paste too fast. (#5730) + if ( doc.getById( 'cke_pastebin' ) ) + return; + + var sel = editor.getSelection(); + var bms = sel.createBookmarks(); + + // #11384. On IE9+ we use native selectionchange (i.e. editor#selectionCheck) to cache the most + // recent selection which we then lock on editable blur. See selection.js for more info. + // selectionchange fired before getClipboardDataByPastebin() cached selection + // before creating bookmark (cached selection will be invalid, because bookmarks modified the DOM), + // so we need to fire selectionchange one more time, to store current seleciton. + // Selection will be locked when we focus pastebin. + if ( CKEDITOR.env.ie ) + sel.root.fire( 'selectionchange' ); + + // Create container to paste into. + // For rich content we prefer to use "body" since it holds + // the least possibility to be splitted by pasted content, while this may + // breaks the text selection on a frame-less editable, "div" would be + // the best one in that case. + // In another case on old IEs moving the selection into a "body" paste bin causes error panic. + // Body can't be also used for Opera which fills it with
+ // what is indistinguishable from pasted
(copying
in Opera isn't possible, + // but it can be copied from other browser). + var pastebin = new CKEDITOR.dom.element( + ( CKEDITOR.env.webkit || editable.is( 'body' ) ) && !CKEDITOR.env.ie ? 'body' : 'div', doc ); + + pastebin.setAttributes( { + id: 'cke_pastebin', + 'data-cke-temp': '1' + } ); + + var containerOffset = 0, + offsetParent, + win = doc.getWindow(); + + if ( CKEDITOR.env.webkit ) { + // It's better to paste close to the real paste destination, so inherited styles + // (which Webkits will try to compensate by styling span) differs less from the destination's one. + editable.append( pastebin ); + // Style pastebin like .cke_editable, to minimize differences between origin and destination. (#9754) + pastebin.addClass( 'cke_editable' ); + + // Compensate position of offsetParent. + if ( !editable.is( 'body' ) ) { + // We're not able to get offsetParent from pastebin (body element), so check whether + // its parent (editable) is positioned. + if ( editable.getComputedStyle( 'position' ) != 'static' ) + offsetParent = editable; + // And if not - safely get offsetParent from editable. + else + offsetParent = CKEDITOR.dom.element.get( editable.$.offsetParent ); + + containerOffset = offsetParent.getDocumentPosition().y; + } + } else { + // Opera and IE doesn't allow to append to html element. + editable.getAscendant( CKEDITOR.env.ie ? 'body' : 'html', 1 ).append( pastebin ); + } + + pastebin.setStyles( { + position: 'absolute', + // Position the bin at the top (+10 for safety) of viewport to avoid any subsequent document scroll. + top: ( win.getScrollPosition().y - containerOffset + 10 ) + 'px', + width: '1px', + // Caret has to fit in that height, otherwise browsers like Chrome & Opera will scroll window to show it. + // Set height equal to viewport's height - 20px (safety gaps), minimum 1px. + height: Math.max( 1, win.getViewPaneSize().height - 20 ) + 'px', + overflow: 'hidden', + // Reset styles that can mess up pastebin position. + margin: 0, + padding: 0 + } ); + + // Paste fails in Safari when the body tag has 'user-select: none'. (#12506) + if ( CKEDITOR.env.safari ) + pastebin.setStyles( CKEDITOR.tools.cssVendorPrefix( 'user-select', 'text' ) ); + + // Check if the paste bin now establishes new editing host. + var isEditingHost = pastebin.getParent().isReadOnly(); + + if ( isEditingHost ) { + // Hide the paste bin. + pastebin.setOpacity( 0 ); + // And make it editable. + pastebin.setAttribute( 'contenteditable', true ); + } + // Transparency is not enough since positioned non-editing host always shows + // resize handler, pull it off the screen instead. + else { + pastebin.setStyle( editor.config.contentsLangDirection == 'ltr' ? 'left' : 'right', '-1000px' ); + } + + editor.on( 'selectionChange', cancel, null, null, 0 ); + + // Webkit fill fire blur on editable when moving selection to + // pastebin (if body is used). Cancel it because it causes incorrect + // selection lock in case of inline editor (#10644). + // The same seems to apply to Firefox (#10787). + if ( CKEDITOR.env.webkit || CKEDITOR.env.gecko ) + blurListener = editable.once( 'blur', cancel, null, null, -100 ); + + // Temporarily move selection to the pastebin. + isEditingHost && pastebin.focus(); + var range = new CKEDITOR.dom.range( pastebin ); + range.selectNodeContents( pastebin ); + var selPastebin = range.select(); + + // If non-native paste is executed, IE will open security alert and blur editable. + // Editable will then lock selection inside itself and after accepting security alert + // this selection will be restored. We overwrite stored selection, so it's restored + // in pastebin. (#9552) + if ( CKEDITOR.env.ie ) { + blurListener = editable.once( 'blur', function() { + editor.lockSelection( selPastebin ); + } ); + } + + var scrollTop = CKEDITOR.document.getWindow().getScrollPosition().y; + + // Wait a while and grab the pasted contents. + setTimeout( function() { + // Restore main window's scroll position which could have been changed + // by browser in cases described in #9771. + if ( CKEDITOR.env.webkit ) + CKEDITOR.document.getBody().$.scrollTop = scrollTop; + + // Blur will be fired only on non-native paste. In other case manually remove listener. + blurListener && blurListener.removeListener(); + + // Restore properly the document focus. (#8849) + if ( CKEDITOR.env.ie ) + editable.focus(); + + // IE7: selection must go before removing pastebin. (#8691) + sel.selectBookmarks( bms ); + pastebin.remove(); + + // Grab the HTML contents. + // We need to look for a apple style wrapper on webkit it also adds + // a div wrapper if you copy/paste the body of the editor. + // Remove hidden div and restore selection. + var bogusSpan; + if ( CKEDITOR.env.webkit && ( bogusSpan = pastebin.getFirst() ) && ( bogusSpan.is && bogusSpan.hasClass( 'Apple-style-span' ) ) ) + pastebin = bogusSpan; + + editor.removeListener( 'selectionChange', cancel ); + callback( pastebin.getHtml() ); + }, 0 ); + } + + // Try to get content directly on IE from clipboard, without native event + // being fired before. In other words - synthetically get clipboard data, if it's possible. + // mainPasteEvent will be fired, so if forced native paste: + // * worked, getClipboardDataByPastebin will grab it, + // * didn't work, dataValue and dataTransfer will be empty and editor#paste won't be fired. + // Clipboard data can be accessed directly only on IEs older than Edge. + // On other browsers we should fire beforePaste event and return false. + function getClipboardDataDirectly() { + if ( clipboard.mainPasteEvent == 'paste' ) { + // beforePaste should be fired when dialog open so it can be canceled. + editor.fire( 'beforePaste', { type: 'auto', method: 'paste' } ); + return false; + } + + // Prevent IE from pasting at the begining of the document. + editor.focus(); + + // Command will be handled by 'beforepaste', but as + // execIECommand( 'paste' ) will fire also 'paste' event + // we're canceling it. + preventPasteEventNow(); + + // #9247: Lock focus to prevent IE from hiding toolbar for inline editor. + var focusManager = editor.focusManager; + focusManager.lock(); + + if ( editor.editable().fire( clipboard.mainPasteEvent ) && !execIECommand( 'paste' ) ) { + focusManager.unlock(); + return false; + } + focusManager.unlock(); + + return true; + } + + // Listens for some clipboard related keystrokes, so they get customized. + // Needs to be bind to keydown event. + function onKey( event ) { + if ( editor.mode != 'wysiwyg' ) + return; + + switch ( event.data.keyCode ) { + // Paste + case CKEDITOR.CTRL + 86: // CTRL+V + case CKEDITOR.SHIFT + 45: // SHIFT+INS + var editable = editor.editable(); + + // Cancel 'paste' event because ctrl+v is for IE handled + // by 'beforepaste'. + preventPasteEventNow(); + + // Simulate 'beforepaste' event for all browsers using 'paste' as main event. + if ( clipboard.mainPasteEvent == 'paste' ) { + editable.fire( 'beforepaste' ); + } + + return; + + // Cut + case CKEDITOR.CTRL + 88: // CTRL+X + case CKEDITOR.SHIFT + 46: // SHIFT+DEL + // Save Undo snapshot. + editor.fire( 'saveSnapshot' ); // Save before cut + setTimeout( function() { + editor.fire( 'saveSnapshot' ); // Save after cut + }, 50 ); // OSX is slow (#11416). + } + } + + function pasteDataFromClipboard( evt ) { + // Default type is 'auto', but can be changed by beforePaste listeners. + var eventData = { + type: 'auto', + method: 'paste', + dataTransfer: clipboard.initPasteDataTransfer( evt ) + }; + + eventData.dataTransfer.cacheData(); + + // Fire 'beforePaste' event so clipboard flavor get customized by other plugins. + // If 'beforePaste' is canceled continue executing getClipboardDataByPastebin and then do nothing + // (do not fire 'paste', 'afterPaste' events). This way we can grab all - synthetically + // and natively pasted content and prevent its insertion into editor + // after canceling 'beforePaste' event. + var beforePasteNotCanceled = editor.fire( 'beforePaste', eventData ) !== false; + + // Do not use paste bin if the browser let us get HTML or files from dataTranfer. + if ( beforePasteNotCanceled && clipboard.canClipboardApiBeTrusted( eventData.dataTransfer, editor ) ) { + evt.data.preventDefault(); + setTimeout( function() { + firePasteEvents( editor, eventData ); + }, 0 ); + } else { + getClipboardDataByPastebin( evt, function( data ) { + // Clean up. + eventData.dataValue = data.replace( /]+data-cke-bookmark[^<]*?<\/span>/ig, '' ); + + // Fire remaining events (without beforePaste) + beforePasteNotCanceled && firePasteEvents( editor, eventData ); + } ); + } + } + + function setToolbarStates() { + if ( editor.mode != 'wysiwyg' ) + return; + + var pasteState = stateFromNamedCommand( 'paste' ); + + editor.getCommand( 'cut' ).setState( stateFromNamedCommand( 'cut' ) ); + editor.getCommand( 'copy' ).setState( stateFromNamedCommand( 'copy' ) ); + editor.getCommand( 'paste' ).setState( pasteState ); + editor.fire( 'pasteState', pasteState ); + } + + function stateFromNamedCommand( command ) { + if ( inReadOnly && command in { paste: 1, cut: 1 } ) + return CKEDITOR.TRISTATE_DISABLED; + + if ( command == 'paste' ) + return CKEDITOR.TRISTATE_OFF; + + // Cut, copy - check if the selection is not empty. + var sel = editor.getSelection(), + ranges = sel.getRanges(), + selectionIsEmpty = sel.getType() == CKEDITOR.SELECTION_NONE || ( ranges.length == 1 && ranges[ 0 ].collapsed ); + + return selectionIsEmpty ? CKEDITOR.TRISTATE_DISABLED : CKEDITOR.TRISTATE_OFF; + } + } + + // Returns: + // * 'htmlifiedtext' if content looks like transformed by browser from plain text. + // See clipboard/paste.html TCs for more info. + // * 'html' if it is not 'htmlifiedtext'. + function recogniseContentType( data ) { + if ( CKEDITOR.env.webkit ) { + // Plain text or (

and text inside
). + if ( !data.match( /^[^<]*$/g ) && !data.match( /^(
<\/div>|
[^<]*<\/div>)*$/gi ) ) + return 'html'; + } else if ( CKEDITOR.env.ie ) { + // Text and
or ( text and
in

- paragraphs can be separated by new \r\n ). + if ( !data.match( /^([^<]|)*$/gi ) && !data.match( /^(

([^<]|)*<\/p>|(\r\n))*$/gi ) ) + return 'html'; + } else if ( CKEDITOR.env.gecko ) { + // Text or
. + if ( !data.match( /^([^<]|)*$/gi ) ) + return 'html'; + } else { + return 'html'; + } + + return 'htmlifiedtext'; + } + + // This function transforms what browsers produce when + // pasting plain text into editable element (see clipboard/paste.html TCs + // for more info) into correct HTML (similar to that produced by text2Html). + function htmlifiedTextHtmlification( config, data ) { + function repeatParagraphs( repeats ) { + // Repeat blocks floor((n+1)/2) times. + // Even number of repeats - add
at the beginning of last

. + return CKEDITOR.tools.repeat( '

', ~~( repeats / 2 ) ) + ( repeats % 2 == 1 ? '
' : '' ); + } + + // Replace adjacent white-spaces (EOLs too - Fx sometimes keeps them) with one space. + data = data.replace( /\s+/g, ' ' ) + // Remove spaces from between tags. + .replace( /> +<' ) + // Normalize XHTML syntax and upper cased
tags. + .replace( /
/gi, '
' ); + + // IE - lower cased tags. + data = data.replace( /<\/?[A-Z]+>/g, function( match ) { + return match.toLowerCase(); + } ); + + // Don't touch single lines (no ) - nothing to do here. + if ( data.match( /^[^<]$/ ) ) + return data; + + // Webkit. + if ( CKEDITOR.env.webkit && data.indexOf( '

' ) > -1 ) { + // One line break at the beginning - insert
+ data = data.replace( /^(
(
|)<\/div>)(?!$|(
(
|)<\/div>))/g, '
' ) + // Two or more - reduce number of new lines by one. + .replace( /^(
(
|)<\/div>){2}(?!$)/g, '
' ); + + // Two line breaks create one paragraph in Webkit. + if ( data.match( /
(
|)<\/div>/ ) ) { + data = '

' + data.replace( /(

(
|)<\/div>)+/g, function( match ) { + return repeatParagraphs( match.split( '
' ).length + 1 ); + } ) + '

'; + } + + // One line break create br. + data = data.replace( /<\/div>
/g, '
' ); + + // Remove remaining divs. + data = data.replace( /<\/?div>/g, '' ); + } + + // Opera and Firefox and enterMode != BR. + if ( CKEDITOR.env.gecko && config.enterMode != CKEDITOR.ENTER_BR ) { + // Remove bogus
- Fx generates two for one line break. + // For two line breaks it still produces two , but it's better to ignore this case than the first one. + if ( CKEDITOR.env.gecko ) + data = data.replace( /^

$/, '
' ); + + // This line satisfy edge case when for Opera we have two line breaks + //data = data.replace( /) + + if ( data.indexOf( '

' ) > -1 ) { + // Two line breaks create one paragraph, three - 2, four - 3, etc. + data = '

' + data.replace( /(
){2,}/g, function( match ) { + return repeatParagraphs( match.length / 4 ); + } ) + '

'; + } + } + + return switchEnterMode( config, data ); + } + + function filtersFactoryFactory() { + var filters = {}; + + function setUpTags() { + var tags = {}; + + for ( var tag in CKEDITOR.dtd ) { + if ( tag.charAt( 0 ) != '$' && tag != 'div' && tag != 'span' ) { + tags[ tag ] = 1; + } + } + + return tags; + } + + function createSemanticContentFilter() { + var filter = new CKEDITOR.filter(); + + filter.allow( { + $1: { + elements: setUpTags(), + attributes: true, + styles: false, + classes: false + } + } ); + + return filter; + } + + return { + get: function( type ) { + if ( type == 'plain-text' ) { + // Does this look confusing to you? Did we forget about enter mode? + // It is a trick that let's us creating one filter for edidtor, regardless of its + // activeEnterMode (which as the name indicates can change during runtime). + // + // How does it work? + // The active enter mode is passed to the filter.applyTo method. + // The filter first marks all elements except
as disallowed and then tries to remove + // them. However, it cannot remove e.g. a

element completely, because it's a basic structural element, + // so it tries to replace it with an element created based on the active enter mode, eventually doing nothing. + // + // Now you can sleep well. + return filters.plainText || ( filters.plainText = new CKEDITOR.filter( 'br' ) ); + } else if ( type == 'semantic-content' ) { + return filters.semanticContent || ( filters.semanticContent = createSemanticContentFilter() ); + } else if ( type ) { + // Create filter based on rules (string or object). + return new CKEDITOR.filter( type ); + } + + return null; + } + }; + } + + function filterContent( editor, data, filter ) { + var fragment = CKEDITOR.htmlParser.fragment.fromHtml( data ), + writer = new CKEDITOR.htmlParser.basicWriter(); + + filter.applyTo( fragment, true, false, editor.activeEnterMode ); + fragment.writeHtml( writer ); + + return writer.getHtml(); + } + + function switchEnterMode( config, data ) { + if ( config.enterMode == CKEDITOR.ENTER_BR ) { + data = data.replace( /(<\/p>

)+/g, function( match ) { + return CKEDITOR.tools.repeat( '
', match.length / 7 * 2 ); + } ).replace( /<\/?p>/g, '' ); + } else if ( config.enterMode == CKEDITOR.ENTER_DIV ) { + data = data.replace( /<(\/)?p>/g, '<$1div>' ); + } + + return data; + } + + function preventDefaultSetDropEffectToNone( evt ) { + evt.data.preventDefault(); + evt.data.$.dataTransfer.dropEffect = 'none'; + } + + function initDragDrop( editor ) { + var clipboard = CKEDITOR.plugins.clipboard; + + editor.on( 'contentDom', function() { + var editable = editor.editable(), + dropTarget = CKEDITOR.plugins.clipboard.getDropTarget( editor ), + top = editor.ui.space( 'top' ), + bottom = editor.ui.space( 'bottom' ); + + // -------------- DRAGOVER TOP & BOTTOM -------------- + + // Not allowing dragging on toolbar and bottom (#12613). + clipboard.preventDefaultDropOnElement( top ); + clipboard.preventDefaultDropOnElement( bottom ); + + // -------------- DRAGSTART -------------- + // Listed on dragstart to mark internal and cross-editor drag & drop + // and save range and selected HTML. + + editable.attachListener( dropTarget, 'dragstart', fireDragEvent ); + + // Make sure to reset data transfer (in case dragend was not called or was canceled). + editable.attachListener( editor, 'dragstart', clipboard.resetDragDataTransfer, clipboard, null, 1 ); + + // Create a dataTransfer object and save it globally. + editable.attachListener( editor, 'dragstart', function( evt ) { + clipboard.initDragDataTransfer( evt, editor ); + }, null, null, 2 ); + + editable.attachListener( editor, 'dragstart', function() { + // Save drag range globally for cross editor D&D. + var dragRange = clipboard.dragRange = editor.getSelection().getRanges()[ 0 ]; + + // Store number of children, so we can later tell if any text node was split on drop. (#13011, #13447) + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 10 ) { + clipboard.dragStartContainerChildCount = dragRange ? getContainerChildCount( dragRange.startContainer ) : null; + clipboard.dragEndContainerChildCount = dragRange ? getContainerChildCount( dragRange.endContainer ) : null; + } + }, null, null, 100 ); + + // -------------- DRAGEND -------------- + // Clean up on dragend. + + editable.attachListener( dropTarget, 'dragend', fireDragEvent ); + + // Init data transfer if someone wants to use it in dragend. + editable.attachListener( editor, 'dragend', clipboard.initDragDataTransfer, clipboard, null, 1 ); + + // When drag & drop is done we need to reset dataTransfer so the future + // external drop will be not recognize as internal. + editable.attachListener( editor, 'dragend', clipboard.resetDragDataTransfer, clipboard, null, 100 ); + + // -------------- DRAGOVER -------------- + // We need to call preventDefault on dragover because otherwise if + // we drop image it will overwrite document. + + editable.attachListener( dropTarget, 'dragover', function( evt ) { + var target = evt.data.getTarget(); + + // Prevent reloading page when dragging image on empty document (#12619). + if ( target && target.is && target.is( 'html' ) ) { + evt.data.preventDefault(); + return; + } + + // If we do not prevent default dragover on IE the file path + // will be loaded and we will lose content. On the other hand + // if we prevent it the cursor will not we shown, so we prevent + // dragover only on IE, on versions which support file API and only + // if the event contains files. + if ( CKEDITOR.env.ie && + CKEDITOR.plugins.clipboard.isFileApiSupported && + evt.data.$.dataTransfer.types.contains( 'Files' ) ) { + evt.data.preventDefault(); + } + } ); + + // -------------- DROP -------------- + + editable.attachListener( dropTarget, 'drop', function( evt ) { + // Do nothing if event was already prevented. (#13879) + if ( evt.data.$.defaultPrevented ) { + return; + } + + // Cancel native drop. + evt.data.preventDefault(); + + var target = evt.data.getTarget(), + readOnly = target.isReadOnly(); + + // Do nothing if drop on non editable element (#13015). + // The tag isn't editable (body is), but we want to allow drop on it + // (so it is possible to drop below editor contents). + if ( readOnly && !( target.type == CKEDITOR.NODE_ELEMENT && target.is( 'html' ) ) ) { + return; + } + + // Getting drop position is one of the most complex parts. + var dropRange = clipboard.getRangeAtDropPosition( evt, editor ), + dragRange = clipboard.dragRange; + + // Do nothing if it was not possible to get drop range. + if ( !dropRange ) { + return; + } + + // Fire drop. + fireDragEvent( evt, dragRange, dropRange ); + }, null, null, 9999 ); + + // Create dataTransfer or get it, if it was created before. + editable.attachListener( editor, 'drop', clipboard.initDragDataTransfer, clipboard, null, 1 ); + + // Execute drop action, fire paste. + editable.attachListener( editor, 'drop', function( evt ) { + var data = evt.data; + + if ( !data ) { + return; + } + + // Let user modify drag and drop range. + var dropRange = data.dropRange, + dragRange = data.dragRange, + dataTransfer = data.dataTransfer; + + if ( dataTransfer.getTransferType( editor ) == CKEDITOR.DATA_TRANSFER_INTERNAL ) { + // Execute drop with a timeout because otherwise selection, after drop, + // on IE is in the drag position, instead of drop position. + setTimeout( function() { + clipboard.internalDrop( dragRange, dropRange, dataTransfer, editor ); + }, 0 ); + } else if ( dataTransfer.getTransferType( editor ) == CKEDITOR.DATA_TRANSFER_CROSS_EDITORS ) { + crossEditorDrop( dragRange, dropRange, dataTransfer ); + } else { + externalDrop( dropRange, dataTransfer ); + } + }, null, null, 9999 ); + + // Cross editor drag and drop (drag in one Editor and drop in the other). + function crossEditorDrop( dragRange, dropRange, dataTransfer ) { + // Paste event should be fired before delete contents because otherwise + // Chrome have a problem with drop range (Chrome split the drop + // range container so the offset is bigger then container length). + dropRange.select(); + firePasteEvents( editor, { dataTransfer: dataTransfer, method: 'drop' }, 1 ); + + // Remove dragged content and make a snapshot. + dataTransfer.sourceEditor.fire( 'saveSnapshot' ); + + dataTransfer.sourceEditor.editable().extractHtmlFromRange( dragRange ); + + // Make some selection before saving snapshot, otherwise error will be thrown, because + // there will be no valid selection after content is removed. + dataTransfer.sourceEditor.getSelection().selectRanges( [ dragRange ] ); + dataTransfer.sourceEditor.fire( 'saveSnapshot' ); + } + + // Drop from external source. + function externalDrop( dropRange, dataTransfer ) { + // Paste content into the drop position. + dropRange.select(); + + firePasteEvents( editor, { dataTransfer: dataTransfer, method: 'drop' }, 1 ); + + // Usually we reset DataTranfer on dragend, + // but dragend is called on the same element as dragstart + // so it will not be called on on external drop. + clipboard.resetDragDataTransfer(); + } + + // Fire drag/drop events (dragstart, dragend, drop). + function fireDragEvent( evt, dragRange, dropRange ) { + var eventData = { + $: evt.data.$, + target: evt.data.getTarget() + }; + + if ( dragRange ) { + eventData.dragRange = dragRange; + } + if ( dropRange ) { + eventData.dropRange = dropRange; + } + + if ( editor.fire( evt.name, eventData ) === false ) { + evt.data.preventDefault(); + } + } + + function getContainerChildCount( container ) { + if ( container.type != CKEDITOR.NODE_ELEMENT ) { + container = container.getParent(); + } + + return container.getChildCount(); + } + } ); + } + + /** + * @singleton + * @class CKEDITOR.plugins.clipboard + */ + CKEDITOR.plugins.clipboard = { + /** + * True if the environment allows to set data on copy or cut manually. This value is false in IE, because this browser + * shows the security dialog window when the script tries to set clipboard data and on iOS, because custom data is + * not saved to clipboard there. + * + * @since 4.5 + * @readonly + * @property {Boolean} + */ + isCustomCopyCutSupported: !CKEDITOR.env.ie && !CKEDITOR.env.iOS, + + /** + * True if the environment supports MIME types and custom data types in dataTransfer/cliboardData getData/setData methods. + * + * @since 4.5 + * @readonly + * @property {Boolean} + */ + isCustomDataTypesSupported: !CKEDITOR.env.ie, + + /** + * True if the environment supports File API. + * + * @since 4.5 + * @readonly + * @property {Boolean} + */ + isFileApiSupported: !CKEDITOR.env.ie || CKEDITOR.env.version > 9, + + /** + * Main native paste event editable should listen to. + * + * **Note:** Safari does not like the {@link CKEDITOR.editor#beforePaste} event — it sometimes does not + * handle Ctrl+C properly. This is probably caused by some race condition between events. + * Chrome, Firefox and Edge work well with both events, so it is better to use {@link CKEDITOR.editor#paste} + * which will handle pasting from e.g. browsers' menu bars. + * IE7/8 does not like the {@link CKEDITOR.editor#paste} event for which it is throwing random errors. + * + * @since 4.5 + * @readonly + * @property {String} + */ + mainPasteEvent: ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) ? 'beforepaste' : 'paste', + + /** + * Returns `true` if it is expected that a browser provides HTML data through the Clipboard API. + * If not, this method returns `false` and as a result CKEditor will use the paste bin. Read more in + * the [Clipboard Integration](http://docs.ckeditor.com/#!/guide/dev_clipboard-section-clipboard-api) guide. + * + * @since 4.5.2 + * @returns {Boolean} + */ + canClipboardApiBeTrusted: function( dataTransfer, editor ) { + // If it's an internal or cross-editor data transfer, then it means that custom cut/copy/paste support works + // and that the data were put manually on the data transfer so we can be sure that it's available. + if ( dataTransfer.getTransferType( editor ) != CKEDITOR.DATA_TRANSFER_EXTERNAL ) { + return true; + } + + // In Chrome we can trust Clipboard API, with the exception of Chrome on Android (in both - mobile and desktop modes), where + // clipboard API is not available so we need to check it (#13187). + if ( CKEDITOR.env.chrome && !dataTransfer.isEmpty() ) { + return true; + } + + // Because of a Firefox bug HTML data are not available in some cases (e.g. paste from Word), in such cases we + // need to use the pastebin (#13528, https://bugzilla.mozilla.org/show_bug.cgi?id=1183686). + if ( CKEDITOR.env.gecko && ( dataTransfer.getData( 'text/html' ) || dataTransfer.getFilesCount() ) ) { + return true; + } + + // In Safari and IE HTML data is not available though the Clipboard API. + // In Edge things are a bit messy at the moment - + // https://connect.microsoft.com/IE/feedback/details/1572456/edge-clipboard-api-text-html-content-messed-up-in-event-clipboarddata + // It is safer to use the paste bin in unknown cases. + return false; + }, + + /** + * Returns the element that should be used as the target for the drop event. + * + * @since 4.5 + * @param {CKEDITOR.editor} editor The editor instance. + * @returns {CKEDITOR.dom.domObject} the element that should be used as the target for the drop event. + */ + getDropTarget: function( editor ) { + var editable = editor.editable(); + + // #11123 Firefox needs to listen on document, because otherwise event won't be fired. + // #11086 IE8 cannot listen on document. + if ( ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) || editable.isInline() ) { + return editable; + } else { + return editor.document; + } + }, + + /** + * IE 8 & 9 split text node on drop so the first node contains the + * text before the drop position and the second contains the rest. If you + * drag the content from the same node you will be not be able to get + * it (the range becomes invalid), so you need to join them back. + * + * Note that the first node in IE 8 & 9 is the original node object + * but with shortened content. + * + * Before: + * --- Text Node A ---------------------------------- + * /\ + * Drag position + * + * After (IE 8 & 9): + * --- Text Node A ----- --- Text Node B ----------- + * /\ /\ + * Drop position Drag position + * (invalid) + * + * After (other browsers): + * --- Text Node A ---------------------------------- + * /\ /\ + * Drop position Drag position + * + * **Note:** This function is in the public scope for tests usage only. + * + * @since 4.5 + * @private + * @param {CKEDITOR.dom.range} dragRange The drag range. + * @param {CKEDITOR.dom.range} dropRange The drop range. + * @param {Number} preDragStartContainerChildCount The number of children of the drag range start container before the drop. + * @param {Number} preDragEndContainerChildCount The number of children of the drag range end container before the drop. + */ + fixSplitNodesAfterDrop: function( dragRange, dropRange, preDragStartContainerChildCount, preDragEndContainerChildCount ) { + var dropContainer = dropRange.startContainer; + + if ( + typeof preDragEndContainerChildCount != 'number' || + typeof preDragStartContainerChildCount != 'number' + ) { + return; + } + + // We are only concerned about ranges anchored in elements. + if ( dropContainer.type != CKEDITOR.NODE_ELEMENT ) { + return; + } + + if ( handleContainer( dragRange.startContainer, dropContainer, preDragStartContainerChildCount ) ) { + return; + } + + if ( handleContainer( dragRange.endContainer, dropContainer, preDragEndContainerChildCount ) ) { + return; + } + + function handleContainer( dragContainer, dropContainer, preChildCount ) { + var dragElement = dragContainer; + if ( dragElement.type == CKEDITOR.NODE_TEXT ) { + dragElement = dragContainer.getParent(); + } + + if ( dragElement.equals( dropContainer ) && preChildCount != dropContainer.getChildCount() ) { + applyFix( dropRange ); + return true; + } + } + + function applyFix( dropRange ) { + var nodeBefore = dropRange.startContainer.getChild( dropRange.startOffset - 1 ), + nodeAfter = dropRange.startContainer.getChild( dropRange.startOffset ); + + if ( + nodeBefore && nodeBefore.type == CKEDITOR.NODE_TEXT && + nodeAfter && nodeAfter.type == CKEDITOR.NODE_TEXT + ) { + var offset = nodeBefore.getLength(); + + nodeBefore.setText( nodeBefore.getText() + nodeAfter.getText() ); + nodeAfter.remove(); + + dropRange.setStart( nodeBefore, offset ); + dropRange.collapse( true ); + } + } + }, + + /** + * Checks whether turning the drag range into bookmarks will invalidate the drop range. + * This usually happens when the drop range shares the container with the drag range and is + * located after the drag range, but there are countless edge cases. + * + * This function is stricly related to {@link #internalDrop} which toggles + * order in which it creates bookmarks for both ranges based on a value returned + * by this method. In some cases this method returns a value which is not necessarily + * true in terms of what it was meant to check, but it is convenient, because + * we know how it is interpreted in {@link #internalDrop}, so the correct + * behavior of the entire algorithm is assured. + * + * **Note:** This function is in the public scope for tests usage only. + * + * @since 4.5 + * @private + * @param {CKEDITOR.dom.range} dragRange The first range to compare. + * @param {CKEDITOR.dom.range} dropRange The second range to compare. + * @returns {Boolean} `true` if the first range is before the second range. + */ + isDropRangeAffectedByDragRange: function( dragRange, dropRange ) { + var dropContainer = dropRange.startContainer, + dropOffset = dropRange.endOffset; + + // Both containers are the same and drop offset is at the same position or later. + // " A L] A " " M A " + // ^ ^ + if ( dragRange.endContainer.equals( dropContainer ) && dragRange.endOffset <= dropOffset ) { + return true; + } + + // Bookmark for drag start container will mess up with offsets. + // " O [L A " " M A " + // ^ ^ + if ( + dragRange.startContainer.getParent().equals( dropContainer ) && + dragRange.startContainer.getIndex() < dropOffset + ) { + return true; + } + + // Bookmark for drag end container will mess up with offsets. + // " O] L A " " M A " + // ^ ^ + if ( + dragRange.endContainer.getParent().equals( dropContainer ) && + dragRange.endContainer.getIndex() < dropOffset + ) { + return true; + } + + return false; + }, + + /** + * Internal drag and drop (drag and drop in the same editor instance). + * + * **Note:** This function is in the public scope for tests usage only. + * + * @since 4.5 + * @private + * @param {CKEDITOR.dom.range} dragRange The first range to compare. + * @param {CKEDITOR.dom.range} dropRange The second range to compare. + * @param {CKEDITOR.plugins.clipboard.dataTransfer} dataTransfer + * @param {CKEDITOR.editor} editor + */ + internalDrop: function( dragRange, dropRange, dataTransfer, editor ) { + var clipboard = CKEDITOR.plugins.clipboard, + editable = editor.editable(), + dragBookmark, dropBookmark, isDropRangeAffected; + + // Save and lock snapshot so there will be only + // one snapshot for both remove and insert content. + editor.fire( 'saveSnapshot' ); + editor.fire( 'lockSnapshot', { dontUpdate: 1 } ); + + if ( CKEDITOR.env.ie && CKEDITOR.env.version < 10 ) { + this.fixSplitNodesAfterDrop( + dragRange, + dropRange, + clipboard.dragStartContainerChildCount, + clipboard.dragEndContainerChildCount + ); + } + + // Because we manipulate multiple ranges we need to do it carefully, + // changing one range (event creating a bookmark) may make other invalid. + // We need to change ranges into bookmarks so we can manipulate them easily in the future. + // We can change the range which is later in the text before we change the preceding range. + // We call isDropRangeAffectedByDragRange to test the order of ranges. + isDropRangeAffected = this.isDropRangeAffectedByDragRange( dragRange, dropRange ); + if ( !isDropRangeAffected ) { + dragBookmark = dragRange.createBookmark( false ); + } + dropBookmark = dropRange.clone().createBookmark( false ); + if ( isDropRangeAffected ) { + dragBookmark = dragRange.createBookmark( false ); + } + + // Check if drop range is inside range. + // This is an edge case when we drop something on editable's margin/padding. + // That space is not treated as a part of the range we drag, so it is possible to drop there. + // When we drop, browser tries to find closest drop position and it finds it inside drag range. (#13453) + var startNode = dragBookmark.startNode, + endNode = dragBookmark.endNode, + dropNode = dropBookmark.startNode, + dropInsideDragRange = + // Must check endNode because dragRange could be collapsed in some edge cases (simulated DnD). + endNode && + ( startNode.getPosition( dropNode ) & CKEDITOR.POSITION_PRECEDING ) && + ( endNode.getPosition( dropNode ) & CKEDITOR.POSITION_FOLLOWING ); + + // If the drop range happens to be inside drag range change it's position to the beginning of the drag range. + if ( dropInsideDragRange ) { + // We only change position of bookmark span that is connected with dropBookmark. + // dropRange will be overwritten and set to the dropBookmark later. + dropNode.insertBefore( startNode ); + } + + // No we can safely delete content for the drag range... + dragRange = editor.createRange(); + dragRange.moveToBookmark( dragBookmark ); + editable.extractHtmlFromRange( dragRange, 1 ); + + // ...and paste content into the drop position. + dropRange = editor.createRange(); + dropRange.moveToBookmark( dropBookmark ); + + // We do not select drop range, because of may be in the place we can not set the selection + // (e.g. between blocks, in case of block widget D&D). We put range to the paste event instead. + firePasteEvents( editor, { dataTransfer: dataTransfer, method: 'drop', range: dropRange }, 1 ); + + editor.fire( 'unlockSnapshot' ); + }, + + /** + * Gets the range from the `drop` event. + * + * @since 4.5 + * @param {Object} domEvent A native DOM drop event object. + * @param {CKEDITOR.editor} editor The source editor instance. + * @returns {CKEDITOR.dom.range} range at drop position. + */ + getRangeAtDropPosition: function( dropEvt, editor ) { + var $evt = dropEvt.data.$, + x = $evt.clientX, + y = $evt.clientY, + $range, + defaultRange = editor.getSelection( true ).getRanges()[ 0 ], + range = editor.createRange(); + + // Make testing possible. + if ( dropEvt.data.testRange ) + return dropEvt.data.testRange; + + // Webkits. + if ( document.caretRangeFromPoint ) { + $range = editor.document.$.caretRangeFromPoint( x, y ); + range.setStart( CKEDITOR.dom.node( $range.startContainer ), $range.startOffset ); + range.collapse( true ); + } + // FF. + else if ( $evt.rangeParent ) { + range.setStart( CKEDITOR.dom.node( $evt.rangeParent ), $evt.rangeOffset ); + range.collapse( true ); + } + // IEs 9+. + // We check if editable is focused to make sure that it's an internal DnD. External DnD must use the second + // mechanism because of http://dev.ckeditor.com/ticket/13472#comment:6. + else if ( CKEDITOR.env.ie && CKEDITOR.env.version > 8 && defaultRange && editor.editable().hasFocus ) { + // On IE 9+ range by default is where we expected it. + // defaultRange may be undefined if dragover was canceled (file drop). + return defaultRange; + } + // IE 8 and all IEs if !defaultRange or external DnD. + else if ( document.body.createTextRange ) { + // To use this method we need a focus (which may be somewhere else in case of external drop). + editor.focus(); + + $range = editor.document.getBody().$.createTextRange(); + try { + var sucess = false; + + // If user drop between text line IEs moveToPoint throws exception: + // + // Lorem ipsum pulvinar purus et euismod + // + // dolor sit amet,| consectetur adipiscing + // * + // vestibulum tincidunt augue eget tempus. + // + // * - drop position + // | - expected cursor position + // + // So we try to call moveToPoint with +-1px up to +-20px above or + // below original drop position to find nearest good drop position. + for ( var i = 0; i < 20 && !sucess; i++ ) { + if ( !sucess ) { + try { + $range.moveToPoint( x, y - i ); + sucess = true; + } catch ( err ) { + } + } + if ( !sucess ) { + try { + $range.moveToPoint( x, y + i ); + sucess = true; + } catch ( err ) { + } + } + } + + if ( sucess ) { + var id = 'cke-temp-' + ( new Date() ).getTime(); + $range.pasteHTML( '\u200b' ); + + var span = editor.document.getById( id ); + range.moveToPosition( span, CKEDITOR.POSITION_BEFORE_START ); + span.remove(); + } else { + // If the fist method does not succeed we might be next to + // the short element (like header): + // + // Lorem ipsum pulvinar purus et euismod. + // + // + // SOME HEADER| * + // + // + // vestibulum tincidunt augue eget tempus. + // + // * - drop position + // | - expected cursor position + // + // In such situation elementFromPoint returns proper element. Using getClientRect + // it is possible to check if the cursor should be at the beginning or at the end + // of paragraph. + var $element = editor.document.$.elementFromPoint( x, y ), + element = new CKEDITOR.dom.element( $element ), + rect; + + if ( !element.equals( editor.editable() ) && element.getName() != 'html' ) { + rect = element.getClientRect(); + + if ( x < rect.left ) { + range.setStartAt( element, CKEDITOR.POSITION_AFTER_START ); + range.collapse( true ); + } else { + range.setStartAt( element, CKEDITOR.POSITION_BEFORE_END ); + range.collapse( true ); + } + } + // If drop happens on no element elementFromPoint returns html or body. + // + // * |Lorem ipsum pulvinar purus et euismod. + // + // vestibulum tincidunt augue eget tempus. + // + // * - drop position + // | - expected cursor position + // + // In such case we can try to use default selection. If startContainer is not + // 'editable' element it is probably proper selection. + else if ( defaultRange && defaultRange.startContainer && + !defaultRange.startContainer.equals( editor.editable() ) ) { + return defaultRange; + + // Otherwise we can not find any drop position and we have to return null + // and cancel drop event. + } else { + return null; + } + + } + } catch ( err ) { + return null; + } + } else { + return null; + } + + return range; + }, + + /** + * This function tries to link the `evt.data.dataTransfer` property of the {@link CKEDITOR.editor#dragstart}, + * {@link CKEDITOR.editor#dragend} and {@link CKEDITOR.editor#drop} events to a single + * {@link CKEDITOR.plugins.clipboard.dataTransfer} object. + * + * This method is automatically used by the core of the drag and drop functionality and + * usually does not have to be called manually when using the drag and drop events. + * + * This method behaves differently depending on whether the drag and drop events were fired + * artificially (to represent a non-native drag and drop) or whether they were caused by the native drag and drop. + * + * If the native event is not available, then it will create a new {@link CKEDITOR.plugins.clipboard.dataTransfer} + * instance (if it does not exist already) and will link it to this and all following event objects until + * the {@link #resetDragDataTransfer} method is called. It means that all three drag and drop events must be fired + * in order to ensure that the data transfer is bound correctly. + * + * If the native event is available, then the {@link CKEDITOR.plugins.clipboard.dataTransfer} is identified + * by its ID and a new instance is assigned to the `evt.data.dataTransfer` only if the ID changed or + * the {@link #resetDragDataTransfer} method was called. + * + * @since 4.5 + * @param {CKEDITOR.dom.event} [evt] A drop event object. + * @param {CKEDITOR.editor} [sourceEditor] The source editor instance. + */ + initDragDataTransfer: function( evt, sourceEditor ) { + // Create a new dataTransfer object based on the drop event. + // If this event was used on dragstart to create dataTransfer + // both dataTransfer objects will have the same id. + var nativeDataTransfer = evt.data.$ ? evt.data.$.dataTransfer : null, + dataTransfer = new this.dataTransfer( nativeDataTransfer, sourceEditor ); + + if ( !nativeDataTransfer ) { + // No native event. + if ( this.dragData ) { + dataTransfer = this.dragData; + } else { + this.dragData = dataTransfer; + } + } else { + // Native event. If there is the same id we will replace dataTransfer with the one + // created on drag, because it contains drag editor, drag content and so on. + // Otherwise (in case of drag from external source) we save new object to + // the global clipboard.dragData. + if ( this.dragData && dataTransfer.id == this.dragData.id ) { + dataTransfer = this.dragData; + } else { + this.dragData = dataTransfer; + } + } + + evt.data.dataTransfer = dataTransfer; + }, + + /** + * Removes the global {@link #dragData} so the next call to {@link #initDragDataTransfer} + * always creates a new instance of {@link CKEDITOR.plugins.clipboard.dataTransfer}. + * + * @since 4.5 + */ + resetDragDataTransfer: function() { + this.dragData = null; + }, + + /** + * Global object storing the data transfer of the current drag and drop operation. + * Do not use it directly, use {@link #initDragDataTransfer} and {@link #resetDragDataTransfer}. + * + * Note: This object is global (meaning that it is not related to a single editor instance) + * in order to handle drag and drop from one editor into another. + * + * @since 4.5 + * @private + * @property {CKEDITOR.plugins.clipboard.dataTransfer} dragData + */ + + /** + * Range object to save the drag range and remove its content after the drop. + * + * @since 4.5 + * @private + * @property {CKEDITOR.dom.range} dragRange + */ + + /** + * Initializes and links data transfer objects based on the paste event. If the data + * transfer object was already initialized on this event, the function will + * return that object. In IE it is not possible to link copy/cut and paste events + * so the method always returns a new object. The same happens if there is no paste event + * passed to the method. + * + * @since 4.5 + * @param {CKEDITOR.dom.event} [evt] A paste event object. + * @param {CKEDITOR.editor} [sourceEditor] The source editor instance. + * @returns {CKEDITOR.plugins.clipboard.dataTransfer} The data transfer object. + */ + initPasteDataTransfer: function( evt, sourceEditor ) { + if ( !this.isCustomCopyCutSupported ) { + return new this.dataTransfer( null, sourceEditor ); + } else if ( evt && evt.data && evt.data.$ ) { + var dataTransfer = new this.dataTransfer( evt.data.$.clipboardData, sourceEditor ); + + if ( this.copyCutData && dataTransfer.id == this.copyCutData.id ) { + dataTransfer = this.copyCutData; + dataTransfer.$ = evt.data.$.clipboardData; + } else { + this.copyCutData = dataTransfer; + } + + return dataTransfer; + } else { + return new this.dataTransfer( null, sourceEditor ); + } + }, + + /** + * Prevents dropping on the specified element. + * + * @since 4.5 + * @param {CKEDITOR.dom.element} element The element on which dropping should be disabled. + */ + preventDefaultDropOnElement: function( element ) { + element && element.on( 'dragover', preventDefaultSetDropEffectToNone ); + } + }; + + // Data type used to link drag and drop events. + // + // In IE URL data type is buggie and there is no way to mark drag & drop without + // modifying text data (which would be displayed if user drop content to the textarea) + // so we just read dragged text. + // + // In Chrome and Firefox we can use custom data types. + var clipboardIdDataType = CKEDITOR.plugins.clipboard.isCustomDataTypesSupported ? 'cke/id' : 'Text'; + /** + * Facade for the native `dataTransfer`/`clipboadData` object to hide all differences + * between browsers. + * + * @since 4.5 + * @class CKEDITOR.plugins.clipboard.dataTransfer + * @constructor Creates a class instance. + * @param {Object} [nativeDataTransfer] A native data transfer object. + * @param {CKEDITOR.editor} [editor] The source editor instance. If the editor is defined, dataValue will + * be created based on the editor content and the type will be 'html'. + */ + CKEDITOR.plugins.clipboard.dataTransfer = function( nativeDataTransfer, editor ) { + if ( nativeDataTransfer ) { + this.$ = nativeDataTransfer; + } + + this._ = { + metaRegExp: /^/i, + bodyRegExp: /([\s\S]*)<\/body>/i, + fragmentRegExp: //g, + + data: {}, + files: [], + + normalizeType: function( type ) { + type = type.toLowerCase(); + + if ( type == 'text' || type == 'text/plain' ) { + return 'Text'; // IE support only Text and URL; + } else if ( type == 'url' ) { + return 'URL'; // IE support only Text and URL; + } else { + return type; + } + } + }; + + // Check if ID is already created. + this.id = this.getData( clipboardIdDataType ); + + // If there is no ID we need to create it. Different browsers needs different ID. + if ( !this.id ) { + if ( clipboardIdDataType == 'Text' ) { + // For IE10+ only Text data type is supported and we have to compare dragged + // and dropped text. If the ID is not set it means that empty string was dragged + // (ex. image with no alt). We change null to empty string. + this.id = ''; + } else { + // String for custom data type. + this.id = 'cke-' + CKEDITOR.tools.getUniqueId(); + } + } + + // In IE10+ we can not use any data type besides text, so we do not call setData. + if ( clipboardIdDataType != 'Text' ) { + // Try to set ID so it will be passed from the drag to the drop event. + // On some browsers with some event it is not possible to setData so we + // need to catch exceptions. + try { + this.$.setData( clipboardIdDataType, this.id ); + } catch ( err ) {} + } + + if ( editor ) { + this.sourceEditor = editor; + + this.setData( 'text/html', editor.getSelectedHtml( 1 ) ); + + // Without setData( 'text', ... ) on dragstart there is no drop event in Safari. + // Also 'text' data is empty as drop to the textarea does not work if we do not put there text. + if ( clipboardIdDataType != 'Text' && !this.getData( 'text/plain' ) ) { + this.setData( 'text/plain', editor.getSelection().getSelectedText() ); + } + } + + /** + * Data transfer ID used to bind all dataTransfer + * objects based on the same event (e.g. in drag and drop events). + * + * @readonly + * @property {String} id + */ + + /** + * A native DOM event object. + * + * @readonly + * @property {Object} $ + */ + + /** + * Source editor — the editor where the drag starts. + * Might be undefined if the drag starts outside the editor (e.g. when dropping files to the editor). + * + * @readonly + * @property {CKEDITOR.editor} sourceEditor + */ + + /** + * Private properties and methods. + * + * @private + * @property {Object} _ + */ + }; + + /** + * Data transfer operation (drag and drop or copy and paste) started and ended in the same + * editor instance. + * + * @since 4.5 + * @readonly + * @property {Number} [=1] + * @member CKEDITOR + */ + CKEDITOR.DATA_TRANSFER_INTERNAL = 1; + + /** + * Data transfer operation (drag and drop or copy and paste) started in one editor + * instance and ended in another. + * + * @since 4.5 + * @readonly + * @property {Number} [=2] + * @member CKEDITOR + */ + CKEDITOR.DATA_TRANSFER_CROSS_EDITORS = 2; + + /** + * Data transfer operation (drag and drop or copy and paste) started outside of the editor. + * The source of the data may be a textarea, HTML, another application, etc. + * + * @since 4.5 + * @readonly + * @property {Number} [=3] + * @member CKEDITOR + */ + CKEDITOR.DATA_TRANSFER_EXTERNAL = 3; + + CKEDITOR.plugins.clipboard.dataTransfer.prototype = { + /** + * Facade for the native `getData` method. + * + * @param {String} type The type of data to retrieve. + * @returns {String} type Stored data for the given type or an empty string if the data for that type does not exist. + */ + getData: function( type ) { + function isEmpty( data ) { + return data === undefined || data === null || data === ''; + } + + type = this._.normalizeType( type ); + + var data = this._.data[ type ], + result; + + if ( isEmpty( data ) ) { + try { + data = this.$.getData( type ); + } catch ( e ) {} + } + + if ( isEmpty( data ) ) { + data = ''; + } + + // Some browsers add at the begging of the HTML data + // or surround it with ...(some content) and (some content) + // This code removes meta tags and returns only the contents of the element if found. Note that + // some significant content may be placed outside Start/EndFragment comments so it's kept. + // + // See #13583 for more details. + if ( type == 'text/html' ) { + data = data.replace( this._.metaRegExp, '' ); + + // Keep only contents of the element + result = this._.bodyRegExp.exec( data ); + if ( result && result.length ) { + data = result[ 1 ]; + + // Remove also comments. + data = data.replace( this._.fragmentRegExp, '' ); + } + } + // Firefox on Linux put files paths as a text/plain data if there are files + // in the dataTransfer object. We need to hide it, because files should be + // handled on paste only if dataValue is empty. + else if ( type == 'Text' && CKEDITOR.env.gecko && this.getFilesCount() && + data.substring( 0, 7 ) == 'file://' ) { + data = ''; + } + + return data; + }, + + /** + * Facade for the native `setData` method. + * + * @param {String} type The type of data to retrieve. + * @param {String} value The data to add. + */ + setData: function( type, value ) { + type = this._.normalizeType( type ); + + this._.data[ type ] = value; + + // There is "Unexpected call to method or property access." error if you try + // to set data of unsupported type on IE. + if ( !CKEDITOR.plugins.clipboard.isCustomDataTypesSupported && type != 'URL' && type != 'Text' ) { + return; + } + + // If we use the text type to bind the ID, then if someone tries to set the text, we must also + // update ID accordingly. #13468. + if ( clipboardIdDataType == 'Text' && type == 'Text' ) { + this.id = value; + } + + try { + this.$.setData( type, value ); + } catch ( e ) {} + }, + + /** + * Gets the data transfer type. + * + * @param {CKEDITOR.editor} targetEditor The drop/paste target editor instance. + * @returns {Number} Possible values: {@link CKEDITOR#DATA_TRANSFER_INTERNAL}, + * {@link CKEDITOR#DATA_TRANSFER_CROSS_EDITORS}, {@link CKEDITOR#DATA_TRANSFER_EXTERNAL}. + */ + getTransferType: function( targetEditor ) { + if ( !this.sourceEditor ) { + return CKEDITOR.DATA_TRANSFER_EXTERNAL; + } else if ( this.sourceEditor == targetEditor ) { + return CKEDITOR.DATA_TRANSFER_INTERNAL; + } else { + return CKEDITOR.DATA_TRANSFER_CROSS_EDITORS; + } + }, + + /** + * Copies the data from the native data transfer to a private cache. + * This function is needed because the data from the native data transfer + * is available only synchronously to the event listener. It is not possible + * to get the data asynchronously, after a timeout, and the {@link CKEDITOR.editor#paste} + * event is fired asynchronously — hence the need for caching the data. + */ + cacheData: function() { + if ( !this.$ ) { + return; + } + + var that = this, + i, file; + + function getAndSetData( type ) { + type = that._.normalizeType( type ); + + var data = that.getData( type ); + if ( data ) { + that._.data[ type ] = data; + } + } + + // Copy data. + if ( CKEDITOR.plugins.clipboard.isCustomDataTypesSupported ) { + if ( this.$.types ) { + for ( i = 0; i < this.$.types.length; i++ ) { + getAndSetData( this.$.types[ i ] ); + } + } + } else { + getAndSetData( 'Text' ); + getAndSetData( 'URL' ); + } + + // Copy files references. + file = this._getImageFromClipboard(); + if ( ( this.$ && this.$.files ) || file ) { + this._.files = []; + + for ( i = 0; i < this.$.files.length; i++ ) { + this._.files.push( this.$.files[ i ] ); + } + + // Don't include $.items if both $.files and $.items contains files, because, + // according to spec and browsers behavior, they contain the same files. + if ( this._.files.length === 0 && file ) { + this._.files.push( file ); + } + } + }, + + /** + * Gets the number of files in the dataTransfer object. + * + * @returns {Number} The number of files. + */ + getFilesCount: function() { + if ( this._.files.length ) { + return this._.files.length; + } + + if ( this.$ && this.$.files && this.$.files.length ) { + return this.$.files.length; + } + + return this._getImageFromClipboard() ? 1 : 0; + }, + + /** + * Gets the file at the index given. + * + * @param {Number} i Index. + * @returns {File} File instance. + */ + getFile: function( i ) { + if ( this._.files.length ) { + return this._.files[ i ]; + } + + if ( this.$ && this.$.files && this.$.files.length ) { + return this.$.files[ i ]; + } + + // File or null if the file was not found. + return i === 0 ? this._getImageFromClipboard() : undefined; + }, + + /** + * Checks if the data transfer contains any data. + * + * @returns {Boolean} `true` if the object contains no data. + */ + isEmpty: function() { + var typesToCheck = {}, + type; + + // If dataTransfer contains files it is not empty. + if ( this.getFilesCount() ) { + return false; + } + + // Add custom types. + for ( type in this._.data ) { + typesToCheck[ type ] = 1; + } + + // Add native types. + if ( this.$ ) { + if ( CKEDITOR.plugins.clipboard.isCustomDataTypesSupported ) { + if ( this.$.types ) { + for ( var i = 0; i < this.$.types.length; i++ ) { + typesToCheck[ this.$.types[ i ] ] = 1; + } + } + } else { + typesToCheck.Text = 1; + typesToCheck.URL = 1; + } + } + + // Remove ID. + if ( clipboardIdDataType != 'Text' ) { + typesToCheck[ clipboardIdDataType ] = 0; + } + + for ( type in typesToCheck ) { + if ( typesToCheck[ type ] && this.getData( type ) !== '' ) { + return false; + } + } + + return true; + }, + + /** + * When the content of the clipboard is pasted in Chrome, the clipboard data object has an empty `files` property, + * but it is possible to get the file as `items[0].getAsFile();` (#12961). + * + * @private + * @returns {File} File instance or `null` if not found. + */ + _getImageFromClipboard: function() { + var file; + + if ( this.$ && this.$.items && this.$.items[ 0 ] ) { + try { + file = this.$.items[ 0 ].getAsFile(); + // Duck typing + if ( file && file.type ) { + return file; + } + } catch ( err ) { + // noop + } + } + + return undefined; + } + }; +} )(); + +/** + * The default content type that is used when pasted data cannot be clearly recognized as HTML or text. + * + * For example: `'foo'` may come from a plain text editor or a website. It is not possible to recognize the content + * type in this case, so the default type will be used. At the same time it is clear that `'example text'` is + * HTML and its origin is a web page, email or another rich text editor. + * + * **Note:** If content type is text, then styles of the paste context are preserved. + * + * CKEDITOR.config.clipboard_defaultContentType = 'text'; + * + * See also the {@link CKEDITOR.editor#paste} event and read more about the integration with clipboard + * in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). + * + * @since 4.0 + * @cfg {'html'/'text'} [clipboard_defaultContentType='html'] + * @member CKEDITOR.config + */ + +/** + * Fired after the user initiated a paste action, but before the data is inserted into the editor. + * The listeners to this event are able to process the content before its insertion into the document. + * + * Read more about the integration with clipboard in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). + * + * See also: + * + * * the {@link CKEDITOR.config#pasteFilter} option, + * * the {@link CKEDITOR.editor#drop} event, + * * the {@link CKEDITOR.plugins.clipboard.dataTransfer} class. + * + * @since 3.1 + * @event paste + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {String} data.type The type of data in `data.dataValue`. Usually `'html'` or `'text'`, but for listeners + * with a priority smaller than `6` it may also be `'auto'` which means that the content type has not been recognised yet + * (this will be done by the content type sniffer that listens with priority `6`). + * @param {String} data.dataValue HTML to be pasted. + * @param {String} data.method Indicates the data transfer method. It could be drag and drop or copy and paste. + * Possible values: `'drop'`, `'paste'`. Introduced in CKEditor 4.5. + * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer Facade for the native dataTransfer object + * which provides access to various data types and files, and passes some data between linked events + * (like drag and drop). Introduced in CKEditor 4.5. + * @param {Boolean} [data.dontFilter=false] Whether the {@link CKEDITOR.editor#pasteFilter paste filter} should not + * be applied to data. This option has no effect when `data.type` equals `'text'` which means that for instance + * {@link CKEDITOR.config#forcePasteAsPlainText} has a higher priority. Introduced in CKEditor 4.5. + */ + +/** + * Fired before the {@link #paste} event. Allows to preset data type. + * + * **Note:** This event is deprecated. Add a `0` priority listener for the + * {@link #paste} event instead. + * + * @deprecated + * @event beforePaste + * @member CKEDITOR.editor + */ + + /** + * Fired after the {@link #paste} event if content was modified. Note that if the paste + * event does not insert any data, the `afterPaste` event will not be fired. + * + * @event afterPaste + * @member CKEDITOR.editor + */ + +/** + * Internal event to open the Paste dialog window. + * + * @private + * @event pasteDialog + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param {Function} [data] Callback that will be passed to {@link CKEDITOR.editor#openDialog}. + */ + +/** + * Facade for the native `drop` event. Fired when the native `drop` event occurs. + * + * **Note:** To manipulate dropped data, use the {@link CKEDITOR.editor#paste} event. + * Use the `drop` event only to control drag and drop operations (e.g. to prevent the ability to drop some content). + * + * Read more about integration with drag and drop in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). + * + * See also: + * + * * The {@link CKEDITOR.editor#paste} event, + * * The {@link CKEDITOR.editor#dragstart} and {@link CKEDITOR.editor#dragend} events, + * * The {@link CKEDITOR.plugins.clipboard.dataTransfer} class. + * + * @since 4.5 + * @event drop + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {Object} data.$ Native drop event. + * @param {CKEDITOR.dom.node} data.target Drop target. + * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer DataTransfer facade. + * @param {CKEDITOR.dom.range} data.dragRange Drag range, lets you manipulate the drag range. + * Note that dragged HTML is saved as `text/html` data on `dragstart` so if you change the drag range + * on drop, dropped HTML will not change. You need to change it manually using + * {@link CKEDITOR.plugins.clipboard.dataTransfer#setData dataTransfer.setData}. + * @param {CKEDITOR.dom.range} data.dropRange Drop range, lets you manipulate the drop range. + */ + +/** + * Facade for the native `dragstart` event. Fired when the native `dragstart` event occurs. + * + * This event can be canceled in order to block the drag start operation. It can also be fired to mimic the start of the drag and drop + * operation. For instance, the `widget` plugin uses this option to integrate its custom block widget drag and drop with + * the entire system. + * + * Read more about integration with drag and drop in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). + * + * See also: + * + * * The {@link CKEDITOR.editor#paste} event, + * * The {@link CKEDITOR.editor#drop} and {@link CKEDITOR.editor#dragend} events, + * * The {@link CKEDITOR.plugins.clipboard.dataTransfer} class. + * + * @since 4.5 + * @event dragstart + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {Object} data.$ Native dragstart event. + * @param {CKEDITOR.dom.node} data.target Drag target. + * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer DataTransfer facade. + */ + +/** + * Facade for the native `dragend` event. Fired when the native `dragend` event occurs. + * + * Read more about integration with drag and drop in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). + * + * See also: + * + * * The {@link CKEDITOR.editor#paste} event, + * * The {@link CKEDITOR.editor#drop} and {@link CKEDITOR.editor#dragend} events, + * * The {@link CKEDITOR.plugins.clipboard.dataTransfer} class. + * + * @since 4.5 + * @event dragend + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {Object} data.$ Native dragend event. + * @param {CKEDITOR.dom.node} data.target Drag target. + * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer DataTransfer facade. + */ + +/** + * Defines a filter which is applied to external data pasted or dropped into the editor. Possible values are: + * + * * `'plain-text'` – Content will be pasted as a plain text. + * * `'semantic-content'` – Known tags (except `div`, `span`) with all attributes (except + * `style` and `class`) will be kept. + * * `'h1 h2 p div'` – Custom rules compatible with {@link CKEDITOR.filter}. + * * `null` – Content will not be filtered by the paste filter (but it still may be filtered + * by [Advanced Content Filter](#!/guide/dev_advanced_content_filter)). This value can be used to + * disable the paste filter in Chrome and Safari, where this option defaults to `'semantic-content'`. + * + * Example: + * + * config.pasteFilter = 'plain-text'; + * + * Custom setting: + * + * config.pasteFilter = 'h1 h2 p ul ol li; img[!src, alt]; a[!href]'; + * + * Based on this configuration option, a proper {@link CKEDITOR.filter} instance will be defined and assigned to the editor + * as a {@link CKEDITOR.editor#pasteFilter}. You can tweak the paste filter settings on the fly on this object + * as well as delete or replace it. + * + * var editor = CKEDITOR.replace( 'editor', { + * pasteFilter: 'semantic-content' + * } ); + * + * editor.on( 'instanceReady', function() { + * // The result of this will be that all semantic content will be preserved + * // except tables. + * editor.pasteFilter.disallow( 'table' ); + * } ); + * + * Note that the paste filter is applied only to **external** data. There are three data sources: + * + * * copied and pasted in the same editor (internal), + * * copied from one editor and pasted into another (cross-editor), + * * coming from all other sources like websites, MS Word, etc. (external). + * + * If {@link CKEDITOR.config#allowedContent Advanced Content Filter} is not disabled, then + * it will also be applied to pasted and dropped data. The paste filter job is to "normalize" + * external data which often needs to be handled differently than content produced by the editor. + * + * This setting defaults to `'semantic-content'` in Chrome, Opera and Safari (all Blink and Webkit based browsers) + * due to messy HTML which these browsers keep in the clipboard. In other browsers it defaults to `null`. + * + * @since 4.5 + * @cfg {String} [pasteFilter='semantic-content' in Chrome and Safari and `null` in other browsers] + * @member CKEDITOR.config + */ + +/** + * {@link CKEDITOR.filter Content filter} which is used when external data is pasted or dropped into the editor + * or a forced paste as plain text occurs. + * + * This object might be used on the fly to define rules for pasted external content. + * This object is available and used if the {@link CKEDITOR.plugins.clipboard clipboard} plugin is enabled and + * {@link CKEDITOR.config#pasteFilter} or {@link CKEDITOR.config#forcePasteAsPlainText} was defined. + * + * To enable the filter: + * + * var editor = CKEDITOR.replace( 'editor', { + * pasteFilter: 'plain-text' + * } ); + * + * You can also modify the filter on the fly later on: + * + * editor.pasteFilter = new CKEDITOR.filter( 'p h1 h2; a[!href]' ); + * + * Note that the paste filter is only applied to **external** data. There are three data sources: + * + * * copied and pasted in the same editor (internal), + * * copied from one editor and pasted into another (cross-editor), + * * coming from all other sources like websites, MS Word, etc. (external). + * + * If {@link CKEDITOR.config#allowedContent Advanced Content Filter} is not disabled, then + * it will also be applied to pasted and dropped data. The paste filter job is to "normalize" + * external data which often needs to be handled differently than content produced by the editor. + * + * @since 4.5 + * @readonly + * @property {CKEDITOR.filter} [pasteFilter] + * @member CKEDITOR.editor + */ diff --git a/sources/plugins/colorbutton/icons/bgcolor.png b/sources/plugins/colorbutton/icons/bgcolor.png new file mode 100644 index 0000000000000000000000000000000000000000..a313938d8bc0f72e3086129816be628c1a7aa100 GIT binary patch literal 906 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|i(_&8-#}JFtQzz}uj!u_ooge-^DqQH0zz6-<)9V%a%ChzR$cZY&CCQUfw-z5w41P?OUf6?UZ3iVdydBVPjsiRU)}#QODlBd+#^q zH@yG${rmj*`1t;sV-g`#1s!KCvv~f&hCi8S`t<4b@87(!5uBK*5O&pluHSRNjS)58 zE^hw>4{o?^P@9|kR-}TfhO>rmPF_yVA3@iP9ao}$cO9^7FYYt(-MMR57e7D${7w(U z`RD5&&DpF}6dqc?E<~%mXy=_B9X%X>6c28wx0_$jXLDt`>VFmyfd|KD&Ya1=`|i8n zjsiU#Mu&OVY&}wV=HS7DoEL;9_N%L_M+XN7|L-~>CU7-t>-}GU?XKN=$QUogQ*HVD zUsQa2y^fNjL|gn+ucgsSP49oNR{G=+D*toe|HiG~-X2W&(6!+Hd+Fygi4y;mm5S#* zf4hFonmb&FCj_lL^6FKV<@D3Fib~#>FJI<;F0(gIpK*eU=ZX-m{e8W?cg>Dncv&JL zFP{z!O_M3lD`R3}1Y8A=CQWo&=rC)U{oJ{8_iFdLHLG~;TNk!^YS`+pegZ5vAL<#$l zuM*Qa!hmU5wZt`|BqgyV)hf9t6-Y4{85kPt8kp-En1mRbTNxMwk+y-6m4SiplHI`c zjiezrKP5A*61N7MpUg*q8YDqB1m~xflqVLYGL)B>>t*I;7bhncr0V4trO$q6BL!5% N;OXk;vd$@?2>>a?jz9na literal 0 HcmV?d00001 diff --git a/sources/plugins/colorbutton/icons/hidpi/bgcolor.png b/sources/plugins/colorbutton/icons/hidpi/bgcolor.png new file mode 100644 index 0000000000000000000000000000000000000000..54b3e18c4602dbf05cf21e897477998211c02dfa GIT binary patch literal 2169 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 To9;Xs00000NkvXXu0mjf;)5CX literal 0 HcmV?d00001 diff --git a/sources/plugins/colorbutton/icons/textcolor.png b/sources/plugins/colorbutton/icons/textcolor.png new file mode 100644 index 0000000000000000000000000000000000000000..0d8e45907bca4c92dc43ced827d1896e968ec27c GIT binary patch literal 813 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|ilbffDV~EA+-r)1z(vBkk?#=c*<~!%C)=p0iiF~)!?Pe;jUe%vh zv3qa)687=M%KuIWCr^>9e((4pU!W_%>*PkkRROP0PSR+JE#JJ^+V+ah&4h*T&5YmI z+TW{oPESvt!K1`v?Ciy<)U;LXn8cDyuIyaB@O$ApOIxl<&3m5u-Q3(xJ>J~S3Qq?t?7)P_qjSajwTg`+=+;fuMb*(y|Ae0Q&-2msBGr@-;2X4 zChd*U>+jpWHHtS-Br!8{B~t=7!;&+*pB0vAs>WPr6`VSK`tlbGZ)>;L}!>mMkh`nGJhrwf1Vb=Qp%EP_uNXGr!ve$baXeP&^8 z?cc>$vsw>7{7{sa$H#Dw;lP(KCCi$Q&n{R0U%2^Z4DVrqzjgm3x8MFNz;dwJqHp7l z9XotoQrDJlQ?7~s9CO`u{q^6mtFQW9zjn*3Z0YX>Z?e zW@dITHa1q)J&@)6=M5V+7+ii?a_ef=S3$wGzxLfve72u!%~oKb?%2DxR%>aC;WHzi z!^!u*C$4RM|J%aG=8t5X;*_9oFJ7z=IBqyYvZS!Eapg))jim}pS&Wr^gH=46R6I8c zaw{sdoY-@`kSCdENe~x1JNvc}Ek}-tw>O=f@9uK*k9+>60F4Dep=@47muVmNe`Ig! zz2?Yj8@m>m%v4KUBT7;dOH!?pi&B9UgOP!uv95u+u7OF2p}CcTF%W4R7+Dz@_%7KE zOoB)na`RI%(<*Umu=&Y+1gJq0WJ7R%T1k0gQ7S`udAVL@UUqSEVnM22eo^}DcQ#T$ OMGT&' + + '' + + '' + + '' + + '' + + '' + + '
' + + '' + + '', lang.auto, '
' + + '' + + '' ); + + // Render the color boxes. + for ( var i = 0; i < colors.length; i++ ) { + if ( ( i % 8 ) === 0 ) + output.push( '' ); + + var parts = colors[ i ].split( '/' ), + colorName = parts[ 0 ], + colorCode = parts[ 1 ] || colorName; + + // The data can be only a color code (without #) or colorName + color code + // If only a color code is provided, then the colorName is the color with the hash + // Convert the color from RGB to RRGGBB for better compatibility with IE and . See #5676 + if ( !parts[ 1 ] ) + colorName = '#' + colorName.replace( /^(.)(.)(.)$/, '$1$1$2$2$3$3' ); + + var colorLabel = editor.lang.colorbutton.colors[ colorCode ] || colorCode; + output.push( '' ); + } + + // Render the "More Colors" button. + if ( moreColorsEnabled ) { + output.push( '' + + '' + + '' ); // tr is later in the code. + } + + output.push( '
' + + '' + + '' + + '' + + '
' + + '', lang.more, '' + + '
' ); + + return output.join( '' ); + } + + function isUnstylable( ele ) { + return ( ele.getAttribute( 'contentEditable' ) == 'false' ) || ele.getAttribute( 'data-nostyle' ); + } + } +} ); + +/** + * Whether to enable the **More Colors*** button in the color selectors. + * + * Read more in the [documentation](#!/guide/dev_colorbutton) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/colorbutton.html). + * + * config.colorButton_enableMore = false; + * + * @cfg {Boolean} [colorButton_enableMore=true] + * @member CKEDITOR.config + */ + +/** + * Defines the colors to be displayed in the color selectors. This is a string + * containing hexadecimal notation for HTML colors, without the `'#'` prefix. + * + * **Since 3.3:** A color name may optionally be defined by prefixing the entries with + * a name and the slash character. For example, `'FontColor1/FF9900'` will be + * displayed as the color `#FF9900` in the selector, but will be output as `'FontColor1'`. + * + * Read more in the [documentation](#!/guide/dev_colorbutton) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/colorbutton.html). + * + * // Brazil colors only. + * config.colorButton_colors = '00923E,F8C100,28166F'; + * + * config.colorButton_colors = 'FontColor1/FF9900,FontColor2/0066CC,FontColor3/F00'; + * + * @cfg {String} [colorButton_colors=see source] + * @member CKEDITOR.config + */ +CKEDITOR.config.colorButton_colors = '000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,' + + 'B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,' + + 'F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,' + + 'FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,' + + 'FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF'; + +/** + * Stores the style definition that applies the text foreground color. + * + * Read more in the [documentation](#!/guide/dev_colorbutton) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/colorbutton.html). + * + * // This is actually the default value. + * config.colorButton_foreStyle = { + * element: 'span', + * styles: { color: '#(color)' } + * }; + * + * @cfg [colorButton_foreStyle=see source] + * @member CKEDITOR.config + */ +CKEDITOR.config.colorButton_foreStyle = { + element: 'span', + styles: { 'color': '#(color)' }, + overrides: [ { + element: 'font', attributes: { 'color': null } + } ] +}; + +/** + * Stores the style definition that applies the text background color. + * + * Read more in the [documentation](#!/guide/dev_colorbutton) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/colorbutton.html). + * + * // This is actually the default value. + * config.colorButton_backStyle = { + * element: 'span', + * styles: { 'background-color': '#(color)' } + * }; + * + * @cfg [colorButton_backStyle=see source] + * @member CKEDITOR.config + */ +CKEDITOR.config.colorButton_backStyle = { + element: 'span', + styles: { 'background-color': '#(color)' } +}; diff --git a/sources/plugins/colordialog/dialogs/colordialog.js b/sources/plugins/colordialog/dialogs/colordialog.js new file mode 100644 index 00000000..f5ecd483 --- /dev/null +++ b/sources/plugins/colordialog/dialogs/colordialog.js @@ -0,0 +1,327 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.dialog.add( 'colordialog', function( editor ) { + // Define some shorthands. + var $el = CKEDITOR.dom.element, + $doc = CKEDITOR.document, + lang = editor.lang.colordialog; + + // Reference the dialog. + var dialog; + + var spacer = { + type: 'html', + html: ' ' + }; + + var selected; + + function clearSelected() { + $doc.getById( selHiColorId ).removeStyle( 'background-color' ); + dialog.getContentElement( 'picker', 'selectedColor' ).setValue( '' ); + selected && selected.removeAttribute( 'aria-selected' ); + selected = null; + } + + function updateSelected( evt ) { + var target = evt.data.getTarget(), + color; + + if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) { + selected = target; + selected.setAttribute( 'aria-selected', true ); + dialog.getContentElement( 'picker', 'selectedColor' ).setValue( color ); + } + } + + // Basing black-white decision off of luma scheme using the Rec. 709 version + function whiteOrBlack( color ) { + color = color.replace( /^#/, '' ); + for ( var i = 0, rgb = []; i <= 2; i++ ) + rgb[ i ] = parseInt( color.substr( i * 2, 2 ), 16 ); + var luma = ( 0.2126 * rgb[ 0 ] ) + ( 0.7152 * rgb[ 1 ] ) + ( 0.0722 * rgb[ 2 ] ); + return '#' + ( luma >= 165 ? '000' : 'fff' ); + } + + // Distinguish focused and hover states. + var focused, hovered; + + // Apply highlight style. + function updateHighlight( event ) { + // Convert to event. + !event.name && ( event = new CKEDITOR.event( event ) ); + + var isFocus = !( /mouse/ ).test( event.name ), + target = event.data.getTarget(), + color; + + if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) { + removeHighlight( event ); + + isFocus ? focused = target : hovered = target; + + // Apply outline style to show focus. + if ( isFocus ) { + target.setStyle( 'border-color', whiteOrBlack( color ) ); + target.setStyle( 'border-style', 'dotted' ); + } + + $doc.getById( hicolorId ).setStyle( 'background-color', color ); + $doc.getById( hicolorTextId ).setHtml( color ); + } + } + + function clearHighlight() { + var color = focused.getChild( 0 ).getHtml(); + focused.setStyle( 'border-color', color ); + focused.setStyle( 'border-style', 'solid' ); + $doc.getById( hicolorId ).removeStyle( 'background-color' ); + $doc.getById( hicolorTextId ).setHtml( ' ' ); + focused = null; + } + + // Remove previously focused style. + function removeHighlight( event ) { + var isFocus = !( /mouse/ ).test( event.name ), + target = isFocus && focused; + + if ( target ) { + var color = target.getChild( 0 ).getHtml(); + target.setStyle( 'border-color', color ); + target.setStyle( 'border-style', 'solid' ); + } + + if ( !( focused || hovered ) ) { + $doc.getById( hicolorId ).removeStyle( 'background-color' ); + $doc.getById( hicolorTextId ).setHtml( ' ' ); + } + } + + function onKeyStrokes( evt ) { + var domEvt = evt.data; + + var element = domEvt.getTarget(); + var relative, nodeToMove; + var keystroke = domEvt.getKeystroke(), + rtl = editor.lang.dir == 'rtl'; + + switch ( keystroke ) { + // UP-ARROW + case 38: + // relative is TR + if ( ( relative = element.getParent().getPrevious() ) ) { + nodeToMove = relative.getChild( [ element.getIndex() ] ); + nodeToMove.focus(); + } + domEvt.preventDefault(); + break; + // DOWN-ARROW + case 40: + // relative is TR + if ( ( relative = element.getParent().getNext() ) ) { + nodeToMove = relative.getChild( [ element.getIndex() ] ); + if ( nodeToMove && nodeToMove.type == 1 ) + nodeToMove.focus(); + + } + domEvt.preventDefault(); + break; + + // SPACE + // ENTER + case 32: + case 13: + updateSelected( evt ); + domEvt.preventDefault(); + break; + + // RIGHT-ARROW + case rtl ? 37 : 39: + // relative is TD + if ( ( nodeToMove = element.getNext() ) ) { + if ( nodeToMove.type == 1 ) { + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + } + // relative is TR + else if ( ( relative = element.getParent().getNext() ) ) { + nodeToMove = relative.getChild( [ 0 ] ); + if ( nodeToMove && nodeToMove.type == 1 ) { + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + } + break; + + // LEFT-ARROW + case rtl ? 39 : 37: + // relative is TD + if ( ( nodeToMove = element.getPrevious() ) ) { + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + // relative is TR + else if ( ( relative = element.getParent().getPrevious() ) ) { + nodeToMove = relative.getLast(); + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + break; + default: + // Do not stop not handled events. + return; + } + } + + function createColorTable() { + table = CKEDITOR.dom.element.createFromHtml( '' + + '' + + '
' + lang.options + '
' ); + + table.on( 'mouseover', updateHighlight ); + table.on( 'mouseout', removeHighlight ); + + // Create the base colors array. + var aColors = [ '00', '33', '66', '99', 'cc', 'ff' ]; + + // This function combines two ranges of three values from the color array into a row. + function appendColorRow( rangeA, rangeB ) { + for ( var i = rangeA; i < rangeA + 3; i++ ) { + var row = new $el( table.$.insertRow( -1 ) ); + row.setAttribute( 'role', 'row' ); + + for ( var j = rangeB; j < rangeB + 3; j++ ) { + for ( var n = 0; n < 6; n++ ) { + appendColorCell( row.$, '#' + aColors[ j ] + aColors[ n ] + aColors[ i ] ); + } + } + } + } + + // This function create a single color cell in the color table. + function appendColorCell( targetRow, color ) { + var cell = new $el( targetRow.insertCell( -1 ) ); + cell.setAttribute( 'class', 'ColorCell' ); + cell.setAttribute( 'tabIndex', -1 ); + cell.setAttribute( 'role', 'gridcell' ); + + cell.on( 'keydown', onKeyStrokes ); + cell.on( 'click', updateSelected ); + cell.on( 'focus', updateHighlight ); + cell.on( 'blur', removeHighlight ); + + cell.setStyle( 'background-color', color ); + cell.setStyle( 'border', '1px solid ' + color ); + + cell.setStyle( 'width', '14px' ); + cell.setStyle( 'height', '14px' ); + + var colorLabel = numbering( 'color_table_cell' ); + cell.setAttribute( 'aria-labelledby', colorLabel ); + cell.append( CKEDITOR.dom.element.createFromHtml( '' + color + '', CKEDITOR.document ) ); + } + + appendColorRow( 0, 0 ); + appendColorRow( 3, 0 ); + appendColorRow( 0, 3 ); + appendColorRow( 3, 3 ); + + // Create the last row. + var oRow = new $el( table.$.insertRow( -1 ) ); + oRow.setAttribute( 'role', 'row' ); + + // Create the gray scale colors cells. + appendColorCell( oRow.$, '#000000' ); + for ( var n = 0; n < 16; n++ ) { + var c = n.toString( 16 ); + appendColorCell( oRow.$, '#' + c + c + c + c + c + c ); + } + appendColorCell( oRow.$, '#ffffff' ); + } + + var numbering = function( id ) { + return CKEDITOR.tools.getNextId() + '_' + id; + }, + hicolorId = numbering( 'hicolor' ), + hicolorTextId = numbering( 'hicolortext' ), + selHiColorId = numbering( 'selhicolor' ), + table; + + createColorTable(); + + return { + title: lang.title, + minWidth: 360, + minHeight: 220, + onLoad: function() { + // Update reference. + dialog = this; + }, + onHide: function() { + clearSelected(); + clearHighlight(); + }, + contents: [ { + id: 'picker', + label: lang.title, + accessKey: 'I', + elements: [ { + type: 'hbox', + padding: 0, + widths: [ '70%', '10%', '30%' ], + children: [ { + type: 'html', + html: '

', + onLoad: function() { + CKEDITOR.document.getById( this.domId ).append( table ); + }, + focus: function() { + // Restore the previously focused cell, + // otherwise put the initial focus on the first table cell. + ( focused || this.getElement().getElementsByTag( 'td' ).getItem( 0 ) ).focus(); + } + }, + spacer, + { + type: 'vbox', + padding: 0, + widths: [ '70%', '5%', '25%' ], + children: [ { + type: 'html', + html: '' + lang.highlight + '' + + '
' + + '
 
' + lang.selected + '' + + '
' + }, + { + type: 'text', + label: lang.selected, + labelStyle: 'display:none', + id: 'selectedColor', + style: 'width: 76px;margin-top:4px', + onChange: function() { + // Try to update color preview with new value. If fails, then set it no none. + try { + $doc.getById( selHiColorId ).setStyle( 'background-color', this.getValue() ); + } catch ( e ) { + clearSelected(); + } + } + }, + spacer, + { + type: 'button', + id: 'clear', + label: lang.clear, + onClick: clearSelected + } ] + } ] + } ] + } ] + }; +} ); diff --git a/sources/plugins/colordialog/lang/af.js b/sources/plugins/colordialog/lang/af.js new file mode 100644 index 00000000..de005de4 --- /dev/null +++ b/sources/plugins/colordialog/lang/af.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'af', { + clear: 'Herstel', + highlight: 'Aktief', + options: 'Kleuropsies', + selected: 'Geselekteer', + title: 'Kies kleur' +} ); diff --git a/sources/plugins/colordialog/lang/ar.js b/sources/plugins/colordialog/lang/ar.js new file mode 100644 index 00000000..804d1535 --- /dev/null +++ b/sources/plugins/colordialog/lang/ar.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ar', { + clear: 'مسح', + highlight: 'تحديد', + options: 'اختيارات الألوان', + selected: 'اللون المختار', + title: 'اختر اللون' +} ); diff --git a/sources/plugins/colordialog/lang/bg.js b/sources/plugins/colordialog/lang/bg.js new file mode 100644 index 00000000..46cd0b44 --- /dev/null +++ b/sources/plugins/colordialog/lang/bg.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'bg', { + clear: 'Изчистване', + highlight: 'Осветяване', + options: 'Цветови опции', + selected: 'Изберете цвят', + title: 'Изберете цвят' +} ); diff --git a/sources/plugins/colordialog/lang/bn.js b/sources/plugins/colordialog/lang/bn.js new file mode 100644 index 00000000..ff8b58ac --- /dev/null +++ b/sources/plugins/colordialog/lang/bn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'bn', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/bs.js b/sources/plugins/colordialog/lang/bs.js new file mode 100644 index 00000000..3d8145d7 --- /dev/null +++ b/sources/plugins/colordialog/lang/bs.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'bs', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/ca.js b/sources/plugins/colordialog/lang/ca.js new file mode 100644 index 00000000..351bde1d --- /dev/null +++ b/sources/plugins/colordialog/lang/ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ca', { + clear: 'Neteja', + highlight: 'Destacat', + options: 'Opcions del color', + selected: 'Color Seleccionat', + title: 'Seleccioni el color' +} ); diff --git a/sources/plugins/colordialog/lang/cs.js b/sources/plugins/colordialog/lang/cs.js new file mode 100644 index 00000000..49cb9efe --- /dev/null +++ b/sources/plugins/colordialog/lang/cs.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'cs', { + clear: 'Vyčistit', + highlight: 'Zvýraznit', + options: 'Nastavení barvy', + selected: 'Vybráno', + title: 'Výběr barvy' +} ); diff --git a/sources/plugins/colordialog/lang/cy.js b/sources/plugins/colordialog/lang/cy.js new file mode 100644 index 00000000..3ee93ba4 --- /dev/null +++ b/sources/plugins/colordialog/lang/cy.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'cy', { + clear: 'Clirio', + highlight: 'Uwcholeuo', + options: 'Opsiynau Lliw', + selected: 'Lliw a Ddewiswyd', + title: 'Dewis lliw' +} ); diff --git a/sources/plugins/colordialog/lang/da.js b/sources/plugins/colordialog/lang/da.js new file mode 100644 index 00000000..b4fd39de --- /dev/null +++ b/sources/plugins/colordialog/lang/da.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'da', { + clear: 'Nulstil', + highlight: 'Markér', + options: 'Farvemuligheder', + selected: 'Valgt farve', + title: 'Vælg farve' +} ); diff --git a/sources/plugins/colordialog/lang/de.js b/sources/plugins/colordialog/lang/de.js new file mode 100644 index 00000000..f45d8e1c --- /dev/null +++ b/sources/plugins/colordialog/lang/de.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'de', { + clear: 'Entfernen', + highlight: 'Hervorheben', + options: 'Farboptionen', + selected: 'Ausgewählte Farbe', + title: 'Farbe auswählen' +} ); diff --git a/sources/plugins/colordialog/lang/el.js b/sources/plugins/colordialog/lang/el.js new file mode 100644 index 00000000..6b4b4fcb --- /dev/null +++ b/sources/plugins/colordialog/lang/el.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'el', { + clear: 'Εκκαθάριση', + highlight: 'Σήμανση', + options: 'Επιλογές Χρωμάτων', + selected: 'Επιλεγμένο Χρώμα', + title: 'Επιλογή χρώματος' +} ); diff --git a/sources/plugins/colordialog/lang/en-au.js b/sources/plugins/colordialog/lang/en-au.js new file mode 100644 index 00000000..73a1e8c3 --- /dev/null +++ b/sources/plugins/colordialog/lang/en-au.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en-au', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/en-ca.js b/sources/plugins/colordialog/lang/en-ca.js new file mode 100644 index 00000000..1f0d3225 --- /dev/null +++ b/sources/plugins/colordialog/lang/en-ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en-ca', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/en-gb.js b/sources/plugins/colordialog/lang/en-gb.js new file mode 100644 index 00000000..06fea7a0 --- /dev/null +++ b/sources/plugins/colordialog/lang/en-gb.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en-gb', { + clear: 'Clear', + highlight: 'Highlight', + options: 'Colour Options', + selected: 'Selected Colour', + title: 'Select colour' +} ); diff --git a/sources/plugins/colordialog/lang/en.js b/sources/plugins/colordialog/lang/en.js new file mode 100644 index 00000000..13ff82a3 --- /dev/null +++ b/sources/plugins/colordialog/lang/en.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en', { + clear: 'Clear', + highlight: 'Highlight', + options: 'Color Options', + selected: 'Selected Color', + title: 'Select color' +} ); diff --git a/sources/plugins/colordialog/lang/eo.js b/sources/plugins/colordialog/lang/eo.js new file mode 100644 index 00000000..13b1f90a --- /dev/null +++ b/sources/plugins/colordialog/lang/eo.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'eo', { + clear: 'Forigi', + highlight: 'Detaloj', + options: 'Opcioj pri koloroj', + selected: 'Selektita koloro', + title: 'Selekti koloron' +} ); diff --git a/sources/plugins/colordialog/lang/es.js b/sources/plugins/colordialog/lang/es.js new file mode 100644 index 00000000..405cbeda --- /dev/null +++ b/sources/plugins/colordialog/lang/es.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'es', { + clear: 'Borrar', + highlight: 'Muestra', + options: 'Opciones de colores', + selected: 'Elegido', + title: 'Elegir color' +} ); diff --git a/sources/plugins/colordialog/lang/et.js b/sources/plugins/colordialog/lang/et.js new file mode 100644 index 00000000..2437052f --- /dev/null +++ b/sources/plugins/colordialog/lang/et.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'et', { + clear: 'Eemalda', + highlight: 'Näidis', + options: 'Värvi valikud', + selected: 'Valitud värv', + title: 'Värvi valimine' +} ); diff --git a/sources/plugins/colordialog/lang/eu.js b/sources/plugins/colordialog/lang/eu.js new file mode 100644 index 00000000..beecdf08 --- /dev/null +++ b/sources/plugins/colordialog/lang/eu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'eu', { + clear: 'Garbitu', + highlight: 'Nabarmendu', + options: 'Kolore aukerak', + selected: 'Hautatutako kolorea', + title: 'Hautatu kolorea' +} ); diff --git a/sources/plugins/colordialog/lang/fa.js b/sources/plugins/colordialog/lang/fa.js new file mode 100644 index 00000000..9cdb113f --- /dev/null +++ b/sources/plugins/colordialog/lang/fa.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fa', { + clear: 'پاک کردن', + highlight: 'متمایز', + options: 'گزینه​های رنگ', + selected: 'رنگ انتخاب شده', + title: 'انتخاب رنگ' +} ); diff --git a/sources/plugins/colordialog/lang/fi.js b/sources/plugins/colordialog/lang/fi.js new file mode 100644 index 00000000..e6292467 --- /dev/null +++ b/sources/plugins/colordialog/lang/fi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fi', { + clear: 'Poista', + highlight: 'Korostus', + options: 'Värin ominaisuudet', + selected: 'Valittu', + title: 'Valitse väri' +} ); diff --git a/sources/plugins/colordialog/lang/fo.js b/sources/plugins/colordialog/lang/fo.js new file mode 100644 index 00000000..516fbf1d --- /dev/null +++ b/sources/plugins/colordialog/lang/fo.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fo', { + clear: 'Strika', + highlight: 'Framheva', + options: 'Litmøguleikar', + selected: 'Valdur litur', + title: 'Vel lit' +} ); diff --git a/sources/plugins/colordialog/lang/fr-ca.js b/sources/plugins/colordialog/lang/fr-ca.js new file mode 100644 index 00000000..b235b993 --- /dev/null +++ b/sources/plugins/colordialog/lang/fr-ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fr-ca', { + clear: 'Effacer', + highlight: 'Surligner', + options: 'Options de couleur', + selected: 'Couleur sélectionnée', + title: 'Choisir une couleur' +} ); diff --git a/sources/plugins/colordialog/lang/fr.js b/sources/plugins/colordialog/lang/fr.js new file mode 100644 index 00000000..706df2ad --- /dev/null +++ b/sources/plugins/colordialog/lang/fr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fr', { + clear: 'Effacer', + highlight: 'Détails', + options: 'Option des couleurs', + selected: 'Couleur choisie', + title: 'Choisir une couleur' +} ); diff --git a/sources/plugins/colordialog/lang/gl.js b/sources/plugins/colordialog/lang/gl.js new file mode 100644 index 00000000..a5f42e14 --- /dev/null +++ b/sources/plugins/colordialog/lang/gl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'gl', { + clear: 'Limpar', + highlight: 'Resaltar', + options: 'Opcións de cor', + selected: 'Cor seleccionado', + title: 'Seleccione unha cor' +} ); diff --git a/sources/plugins/colordialog/lang/gu.js b/sources/plugins/colordialog/lang/gu.js new file mode 100644 index 00000000..bacc9d22 --- /dev/null +++ b/sources/plugins/colordialog/lang/gu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'gu', { + clear: 'સાફ કરવું', + highlight: 'હાઈઈટ', + options: 'રંગના વિકલ્પ', + selected: 'પસંદ કરેલો રંગ', + title: 'રંગ પસંદ કરો' +} ); diff --git a/sources/plugins/colordialog/lang/he.js b/sources/plugins/colordialog/lang/he.js new file mode 100644 index 00000000..3bd448b9 --- /dev/null +++ b/sources/plugins/colordialog/lang/he.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'he', { + clear: 'ניקוי', + highlight: 'סימון', + options: 'אפשרויות צבע', + selected: 'בחירה', + title: 'בחירת צבע' +} ); diff --git a/sources/plugins/colordialog/lang/hi.js b/sources/plugins/colordialog/lang/hi.js new file mode 100644 index 00000000..fc383287 --- /dev/null +++ b/sources/plugins/colordialog/lang/hi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'hi', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/hr.js b/sources/plugins/colordialog/lang/hr.js new file mode 100644 index 00000000..15ef17fc --- /dev/null +++ b/sources/plugins/colordialog/lang/hr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'hr', { + clear: 'Očisti', + highlight: 'Istaknuto', + options: 'Opcije boje', + selected: 'Odabrana boja', + title: 'Odaberi boju' +} ); diff --git a/sources/plugins/colordialog/lang/hu.js b/sources/plugins/colordialog/lang/hu.js new file mode 100644 index 00000000..69e75872 --- /dev/null +++ b/sources/plugins/colordialog/lang/hu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'hu', { + clear: 'Ürítés', + highlight: 'Nagyítás', + options: 'Szín opciók', + selected: 'Kiválasztott', + title: 'Válasszon színt' +} ); diff --git a/sources/plugins/colordialog/lang/id.js b/sources/plugins/colordialog/lang/id.js new file mode 100644 index 00000000..f85ddf90 --- /dev/null +++ b/sources/plugins/colordialog/lang/id.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'id', { + clear: 'Hapus', + highlight: 'Sorot', + options: 'Pilihan Warna', + selected: 'Warna Dipilih', + title: 'Pilih Warna' +} ); diff --git a/sources/plugins/colordialog/lang/is.js b/sources/plugins/colordialog/lang/is.js new file mode 100644 index 00000000..2268c402 --- /dev/null +++ b/sources/plugins/colordialog/lang/is.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'is', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/it.js b/sources/plugins/colordialog/lang/it.js new file mode 100644 index 00000000..e4a2956b --- /dev/null +++ b/sources/plugins/colordialog/lang/it.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'it', { + clear: 'cancella', + highlight: 'Evidenzia', + options: 'Opzioni colore', + selected: 'Seleziona il colore', + title: 'Selezionare il colore' +} ); diff --git a/sources/plugins/colordialog/lang/ja.js b/sources/plugins/colordialog/lang/ja.js new file mode 100644 index 00000000..33f92053 --- /dev/null +++ b/sources/plugins/colordialog/lang/ja.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ja', { + clear: 'クリア', + highlight: 'ハイライト', + options: 'カラーオプション', + selected: '選択された色', + title: '色選択' +} ); diff --git a/sources/plugins/colordialog/lang/ka.js b/sources/plugins/colordialog/lang/ka.js new file mode 100644 index 00000000..fd1f929f --- /dev/null +++ b/sources/plugins/colordialog/lang/ka.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ka', { + clear: 'გასუფთავება', + highlight: 'ჩვენება', + options: 'ფერის პარამეტრები', + selected: 'არჩეული ფერი', + title: 'ფერის შეცვლა' +} ); diff --git a/sources/plugins/colordialog/lang/km.js b/sources/plugins/colordialog/lang/km.js new file mode 100644 index 00000000..7940f4eb --- /dev/null +++ b/sources/plugins/colordialog/lang/km.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'km', { + clear: 'សម្អាត', + highlight: 'បន្លិច​ពណ៌', + options: 'ជម្រើស​ពណ៌', + selected: 'ពណ៌​ដែល​បាន​រើស', + title: 'រើស​ពណ៌' +} ); diff --git a/sources/plugins/colordialog/lang/ko.js b/sources/plugins/colordialog/lang/ko.js new file mode 100644 index 00000000..ff19a6ae --- /dev/null +++ b/sources/plugins/colordialog/lang/ko.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ko', { + clear: '비우기', + highlight: '강조', + options: '색상 옵션', + selected: '선택된 색상', + title: '색상 선택' +} ); diff --git a/sources/plugins/colordialog/lang/ku.js b/sources/plugins/colordialog/lang/ku.js new file mode 100644 index 00000000..bbe1d1f1 --- /dev/null +++ b/sources/plugins/colordialog/lang/ku.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ku', { + clear: 'پاکیکەوە', + highlight: 'نیشانکردن', + options: 'هەڵبژاردەی ڕەنگەکان', + selected: 'ڕەنگی هەڵبژێردراو', + title: 'هەڵبژاردنی ڕەنگ' +} ); diff --git a/sources/plugins/colordialog/lang/lt.js b/sources/plugins/colordialog/lang/lt.js new file mode 100644 index 00000000..817b6e2d --- /dev/null +++ b/sources/plugins/colordialog/lang/lt.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'lt', { + clear: 'Išvalyti', + highlight: 'Paryškinti', + options: 'Spalvos nustatymai', + selected: 'Pasirinkta spalva', + title: 'Pasirinkite spalvą' +} ); diff --git a/sources/plugins/colordialog/lang/lv.js b/sources/plugins/colordialog/lang/lv.js new file mode 100644 index 00000000..6dc35d38 --- /dev/null +++ b/sources/plugins/colordialog/lang/lv.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'lv', { + clear: 'Notīrīt', + highlight: 'Paraugs', + options: 'Krāsas uzstādījumi', + selected: 'Izvēlētā krāsa', + title: 'Izvēlies krāsu' +} ); diff --git a/sources/plugins/colordialog/lang/mk.js b/sources/plugins/colordialog/lang/mk.js new file mode 100644 index 00000000..6981f12f --- /dev/null +++ b/sources/plugins/colordialog/lang/mk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'mk', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/mn.js b/sources/plugins/colordialog/lang/mn.js new file mode 100644 index 00000000..6ad3bc95 --- /dev/null +++ b/sources/plugins/colordialog/lang/mn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'mn', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/ms.js b/sources/plugins/colordialog/lang/ms.js new file mode 100644 index 00000000..6978496e --- /dev/null +++ b/sources/plugins/colordialog/lang/ms.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ms', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/nb.js b/sources/plugins/colordialog/lang/nb.js new file mode 100644 index 00000000..8d6daded --- /dev/null +++ b/sources/plugins/colordialog/lang/nb.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'nb', { + clear: 'Tøm', + highlight: 'Merk', + options: 'Alternativer for farge', + selected: 'Valgt farge', + title: 'Velg farge' +} ); diff --git a/sources/plugins/colordialog/lang/nl.js b/sources/plugins/colordialog/lang/nl.js new file mode 100644 index 00000000..2cd70ae3 --- /dev/null +++ b/sources/plugins/colordialog/lang/nl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'nl', { + clear: 'Wissen', + highlight: 'Actief', + options: 'Kleuropties', + selected: 'Geselecteerde kleur', + title: 'Selecteer kleur' +} ); diff --git a/sources/plugins/colordialog/lang/no.js b/sources/plugins/colordialog/lang/no.js new file mode 100644 index 00000000..6471eeb8 --- /dev/null +++ b/sources/plugins/colordialog/lang/no.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'no', { + clear: 'Tøm', + highlight: 'Merk', + options: 'Alternativer for farge', + selected: 'Valgt', + title: 'Velg farge' +} ); diff --git a/sources/plugins/colordialog/lang/pl.js b/sources/plugins/colordialog/lang/pl.js new file mode 100644 index 00000000..14d7bb4c --- /dev/null +++ b/sources/plugins/colordialog/lang/pl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'pl', { + clear: 'Wyczyść', + highlight: 'Zaznacz', + options: 'Opcje koloru', + selected: 'Wybrany', + title: 'Wybierz kolor' +} ); diff --git a/sources/plugins/colordialog/lang/pt-br.js b/sources/plugins/colordialog/lang/pt-br.js new file mode 100644 index 00000000..8c0da026 --- /dev/null +++ b/sources/plugins/colordialog/lang/pt-br.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'pt-br', { + clear: 'Limpar', + highlight: 'Grifar', + options: 'Opções de Cor', + selected: 'Cor Selecionada', + title: 'Selecione uma Cor' +} ); diff --git a/sources/plugins/colordialog/lang/pt.js b/sources/plugins/colordialog/lang/pt.js new file mode 100644 index 00000000..87005218 --- /dev/null +++ b/sources/plugins/colordialog/lang/pt.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'pt', { + clear: 'Limpar', + highlight: 'Realçar', + options: 'Opções de cor', + selected: 'Cor selecionada', + title: 'Selecionar cor' +} ); diff --git a/sources/plugins/colordialog/lang/ro.js b/sources/plugins/colordialog/lang/ro.js new file mode 100644 index 00000000..ce326ed9 --- /dev/null +++ b/sources/plugins/colordialog/lang/ro.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ro', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/ru.js b/sources/plugins/colordialog/lang/ru.js new file mode 100644 index 00000000..f491a789 --- /dev/null +++ b/sources/plugins/colordialog/lang/ru.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ru', { + clear: 'Очистить', + highlight: 'Под курсором', + options: 'Настройки цвета', + selected: 'Выбранный цвет', + title: 'Выберите цвет' +} ); diff --git a/sources/plugins/colordialog/lang/si.js b/sources/plugins/colordialog/lang/si.js new file mode 100644 index 00000000..ac833bb8 --- /dev/null +++ b/sources/plugins/colordialog/lang/si.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'si', { + clear: 'පැහැදිලි', + highlight: 'මතුකර පෙන්වන්න', + options: 'වර්ණ විකල්ප', + selected: 'තෙරු වර්ණ', + title: 'වර්ණ තෝරන්න' +} ); diff --git a/sources/plugins/colordialog/lang/sk.js b/sources/plugins/colordialog/lang/sk.js new file mode 100644 index 00000000..47afd9a7 --- /dev/null +++ b/sources/plugins/colordialog/lang/sk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sk', { + clear: 'Vyčistiť', + highlight: 'Zvýrazniť', + options: 'Možnosti farby', + selected: 'Vybraná farba', + title: 'Vyberte farbu' +} ); diff --git a/sources/plugins/colordialog/lang/sl.js b/sources/plugins/colordialog/lang/sl.js new file mode 100644 index 00000000..9ced88ab --- /dev/null +++ b/sources/plugins/colordialog/lang/sl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sl', { + clear: 'Počisti', + highlight: 'Poudarjeno', + options: 'Barvne Možnosti', + selected: 'Izbrano', + title: 'Izberi barvo' +} ); diff --git a/sources/plugins/colordialog/lang/sq.js b/sources/plugins/colordialog/lang/sq.js new file mode 100644 index 00000000..292da900 --- /dev/null +++ b/sources/plugins/colordialog/lang/sq.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sq', { + clear: 'Pastro', + highlight: 'Thekso', + options: 'Përzgjedhjet e Ngjyrave', + selected: 'Ngjyra e Përzgjedhur', + title: 'Përzgjidh një ngjyrë' +} ); diff --git a/sources/plugins/colordialog/lang/sr-latn.js b/sources/plugins/colordialog/lang/sr-latn.js new file mode 100644 index 00000000..01498cec --- /dev/null +++ b/sources/plugins/colordialog/lang/sr-latn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sr-latn', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/sr.js b/sources/plugins/colordialog/lang/sr.js new file mode 100644 index 00000000..d6167876 --- /dev/null +++ b/sources/plugins/colordialog/lang/sr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sr', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/sv.js b/sources/plugins/colordialog/lang/sv.js new file mode 100644 index 00000000..1ffc3d89 --- /dev/null +++ b/sources/plugins/colordialog/lang/sv.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sv', { + clear: 'Rensa', + highlight: 'Markera', + options: 'Färgalternativ', + selected: 'Vald färg', + title: 'Välj färg' +} ); diff --git a/sources/plugins/colordialog/lang/th.js b/sources/plugins/colordialog/lang/th.js new file mode 100644 index 00000000..7ac87873 --- /dev/null +++ b/sources/plugins/colordialog/lang/th.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'th', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +} ); diff --git a/sources/plugins/colordialog/lang/tr.js b/sources/plugins/colordialog/lang/tr.js new file mode 100644 index 00000000..02d3bc81 --- /dev/null +++ b/sources/plugins/colordialog/lang/tr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'tr', { + clear: 'Temizle', + highlight: 'İşaretle', + options: 'Renk Seçenekleri', + selected: 'Seçilmiş', + title: 'Renk seç' +} ); diff --git a/sources/plugins/colordialog/lang/tt.js b/sources/plugins/colordialog/lang/tt.js new file mode 100644 index 00000000..cf443883 --- /dev/null +++ b/sources/plugins/colordialog/lang/tt.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'tt', { + clear: 'Бушату', + highlight: 'Билгеләү', + options: 'Төс көйләүләре', + selected: 'Сайланган төсләр', + title: 'Төс сайлау' +} ); diff --git a/sources/plugins/colordialog/lang/ug.js b/sources/plugins/colordialog/lang/ug.js new file mode 100644 index 00000000..4a656ebf --- /dev/null +++ b/sources/plugins/colordialog/lang/ug.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ug', { + clear: 'تازىلا', + highlight: 'يورۇت', + options: 'رەڭ تاللانمىسى', + selected: 'رەڭ تاللاڭ', + title: 'رەڭ تاللاڭ' +} ); diff --git a/sources/plugins/colordialog/lang/uk.js b/sources/plugins/colordialog/lang/uk.js new file mode 100644 index 00000000..ff6ef752 --- /dev/null +++ b/sources/plugins/colordialog/lang/uk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'uk', { + clear: 'Очистити', + highlight: 'Колір, на який вказує курсор', + options: 'Опції кольорів', + selected: 'Обраний колір', + title: 'Обрати колір' +} ); diff --git a/sources/plugins/colordialog/lang/vi.js b/sources/plugins/colordialog/lang/vi.js new file mode 100644 index 00000000..d04a2dd3 --- /dev/null +++ b/sources/plugins/colordialog/lang/vi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'vi', { + clear: 'Xóa bỏ', + highlight: 'Màu chọn', + options: 'Tùy chọn màu', + selected: 'Màu đã chọn', + title: 'Chọn màu' +} ); diff --git a/sources/plugins/colordialog/lang/zh-cn.js b/sources/plugins/colordialog/lang/zh-cn.js new file mode 100644 index 00000000..57083a4d --- /dev/null +++ b/sources/plugins/colordialog/lang/zh-cn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'zh-cn', { + clear: '清除', + highlight: '高亮', + options: '颜色选项', + selected: '选择颜色', + title: '选择颜色' +} ); diff --git a/sources/plugins/colordialog/lang/zh.js b/sources/plugins/colordialog/lang/zh.js new file mode 100644 index 00000000..d845a223 --- /dev/null +++ b/sources/plugins/colordialog/lang/zh.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'zh', { + clear: '清除', + highlight: '高亮', + options: '色彩選項', + selected: '選取的色彩', + title: '選取色彩' +} ); diff --git a/sources/plugins/colordialog/plugin.js b/sources/plugins/colordialog/plugin.js new file mode 100644 index 00000000..57f59199 --- /dev/null +++ b/sources/plugins/colordialog/plugin.js @@ -0,0 +1,71 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.colordialog = { + requires: 'dialog', + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + init: function( editor ) { + var cmd = new CKEDITOR.dialogCommand( 'colordialog' ); + cmd.editorFocus = false; + + editor.addCommand( 'colordialog', cmd ); + + CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' ); + + /** + * Open up color dialog and to receive the selected color. + * + * @param {Function} callback The callback when color dialog is closed + * @param {String} callback.color The color value received if selected on the dialog. + * @param [scope] The scope in which the callback will be bound. + * @member CKEDITOR.editor + */ + editor.getColorFromDialog = function( callback, scope ) { + var onClose = function( evt ) { + releaseHandlers( this ); + var color = evt.name == 'ok' ? this.getValueOf( 'picker', 'selectedColor' ) : null; + callback.call( scope, color ); + }; + var releaseHandlers = function( dialog ) { + dialog.removeListener( 'ok', onClose ); + dialog.removeListener( 'cancel', onClose ); + }; + var bindToDialog = function( dialog ) { + dialog.on( 'ok', onClose ); + dialog.on( 'cancel', onClose ); + }; + + editor.execCommand( 'colordialog' ); + + if ( editor._.storedDialogs && editor._.storedDialogs.colordialog ) + bindToDialog( editor._.storedDialogs.colordialog ); + else { + CKEDITOR.on( 'dialogDefinition', function( e ) { + if ( e.data.name != 'colordialog' ) + return; + + var definition = e.data.definition; + + e.removeListener(); + definition.onLoad = CKEDITOR.tools.override( definition.onLoad, + function( orginal ) { + return function() { + bindToDialog( this ); + definition.onLoad = orginal; + if ( typeof orginal == 'function' ) + orginal.call( this ); + }; + } ); + } ); + } + }; + + + } +}; + +CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog ); diff --git a/sources/plugins/contextmenu/lang/af.js b/sources/plugins/contextmenu/lang/af.js new file mode 100644 index 00000000..c2cc63a8 --- /dev/null +++ b/sources/plugins/contextmenu/lang/af.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'af', { + options: 'Konteks Spyskaart-opsies' +} ); diff --git a/sources/plugins/contextmenu/lang/ar.js b/sources/plugins/contextmenu/lang/ar.js new file mode 100644 index 00000000..cb6b0974 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ar.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ar', { + options: 'خصائص قائمة السياق' +} ); diff --git a/sources/plugins/contextmenu/lang/bg.js b/sources/plugins/contextmenu/lang/bg.js new file mode 100644 index 00000000..2c4bc028 --- /dev/null +++ b/sources/plugins/contextmenu/lang/bg.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'bg', { + options: 'Опции на контекстното меню' +} ); diff --git a/sources/plugins/contextmenu/lang/bn.js b/sources/plugins/contextmenu/lang/bn.js new file mode 100644 index 00000000..ff643525 --- /dev/null +++ b/sources/plugins/contextmenu/lang/bn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'bn', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/bs.js b/sources/plugins/contextmenu/lang/bs.js new file mode 100644 index 00000000..3267caf5 --- /dev/null +++ b/sources/plugins/contextmenu/lang/bs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'bs', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/ca.js b/sources/plugins/contextmenu/lang/ca.js new file mode 100644 index 00000000..b6da83d9 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ca', { + options: 'Opcions del menú contextual' +} ); diff --git a/sources/plugins/contextmenu/lang/cs.js b/sources/plugins/contextmenu/lang/cs.js new file mode 100644 index 00000000..63a0c8d0 --- /dev/null +++ b/sources/plugins/contextmenu/lang/cs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'cs', { + options: 'Nastavení kontextové nabídky' +} ); diff --git a/sources/plugins/contextmenu/lang/cy.js b/sources/plugins/contextmenu/lang/cy.js new file mode 100644 index 00000000..e01fb613 --- /dev/null +++ b/sources/plugins/contextmenu/lang/cy.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'cy', { + options: 'Opsiynau Dewislen Cyd-destun' +} ); diff --git a/sources/plugins/contextmenu/lang/da.js b/sources/plugins/contextmenu/lang/da.js new file mode 100644 index 00000000..aa637367 --- /dev/null +++ b/sources/plugins/contextmenu/lang/da.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'da', { + options: 'Muligheder for hjælpemenu' +} ); diff --git a/sources/plugins/contextmenu/lang/de.js b/sources/plugins/contextmenu/lang/de.js new file mode 100644 index 00000000..f9cfb44e --- /dev/null +++ b/sources/plugins/contextmenu/lang/de.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'de', { + options: 'Kontextmenüoptionen' +} ); diff --git a/sources/plugins/contextmenu/lang/el.js b/sources/plugins/contextmenu/lang/el.js new file mode 100644 index 00000000..16bf519c --- /dev/null +++ b/sources/plugins/contextmenu/lang/el.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'el', { + options: 'Επιλογές Αναδυόμενου Μενού' +} ); diff --git a/sources/plugins/contextmenu/lang/en-au.js b/sources/plugins/contextmenu/lang/en-au.js new file mode 100644 index 00000000..756dac5d --- /dev/null +++ b/sources/plugins/contextmenu/lang/en-au.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'en-au', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/en-ca.js b/sources/plugins/contextmenu/lang/en-ca.js new file mode 100644 index 00000000..61160a0c --- /dev/null +++ b/sources/plugins/contextmenu/lang/en-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'en-ca', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/en-gb.js b/sources/plugins/contextmenu/lang/en-gb.js new file mode 100644 index 00000000..64b81d07 --- /dev/null +++ b/sources/plugins/contextmenu/lang/en-gb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'en-gb', { + options: 'Context Menu Options' +} ); diff --git a/sources/plugins/contextmenu/lang/en.js b/sources/plugins/contextmenu/lang/en.js new file mode 100644 index 00000000..25522bd7 --- /dev/null +++ b/sources/plugins/contextmenu/lang/en.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'en', { + options: 'Context Menu Options' +} ); diff --git a/sources/plugins/contextmenu/lang/eo.js b/sources/plugins/contextmenu/lang/eo.js new file mode 100644 index 00000000..86c0bf31 --- /dev/null +++ b/sources/plugins/contextmenu/lang/eo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'eo', { + options: 'Opcioj de Kunteksta Menuo' +} ); diff --git a/sources/plugins/contextmenu/lang/es.js b/sources/plugins/contextmenu/lang/es.js new file mode 100644 index 00000000..91bebfa9 --- /dev/null +++ b/sources/plugins/contextmenu/lang/es.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'es', { + options: 'Opciones del menú contextual' +} ); diff --git a/sources/plugins/contextmenu/lang/et.js b/sources/plugins/contextmenu/lang/et.js new file mode 100644 index 00000000..2ff62fea --- /dev/null +++ b/sources/plugins/contextmenu/lang/et.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'et', { + options: 'Kontekstimenüü valikud' +} ); diff --git a/sources/plugins/contextmenu/lang/eu.js b/sources/plugins/contextmenu/lang/eu.js new file mode 100644 index 00000000..1f9aac01 --- /dev/null +++ b/sources/plugins/contextmenu/lang/eu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'eu', { + options: 'Testuinguru-menuaren aukerak' +} ); diff --git a/sources/plugins/contextmenu/lang/fa.js b/sources/plugins/contextmenu/lang/fa.js new file mode 100644 index 00000000..c83db4fd --- /dev/null +++ b/sources/plugins/contextmenu/lang/fa.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'fa', { + options: 'گزینه​های منوی زمینه' +} ); diff --git a/sources/plugins/contextmenu/lang/fi.js b/sources/plugins/contextmenu/lang/fi.js new file mode 100644 index 00000000..cfd3759e --- /dev/null +++ b/sources/plugins/contextmenu/lang/fi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'fi', { + options: 'Pikavalikon ominaisuudet' +} ); diff --git a/sources/plugins/contextmenu/lang/fo.js b/sources/plugins/contextmenu/lang/fo.js new file mode 100644 index 00000000..1f62a56b --- /dev/null +++ b/sources/plugins/contextmenu/lang/fo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'fo', { + options: 'Context Menu Options' +} ); diff --git a/sources/plugins/contextmenu/lang/fr-ca.js b/sources/plugins/contextmenu/lang/fr-ca.js new file mode 100644 index 00000000..d9220201 --- /dev/null +++ b/sources/plugins/contextmenu/lang/fr-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'fr-ca', { + options: 'Options du menu contextuel' +} ); diff --git a/sources/plugins/contextmenu/lang/fr.js b/sources/plugins/contextmenu/lang/fr.js new file mode 100644 index 00000000..2ecfabe8 --- /dev/null +++ b/sources/plugins/contextmenu/lang/fr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'fr', { + options: 'Options du menu contextuel' +} ); diff --git a/sources/plugins/contextmenu/lang/gl.js b/sources/plugins/contextmenu/lang/gl.js new file mode 100644 index 00000000..5ee15528 --- /dev/null +++ b/sources/plugins/contextmenu/lang/gl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'gl', { + options: 'Opcións do menú contextual' +} ); diff --git a/sources/plugins/contextmenu/lang/gu.js b/sources/plugins/contextmenu/lang/gu.js new file mode 100644 index 00000000..6ad6a358 --- /dev/null +++ b/sources/plugins/contextmenu/lang/gu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'gu', { + options: 'કોન્તેક્ષ્ત્ મેનુના વિકલ્પો' +} ); diff --git a/sources/plugins/contextmenu/lang/he.js b/sources/plugins/contextmenu/lang/he.js new file mode 100644 index 00000000..e3e9d044 --- /dev/null +++ b/sources/plugins/contextmenu/lang/he.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'he', { + options: 'אפשרויות תפריט ההקשר' +} ); diff --git a/sources/plugins/contextmenu/lang/hi.js b/sources/plugins/contextmenu/lang/hi.js new file mode 100644 index 00000000..f5317a97 --- /dev/null +++ b/sources/plugins/contextmenu/lang/hi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'hi', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/hr.js b/sources/plugins/contextmenu/lang/hr.js new file mode 100644 index 00000000..d9b47761 --- /dev/null +++ b/sources/plugins/contextmenu/lang/hr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'hr', { + options: 'Opcije izbornika' +} ); diff --git a/sources/plugins/contextmenu/lang/hu.js b/sources/plugins/contextmenu/lang/hu.js new file mode 100644 index 00000000..8a23cd90 --- /dev/null +++ b/sources/plugins/contextmenu/lang/hu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'hu', { + options: 'Helyi menü opciók' +} ); diff --git a/sources/plugins/contextmenu/lang/id.js b/sources/plugins/contextmenu/lang/id.js new file mode 100644 index 00000000..4b54a87f --- /dev/null +++ b/sources/plugins/contextmenu/lang/id.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'id', { + options: 'Opsi Konteks Pilihan' +} ); diff --git a/sources/plugins/contextmenu/lang/is.js b/sources/plugins/contextmenu/lang/is.js new file mode 100644 index 00000000..cb5d8a96 --- /dev/null +++ b/sources/plugins/contextmenu/lang/is.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'is', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/it.js b/sources/plugins/contextmenu/lang/it.js new file mode 100644 index 00000000..602dd30e --- /dev/null +++ b/sources/plugins/contextmenu/lang/it.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'it', { + options: 'Opzioni del menù contestuale' +} ); diff --git a/sources/plugins/contextmenu/lang/ja.js b/sources/plugins/contextmenu/lang/ja.js new file mode 100644 index 00000000..131cadf8 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ja.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ja', { + options: 'コンテキストメニューオプション' +} ); diff --git a/sources/plugins/contextmenu/lang/ka.js b/sources/plugins/contextmenu/lang/ka.js new file mode 100644 index 00000000..9398fcb9 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ka.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ka', { + options: 'კონტექსტური მენიუს პარამეტრები' +} ); diff --git a/sources/plugins/contextmenu/lang/km.js b/sources/plugins/contextmenu/lang/km.js new file mode 100644 index 00000000..5e29edca --- /dev/null +++ b/sources/plugins/contextmenu/lang/km.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'km', { + options: 'ជម្រើស​ម៉ឺនុយ​បរិបទ' +} ); diff --git a/sources/plugins/contextmenu/lang/ko.js b/sources/plugins/contextmenu/lang/ko.js new file mode 100644 index 00000000..f8dbc304 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ko.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ko', { + options: '컨텍스트 메뉴 옵션' +} ); diff --git a/sources/plugins/contextmenu/lang/ku.js b/sources/plugins/contextmenu/lang/ku.js new file mode 100644 index 00000000..9da10a07 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ku.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ku', { + options: 'هەڵبژاردەی لیستەی کلیکی دەستی ڕاست' +} ); diff --git a/sources/plugins/contextmenu/lang/lt.js b/sources/plugins/contextmenu/lang/lt.js new file mode 100644 index 00000000..1927f68e --- /dev/null +++ b/sources/plugins/contextmenu/lang/lt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'lt', { + options: 'Kontekstinio meniu parametrai' +} ); diff --git a/sources/plugins/contextmenu/lang/lv.js b/sources/plugins/contextmenu/lang/lv.js new file mode 100644 index 00000000..44271af9 --- /dev/null +++ b/sources/plugins/contextmenu/lang/lv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'lv', { + options: 'Uznirstošās izvēlnes uzstādījumi' +} ); diff --git a/sources/plugins/contextmenu/lang/mk.js b/sources/plugins/contextmenu/lang/mk.js new file mode 100644 index 00000000..6540c9cc --- /dev/null +++ b/sources/plugins/contextmenu/lang/mk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'mk', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/mn.js b/sources/plugins/contextmenu/lang/mn.js new file mode 100644 index 00000000..effdcdd2 --- /dev/null +++ b/sources/plugins/contextmenu/lang/mn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'mn', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/ms.js b/sources/plugins/contextmenu/lang/ms.js new file mode 100644 index 00000000..f5c2f413 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ms.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ms', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/nb.js b/sources/plugins/contextmenu/lang/nb.js new file mode 100644 index 00000000..dcdcb514 --- /dev/null +++ b/sources/plugins/contextmenu/lang/nb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'nb', { + options: 'Alternativer for høyreklikkmeny' +} ); diff --git a/sources/plugins/contextmenu/lang/nl.js b/sources/plugins/contextmenu/lang/nl.js new file mode 100644 index 00000000..e8be1dcb --- /dev/null +++ b/sources/plugins/contextmenu/lang/nl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'nl', { + options: 'Contextmenu opties' +} ); diff --git a/sources/plugins/contextmenu/lang/no.js b/sources/plugins/contextmenu/lang/no.js new file mode 100644 index 00000000..4818b9a6 --- /dev/null +++ b/sources/plugins/contextmenu/lang/no.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'no', { + options: 'Alternativer for høyreklikkmeny' +} ); diff --git a/sources/plugins/contextmenu/lang/pl.js b/sources/plugins/contextmenu/lang/pl.js new file mode 100644 index 00000000..4f40a9be --- /dev/null +++ b/sources/plugins/contextmenu/lang/pl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'pl', { + options: 'Opcje menu kontekstowego' +} ); diff --git a/sources/plugins/contextmenu/lang/pt-br.js b/sources/plugins/contextmenu/lang/pt-br.js new file mode 100644 index 00000000..9a53a148 --- /dev/null +++ b/sources/plugins/contextmenu/lang/pt-br.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'pt-br', { + options: 'Opções Menu de Contexto' +} ); diff --git a/sources/plugins/contextmenu/lang/pt.js b/sources/plugins/contextmenu/lang/pt.js new file mode 100644 index 00000000..9e4cb095 --- /dev/null +++ b/sources/plugins/contextmenu/lang/pt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'pt', { + options: 'Menu de opções de contexto' +} ); diff --git a/sources/plugins/contextmenu/lang/ro.js b/sources/plugins/contextmenu/lang/ro.js new file mode 100644 index 00000000..5d58b996 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ro.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ro', { + options: 'Opțiuni Meniu Contextual' +} ); diff --git a/sources/plugins/contextmenu/lang/ru.js b/sources/plugins/contextmenu/lang/ru.js new file mode 100644 index 00000000..e53098a2 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ru.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ru', { + options: 'Параметры контекстного меню' +} ); diff --git a/sources/plugins/contextmenu/lang/si.js b/sources/plugins/contextmenu/lang/si.js new file mode 100644 index 00000000..96687455 --- /dev/null +++ b/sources/plugins/contextmenu/lang/si.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'si', { + options: 'අනතර්ග ලේඛණ විකල්ප' +} ); diff --git a/sources/plugins/contextmenu/lang/sk.js b/sources/plugins/contextmenu/lang/sk.js new file mode 100644 index 00000000..81bdfc46 --- /dev/null +++ b/sources/plugins/contextmenu/lang/sk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sk', { + options: 'Možnosti kontextového menu' +} ); diff --git a/sources/plugins/contextmenu/lang/sl.js b/sources/plugins/contextmenu/lang/sl.js new file mode 100644 index 00000000..a9b96c13 --- /dev/null +++ b/sources/plugins/contextmenu/lang/sl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sl', { + options: 'Možnosti Kontekstnega Menija' +} ); diff --git a/sources/plugins/contextmenu/lang/sq.js b/sources/plugins/contextmenu/lang/sq.js new file mode 100644 index 00000000..95bd4564 --- /dev/null +++ b/sources/plugins/contextmenu/lang/sq.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sq', { + options: 'Mundësitë e Menysë së Kontekstit' +} ); diff --git a/sources/plugins/contextmenu/lang/sr-latn.js b/sources/plugins/contextmenu/lang/sr-latn.js new file mode 100644 index 00000000..42dac9f1 --- /dev/null +++ b/sources/plugins/contextmenu/lang/sr-latn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sr-latn', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/sr.js b/sources/plugins/contextmenu/lang/sr.js new file mode 100644 index 00000000..a3f61a8d --- /dev/null +++ b/sources/plugins/contextmenu/lang/sr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sr', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/sv.js b/sources/plugins/contextmenu/lang/sv.js new file mode 100644 index 00000000..2f141586 --- /dev/null +++ b/sources/plugins/contextmenu/lang/sv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'sv', { + options: 'Context Menu Options' +} ); diff --git a/sources/plugins/contextmenu/lang/th.js b/sources/plugins/contextmenu/lang/th.js new file mode 100644 index 00000000..9c51d1c9 --- /dev/null +++ b/sources/plugins/contextmenu/lang/th.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'th', { + options: 'Context Menu Options' // MISSING +} ); diff --git a/sources/plugins/contextmenu/lang/tr.js b/sources/plugins/contextmenu/lang/tr.js new file mode 100644 index 00000000..adc7c037 --- /dev/null +++ b/sources/plugins/contextmenu/lang/tr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'tr', { + options: 'İçerik Menüsü Seçenekleri' +} ); diff --git a/sources/plugins/contextmenu/lang/tt.js b/sources/plugins/contextmenu/lang/tt.js new file mode 100644 index 00000000..992e8938 --- /dev/null +++ b/sources/plugins/contextmenu/lang/tt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'tt', { + options: 'Контекст меню үзлекләре' +} ); diff --git a/sources/plugins/contextmenu/lang/ug.js b/sources/plugins/contextmenu/lang/ug.js new file mode 100644 index 00000000..05926920 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ug.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'ug', { + options: 'قىسقا يول تىزىملىك تاللانمىسى' +} ); diff --git a/sources/plugins/contextmenu/lang/uk.js b/sources/plugins/contextmenu/lang/uk.js new file mode 100644 index 00000000..cda18f62 --- /dev/null +++ b/sources/plugins/contextmenu/lang/uk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'uk', { + options: 'Опції контекстного меню' +} ); diff --git a/sources/plugins/contextmenu/lang/vi.js b/sources/plugins/contextmenu/lang/vi.js new file mode 100644 index 00000000..79c6cd65 --- /dev/null +++ b/sources/plugins/contextmenu/lang/vi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'vi', { + options: 'Tùy chọn menu bổ xung' +} ); diff --git a/sources/plugins/contextmenu/lang/zh-cn.js b/sources/plugins/contextmenu/lang/zh-cn.js new file mode 100644 index 00000000..ace5a341 --- /dev/null +++ b/sources/plugins/contextmenu/lang/zh-cn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'zh-cn', { + options: '快捷菜单选项' +} ); diff --git a/sources/plugins/contextmenu/lang/zh.js b/sources/plugins/contextmenu/lang/zh.js new file mode 100644 index 00000000..db18ee53 --- /dev/null +++ b/sources/plugins/contextmenu/lang/zh.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'contextmenu', 'zh', { + options: '內容功能表選項' +} ); diff --git a/sources/plugins/contextmenu/plugin.js b/sources/plugins/contextmenu/plugin.js new file mode 100644 index 00000000..111e1383 --- /dev/null +++ b/sources/plugins/contextmenu/plugin.js @@ -0,0 +1,159 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.add( 'contextmenu', { + requires: 'menu', + + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + + // Make sure the base class (CKEDITOR.menu) is loaded before it (#3318). + onLoad: function() { + /** + * Class replacing the non-configurable native context menu with a configurable CKEditor's equivalent. + * + * @class + * @extends CKEDITOR.menu + */ + CKEDITOR.plugins.contextMenu = CKEDITOR.tools.createClass( { + base: CKEDITOR.menu, + + /** + * Creates the CKEDITOR.plugins.contextMenu class instance. + * + * @constructor + * @param {CKEDITOR.editor} editor + */ + $: function( editor ) { + this.base.call( this, editor, { + panel: { + className: 'cke_menu_panel', + attributes: { + 'aria-label': editor.lang.contextmenu.options + } + } + } ); + }, + + proto: { + /** + * Starts watching on native context menu triggers (Option key, right click) on the given element. + * + * @param {CKEDITOR.dom.element} element + * @param {Boolean} [nativeContextMenuOnCtrl] Whether to open native context menu if the + * Ctrl key is held on opening the context menu. See {@link CKEDITOR.config#browserContextMenuOnCtrl}. + */ + addTarget: function( element, nativeContextMenuOnCtrl ) { + element.on( 'contextmenu', function( event ) { + var domEvent = event.data, + isCtrlKeyDown = + // Safari on Windows always show 'ctrlKey' as true in 'contextmenu' event, + // which make this property unreliable. (#4826) + ( CKEDITOR.env.webkit ? holdCtrlKey : ( CKEDITOR.env.mac ? domEvent.$.metaKey : domEvent.$.ctrlKey ) ); + + if ( nativeContextMenuOnCtrl && isCtrlKeyDown ) + return; + + // Cancel the browser context menu. + domEvent.preventDefault(); + + // Fix selection when non-editable element in Webkit/Blink (Mac) (#11306). + if ( CKEDITOR.env.mac && CKEDITOR.env.webkit ) { + var editor = this.editor, + contentEditableParent = new CKEDITOR.dom.elementPath( domEvent.getTarget(), editor.editable() ).contains( function( el ) { + // Return when non-editable or nested editable element is found. + return el.hasAttribute( 'contenteditable' ); + }, true ); // Exclude editor's editable. + + // Fake selection for non-editables only (to exclude nested editables). + if ( contentEditableParent && contentEditableParent.getAttribute( 'contenteditable' ) == 'false' ) + editor.getSelection().fake( contentEditableParent ); + } + + var doc = domEvent.getTarget().getDocument(), + offsetParent = domEvent.getTarget().getDocument().getDocumentElement(), + fromFrame = !doc.equals( CKEDITOR.document ), + scroll = doc.getWindow().getScrollPosition(), + offsetX = fromFrame ? domEvent.$.clientX : domEvent.$.pageX || scroll.x + domEvent.$.clientX, + offsetY = fromFrame ? domEvent.$.clientY : domEvent.$.pageY || scroll.y + domEvent.$.clientY; + + CKEDITOR.tools.setTimeout( function() { + this.open( offsetParent, null, offsetX, offsetY ); + + // IE needs a short while to allow selection change before opening menu. (#7908) + }, CKEDITOR.env.ie ? 200 : 0, this ); + }, this ); + + if ( CKEDITOR.env.webkit ) { + var holdCtrlKey, + onKeyDown = function( event ) { + holdCtrlKey = CKEDITOR.env.mac ? event.data.$.metaKey : event.data.$.ctrlKey; + }, + resetOnKeyUp = function() { + holdCtrlKey = 0; + }; + + element.on( 'keydown', onKeyDown ); + element.on( 'keyup', resetOnKeyUp ); + element.on( 'contextmenu', resetOnKeyUp ); + } + }, + + /** + * Opens the context menu in the given location. See the {@link CKEDITOR.menu#show} method. + * + * @param {CKEDITOR.dom.element} offsetParent + * @param {Number} [corner] + * @param {Number} [offsetX] + * @param {Number} [offsetY] + */ + open: function( offsetParent, corner, offsetX, offsetY ) { + this.editor.focus(); + offsetParent = offsetParent || CKEDITOR.document.getDocumentElement(); + + // #9362: Force selection check to update commands' states in the new context. + this.editor.selectionChange( 1 ); + + this.show( offsetParent, corner, offsetX, offsetY ); + } + } + } ); + }, + + beforeInit: function( editor ) { + /** + * @readonly + * @property {CKEDITOR.plugins.contextMenu} contextMenu + * @member CKEDITOR.editor + */ + var contextMenu = editor.contextMenu = new CKEDITOR.plugins.contextMenu( editor ); + + editor.on( 'contentDom', function() { + contextMenu.addTarget( editor.editable(), editor.config.browserContextMenuOnCtrl !== false ); + } ); + + editor.addCommand( 'contextMenu', { + exec: function() { + editor.contextMenu.open( editor.document.getBody() ); + } + } ); + + editor.setKeystroke( CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ); + editor.setKeystroke( CKEDITOR.CTRL + CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ); + } +} ); + +/** + * Whether to show the browser native context menu when the Ctrl or + * Meta (Mac) key is pressed on opening the context menu with the + * right mouse button click or the Menu key. + * + * config.browserContextMenuOnCtrl = false; + * + * @since 3.0.2 + * @cfg {Boolean} [browserContextMenuOnCtrl=true] + * @member CKEDITOR.config + */ diff --git a/sources/plugins/dialog/dialogDefinition.js b/sources/plugins/dialog/dialogDefinition.js new file mode 100644 index 00000000..79306795 --- /dev/null +++ b/sources/plugins/dialog/dialogDefinition.js @@ -0,0 +1,1032 @@ +// jscs:disable disallowMixedSpacesAndTabs +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview Defines the "virtual" dialog, dialog content and dialog button + * definition classes. + */ + +/** + * The definition of a dialog window. + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialogs. + * + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * CKEDITOR.dialog.add( 'testOnly', function( editor ) { + * return { + * title: 'Test Dialog', + * resizable: CKEDITOR.DIALOG_RESIZE_BOTH, + * minWidth: 500, + * minHeight: 400, + * contents: [ + * { + * id: 'tab1', + * label: 'First Tab', + * title: 'First Tab Title', + * accessKey: 'Q', + * elements: [ + * { + * type: 'text', + * label: 'Test Text 1', + * id: 'testText1', + * 'default': 'hello world!' + * } + * ] + * } + * ] + * }; + * } ); + * + * @class CKEDITOR.dialog.definition + */ + +/** + * The dialog title, displayed in the dialog's header. Required. + * + * @property {String} title + */ + +/** + * How the dialog can be resized, must be one of the four contents defined below. + * + * * {@link CKEDITOR#DIALOG_RESIZE_NONE} + * * {@link CKEDITOR#DIALOG_RESIZE_WIDTH} + * * {@link CKEDITOR#DIALOG_RESIZE_HEIGHT} + * * {@link CKEDITOR#DIALOG_RESIZE_BOTH} + * + * @property {Number} [resizable=CKEDITOR.DIALOG_RESIZE_NONE] + */ + +/** + * The minimum width of the dialog, in pixels. + * + * @property {Number} [minWidth=600] + */ + +/** + * The minimum height of the dialog, in pixels. + * + * @property {Number} [minHeight=400] + */ + + +/** + * The initial width of the dialog, in pixels. + * + * @since 3.5.3 + * @property {Number} [width=CKEDITOR.dialog.definition#minWidth] + */ + +/** + * The initial height of the dialog, in pixels. + * + * @since 3.5.3 + * @property {Number} [height=CKEDITOR.dialog.definition.minHeight] + */ + +/** + * The buttons in the dialog, defined as an array of + * {@link CKEDITOR.dialog.definition.button} objects. + * + * @property {Array} [buttons=[ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ]] + */ + +/** + * The contents in the dialog, defined as an array of + * {@link CKEDITOR.dialog.definition.content} objects. Required. + * + * @property {Array} contents + */ + +/** + * The function to execute when OK is pressed. + * + * @property {Function} onOk + */ + +/** + * The function to execute when Cancel is pressed. + * + * @property {Function} onCancel + */ + +/** + * The function to execute when the dialog is displayed for the first time. + * + * @property {Function} onLoad + */ + +/** + * The function to execute when the dialog is loaded (executed every time the dialog is opened). + * + * @property {Function} onShow + */ + +/** + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialog content pages. + * + * @class CKEDITOR.dialog.definition.content. + */ + +/** + * The id of the content page. + * + * @property {String} id + */ + +/** + * The tab label of the content page. + * + * @property {String} label + */ + +/** + * The popup message of the tab label. + * + * @property {String} title + */ + +/** + * The CTRL hotkey for switching to the tab. + * + * contentDefinition.accessKey = 'Q'; // Switch to this page when CTRL-Q is pressed. + * + * @property {String} accessKey + */ + +/** + * The UI elements contained in this content page, defined as an array of + * {@link CKEDITOR.dialog.definition.uiElement} objects. + * + * @property {Array} elements + */ + +/** + * The definition of user interface element (textarea, radio etc). + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialog UI elements. + * + * @class CKEDITOR.dialog.definition.uiElement + * @see CKEDITOR.ui.dialog.uiElement + */ + +/** + * The id of the UI element. + * + * @property {String} id + */ + +/** + * The type of the UI element. Required. + * + * @property {String} type + */ + +/** + * The popup label of the UI element. + * + * @property {String} title + */ + +/** + * The content that needs to be allowed to enable this UI element. + * All formats accepted by {@link CKEDITOR.filter#check} may be used. + * + * When all UI elements in a tab are disabled, this tab will be disabled automatically. + * + * @property {String/Object/CKEDITOR.style} requiredContent + */ + +/** + * CSS class names to append to the UI element. + * + * @property {String} className + */ + +/** + * Inline CSS classes to append to the UI element. + * + * @property {String} style + */ + +/** + * Horizontal alignment (in container) of the UI element. + * + * @property {String} align + */ + +/** + * Function to execute the first time the UI element is displayed. + * + * @property {Function} onLoad + */ + +/** + * Function to execute whenever the UI element's parent dialog is displayed. + * + * @property {Function} onShow + */ + +/** + * Function to execute whenever the UI element's parent dialog is closed. + * + * @property {Function} onHide + */ + +/** + * Function to execute whenever the UI element's parent + * dialog's {@link CKEDITOR.dialog#setupContent} method is executed. + * It usually takes care of the respective UI element as a standalone element. + * + * @property {Function} setup + */ + +/** + * Function to execute whenever the UI element's parent + * dialog's {@link CKEDITOR.dialog#commitContent} method is executed. + * It usually takes care of the respective UI element as a standalone element. + * + * @property {Function} commit + */ + +// ----- hbox ----------------------------------------------------------------- + +/** + * Horizontal layout box for dialog UI elements, auto-expends to available width of container. + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create horizontal layouts. + * + * Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.hbox} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * type: 'hbox', + * widths: [ '25%', '25%', '50%' ], + * children: [ + * { + * type: 'text', + * id: 'id1', + * width: '40px', + * }, + * { + * type: 'text', + * id: 'id2', + * width: '40px', + * }, + * { + * type: 'text', + * id: 'id3' + * } + * ] + * } + * + * @class CKEDITOR.dialog.definition.hbox + * @extends CKEDITOR.dialog.definition.uiElement + */ + +/** + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container. + * + * @property {Array} children + */ + +/** + * (Optional) The widths of child cells. + * + * @property {Array} widths + */ + +/** + * (Optional) The height of the layout. + * + * @property {Number} height + */ + +/** + * The CSS styles to apply to this element. + * + * @property {String} styles + */ + +/** + * (Optional) The padding width inside child cells. Example: 0, 1. + * + * @property {Number} padding + */ + +/** + * (Optional) The alignment of the whole layout. Example: center, top. + * + * @property {String} align + */ + +// ----- vbox ----------------------------------------------------------------- + +/** + * Vertical layout box for dialog UI elements. + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create vertical layouts. + * + * Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.vbox} object and can + * be accessed with {@link CKEDITOR.dialog#getContentElement}. + * + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * type: 'vbox', + * align: 'right', + * width: '200px', + * children: [ + * { + * type: 'text', + * id: 'age', + * label: 'Age' + * }, + * { + * type: 'text', + * id: 'sex', + * label: 'Sex' + * }, + * { + * type: 'text', + * id: 'nationality', + * label: 'Nationality' + * } + * ] + * } + * + * @class CKEDITOR.dialog.definition.vbox + * @extends CKEDITOR.dialog.definition.uiElement + */ + +/** + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container. + * + * @property {Array} children + */ + +/** + * (Optional) The width of the layout. + * + * @property {Array} width + */ + +/** + * (Optional) The heights of individual cells. + * + * @property {Number} heights + */ + +/** + * The CSS styles to apply to this element. + * + * @property {String} styles + */ + +/** + * (Optional) The padding width inside child cells. Example: 0, 1. + * + * @property {Number} padding + */ + +/** + * (Optional) The alignment of the whole layout. Example: center, top. + * + * @property {String} align + */ + +/** + * (Optional) Whether the layout should expand vertically to fill its container. + * + * @property {Boolean} expand + */ + +// ----- labeled element ------------------------------------------------------ + +/** + * The definition of labeled user interface element (textarea, textInput etc). + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialog UI elements. + * + * @class CKEDITOR.dialog.definition.labeledElement + * @extends CKEDITOR.dialog.definition.uiElement + * @see CKEDITOR.ui.dialog.labeledElement + */ + +/** + * The label of the UI element. + * + * { + * type: 'text', + * label: 'My Label' + * } + * + * @property {String} label + */ + +/** + * (Optional) Specify the layout of the label. Set to `'horizontal'` for horizontal layout. + * The default layout is vertical. + * + * { + * type: 'text', + * label: 'My Label', + * labelLayout: 'horizontal' + * } + * + * @property {String} labelLayout + */ + +/** + * (Optional) Applies only to horizontal layouts: a two elements array of lengths to specify the widths of the + * label and the content element. See also {@link CKEDITOR.dialog.definition.labeledElement#labelLayout}. + * + * { + * type: 'text', + * label: 'My Label', + * labelLayout: 'horizontal', + * widths: [100, 200] + * } + * + * @property {Array} widths + */ + +/** + * Specify the inline style of the uiElement label. + * + * { + * type: 'text', + * label: 'My Label', + * labelStyle: 'color: red' + * } + * + * @property {String} labelStyle + */ + + +/** + * Specify the inline style of the input element. + * + * { + * type: 'text', + * label: 'My Label', + * inputStyle: 'text-align: center' + * } + * + * @since 3.6.1 + * @property {String} inputStyle + */ + +/** + * Specify the inline style of the input element container. + * + * { + * type: 'text', + * label: 'My Label', + * controlStyle: 'width: 3em' + * } + * + * @since 3.6.1 + * @property {String} controlStyle + */ + +// ----- button --------------------------------------------------------------- + +/** + * The definition of a button. + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create buttons. + * + * Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.button} object + * and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog#add}. + * + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * type: 'button', + * id: 'buttonId', + * label: 'Click me', + * title: 'My title', + * onClick: function() { + * // this = CKEDITOR.ui.dialog.button + * alert( 'Clicked: ' + this.id ); + * } + * } + * + * @class CKEDITOR.dialog.definition.button + * @extends CKEDITOR.dialog.definition.uiElement + */ + +/** + * Whether the button is disabled. + * + * @property {Boolean} disabled + */ + +/** + * The label of the UI element. + * + * @property {String} label + */ + +// ----- checkbox ------ +/** + * The definition of a checkbox element. + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create groups of checkbox buttons. + * + * Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.checkbox} object + * and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog#add}. + * + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * type: 'checkbox', + * id: 'agree', + * label: 'I agree', + * 'default': 'checked', + * onClick: function() { + * // this = CKEDITOR.ui.dialog.checkbox + * alert( 'Checked: ' + this.getValue() ); + * } + * } + * + * @class CKEDITOR.dialog.definition.checkbox + * @extends CKEDITOR.dialog.definition.uiElement + */ + +/** + * (Optional) The validation function. + * + * @property {Function} validate + */ + +/** + * The label of the UI element. + * + * @property {String} label + */ + +/** + * The default state. + * + * @property {String} [default='' (unchecked)] + */ + +// ----- file ----------------------------------------------------------------- + +/** + * The definition of a file upload input. + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create file upload elements. + * + * Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.file} object + * and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog#add}. + * + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * type: 'file', + * id: 'upload', + * label: 'Select file from your computer', + * size: 38 + * }, + * { + * type: 'fileButton', + * id: 'fileId', + * label: 'Upload file', + * 'for': [ 'tab1', 'upload' ], + * filebrowser: { + * onSelect: function( fileUrl, data ) { + * alert( 'Successfully uploaded: ' + fileUrl ); + * } + * } + * } + * + * @class CKEDITOR.dialog.definition.file + * @extends CKEDITOR.dialog.definition.labeledElement + */ + +/** + * (Optional) The validation function. + * + * @property {Function} validate + */ + +/** + * (Optional) The action attribute of the form element associated with this file upload input. + * If empty, CKEditor will use path to server connector for currently opened folder. + * + * @property {String} action + */ + +/** + * The size of the UI element. + * + * @property {Number} size + */ + +// ----- fileButton ----------------------------------------------------------- + +/** + * The definition of a button for submitting the file in a file upload input. + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create a button for submitting the file in a file upload input. + * + * Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.fileButton} object + * and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog#add}. + * + * @class CKEDITOR.dialog.definition.fileButton + * @extends CKEDITOR.dialog.definition.uiElement + */ + +/** + * (Optional) The validation function. + * + * @property {Function} validate + */ + +/** + * The label of the UI element. + * + * @property {String} label + */ + +/** + * The instruction for CKEditor how to deal with file upload. + * By default, the file and fileButton elements will not work "as expected" if this attribute is not set. + * + * // Update field with id 'txtUrl' in the 'tab1' tab when file is uploaded. + * filebrowser: 'tab1:txtUrl' + * + * // Call custom onSelect function when file is successfully uploaded. + * filebrowser: { + * onSelect: function( fileUrl, data ) { + * alert( 'Successfully uploaded: ' + fileUrl ); + * } + * } + * + * @property {String} filebrowser/Object + */ + +/** + * An array that contains pageId and elementId of the file upload input element for which this button is created. + * + * [ pageId, elementId ] + * + * @property {String} for + */ + +// ----- html ----------------------------------------------------------------- + +/** + * The definition of a raw HTML element. + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create elements made from raw HTML code. + * + * Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.html} object + * and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog#add}. + * To access HTML elements use {@link CKEDITOR.dom.document#getById}. + * + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example 1: + * { + * type: 'html', + * html: '

This is some sample HTML content.

' + * } + * + * // Example 2: + * // Complete sample with document.getById() call when the "Ok" button is clicked. + * var dialogDefinition = { + * title: 'Sample dialog', + * minWidth: 300, + * minHeight: 200, + * onOk: function() { + * // "this" is now a CKEDITOR.dialog object. + * var document = this.getElement().getDocument(); + * // document = CKEDITOR.dom.document + * var element = document.getById( 'myDiv' ); + * if ( element ) + * alert( element.getHtml() ); + * }, + * contents: [ + * { + * id: 'tab1', + * label: '', + * title: '', + * elements: [ + * { + * type: 'html', + * html: '
Sample text.
Another div.
' + * } + * ] + * } + * ], + * buttons: [ CKEDITOR.dialog.cancelButton, CKEDITOR.dialog.okButton ] + * }; + * + * @class CKEDITOR.dialog.definition.html + * @extends CKEDITOR.dialog.definition.uiElement + */ + +/** + * (Required) HTML code of this element. + * + * @property {String} html + */ + +// ----- radio ---------------------------------------------------------------- + +/** + * The definition of a radio group. + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create groups of radio buttons. + * + * Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.radio} object + * and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog#add}. + * + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * type: 'radio', + * id: 'country', + * label: 'Which country is bigger', + * items: [ [ 'France', 'FR' ], [ 'Germany', 'DE' ] ], + * style: 'color: green', + * 'default': 'DE', + * onClick: function() { + * // this = CKEDITOR.ui.dialog.radio + * alert( 'Current value: ' + this.getValue() ); + * } + * } + * + * @class CKEDITOR.dialog.definition.radio + * @extends CKEDITOR.dialog.definition.labeledElement + */ + +/** + * The default value. + * + * @property {String} default + */ + +/** + * (Optional) The validation function. + * + * @property {Function} validate + */ + +/** + * An array of options. Each option is a 1- or 2-item array of format `[ 'Description', 'Value' ]`. + * If `'Value'` is missing, then the value would be assumed to be the same as the description. + * + * @property {Array} items + */ + +// ----- selectElement -------------------------------------------------------- + +/** + * The definition of a select element. + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create select elements. + * + * Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.select} object + * and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog#add}. + * + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * // Example: + * { + * type: 'select', + * id: 'sport', + * label: 'Select your favourite sport', + * items: [ [ 'Basketball' ], [ 'Baseball' ], [ 'Hockey' ], [ 'Football' ] ], + * 'default': 'Football', + * onChange: function( api ) { + * // this = CKEDITOR.ui.dialog.select + * alert( 'Current value: ' + this.getValue() ); + * } + * } + * + * @class CKEDITOR.dialog.definition.select + * @extends CKEDITOR.dialog.definition.labeledElement + */ + +/** + * The default value. + * + * @property {String} default + */ + +/** + * (Optional) The validation function. + * + * @property {Function} validate + */ + +/** + * An array of options. Each option is a 1- or 2-item array of format `[ 'Description', 'Value' ]`. + * If `'Value'` is missing, then the value would be assumed to be the same as the description. + * + * @property {Array} items + */ + +/** + * (Optional) Set this to true if you'd like to have a multiple-choice select box. + * + * @property {Boolean} [multiple=false] + */ + +/** + * (Optional) The number of items to display in the select box. + * + * @property {Number} size + */ + +// ----- textInput ------------------------------------------------------------ + +/** + * The definition of a text field (single line). + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create text fields. + * + * Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.textInput} object + * and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog#add}. + * + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * { + * type: 'text', + * id: 'name', + * label: 'Your name', + * 'default': '', + * validate: function() { + * if ( !this.getValue() ) { + * api.openMsgDialog( '', 'Name cannot be empty.' ); + * return false; + * } + * } + * } + * + * @class CKEDITOR.dialog.definition.textInput + * @extends CKEDITOR.dialog.definition.labeledElement + */ + +/** + * The default value. + * + * @property {String} default + */ + +/** + * (Optional) The maximum length. + * + * @property {Number} maxLength + */ + +/** + * (Optional) The size of the input field. + * + * @property {Number} size + */ + +/** + * (Optional) The validation function. + * + * @property {Function} validate + */ + +/** + * @property bidi + * @inheritdoc CKEDITOR.dialog.definition.textarea#bidi + */ + +// ----- textarea ------------------------------------------------------------- + +/** + * The definition of a text field (multiple lines). + * + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create textarea. + * + * Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.textarea} object + * and can be accessed with {@link CKEDITOR.dialog#getContentElement}. + * + * For a complete example of dialog definition, please check {@link CKEDITOR.dialog#add}. + * +* // There is no constructor for this class, the user just has to define an +* // object with the appropriate properties. +* +* // Example: +* { +* type: 'textarea', +* id: 'message', +* label: 'Your comment', +* 'default': '', +* validate: function() { +* if ( this.getValue().length < 5 ) { +* api.openMsgDialog( 'The comment is too short.' ); +* return false; +* } +* } +* } + * + * @class CKEDITOR.dialog.definition.textarea + * @extends CKEDITOR.dialog.definition.labeledElement + */ + +/** + * The number of rows. + * + * @property {Number} rows + */ + +/** + * The number of columns. + * + * @property {Number} cols + */ + +/** + * (Optional) The validation function. + * + * @property {Function} validate + */ + +/** + * The default value. + * + * @property {String} default + */ + +/** + * Whether the text direction of this input should be togglable using the following keystrokes: + * + * * *Shift+Alt+End* – switch to Right-To-Left, + * * *Shift+Alt+Home* – switch to Left-To-Right. + * + * By default the input will be loaded without any text direction set, which means that + * the direction will be inherited from the editor's text direction. + * + * If the direction was set, a marker will be prepended to every non-empty value of this input: + * + * * [`\u202A`](http://unicode.org/cldr/utility/character.jsp?a=202A) – for Right-To-Left, + * * [`\u202B`](http://unicode.org/cldr/utility/character.jsp?a=202B) – for Left-To-Right. + * + * This marker allows for restoring the same text direction upon the next dialog opening. + * + * @since 4.5 + * @property {Boolean} bidi + */ diff --git a/sources/plugins/dialog/plugin.js b/sources/plugins/dialog/plugin.js new file mode 100644 index 00000000..751d7981 --- /dev/null +++ b/sources/plugins/dialog/plugin.js @@ -0,0 +1,3398 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview The floating dialog plugin. + */ + +/** + * No resize for this dialog. + * + * @readonly + * @property {Number} [=0] + * @member CKEDITOR + */ +CKEDITOR.DIALOG_RESIZE_NONE = 0; + +/** + * Only allow horizontal resizing for this dialog, disable vertical resizing. + * + * @readonly + * @property {Number} [=1] + * @member CKEDITOR + */ +CKEDITOR.DIALOG_RESIZE_WIDTH = 1; + +/** + * Only allow vertical resizing for this dialog, disable horizontal resizing. + * + * @readonly + * @property {Number} [=2] + * @member CKEDITOR + */ +CKEDITOR.DIALOG_RESIZE_HEIGHT = 2; + +/** + * Allow the dialog to be resized in both directions. + * + * @readonly + * @property {Number} [=3] + * @member CKEDITOR + */ +CKEDITOR.DIALOG_RESIZE_BOTH = 3; + +/** + * Dialog state when idle. + * + * @readonly + * @property {Number} [=1] + * @member CKEDITOR + */ +CKEDITOR.DIALOG_STATE_IDLE = 1; + +/** + * Dialog state when busy. + * + * @readonly + * @property {Number} [=2] + * @member CKEDITOR + */ +CKEDITOR.DIALOG_STATE_BUSY = 2; + +( function() { + var cssLength = CKEDITOR.tools.cssLength; + + function isTabVisible( tabId ) { + return !!this._.tabs[ tabId ][ 0 ].$.offsetHeight; + } + + function getPreviousVisibleTab() { + var tabId = this._.currentTabId, + length = this._.tabIdList.length, + tabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, tabId ) + length; + + for ( var i = tabIndex - 1; i > tabIndex - length; i-- ) { + if ( isTabVisible.call( this, this._.tabIdList[ i % length ] ) ) + return this._.tabIdList[ i % length ]; + } + + return null; + } + + function getNextVisibleTab() { + var tabId = this._.currentTabId, + length = this._.tabIdList.length, + tabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, tabId ); + + for ( var i = tabIndex + 1; i < tabIndex + length; i++ ) { + if ( isTabVisible.call( this, this._.tabIdList[ i % length ] ) ) + return this._.tabIdList[ i % length ]; + } + + return null; + } + + + function clearOrRecoverTextInputValue( container, isRecover ) { + var inputs = container.$.getElementsByTagName( 'input' ); + for ( var i = 0, length = inputs.length; i < length; i++ ) { + var item = new CKEDITOR.dom.element( inputs[ i ] ); + + if ( item.getAttribute( 'type' ).toLowerCase() == 'text' ) { + if ( isRecover ) { + item.setAttribute( 'value', item.getCustomData( 'fake_value' ) || '' ); + item.removeCustomData( 'fake_value' ); + } else { + item.setCustomData( 'fake_value', item.getAttribute( 'value' ) ); + item.setAttribute( 'value', '' ); + } + } + } + } + + // Handle dialog element validation state UI changes. + function handleFieldValidated( isValid, msg ) { + var input = this.getInputElement(); + if ( input ) + isValid ? input.removeAttribute( 'aria-invalid' ) : input.setAttribute( 'aria-invalid', true ); + + if ( !isValid ) { + if ( this.select ) + this.select(); + else + this.focus(); + } + + msg && alert( msg ); // jshint ignore:line + + this.fire( 'validated', { valid: isValid, msg: msg } ); + } + + function resetField() { + var input = this.getInputElement(); + input && input.removeAttribute( 'aria-invalid' ); + } + + var templateSource = ''; + + function buildDialog( editor ) { + var element = CKEDITOR.dom.element.createFromHtml( CKEDITOR.addTemplate( 'dialog', templateSource ).output( { + id: CKEDITOR.tools.getNextNumber(), + editorId: editor.id, + langDir: editor.lang.dir, + langCode: editor.langCode, + editorDialogClass: 'cke_editor_' + editor.name.replace( /\./g, '\\.' ) + '_dialog', + closeTitle: editor.lang.common.close, + hidpi: CKEDITOR.env.hidpi ? 'cke_hidpi' : '' + } ) ); + + // TODO: Change this to getById(), so it'll support custom templates. + var body = element.getChild( [ 0, 0, 0, 0, 0 ] ), + title = body.getChild( 0 ), + close = body.getChild( 1 ); + + // Don't allow dragging on dialog (#13184). + editor.plugins.clipboard && CKEDITOR.plugins.clipboard.preventDefaultDropOnElement( body ); + + // IFrame shim for dialog that masks activeX in IE. (#7619) + if ( CKEDITOR.env.ie && !CKEDITOR.env.quirks && !CKEDITOR.env.edge ) { + var src = 'javascript:void(function(){' + encodeURIComponent( 'document.open();(' + CKEDITOR.tools.fixDomain + ')();document.close();' ) + '}())', // jshint ignore:line + iframe = CKEDITOR.dom.element.createFromHtml( '' ); + iframe.appendTo( body.getParent() ); + } + + // Make the Title and Close Button unselectable. + title.unselectable(); + close.unselectable(); + + return { + element: element, + parts: { + dialog: element.getChild( 0 ), + title: title, + close: close, + tabs: body.getChild( 2 ), + contents: body.getChild( [ 3, 0, 0, 0 ] ), + footer: body.getChild( [ 3, 0, 1, 0 ] ) + } + }; + } + + /** + * This is the base class for runtime dialog objects. An instance of this + * class represents a single named dialog for a single editor instance. + * + * var dialogObj = new CKEDITOR.dialog( editor, 'smiley' ); + * + * @class + * @constructor Creates a dialog class instance. + * @param {Object} editor The editor which created the dialog. + * @param {String} dialogName The dialog's registered name. + */ + CKEDITOR.dialog = function( editor, dialogName ) { + // Load the dialog definition. + var definition = CKEDITOR.dialog._.dialogDefinitions[ dialogName ], + defaultDefinition = CKEDITOR.tools.clone( defaultDialogDefinition ), + buttonsOrder = editor.config.dialog_buttonsOrder || 'OS', + dir = editor.lang.dir, + tabsToRemove = {}, + i, processed, stopPropagation; + + if ( ( buttonsOrder == 'OS' && CKEDITOR.env.mac ) || // The buttons in MacOS Apps are in reverse order (#4750) + ( buttonsOrder == 'rtl' && dir == 'ltr' ) || ( buttonsOrder == 'ltr' && dir == 'rtl' ) ) + defaultDefinition.buttons.reverse(); + + + // Completes the definition with the default values. + definition = CKEDITOR.tools.extend( definition( editor ), defaultDefinition ); + + // Clone a functionally independent copy for this dialog. + definition = CKEDITOR.tools.clone( definition ); + + // Create a complex definition object, extending it with the API + // functions. + definition = new definitionObject( this, definition ); + + var themeBuilt = buildDialog( editor ); + + // Initialize some basic parameters. + this._ = { + editor: editor, + element: themeBuilt.element, + name: dialogName, + contentSize: { width: 0, height: 0 }, + size: { width: 0, height: 0 }, + contents: {}, + buttons: {}, + accessKeyMap: {}, + + // Initialize the tab and page map. + tabs: {}, + tabIdList: [], + currentTabId: null, + currentTabIndex: null, + pageCount: 0, + lastTab: null, + tabBarMode: false, + + // Initialize the tab order array for input widgets. + focusList: [], + currentFocusIndex: 0, + hasFocus: false + }; + + this.parts = themeBuilt.parts; + + CKEDITOR.tools.setTimeout( function() { + editor.fire( 'ariaWidget', this.parts.contents ); + }, 0, this ); + + // Set the startup styles for the dialog, avoiding it enlarging the + // page size on the dialog creation. + var startStyles = { + position: CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed', + top: 0, + visibility: 'hidden' + }; + + startStyles[ dir == 'rtl' ? 'right' : 'left' ] = 0; + this.parts.dialog.setStyles( startStyles ); + + + // Call the CKEDITOR.event constructor to initialize this instance. + CKEDITOR.event.call( this ); + + // Fire the "dialogDefinition" event, making it possible to customize + // the dialog definition. + this.definition = definition = CKEDITOR.fire( 'dialogDefinition', { + name: dialogName, + definition: definition + }, editor ).definition; + + // Cache tabs that should be removed. + if ( !( 'removeDialogTabs' in editor._ ) && editor.config.removeDialogTabs ) { + var removeContents = editor.config.removeDialogTabs.split( ';' ); + + for ( i = 0; i < removeContents.length; i++ ) { + var parts = removeContents[ i ].split( ':' ); + if ( parts.length == 2 ) { + var removeDialogName = parts[ 0 ]; + if ( !tabsToRemove[ removeDialogName ] ) + tabsToRemove[ removeDialogName ] = []; + tabsToRemove[ removeDialogName ].push( parts[ 1 ] ); + } + } + editor._.removeDialogTabs = tabsToRemove; + } + + // Remove tabs of this dialog. + if ( editor._.removeDialogTabs && ( tabsToRemove = editor._.removeDialogTabs[ dialogName ] ) ) { + for ( i = 0; i < tabsToRemove.length; i++ ) + definition.removeContents( tabsToRemove[ i ] ); + } + + // Initialize load, show, hide, ok and cancel events. + if ( definition.onLoad ) + this.on( 'load', definition.onLoad ); + + if ( definition.onShow ) + this.on( 'show', definition.onShow ); + + if ( definition.onHide ) + this.on( 'hide', definition.onHide ); + + if ( definition.onOk ) { + this.on( 'ok', function( evt ) { + // Dialog confirm might probably introduce content changes (#5415). + editor.fire( 'saveSnapshot' ); + setTimeout( function() { + editor.fire( 'saveSnapshot' ); + }, 0 ); + if ( definition.onOk.call( this, evt ) === false ) + evt.data.hide = false; + } ); + } + + // Set default dialog state. + this.state = CKEDITOR.DIALOG_STATE_IDLE; + + if ( definition.onCancel ) { + this.on( 'cancel', function( evt ) { + if ( definition.onCancel.call( this, evt ) === false ) + evt.data.hide = false; + } ); + } + + var me = this; + + // Iterates over all items inside all content in the dialog, calling a + // function for each of them. + var iterContents = function( func ) { + var contents = me._.contents, + stop = false; + + for ( var i in contents ) { + for ( var j in contents[ i ] ) { + stop = func.call( this, contents[ i ][ j ] ); + if ( stop ) + return; + } + } + }; + + this.on( 'ok', function( evt ) { + iterContents( function( item ) { + if ( item.validate ) { + var retval = item.validate( this ), + invalid = ( typeof retval == 'string' ) || retval === false; + + if ( invalid ) { + evt.data.hide = false; + evt.stop(); + } + + handleFieldValidated.call( item, !invalid, typeof retval == 'string' ? retval : undefined ); + return invalid; + } + } ); + }, this, null, 0 ); + + this.on( 'cancel', function( evt ) { + iterContents( function( item ) { + if ( item.isChanged() ) { + if ( !editor.config.dialog_noConfirmCancel && !confirm( editor.lang.common.confirmCancel ) ) // jshint ignore:line + evt.data.hide = false; + return true; + } + } ); + }, this, null, 0 ); + + this.parts.close.on( 'click', function( evt ) { + if ( this.fire( 'cancel', { hide: true } ).hide !== false ) + this.hide(); + evt.data.preventDefault(); + }, this ); + + // Sort focus list according to tab order definitions. + function setupFocus() { + var focusList = me._.focusList; + focusList.sort( function( a, b ) { + // Mimics browser tab order logics; + if ( a.tabIndex != b.tabIndex ) + return b.tabIndex - a.tabIndex; + // Sort is not stable in some browsers, + // fall-back the comparator to 'focusIndex'; + else + return a.focusIndex - b.focusIndex; + } ); + + var size = focusList.length; + for ( var i = 0; i < size; i++ ) + focusList[ i ].focusIndex = i; + } + + // Expects 1 or -1 as an offset, meaning direction of the offset change. + function changeFocus( offset ) { + var focusList = me._.focusList; + offset = offset || 0; + + if ( focusList.length < 1 ) + return; + + var startIndex = me._.currentFocusIndex; + + if ( me._.tabBarMode && offset < 0 ) { + // If we are in tab mode, we need to mimic that we started tabbing back from the first + // focusList (so it will go to the last one). + startIndex = 0; + } + + // Trigger the 'blur' event of any input element before anything, + // since certain UI updates may depend on it. + try { + focusList[ startIndex ].getInputElement().$.blur(); + } catch ( e ) {} + + var currentIndex = startIndex, + hasTabs = me._.pageCount > 1; + + do { + currentIndex = currentIndex + offset; + + if ( hasTabs && !me._.tabBarMode && ( currentIndex == focusList.length || currentIndex == -1 ) ) { + // If the dialog was not in tab mode, then focus the first tab (#13027). + me._.tabBarMode = true; + me._.tabs[ me._.currentTabId ][ 0 ].focus(); + me._.currentFocusIndex = -1; + + // Early return, in order to avoid accessing focusList[ -1 ]. + return; + } + + currentIndex = ( currentIndex + focusList.length ) % focusList.length; + + if ( currentIndex == startIndex ) { + break; + } + } while ( offset && !focusList[ currentIndex ].isFocusable() ); + + focusList[ currentIndex ].focus(); + + // Select whole field content. + if ( focusList[ currentIndex ].type == 'text' ) + focusList[ currentIndex ].select(); + } + + this.changeFocus = changeFocus; + + + function keydownHandler( evt ) { + // If I'm not the top dialog, ignore. + if ( me != CKEDITOR.dialog._.currentTop ) + return; + + var keystroke = evt.data.getKeystroke(), + rtl = editor.lang.dir == 'rtl', + arrowKeys = [ 37, 38, 39, 40 ], + button; + + processed = stopPropagation = 0; + + if ( keystroke == 9 || keystroke == CKEDITOR.SHIFT + 9 ) { + var shiftPressed = ( keystroke == CKEDITOR.SHIFT + 9 ); + changeFocus( shiftPressed ? -1 : 1 ); + processed = 1; + } else if ( keystroke == CKEDITOR.ALT + 121 && !me._.tabBarMode && me.getPageCount() > 1 ) { + // Alt-F10 puts focus into the current tab item in the tab bar. + me._.tabBarMode = true; + me._.tabs[ me._.currentTabId ][ 0 ].focus(); + me._.currentFocusIndex = -1; + processed = 1; + } else if ( CKEDITOR.tools.indexOf( arrowKeys, keystroke ) != -1 && me._.tabBarMode ) { + // Array with key codes that activate previous tab. + var prevKeyCodes = [ + // Depending on the lang dir: right or left key + rtl ? 39 : 37, + // Top/bot arrow: actually for both cases it's the same. + 38 + ], + nextId = CKEDITOR.tools.indexOf( prevKeyCodes, keystroke ) != -1 ? getPreviousVisibleTab.call( me ) : getNextVisibleTab.call( me ); + + me.selectPage( nextId ); + me._.tabs[ nextId ][ 0 ].focus(); + processed = 1; + } else if ( ( keystroke == 13 || keystroke == 32 ) && me._.tabBarMode ) { + this.selectPage( this._.currentTabId ); + this._.tabBarMode = false; + this._.currentFocusIndex = -1; + changeFocus( 1 ); + processed = 1; + } + // If user presses enter key in a text box, it implies clicking OK for the dialog. + else if ( keystroke == 13 /*ENTER*/ ) { + // Don't do that for a target that handles ENTER. + var target = evt.data.getTarget(); + if ( !target.is( 'a', 'button', 'select', 'textarea' ) && ( !target.is( 'input' ) || target.$.type != 'button' ) ) { + button = this.getButton( 'ok' ); + button && CKEDITOR.tools.setTimeout( button.click, 0, button ); + processed = 1; + } + stopPropagation = 1; // Always block the propagation (#4269) + } else if ( keystroke == 27 /*ESC*/ ) { + button = this.getButton( 'cancel' ); + + // If there's a Cancel button, click it, else just fire the cancel event and hide the dialog. + if ( button ) + CKEDITOR.tools.setTimeout( button.click, 0, button ); + else { + if ( this.fire( 'cancel', { hide: true } ).hide !== false ) + this.hide(); + } + stopPropagation = 1; // Always block the propagation (#4269) + } else { + return; + } + + keypressHandler( evt ); + } + + function keypressHandler( evt ) { + if ( processed ) + evt.data.preventDefault( 1 ); + else if ( stopPropagation ) + evt.data.stopPropagation(); + } + + var dialogElement = this._.element; + + editor.focusManager.add( dialogElement, 1 ); + + // Add the dialog keyboard handlers. + this.on( 'show', function() { + dialogElement.on( 'keydown', keydownHandler, this ); + + // Some browsers instead, don't cancel key events in the keydown, but in the + // keypress. So we must do a longer trip in those cases. (#4531,#8985) + if ( CKEDITOR.env.gecko ) + dialogElement.on( 'keypress', keypressHandler, this ); + + } ); + this.on( 'hide', function() { + dialogElement.removeListener( 'keydown', keydownHandler ); + if ( CKEDITOR.env.gecko ) + dialogElement.removeListener( 'keypress', keypressHandler ); + + // Reset fields state when closing dialog. + iterContents( function( item ) { + resetField.apply( item ); + } ); + } ); + this.on( 'iframeAdded', function( evt ) { + var doc = new CKEDITOR.dom.document( evt.data.iframe.$.contentWindow.document ); + doc.on( 'keydown', keydownHandler, this, null, 0 ); + } ); + + // Auto-focus logic in dialog. + this.on( 'show', function() { + // Setup tabIndex on showing the dialog instead of on loading + // to allow dynamic tab order happen in dialog definition. + setupFocus(); + + var hasTabs = me._.pageCount > 1; + + if ( editor.config.dialog_startupFocusTab && hasTabs ) { + me._.tabBarMode = true; + me._.tabs[ me._.currentTabId ][ 0 ].focus(); + me._.currentFocusIndex = -1; + } else if ( !this._.hasFocus ) { + // http://dev.ckeditor.com/ticket/13114#comment:4. + this._.currentFocusIndex = hasTabs ? -1 : this._.focusList.length - 1; + + // Decide where to put the initial focus. + if ( definition.onFocus ) { + var initialFocus = definition.onFocus.call( this ); + // Focus the field that the user specified. + initialFocus && initialFocus.focus(); + } + // Focus the first field in layout order. + else { + changeFocus( 1 ); + } + } + }, this, null, 0xffffffff ); + + // IE6 BUG: Text fields and text areas are only half-rendered the first time the dialog appears in IE6 (#2661). + // This is still needed after [2708] and [2709] because text fields in hidden TR tags are still broken. + if ( CKEDITOR.env.ie6Compat ) { + this.on( 'load', function() { + var outer = this.getElement(), + inner = outer.getFirst(); + inner.remove(); + inner.appendTo( outer ); + }, this ); + } + + initDragAndDrop( this ); + initResizeHandles( this ); + + // Insert the title. + ( new CKEDITOR.dom.text( definition.title, CKEDITOR.document ) ).appendTo( this.parts.title ); + + // Insert the tabs and contents. + for ( i = 0; i < definition.contents.length; i++ ) { + var page = definition.contents[ i ]; + page && this.addPage( page ); + } + + this.parts.tabs.on( 'click', function( evt ) { + var target = evt.data.getTarget(); + // If we aren't inside a tab, bail out. + if ( target.hasClass( 'cke_dialog_tab' ) ) { + // Get the ID of the tab, without the 'cke_' prefix and the unique number suffix. + var id = target.$.id; + this.selectPage( id.substring( 4, id.lastIndexOf( '_' ) ) ); + + if ( this._.tabBarMode ) { + this._.tabBarMode = false; + this._.currentFocusIndex = -1; + changeFocus( 1 ); + } + evt.data.preventDefault(); + } + }, this ); + + // Insert buttons. + var buttonsHtml = [], + buttons = CKEDITOR.dialog._.uiElementBuilders.hbox.build( this, { + type: 'hbox', + className: 'cke_dialog_footer_buttons', + widths: [], + children: definition.buttons + }, buttonsHtml ).getChild(); + this.parts.footer.setHtml( buttonsHtml.join( '' ) ); + + for ( i = 0; i < buttons.length; i++ ) + this._.buttons[ buttons[ i ].id ] = buttons[ i ]; + + /** + * Current state of the dialog. Use the {@link #setState} method to update it. + * See the {@link #event-state} event to know more. + * + * @readonly + * @property {Number} [state=CKEDITOR.DIALOG_STATE_IDLE] + */ + }; + + // Focusable interface. Use it via dialog.addFocusable. + function Focusable( dialog, element, index ) { + this.element = element; + this.focusIndex = index; + // TODO: support tabIndex for focusables. + this.tabIndex = 0; + this.isFocusable = function() { + return !element.getAttribute( 'disabled' ) && element.isVisible(); + }; + this.focus = function() { + dialog._.currentFocusIndex = this.focusIndex; + this.element.focus(); + }; + // Bind events + element.on( 'keydown', function( e ) { + if ( e.data.getKeystroke() in { 32: 1, 13: 1 } ) + this.fire( 'click' ); + } ); + element.on( 'focus', function() { + this.fire( 'mouseover' ); + } ); + element.on( 'blur', function() { + this.fire( 'mouseout' ); + } ); + } + + // Re-layout the dialog on window resize. + function resizeWithWindow( dialog ) { + var win = CKEDITOR.document.getWindow(); + function resizeHandler() { + dialog.layout(); + } + win.on( 'resize', resizeHandler ); + dialog.on( 'hide', function() { + win.removeListener( 'resize', resizeHandler ); + } ); + } + + CKEDITOR.dialog.prototype = { + destroy: function() { + this.hide(); + this._.element.remove(); + }, + + /** + * Resizes the dialog. + * + * dialogObj.resize( 800, 640 ); + * + * @method + * @param {Number} width The width of the dialog in pixels. + * @param {Number} height The height of the dialog in pixels. + */ + resize: ( function() { + return function( width, height ) { + if ( this._.contentSize && this._.contentSize.width == width && this._.contentSize.height == height ) + return; + + CKEDITOR.dialog.fire( 'resize', { + dialog: this, + width: width, + height: height + }, this._.editor ); + + this.fire( 'resize', { + width: width, + height: height + }, this._.editor ); + + var contents = this.parts.contents; + contents.setStyles( { + width: width + 'px', + height: height + 'px' + } ); + + // Update dialog position when dimension get changed in RTL. + if ( this._.editor.lang.dir == 'rtl' && this._.position ) + this._.position.x = CKEDITOR.document.getWindow().getViewPaneSize().width - this._.contentSize.width - parseInt( this._.element.getFirst().getStyle( 'right' ), 10 ); + + this._.contentSize = { width: width, height: height }; + }; + } )(), + + /** + * Gets the current size of the dialog in pixels. + * + * var width = dialogObj.getSize().width; + * + * @returns {Object} + * @returns {Number} return.width + * @returns {Number} return.height + */ + getSize: function() { + var element = this._.element.getFirst(); + return { width: element.$.offsetWidth || 0, height: element.$.offsetHeight || 0 }; + }, + + /** + * Moves the dialog to an `(x, y)` coordinate relative to the window. + * + * dialogObj.move( 10, 40 ); + * + * @method + * @param {Number} x The target x-coordinate. + * @param {Number} y The target y-coordinate. + * @param {Boolean} save Flag indicate whether the dialog position should be remembered on next open up. + */ + move: function( x, y, save ) { + + // The dialog may be fixed positioned or absolute positioned. Ask the + // browser what is the current situation first. + var element = this._.element.getFirst(), rtl = this._.editor.lang.dir == 'rtl'; + var isFixed = element.getComputedStyle( 'position' ) == 'fixed'; + + // (#8888) In some cases of a very small viewport, dialog is incorrectly + // positioned in IE7. It also happens that it remains sticky and user cannot + // scroll down/up to reveal dialog's content below/above the viewport; this is + // cumbersome. + // The only way to fix this is to move mouse out of the browser and + // go back to see that dialog position is automagically fixed. No events, + // no style change - pure magic. This is a IE7 rendering issue, which can be + // fixed with dummy style redraw on each move. + if ( CKEDITOR.env.ie ) + element.setStyle( 'zoom', '100%' ); + + if ( isFixed && this._.position && this._.position.x == x && this._.position.y == y ) + return; + + // Save the current position. + this._.position = { x: x, y: y }; + + // If not fixed positioned, add scroll position to the coordinates. + if ( !isFixed ) { + var scrollPosition = CKEDITOR.document.getWindow().getScrollPosition(); + x += scrollPosition.x; + y += scrollPosition.y; + } + + // Translate coordinate for RTL. + if ( rtl ) { + var dialogSize = this.getSize(), viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize(); + x = viewPaneSize.width - dialogSize.width - x; + } + + var styles = { 'top': ( y > 0 ? y : 0 ) + 'px' }; + styles[ rtl ? 'right' : 'left' ] = ( x > 0 ? x : 0 ) + 'px'; + + element.setStyles( styles ); + + save && ( this._.moved = 1 ); + }, + + /** + * Gets the dialog's position in the window. + * + * var dialogX = dialogObj.getPosition().x; + * + * @returns {Object} + * @returns {Number} return.x + * @returns {Number} return.y + */ + getPosition: function() { + return CKEDITOR.tools.extend( {}, this._.position ); + }, + + /** + * Shows the dialog box. + * + * dialogObj.show(); + */ + show: function() { + // Insert the dialog's element to the root document. + var element = this._.element; + var definition = this.definition; + if ( !( element.getParent() && element.getParent().equals( CKEDITOR.document.getBody() ) ) ) + element.appendTo( CKEDITOR.document.getBody() ); + else + element.setStyle( 'display', 'block' ); + + // First, set the dialog to an appropriate size. + this.resize( + this._.contentSize && this._.contentSize.width || definition.width || definition.minWidth, + this._.contentSize && this._.contentSize.height || definition.height || definition.minHeight + ); + + // Reset all inputs back to their default value. + this.reset(); + + // Select the first tab by default. + this.selectPage( this.definition.contents[ 0 ].id ); + + // Set z-index. + if ( CKEDITOR.dialog._.currentZIndex === null ) + CKEDITOR.dialog._.currentZIndex = this._.editor.config.baseFloatZIndex; + this._.element.getFirst().setStyle( 'z-index', CKEDITOR.dialog._.currentZIndex += 10 ); + + // Maintain the dialog ordering and dialog cover. + if ( CKEDITOR.dialog._.currentTop === null ) { + CKEDITOR.dialog._.currentTop = this; + this._.parentDialog = null; + showCover( this._.editor ); + + } else { + this._.parentDialog = CKEDITOR.dialog._.currentTop; + var parentElement = this._.parentDialog.getElement().getFirst(); + parentElement.$.style.zIndex -= Math.floor( this._.editor.config.baseFloatZIndex / 2 ); + CKEDITOR.dialog._.currentTop = this; + } + + element.on( 'keydown', accessKeyDownHandler ); + element.on( 'keyup', accessKeyUpHandler ); + + // Reset the hasFocus state. + this._.hasFocus = false; + + for ( var i in definition.contents ) { + if ( !definition.contents[ i ] ) + continue; + + var content = definition.contents[ i ], + tab = this._.tabs[ content.id ], + requiredContent = content.requiredContent, + enableElements = 0; + + if ( !tab ) + continue; + + for ( var j in this._.contents[ content.id ] ) { + var elem = this._.contents[ content.id ][ j ]; + + if ( elem.type == 'hbox' || elem.type == 'vbox' || !elem.getInputElement() ) + continue; + + if ( elem.requiredContent && !this._.editor.activeFilter.check( elem.requiredContent ) ) + elem.disable(); + else { + elem.enable(); + enableElements++; + } + } + + if ( !enableElements || ( requiredContent && !this._.editor.activeFilter.check( requiredContent ) ) ) + tab[ 0 ].addClass( 'cke_dialog_tab_disabled' ); + else + tab[ 0 ].removeClass( 'cke_dialog_tab_disabled' ); + } + + CKEDITOR.tools.setTimeout( function() { + this.layout(); + resizeWithWindow( this ); + + this.parts.dialog.setStyle( 'visibility', '' ); + + // Execute onLoad for the first show. + this.fireOnce( 'load', {} ); + CKEDITOR.ui.fire( 'ready', this ); + + this.fire( 'show', {} ); + this._.editor.fire( 'dialogShow', this ); + + if ( !this._.parentDialog ) + this._.editor.focusManager.lock(); + + // Save the initial values of the dialog. + this.foreach( function( contentObj ) { + contentObj.setInitValue && contentObj.setInitValue(); + } ); + + }, 100, this ); + }, + + /** + * Rearrange the dialog to its previous position or the middle of the window. + * + * @since 3.5 + */ + layout: function() { + var el = this.parts.dialog; + var dialogSize = this.getSize(); + var win = CKEDITOR.document.getWindow(), + viewSize = win.getViewPaneSize(); + + var posX = ( viewSize.width - dialogSize.width ) / 2, + posY = ( viewSize.height - dialogSize.height ) / 2; + + // Switch to absolute position when viewport is smaller than dialog size. + if ( !CKEDITOR.env.ie6Compat ) { + if ( dialogSize.height + ( posY > 0 ? posY : 0 ) > viewSize.height || dialogSize.width + ( posX > 0 ? posX : 0 ) > viewSize.width ) { + el.setStyle( 'position', 'absolute' ); + } else { + el.setStyle( 'position', 'fixed' ); + } + } + + this.move( this._.moved ? this._.position.x : posX, this._.moved ? this._.position.y : posY ); + }, + + /** + * Executes a function for each UI element. + * + * @param {Function} fn Function to execute for each UI element. + * @returns {CKEDITOR.dialog} The current dialog object. + */ + foreach: function( fn ) { + for ( var i in this._.contents ) { + for ( var j in this._.contents[ i ] ) { + fn.call( this, this._.contents[i][j] ); + } + } + + return this; + }, + + /** + * Resets all input values in the dialog. + * + * dialogObj.reset(); + * + * @method + * @chainable + */ + reset: ( function() { + var fn = function( widget ) { + if ( widget.reset ) + widget.reset( 1 ); + }; + return function() { + this.foreach( fn ); + return this; + }; + } )(), + + + /** + * Calls the {@link CKEDITOR.dialog.definition.uiElement#setup} method of each + * of the UI elements, with the arguments passed through it. + * It is usually being called when the dialog is opened, to put the initial value inside the field. + * + * dialogObj.setupContent(); + * + * var timestamp = ( new Date() ).valueOf(); + * dialogObj.setupContent( timestamp ); + */ + setupContent: function() { + var args = arguments; + this.foreach( function( widget ) { + if ( widget.setup ) + widget.setup.apply( widget, args ); + } ); + }, + + /** + * Calls the {@link CKEDITOR.dialog.definition.uiElement#commit} method of each + * of the UI elements, with the arguments passed through it. + * It is usually being called when the user confirms the dialog, to process the values. + * + * dialogObj.commitContent(); + * + * var timestamp = ( new Date() ).valueOf(); + * dialogObj.commitContent( timestamp ); + */ + commitContent: function() { + var args = arguments; + this.foreach( function( widget ) { + // Make sure IE triggers "change" event on last focused input before closing the dialog. (#7915) + if ( CKEDITOR.env.ie && this._.currentFocusIndex == widget.focusIndex ) + widget.getInputElement().$.blur(); + + if ( widget.commit ) + widget.commit.apply( widget, args ); + } ); + }, + + /** + * Hides the dialog box. + * + * dialogObj.hide(); + */ + hide: function() { + if ( !this.parts.dialog.isVisible() ) + return; + + this.fire( 'hide', {} ); + this._.editor.fire( 'dialogHide', this ); + // Reset the tab page. + this.selectPage( this._.tabIdList[ 0 ] ); + var element = this._.element; + element.setStyle( 'display', 'none' ); + this.parts.dialog.setStyle( 'visibility', 'hidden' ); + // Unregister all access keys associated with this dialog. + unregisterAccessKey( this ); + + // Close any child(top) dialogs first. + while ( CKEDITOR.dialog._.currentTop != this ) + CKEDITOR.dialog._.currentTop.hide(); + + // Maintain dialog ordering and remove cover if needed. + if ( !this._.parentDialog ) + hideCover( this._.editor ); + else { + var parentElement = this._.parentDialog.getElement().getFirst(); + parentElement.setStyle( 'z-index', parseInt( parentElement.$.style.zIndex, 10 ) + Math.floor( this._.editor.config.baseFloatZIndex / 2 ) ); + } + CKEDITOR.dialog._.currentTop = this._.parentDialog; + + // Deduct or clear the z-index. + if ( !this._.parentDialog ) { + CKEDITOR.dialog._.currentZIndex = null; + + // Remove access key handlers. + element.removeListener( 'keydown', accessKeyDownHandler ); + element.removeListener( 'keyup', accessKeyUpHandler ); + + var editor = this._.editor; + editor.focus(); + + // Give a while before unlock, waiting for focus to return to the editable. (#172) + setTimeout( function() { + editor.focusManager.unlock(); + + // Fixed iOS focus issue (#12381). + // Keep in mind that editor.focus() does not work in this case. + if ( CKEDITOR.env.iOS ) { + editor.window.focus(); + } + }, 0 ); + + } else { + CKEDITOR.dialog._.currentZIndex -= 10; + } + + delete this._.parentDialog; + // Reset the initial values of the dialog. + this.foreach( function( contentObj ) { + contentObj.resetInitValue && contentObj.resetInitValue(); + } ); + + // Reset dialog state back to IDLE, if busy (#13213). + this.setState( CKEDITOR.DIALOG_STATE_IDLE ); + }, + + /** + * Adds a tabbed page into the dialog. + * + * @param {Object} contents Content definition. + */ + addPage: function( contents ) { + if ( contents.requiredContent && !this._.editor.filter.check( contents.requiredContent ) ) + return; + + var pageHtml = [], + titleHtml = contents.label ? ' title="' + CKEDITOR.tools.htmlEncode( contents.label ) + '"' : '', + vbox = CKEDITOR.dialog._.uiElementBuilders.vbox.build( this, { + type: 'vbox', + className: 'cke_dialog_page_contents', + children: contents.elements, + expand: !!contents.expand, + padding: contents.padding, + style: contents.style || 'width: 100%;' + }, pageHtml ); + + var contentMap = this._.contents[ contents.id ] = {}, + cursor, + children = vbox.getChild(), + enabledFields = 0; + + while ( ( cursor = children.shift() ) ) { + // Count all allowed fields. + if ( !cursor.notAllowed && cursor.type != 'hbox' && cursor.type != 'vbox' ) + enabledFields++; + + contentMap[ cursor.id ] = cursor; + if ( typeof cursor.getChild == 'function' ) + children.push.apply( children, cursor.getChild() ); + } + + // If all fields are disabled (because they are not allowed) hide this tab. + if ( !enabledFields ) + contents.hidden = true; + + // Create the HTML for the tab and the content block. + var page = CKEDITOR.dom.element.createFromHtml( pageHtml.join( '' ) ); + page.setAttribute( 'role', 'tabpanel' ); + + var env = CKEDITOR.env; + var tabId = 'cke_' + contents.id + '_' + CKEDITOR.tools.getNextNumber(), + tab = CKEDITOR.dom.element.createFromHtml( [ + ' 0 ? ' cke_last' : 'cke_first' ), + titleHtml, + ( !!contents.hidden ? ' style="display:none"' : '' ), + ' id="', tabId, '"', + env.gecko && !env.hc ? '' : ' href="javascript:void(0)"', + ' tabIndex="-1"', + ' hidefocus="true"', + ' role="tab">', + contents.label, + '' + ].join( '' ) ); + + page.setAttribute( 'aria-labelledby', tabId ); + + // Take records for the tabs and elements created. + this._.tabs[ contents.id ] = [ tab, page ]; + this._.tabIdList.push( contents.id ); + !contents.hidden && this._.pageCount++; + this._.lastTab = tab; + this.updateStyle(); + + // Attach the DOM nodes. + + page.setAttribute( 'name', contents.id ); + page.appendTo( this.parts.contents ); + + tab.unselectable(); + this.parts.tabs.append( tab ); + + // Add access key handlers if access key is defined. + if ( contents.accessKey ) { + registerAccessKey( this, this, 'CTRL+' + contents.accessKey, tabAccessKeyDown, tabAccessKeyUp ); + this._.accessKeyMap[ 'CTRL+' + contents.accessKey ] = contents.id; + } + }, + + /** + * Activates a tab page in the dialog by its id. + * + * dialogObj.selectPage( 'tab_1' ); + * + * @param {String} id The id of the dialog tab to be activated. + */ + selectPage: function( id ) { + if ( this._.currentTabId == id ) + return; + + if ( this._.tabs[ id ][ 0 ].hasClass( 'cke_dialog_tab_disabled' ) ) + return; + + // If event was canceled - do nothing. + if ( this.fire( 'selectPage', { page: id, currentPage: this._.currentTabId } ) === false ) + return; + + // Hide the non-selected tabs and pages. + for ( var i in this._.tabs ) { + var tab = this._.tabs[ i ][ 0 ], + page = this._.tabs[ i ][ 1 ]; + if ( i != id ) { + tab.removeClass( 'cke_dialog_tab_selected' ); + page.hide(); + } + page.setAttribute( 'aria-hidden', i != id ); + } + + var selected = this._.tabs[ id ]; + selected[ 0 ].addClass( 'cke_dialog_tab_selected' ); + + // [IE] an invisible input[type='text'] will enlarge it's width + // if it's value is long when it shows, so we clear it's value + // before it shows and then recover it (#5649) + if ( CKEDITOR.env.ie6Compat || CKEDITOR.env.ie7Compat ) { + clearOrRecoverTextInputValue( selected[ 1 ] ); + selected[ 1 ].show(); + setTimeout( function() { + clearOrRecoverTextInputValue( selected[ 1 ], 1 ); + }, 0 ); + } else { + selected[ 1 ].show(); + } + + this._.currentTabId = id; + this._.currentTabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, id ); + }, + + /** + * Dialog state-specific style updates. + */ + updateStyle: function() { + // If only a single page shown, a different style is used in the central pane. + this.parts.dialog[ ( this._.pageCount === 1 ? 'add' : 'remove' ) + 'Class' ]( 'cke_single_page' ); + }, + + /** + * Hides a page's tab away from the dialog. + * + * dialog.hidePage( 'tab_3' ); + * + * @param {String} id The page's Id. + */ + hidePage: function( id ) { + var tab = this._.tabs[ id ] && this._.tabs[ id ][ 0 ]; + if ( !tab || this._.pageCount == 1 || !tab.isVisible() ) + return; + // Switch to other tab first when we're hiding the active tab. + else if ( id == this._.currentTabId ) + this.selectPage( getPreviousVisibleTab.call( this ) ); + + tab.hide(); + this._.pageCount--; + this.updateStyle(); + }, + + /** + * Unhides a page's tab. + * + * dialog.showPage( 'tab_2' ); + * + * @param {String} id The page's Id. + */ + showPage: function( id ) { + var tab = this._.tabs[ id ] && this._.tabs[ id ][ 0 ]; + if ( !tab ) + return; + tab.show(); + this._.pageCount++; + this.updateStyle(); + }, + + /** + * Gets the root DOM element of the dialog. + * + * var dialogElement = dialogObj.getElement().getFirst(); + * dialogElement.setStyle( 'padding', '5px' ); + * + * @returns {CKEDITOR.dom.element} The `` element containing this dialog. + */ + getElement: function() { + return this._.element; + }, + + /** + * Gets the name of the dialog. + * + * var dialogName = dialogObj.getName(); + * + * @returns {String} The name of this dialog. + */ + getName: function() { + return this._.name; + }, + + /** + * Gets a dialog UI element object from a dialog page. + * + * dialogObj.getContentElement( 'tabId', 'elementId' ).setValue( 'Example' ); + * + * @param {String} pageId id of dialog page. + * @param {String} elementId id of UI element. + * @returns {CKEDITOR.ui.dialog.uiElement} The dialog UI element. + */ + getContentElement: function( pageId, elementId ) { + var page = this._.contents[ pageId ]; + return page && page[ elementId ]; + }, + + /** + * Gets the value of a dialog UI element. + * + * alert( dialogObj.getValueOf( 'tabId', 'elementId' ) ); + * + * @param {String} pageId id of dialog page. + * @param {String} elementId id of UI element. + * @returns {Object} The value of the UI element. + */ + getValueOf: function( pageId, elementId ) { + return this.getContentElement( pageId, elementId ).getValue(); + }, + + /** + * Sets the value of a dialog UI element. + * + * dialogObj.setValueOf( 'tabId', 'elementId', 'Example' ); + * + * @param {String} pageId id of the dialog page. + * @param {String} elementId id of the UI element. + * @param {Object} value The new value of the UI element. + */ + setValueOf: function( pageId, elementId, value ) { + return this.getContentElement( pageId, elementId ).setValue( value ); + }, + + /** + * Gets the UI element of a button in the dialog's button row. + * + * @returns {CKEDITOR.ui.dialog.button} The button object. + * + * @param {String} id The id of the button. + */ + getButton: function( id ) { + return this._.buttons[ id ]; + }, + + /** + * Simulates a click to a dialog button in the dialog's button row. + * + * @returns The return value of the dialog's `click` event. + * + * @param {String} id The id of the button. + */ + click: function( id ) { + return this._.buttons[ id ].click(); + }, + + /** + * Disables a dialog button. + * + * @param {String} id The id of the button. + */ + disableButton: function( id ) { + return this._.buttons[ id ].disable(); + }, + + /** + * Enables a dialog button. + * + * @param {String} id The id of the button. + */ + enableButton: function( id ) { + return this._.buttons[ id ].enable(); + }, + + /** + * Gets the number of pages in the dialog. + * + * @returns {Number} Page count. + */ + getPageCount: function() { + return this._.pageCount; + }, + + /** + * Gets the editor instance which opened this dialog. + * + * @returns {CKEDITOR.editor} Parent editor instances. + */ + getParentEditor: function() { + return this._.editor; + }, + + /** + * Gets the element that was selected when opening the dialog, if any. + * + * @returns {CKEDITOR.dom.element} The element that was selected, or `null`. + */ + getSelectedElement: function() { + return this.getParentEditor().getSelection().getSelectedElement(); + }, + + /** + * Adds element to dialog's focusable list. + * + * @param {CKEDITOR.dom.element} element + * @param {Number} [index] + */ + addFocusable: function( element, index ) { + if ( typeof index == 'undefined' ) { + index = this._.focusList.length; + this._.focusList.push( new Focusable( this, element, index ) ); + } else { + this._.focusList.splice( index, 0, new Focusable( this, element, index ) ); + for ( var i = index + 1; i < this._.focusList.length; i++ ) + this._.focusList[ i ].focusIndex++; + } + }, + + /** + * Sets the dialog {@link #property-state}. + * + * @since 4.5 + * @param {Number} state Either {@link CKEDITOR#DIALOG_STATE_IDLE} or {@link CKEDITOR#DIALOG_STATE_BUSY}. + */ + setState: function( state ) { + var oldState = this.state; + + if ( oldState == state ) { + return; + } + + this.state = state; + + if ( state == CKEDITOR.DIALOG_STATE_BUSY ) { + // Insert the spinner on demand. + if ( !this.parts.spinner ) { + var dir = this.getParentEditor().lang.dir, + spinnerDef = { + attributes: { + 'class': 'cke_dialog_spinner' + }, + styles: { + 'float': dir == 'rtl' ? 'right' : 'left' + } + }; + + spinnerDef.styles[ 'margin-' + ( dir == 'rtl' ? 'left' : 'right' ) ] = '8px'; + + this.parts.spinner = CKEDITOR.document.createElement( 'div', spinnerDef ); + + this.parts.spinner.setHtml( '⌛' ); + this.parts.spinner.appendTo( this.parts.title, 1 ); + } + + // Finally, show the spinner. + this.parts.spinner.show(); + + this.getButton( 'ok' ).disable(); + } else if ( state == CKEDITOR.DIALOG_STATE_IDLE ) { + // Hide the spinner. But don't do anything if there is no spinner yet. + this.parts.spinner && this.parts.spinner.hide(); + + this.getButton( 'ok' ).enable(); + } + + this.fire( 'state', state ); + } + }; + + CKEDITOR.tools.extend( CKEDITOR.dialog, { + /** + * Registers a dialog. + * + * // Full sample plugin, which does not only register a dialog window but also adds an item to the context menu. + * // To open the dialog window, choose "Open dialog" in the context menu. + * CKEDITOR.plugins.add( 'myplugin', { + * init: function( editor ) { + * editor.addCommand( 'mydialog',new CKEDITOR.dialogCommand( 'mydialog' ) ); + * + * if ( editor.contextMenu ) { + * editor.addMenuGroup( 'mygroup', 10 ); + * editor.addMenuItem( 'My Dialog', { + * label: 'Open dialog', + * command: 'mydialog', + * group: 'mygroup' + * } ); + * editor.contextMenu.addListener( function( element ) { + * return { 'My Dialog': CKEDITOR.TRISTATE_OFF }; + * } ); + * } + * + * CKEDITOR.dialog.add( 'mydialog', function( api ) { + * // CKEDITOR.dialog.definition + * var dialogDefinition = { + * title: 'Sample dialog', + * minWidth: 390, + * minHeight: 130, + * contents: [ + * { + * id: 'tab1', + * label: 'Label', + * title: 'Title', + * expand: true, + * padding: 0, + * elements: [ + * { + * type: 'html', + * html: '

This is some sample HTML content.

' + * }, + * { + * type: 'textarea', + * id: 'textareaId', + * rows: 4, + * cols: 40 + * } + * ] + * } + * ], + * buttons: [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ], + * onOk: function() { + * // "this" is now a CKEDITOR.dialog object. + * // Accessing dialog elements: + * var textareaObj = this.getContentElement( 'tab1', 'textareaId' ); + * alert( "You have entered: " + textareaObj.getValue() ); + * } + * }; + * + * return dialogDefinition; + * } ); + * } + * } ); + * + * CKEDITOR.replace( 'editor1', { extraPlugins: 'myplugin' } ); + * + * @static + * @param {String} name The dialog's name. + * @param {Function/String} dialogDefinition + * A function returning the dialog's definition, or the URL to the `.js` file holding the function. + * The function should accept an argument `editor` which is the current editor instance, and + * return an object conforming to {@link CKEDITOR.dialog.definition}. + * @see CKEDITOR.dialog.definition + */ + add: function( name, dialogDefinition ) { + // Avoid path registration from multiple instances override definition. + if ( !this._.dialogDefinitions[ name ] || typeof dialogDefinition == 'function' ) + this._.dialogDefinitions[ name ] = dialogDefinition; + }, + + /** + * @static + * @todo + */ + exists: function( name ) { + return !!this._.dialogDefinitions[ name ]; + }, + + /** + * @static + * @todo + */ + getCurrent: function() { + return CKEDITOR.dialog._.currentTop; + }, + + /** + * Check whether tab wasn't removed by {@link CKEDITOR.config#removeDialogTabs}. + * + * @since 4.1 + * @static + * @param {CKEDITOR.editor} editor + * @param {String} dialogName + * @param {String} tabName + * @returns {Boolean} + */ + isTabEnabled: function( editor, dialogName, tabName ) { + var cfg = editor.config.removeDialogTabs; + + return !( cfg && cfg.match( new RegExp( '(?:^|;)' + dialogName + ':' + tabName + '(?:$|;)', 'i' ) ) ); + }, + + /** + * The default OK button for dialogs. Fires the `ok` event and closes the dialog if the event succeeds. + * + * @static + * @method + */ + okButton: ( function() { + var retval = function( editor, override ) { + override = override || {}; + return CKEDITOR.tools.extend( { + id: 'ok', + type: 'button', + label: editor.lang.common.ok, + 'class': 'cke_dialog_ui_button_ok', + onClick: function( evt ) { + var dialog = evt.data.dialog; + if ( dialog.fire( 'ok', { hide: true } ).hide !== false ) + dialog.hide(); + } + }, override, true ); + }; + retval.type = 'button'; + retval.override = function( override ) { + return CKEDITOR.tools.extend( function( editor ) { + return retval( editor, override ); + }, { type: 'button' }, true ); + }; + return retval; + } )(), + + /** + * The default cancel button for dialogs. Fires the `cancel` event and + * closes the dialog if no UI element value changed. + * + * @static + * @method + */ + cancelButton: ( function() { + var retval = function( editor, override ) { + override = override || {}; + return CKEDITOR.tools.extend( { + id: 'cancel', + type: 'button', + label: editor.lang.common.cancel, + 'class': 'cke_dialog_ui_button_cancel', + onClick: function( evt ) { + var dialog = evt.data.dialog; + if ( dialog.fire( 'cancel', { hide: true } ).hide !== false ) + dialog.hide(); + } + }, override, true ); + }; + retval.type = 'button'; + retval.override = function( override ) { + return CKEDITOR.tools.extend( function( editor ) { + return retval( editor, override ); + }, { type: 'button' }, true ); + }; + return retval; + } )(), + + /** + * Registers a dialog UI element. + * + * @static + * @param {String} typeName The name of the UI element. + * @param {Function} builder The function to build the UI element. + */ + addUIElement: function( typeName, builder ) { + this._.uiElementBuilders[ typeName ] = builder; + } + } ); + + CKEDITOR.dialog._ = { + uiElementBuilders: {}, + + dialogDefinitions: {}, + + currentTop: null, + + currentZIndex: null + }; + + // "Inherit" (copy actually) from CKEDITOR.event. + CKEDITOR.event.implementOn( CKEDITOR.dialog ); + CKEDITOR.event.implementOn( CKEDITOR.dialog.prototype ); + + var defaultDialogDefinition = { + resizable: CKEDITOR.DIALOG_RESIZE_BOTH, + minWidth: 600, + minHeight: 400, + buttons: [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ] + }; + + // Tool function used to return an item from an array based on its id + // property. + var getById = function( array, id, recurse ) { + for ( var i = 0, item; + ( item = array[ i ] ); i++ ) { + if ( item.id == id ) + return item; + if ( recurse && item[ recurse ] ) { + var retval = getById( item[ recurse ], id, recurse ); + if ( retval ) + return retval; + } + } + return null; + }; + + // Tool function used to add an item into an array. + var addById = function( array, newItem, nextSiblingId, recurse, nullIfNotFound ) { + if ( nextSiblingId ) { + for ( var i = 0, item; + ( item = array[ i ] ); i++ ) { + if ( item.id == nextSiblingId ) { + array.splice( i, 0, newItem ); + return newItem; + } + + if ( recurse && item[ recurse ] ) { + var retval = addById( item[ recurse ], newItem, nextSiblingId, recurse, true ); + if ( retval ) + return retval; + } + } + + if ( nullIfNotFound ) + return null; + } + + array.push( newItem ); + return newItem; + }; + + // Tool function used to remove an item from an array based on its id. + var removeById = function( array, id, recurse ) { + for ( var i = 0, item; + ( item = array[ i ] ); i++ ) { + if ( item.id == id ) + return array.splice( i, 1 ); + if ( recurse && item[ recurse ] ) { + var retval = removeById( item[ recurse ], id, recurse ); + if ( retval ) + return retval; + } + } + return null; + }; + + /** + * This class is not really part of the API. It is the `definition` property value + * passed to `dialogDefinition` event handlers. + * + * CKEDITOR.on( 'dialogDefinition', function( evt ) { + * var definition = evt.data.definition; + * var content = definition.getContents( 'page1' ); + * // ... + * } ); + * + * @private + * @class CKEDITOR.dialog.definitionObject + * @extends CKEDITOR.dialog.definition + * @constructor Creates a definitionObject class instance. + */ + var definitionObject = function( dialog, dialogDefinition ) { + // TODO : Check if needed. + this.dialog = dialog; + + // Transform the contents entries in contentObjects. + var contents = dialogDefinition.contents; + for ( var i = 0, content; + ( content = contents[ i ] ); i++ ) + contents[ i ] = content && new contentObject( dialog, content ); + + CKEDITOR.tools.extend( this, dialogDefinition ); + }; + + definitionObject.prototype = { + /** + * Gets a content definition. + * + * @param {String} id The id of the content definition. + * @returns {CKEDITOR.dialog.definition.content} The content definition matching id. + */ + getContents: function( id ) { + return getById( this.contents, id ); + }, + + /** + * Gets a button definition. + * + * @param {String} id The id of the button definition. + * @returns {CKEDITOR.dialog.definition.button} The button definition matching id. + */ + getButton: function( id ) { + return getById( this.buttons, id ); + }, + + /** + * Adds a content definition object under this dialog definition. + * + * @param {CKEDITOR.dialog.definition.content} contentDefinition The + * content definition. + * @param {String} [nextSiblingId] The id of an existing content + * definition which the new content definition will be inserted + * before. Omit if the new content definition is to be inserted as + * the last item. + * @returns {CKEDITOR.dialog.definition.content} The inserted content definition. + */ + addContents: function( contentDefinition, nextSiblingId ) { + return addById( this.contents, contentDefinition, nextSiblingId ); + }, + + /** + * Adds a button definition object under this dialog definition. + * + * @param {CKEDITOR.dialog.definition.button} buttonDefinition The + * button definition. + * @param {String} [nextSiblingId] The id of an existing button + * definition which the new button definition will be inserted + * before. Omit if the new button definition is to be inserted as + * the last item. + * @returns {CKEDITOR.dialog.definition.button} The inserted button definition. + */ + addButton: function( buttonDefinition, nextSiblingId ) { + return addById( this.buttons, buttonDefinition, nextSiblingId ); + }, + + /** + * Removes a content definition from this dialog definition. + * + * @param {String} id The id of the content definition to be removed. + * @returns {CKEDITOR.dialog.definition.content} The removed content definition. + */ + removeContents: function( id ) { + removeById( this.contents, id ); + }, + + /** + * Removes a button definition from the dialog definition. + * + * @param {String} id The id of the button definition to be removed. + * @returns {CKEDITOR.dialog.definition.button} The removed button definition. + */ + removeButton: function( id ) { + removeById( this.buttons, id ); + } + }; + + /** + * This class is not really part of the API. It is the template of the + * objects representing content pages inside the + * CKEDITOR.dialog.definitionObject. + * + * CKEDITOR.on( 'dialogDefinition', function( evt ) { + * var definition = evt.data.definition; + * var content = definition.getContents( 'page1' ); + * content.remove( 'textInput1' ); + * // ... + * } ); + * + * @private + * @class CKEDITOR.dialog.definition.contentObject + * @constructor Creates a contentObject class instance. + */ + function contentObject( dialog, contentDefinition ) { + this._ = { + dialog: dialog + }; + + CKEDITOR.tools.extend( this, contentDefinition ); + } + + contentObject.prototype = { + /** + * Gets a UI element definition under the content definition. + * + * @param {String} id The id of the UI element definition. + * @returns {CKEDITOR.dialog.definition.uiElement} + */ + get: function( id ) { + return getById( this.elements, id, 'children' ); + }, + + /** + * Adds a UI element definition to the content definition. + * + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition The + * UI elemnet definition to be added. + * @param {String} nextSiblingId The id of an existing UI element + * definition which the new UI element definition will be inserted + * before. Omit if the new button definition is to be inserted as + * the last item. + * @returns {CKEDITOR.dialog.definition.uiElement} The element definition inserted. + */ + add: function( elementDefinition, nextSiblingId ) { + return addById( this.elements, elementDefinition, nextSiblingId, 'children' ); + }, + + /** + * Removes a UI element definition from the content definition. + * + * @param {String} id The id of the UI element definition to be removed. + * @returns {CKEDITOR.dialog.definition.uiElement} The element definition removed. + */ + remove: function( id ) { + removeById( this.elements, id, 'children' ); + } + }; + + function initDragAndDrop( dialog ) { + var lastCoords = null, + abstractDialogCoords = null, + editor = dialog.getParentEditor(), + magnetDistance = editor.config.dialog_magnetDistance, + margins = CKEDITOR.skin.margins || [ 0, 0, 0, 0 ]; + + if ( typeof magnetDistance == 'undefined' ) + magnetDistance = 20; + + function mouseMoveHandler( evt ) { + var dialogSize = dialog.getSize(), + viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize(), + x = evt.data.$.screenX, + y = evt.data.$.screenY, + dx = x - lastCoords.x, + dy = y - lastCoords.y, + realX, realY; + + lastCoords = { x: x, y: y }; + abstractDialogCoords.x += dx; + abstractDialogCoords.y += dy; + + if ( abstractDialogCoords.x + margins[ 3 ] < magnetDistance ) + realX = -margins[ 3 ]; + else if ( abstractDialogCoords.x - margins[ 1 ] > viewPaneSize.width - dialogSize.width - magnetDistance ) + realX = viewPaneSize.width - dialogSize.width + ( editor.lang.dir == 'rtl' ? 0 : margins[ 1 ] ); + else + realX = abstractDialogCoords.x; + + if ( abstractDialogCoords.y + margins[ 0 ] < magnetDistance ) + realY = -margins[ 0 ]; + else if ( abstractDialogCoords.y - margins[ 2 ] > viewPaneSize.height - dialogSize.height - magnetDistance ) + realY = viewPaneSize.height - dialogSize.height + margins[ 2 ]; + else + realY = abstractDialogCoords.y; + + dialog.move( realX, realY, 1 ); + + evt.data.preventDefault(); + } + + function mouseUpHandler() { + CKEDITOR.document.removeListener( 'mousemove', mouseMoveHandler ); + CKEDITOR.document.removeListener( 'mouseup', mouseUpHandler ); + + if ( CKEDITOR.env.ie6Compat ) { + var coverDoc = currentCover.getChild( 0 ).getFrameDocument(); + coverDoc.removeListener( 'mousemove', mouseMoveHandler ); + coverDoc.removeListener( 'mouseup', mouseUpHandler ); + } + } + + dialog.parts.title.on( 'mousedown', function( evt ) { + lastCoords = { x: evt.data.$.screenX, y: evt.data.$.screenY }; + + CKEDITOR.document.on( 'mousemove', mouseMoveHandler ); + CKEDITOR.document.on( 'mouseup', mouseUpHandler ); + abstractDialogCoords = dialog.getPosition(); + + if ( CKEDITOR.env.ie6Compat ) { + var coverDoc = currentCover.getChild( 0 ).getFrameDocument(); + coverDoc.on( 'mousemove', mouseMoveHandler ); + coverDoc.on( 'mouseup', mouseUpHandler ); + } + + evt.data.preventDefault(); + }, dialog ); + } + + function initResizeHandles( dialog ) { + var def = dialog.definition, + resizable = def.resizable; + + if ( resizable == CKEDITOR.DIALOG_RESIZE_NONE ) + return; + + var editor = dialog.getParentEditor(); + var wrapperWidth, wrapperHeight, viewSize, origin, startSize, dialogCover; + + var mouseDownFn = CKEDITOR.tools.addFunction( function( $event ) { + startSize = dialog.getSize(); + + var content = dialog.parts.contents, + iframeDialog = content.$.getElementsByTagName( 'iframe' ).length; + + // Shim to help capturing "mousemove" over iframe. + if ( iframeDialog ) { + dialogCover = CKEDITOR.dom.element.createFromHtml( '
' ); + content.append( dialogCover ); + } + + // Calculate the offset between content and chrome size. + wrapperHeight = startSize.height - dialog.parts.contents.getSize( 'height', !( CKEDITOR.env.gecko || CKEDITOR.env.ie && CKEDITOR.env.quirks ) ); + wrapperWidth = startSize.width - dialog.parts.contents.getSize( 'width', 1 ); + + origin = { x: $event.screenX, y: $event.screenY }; + + viewSize = CKEDITOR.document.getWindow().getViewPaneSize(); + + CKEDITOR.document.on( 'mousemove', mouseMoveHandler ); + CKEDITOR.document.on( 'mouseup', mouseUpHandler ); + + if ( CKEDITOR.env.ie6Compat ) { + var coverDoc = currentCover.getChild( 0 ).getFrameDocument(); + coverDoc.on( 'mousemove', mouseMoveHandler ); + coverDoc.on( 'mouseup', mouseUpHandler ); + } + + $event.preventDefault && $event.preventDefault(); + } ); + + // Prepend the grip to the dialog. + dialog.on( 'load', function() { + var direction = ''; + if ( resizable == CKEDITOR.DIALOG_RESIZE_WIDTH ) + direction = ' cke_resizer_horizontal'; + else if ( resizable == CKEDITOR.DIALOG_RESIZE_HEIGHT ) + direction = ' cke_resizer_vertical'; + var resizer = CKEDITOR.dom.element.createFromHtml( + '' + + // BLACK LOWER RIGHT TRIANGLE (ltr) + // BLACK LOWER LEFT TRIANGLE (rtl) + ( editor.lang.dir == 'ltr' ? '\u25E2' : '\u25E3' ) + + '
' ); + dialog.parts.footer.append( resizer, 1 ); + } ); + editor.on( 'destroy', function() { + CKEDITOR.tools.removeFunction( mouseDownFn ); + } ); + + function mouseMoveHandler( evt ) { + var rtl = editor.lang.dir == 'rtl', + dx = ( evt.data.$.screenX - origin.x ) * ( rtl ? -1 : 1 ), + dy = evt.data.$.screenY - origin.y, + width = startSize.width, + height = startSize.height, + internalWidth = width + dx * ( dialog._.moved ? 1 : 2 ), + internalHeight = height + dy * ( dialog._.moved ? 1 : 2 ), + element = dialog._.element.getFirst(), + right = rtl && element.getComputedStyle( 'right' ), + position = dialog.getPosition(); + + if ( position.y + internalHeight > viewSize.height ) + internalHeight = viewSize.height - position.y; + + if ( ( rtl ? right : position.x ) + internalWidth > viewSize.width ) + internalWidth = viewSize.width - ( rtl ? right : position.x ); + + // Make sure the dialog will not be resized to the wrong side when it's in the leftmost position for RTL. + if ( ( resizable == CKEDITOR.DIALOG_RESIZE_WIDTH || resizable == CKEDITOR.DIALOG_RESIZE_BOTH ) ) + width = Math.max( def.minWidth || 0, internalWidth - wrapperWidth ); + + if ( resizable == CKEDITOR.DIALOG_RESIZE_HEIGHT || resizable == CKEDITOR.DIALOG_RESIZE_BOTH ) + height = Math.max( def.minHeight || 0, internalHeight - wrapperHeight ); + + dialog.resize( width, height ); + + if ( !dialog._.moved ) + dialog.layout(); + + evt.data.preventDefault(); + } + + function mouseUpHandler() { + CKEDITOR.document.removeListener( 'mouseup', mouseUpHandler ); + CKEDITOR.document.removeListener( 'mousemove', mouseMoveHandler ); + + if ( dialogCover ) { + dialogCover.remove(); + dialogCover = null; + } + + if ( CKEDITOR.env.ie6Compat ) { + var coverDoc = currentCover.getChild( 0 ).getFrameDocument(); + coverDoc.removeListener( 'mouseup', mouseUpHandler ); + coverDoc.removeListener( 'mousemove', mouseMoveHandler ); + } + } + } + + var resizeCover; + // Caching resuable covers and allowing only one cover + // on screen. + var covers = {}, + currentCover; + + function cancelEvent( ev ) { + ev.data.preventDefault( 1 ); + } + + function showCover( editor ) { + var win = CKEDITOR.document.getWindow(); + var config = editor.config, + backgroundColorStyle = config.dialog_backgroundCoverColor || 'white', + backgroundCoverOpacity = config.dialog_backgroundCoverOpacity, + baseFloatZIndex = config.baseFloatZIndex, + coverKey = CKEDITOR.tools.genKey( backgroundColorStyle, backgroundCoverOpacity, baseFloatZIndex ), + coverElement = covers[ coverKey ]; + + if ( !coverElement ) { + var html = [ + '
' + ]; + + if ( CKEDITOR.env.ie6Compat ) { + // Support for custom document.domain in IE. + var iframeHtml = ''; + + html.push( '' + + '' ); + } + + html.push( '
' ); + + coverElement = CKEDITOR.dom.element.createFromHtml( html.join( '' ) ); + coverElement.setOpacity( backgroundCoverOpacity !== undefined ? backgroundCoverOpacity : 0.5 ); + + coverElement.on( 'keydown', cancelEvent ); + coverElement.on( 'keypress', cancelEvent ); + coverElement.on( 'keyup', cancelEvent ); + + coverElement.appendTo( CKEDITOR.document.getBody() ); + covers[ coverKey ] = coverElement; + } else { + coverElement.show(); + } + + // Makes the dialog cover a focus holder as well. + editor.focusManager.add( coverElement ); + + currentCover = coverElement; + var resizeFunc = function() { + var size = win.getViewPaneSize(); + coverElement.setStyles( { + width: size.width + 'px', + height: size.height + 'px' + } ); + }; + + var scrollFunc = function() { + var pos = win.getScrollPosition(), + cursor = CKEDITOR.dialog._.currentTop; + coverElement.setStyles( { + left: pos.x + 'px', + top: pos.y + 'px' + } ); + + if ( cursor ) { + do { + var dialogPos = cursor.getPosition(); + cursor.move( dialogPos.x, dialogPos.y ); + } while ( ( cursor = cursor._.parentDialog ) ); + } + }; + + resizeCover = resizeFunc; + win.on( 'resize', resizeFunc ); + resizeFunc(); + // Using Safari/Mac, focus must be kept where it is (#7027) + if ( !( CKEDITOR.env.mac && CKEDITOR.env.webkit ) ) + coverElement.focus(); + + if ( CKEDITOR.env.ie6Compat ) { + // IE BUG: win.$.onscroll assignment doesn't work.. it must be window.onscroll. + // So we need to invent a really funny way to make it work. + var myScrollHandler = function() { + scrollFunc(); + arguments.callee.prevScrollHandler.apply( this, arguments ); + }; + win.$.setTimeout( function() { + myScrollHandler.prevScrollHandler = window.onscroll || + function() {}; + window.onscroll = myScrollHandler; + }, 0 ); + scrollFunc(); + } + } + + function hideCover( editor ) { + if ( !currentCover ) + return; + + editor.focusManager.remove( currentCover ); + var win = CKEDITOR.document.getWindow(); + currentCover.hide(); + win.removeListener( 'resize', resizeCover ); + + if ( CKEDITOR.env.ie6Compat ) { + win.$.setTimeout( function() { + var prevScrollHandler = window.onscroll && window.onscroll.prevScrollHandler; + window.onscroll = prevScrollHandler || null; + }, 0 ); + } + resizeCover = null; + } + + function removeCovers() { + for ( var coverId in covers ) + covers[ coverId ].remove(); + covers = {}; + } + + var accessKeyProcessors = {}; + + var accessKeyDownHandler = function( evt ) { + var ctrl = evt.data.$.ctrlKey || evt.data.$.metaKey, + alt = evt.data.$.altKey, + shift = evt.data.$.shiftKey, + key = String.fromCharCode( evt.data.$.keyCode ), + keyProcessor = accessKeyProcessors[ ( ctrl ? 'CTRL+' : '' ) + ( alt ? 'ALT+' : '' ) + ( shift ? 'SHIFT+' : '' ) + key ]; + + if ( !keyProcessor || !keyProcessor.length ) + return; + + keyProcessor = keyProcessor[ keyProcessor.length - 1 ]; + keyProcessor.keydown && keyProcessor.keydown.call( keyProcessor.uiElement, keyProcessor.dialog, keyProcessor.key ); + evt.data.preventDefault(); + }; + + var accessKeyUpHandler = function( evt ) { + var ctrl = evt.data.$.ctrlKey || evt.data.$.metaKey, + alt = evt.data.$.altKey, + shift = evt.data.$.shiftKey, + key = String.fromCharCode( evt.data.$.keyCode ), + keyProcessor = accessKeyProcessors[ ( ctrl ? 'CTRL+' : '' ) + ( alt ? 'ALT+' : '' ) + ( shift ? 'SHIFT+' : '' ) + key ]; + + if ( !keyProcessor || !keyProcessor.length ) + return; + + keyProcessor = keyProcessor[ keyProcessor.length - 1 ]; + if ( keyProcessor.keyup ) { + keyProcessor.keyup.call( keyProcessor.uiElement, keyProcessor.dialog, keyProcessor.key ); + evt.data.preventDefault(); + } + }; + + var registerAccessKey = function( uiElement, dialog, key, downFunc, upFunc ) { + var procList = accessKeyProcessors[ key ] || ( accessKeyProcessors[ key ] = [] ); + procList.push( { + uiElement: uiElement, + dialog: dialog, + key: key, + keyup: upFunc || uiElement.accessKeyUp, + keydown: downFunc || uiElement.accessKeyDown + } ); + }; + + var unregisterAccessKey = function( obj ) { + for ( var i in accessKeyProcessors ) { + var list = accessKeyProcessors[ i ]; + for ( var j = list.length - 1; j >= 0; j-- ) { + if ( list[ j ].dialog == obj || list[ j ].uiElement == obj ) + list.splice( j, 1 ); + } + if ( list.length === 0 ) + delete accessKeyProcessors[ i ]; + } + }; + + var tabAccessKeyUp = function( dialog, key ) { + if ( dialog._.accessKeyMap[ key ] ) + dialog.selectPage( dialog._.accessKeyMap[ key ] ); + }; + + var tabAccessKeyDown = function() {}; + + ( function() { + CKEDITOR.ui.dialog = { + /** + * The base class of all dialog UI elements. + * + * @class CKEDITOR.ui.dialog.uiElement + * @constructor Creates a uiElement class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition Element + * definition. + * + * Accepted fields: + * + * * `id` (Required) The id of the UI element. See {@link CKEDITOR.dialog#getContentElement}. + * * `type` (Required) The type of the UI element. The + * value to this field specifies which UI element class will be used to + * generate the final widget. + * * `title` (Optional) The popup tooltip for the UI + * element. + * * `hidden` (Optional) A flag that tells if the element + * should be initially visible. + * * `className` (Optional) Additional CSS class names + * to add to the UI element. Separated by space. + * * `style` (Optional) Additional CSS inline styles + * to add to the UI element. A semicolon (;) is required after the last + * style declaration. + * * `accessKey` (Optional) The alphanumeric access key + * for this element. Access keys are automatically prefixed by CTRL. + * * `on*` (Optional) Any UI element definition field that + * starts with `on` followed immediately by a capital letter and + * probably more letters is an event handler. Event handlers may be further + * divided into registered event handlers and DOM event handlers. Please + * refer to {@link CKEDITOR.ui.dialog.uiElement#registerEvents} and + * {@link CKEDITOR.ui.dialog.uiElement#eventProcessors} for more information. + * + * @param {Array} htmlList + * List of HTML code to be added to the dialog's content area. + * @param {Function/String} [nodeNameArg='div'] + * A function returning a string, or a simple string for the node name for + * the root DOM node. + * @param {Function/Object} [stylesArg={}] + * A function returning an object, or a simple object for CSS styles applied + * to the DOM node. + * @param {Function/Object} [attributesArg={}] + * A fucntion returning an object, or a simple object for attributes applied + * to the DOM node. + * @param {Function/String} [contentsArg=''] + * A function returning a string, or a simple string for the HTML code inside + * the root DOM node. Default is empty string. + */ + uiElement: function( dialog, elementDefinition, htmlList, nodeNameArg, stylesArg, attributesArg, contentsArg ) { + if ( arguments.length < 4 ) + return; + + var nodeName = ( nodeNameArg.call ? nodeNameArg( elementDefinition ) : nodeNameArg ) || 'div', + html = [ '<', nodeName, ' ' ], + styles = ( stylesArg && stylesArg.call ? stylesArg( elementDefinition ) : stylesArg ) || {}, + attributes = ( attributesArg && attributesArg.call ? attributesArg( elementDefinition ) : attributesArg ) || {}, + innerHTML = ( contentsArg && contentsArg.call ? contentsArg.call( this, dialog, elementDefinition ) : contentsArg ) || '', + domId = this.domId = attributes.id || CKEDITOR.tools.getNextId() + '_uiElement', + i; + + if ( elementDefinition.requiredContent && !dialog.getParentEditor().filter.check( elementDefinition.requiredContent ) ) { + styles.display = 'none'; + this.notAllowed = true; + } + + // Set the id, a unique id is required for getElement() to work. + attributes.id = domId; + + // Set the type and definition CSS class names. + var classes = {}; + if ( elementDefinition.type ) + classes[ 'cke_dialog_ui_' + elementDefinition.type ] = 1; + if ( elementDefinition.className ) + classes[ elementDefinition.className ] = 1; + if ( elementDefinition.disabled ) + classes.cke_disabled = 1; + + var attributeClasses = ( attributes[ 'class' ] && attributes[ 'class' ].split ) ? attributes[ 'class' ].split( ' ' ) : []; + for ( i = 0; i < attributeClasses.length; i++ ) { + if ( attributeClasses[ i ] ) + classes[ attributeClasses[ i ] ] = 1; + } + var finalClasses = []; + for ( i in classes ) + finalClasses.push( i ); + attributes[ 'class' ] = finalClasses.join( ' ' ); + + // Set the popup tooltop. + if ( elementDefinition.title ) + attributes.title = elementDefinition.title; + + // Write the inline CSS styles. + var styleStr = ( elementDefinition.style || '' ).split( ';' ); + + // Element alignment support. + if ( elementDefinition.align ) { + var align = elementDefinition.align; + styles[ 'margin-left' ] = align == 'left' ? 0 : 'auto'; + styles[ 'margin-right' ] = align == 'right' ? 0 : 'auto'; + } + + for ( i in styles ) + styleStr.push( i + ':' + styles[ i ] ); + if ( elementDefinition.hidden ) + styleStr.push( 'display:none' ); + for ( i = styleStr.length - 1; i >= 0; i-- ) { + if ( styleStr[ i ] === '' ) + styleStr.splice( i, 1 ); + } + if ( styleStr.length > 0 ) + attributes.style = ( attributes.style ? ( attributes.style + '; ' ) : '' ) + styleStr.join( '; ' ); + + // Write the attributes. + for ( i in attributes ) + html.push( i + '="' + CKEDITOR.tools.htmlEncode( attributes[ i ] ) + '" ' ); + + // Write the content HTML. + html.push( '>', innerHTML, '' ); + + // Add contents to the parent HTML array. + htmlList.push( html.join( '' ) ); + + ( this._ || ( this._ = {} ) ).dialog = dialog; + + // Override isChanged if it is defined in element definition. + if ( typeof elementDefinition.isChanged == 'boolean' ) + this.isChanged = function() { + return elementDefinition.isChanged; + }; + if ( typeof elementDefinition.isChanged == 'function' ) + this.isChanged = elementDefinition.isChanged; + + // Overload 'get(set)Value' on definition. + if ( typeof elementDefinition.setValue == 'function' ) { + this.setValue = CKEDITOR.tools.override( this.setValue, function( org ) { + return function( val ) { + org.call( this, elementDefinition.setValue.call( this, val ) ); + }; + } ); + } + + if ( typeof elementDefinition.getValue == 'function' ) { + this.getValue = CKEDITOR.tools.override( this.getValue, function( org ) { + return function() { + return elementDefinition.getValue.call( this, org.call( this ) ); + }; + } ); + } + + // Add events. + CKEDITOR.event.implementOn( this ); + + this.registerEvents( elementDefinition ); + if ( this.accessKeyUp && this.accessKeyDown && elementDefinition.accessKey ) + registerAccessKey( this, dialog, 'CTRL+' + elementDefinition.accessKey ); + + var me = this; + dialog.on( 'load', function() { + var input = me.getInputElement(); + if ( input ) { + var focusClass = me.type in { 'checkbox': 1, 'ratio': 1 } && CKEDITOR.env.ie && CKEDITOR.env.version < 8 ? 'cke_dialog_ui_focused' : ''; + input.on( 'focus', function() { + dialog._.tabBarMode = false; + dialog._.hasFocus = true; + me.fire( 'focus' ); + focusClass && this.addClass( focusClass ); + + } ); + + input.on( 'blur', function() { + me.fire( 'blur' ); + focusClass && this.removeClass( focusClass ); + } ); + } + } ); + + // Completes this object with everything we have in the + // definition. + CKEDITOR.tools.extend( this, elementDefinition ); + + // Register the object as a tab focus if it can be included. + if ( this.keyboardFocusable ) { + this.tabIndex = elementDefinition.tabIndex || 0; + + this.focusIndex = dialog._.focusList.push( this ) - 1; + this.on( 'focus', function() { + dialog._.currentFocusIndex = me.focusIndex; + } ); + } + }, + + /** + * Horizontal layout box for dialog UI elements, auto-expends to available width of container. + * + * @class CKEDITOR.ui.dialog.hbox + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a hbox class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog object. + * @param {Array} childObjList + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container. + * @param {Array} childHtmlList + * Array of HTML code that correspond to the HTML output of all the + * objects in childObjList. + * @param {Array} htmlList + * Array of HTML code that this element will output to. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `widths` (Optional) The widths of child cells. + * * `height` (Optional) The height of the layout. + * * `padding` (Optional) The padding width inside child cells. + * * `align` (Optional) The alignment of the whole layout. + */ + hbox: function( dialog, childObjList, childHtmlList, htmlList, elementDefinition ) { + if ( arguments.length < 4 ) + return; + + this._ || ( this._ = {} ); + + var children = this._.children = childObjList, + widths = elementDefinition && elementDefinition.widths || null, + height = elementDefinition && elementDefinition.height || null, + styles = {}, + i; + /** @ignore */ + var innerHTML = function() { + var html = [ '' ]; + for ( i = 0; i < childHtmlList.length; i++ ) { + var className = 'cke_dialog_ui_hbox_child', + styles = []; + if ( i === 0 ) { + className = 'cke_dialog_ui_hbox_first'; + } + if ( i == childHtmlList.length - 1 ) { + className = 'cke_dialog_ui_hbox_last'; + } + + html.push( ' 0 ) { + html.push( 'style="' + styles.join( '; ' ) + '" ' ); + } + html.push( '>', childHtmlList[ i ], '' ); + } + html.push( '' ); + return html.join( '' ); + }; + + var attribs = { role: 'presentation' }; + elementDefinition && elementDefinition.align && ( attribs.align = elementDefinition.align ); + + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition || { type: 'hbox' }, htmlList, 'table', styles, attribs, innerHTML ); + }, + + /** + * Vertical layout box for dialog UI elements. + * + * @class CKEDITOR.ui.dialog.vbox + * @extends CKEDITOR.ui.dialog.hbox + * @constructor Creates a vbox class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog object. + * @param {Array} childObjList + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container. + * @param {Array} childHtmlList + * Array of HTML code that correspond to the HTML output of all the + * objects in childObjList. + * @param {Array} htmlList Array of HTML code that this element will output to. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `width` (Optional) The width of the layout. + * * `heights` (Optional) The heights of individual cells. + * * `align` (Optional) The alignment of the layout. + * * `padding` (Optional) The padding width inside child cells. + * * `expand` (Optional) Whether the layout should expand + * vertically to fill its container. + */ + vbox: function( dialog, childObjList, childHtmlList, htmlList, elementDefinition ) { + if ( arguments.length < 3 ) + return; + + this._ || ( this._ = {} ); + + var children = this._.children = childObjList, + width = elementDefinition && elementDefinition.width || null, + heights = elementDefinition && elementDefinition.heights || null; + /** @ignore */ + var innerHTML = function() { + var html = [ '' ); + for ( var i = 0; i < childHtmlList.length; i++ ) { + var styles = []; + html.push( '' ); + } + html.push( '
0 ) + html.push( 'style="', styles.join( '; ' ), '" ' ); + html.push( ' class="cke_dialog_ui_vbox_child">', childHtmlList[ i ], '
' ); + return html.join( '' ); + }; + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition || { type: 'vbox' }, htmlList, 'div', null, { role: 'presentation' }, innerHTML ); + } + }; + } )(); + + /** @class CKEDITOR.ui.dialog.uiElement */ + CKEDITOR.ui.dialog.uiElement.prototype = { + /** + * Gets the root DOM element of this dialog UI object. + * + * uiElement.getElement().hide(); + * + * @returns {CKEDITOR.dom.element} Root DOM element of UI object. + */ + getElement: function() { + return CKEDITOR.document.getById( this.domId ); + }, + + /** + * Gets the DOM element that the user inputs values. + * + * This function is used by {@link #setValue}, {@link #getValue} and {@link #focus}. It should + * be overrided in child classes where the input element isn't the root + * element. + * + * var rawValue = textInput.getInputElement().$.value; + * + * @returns {CKEDITOR.dom.element} The element where the user input values. + */ + getInputElement: function() { + return this.getElement(); + }, + + /** + * Gets the parent dialog object containing this UI element. + * + * var dialog = uiElement.getDialog(); + * + * @returns {CKEDITOR.dialog} Parent dialog object. + */ + getDialog: function() { + return this._.dialog; + }, + + /** + * Sets the value of this dialog UI object. + * + * uiElement.setValue( 'Dingo' ); + * + * @chainable + * @param {Object} value The new value. + * @param {Boolean} noChangeEvent Internal commit, to supress `change` event on this element. + */ + setValue: function( value, noChangeEvent ) { + this.getInputElement().setValue( value ); + !noChangeEvent && this.fire( 'change', { value: value } ); + return this; + }, + + /** + * Gets the current value of this dialog UI object. + * + * var myValue = uiElement.getValue(); + * + * @returns {Object} The current value. + */ + getValue: function() { + return this.getInputElement().getValue(); + }, + + /** + * Tells whether the UI object's value has changed. + * + * if ( uiElement.isChanged() ) + * confirm( 'Value changed! Continue?' ); + * + * @returns {Boolean} `true` if changed, `false` if not changed. + */ + isChanged: function() { + // Override in input classes. + return false; + }, + + /** + * Selects the parent tab of this element. Usually called by focus() or overridden focus() methods. + * + * focus : function() { + * this.selectParentTab(); + * // do something else. + * } + * + * @chainable + */ + selectParentTab: function() { + var element = this.getInputElement(), + cursor = element, + tabId; + while ( ( cursor = cursor.getParent() ) && cursor.$.className.search( 'cke_dialog_page_contents' ) == -1 ) { + + } + + // Some widgets don't have parent tabs (e.g. OK and Cancel buttons). + if ( !cursor ) + return this; + + tabId = cursor.getAttribute( 'name' ); + // Avoid duplicate select. + if ( this._.dialog._.currentTabId != tabId ) + this._.dialog.selectPage( tabId ); + return this; + }, + + /** + * Puts the focus to the UI object. Switches tabs if the UI object isn't in the active tab page. + * + * uiElement.focus(); + * + * @chainable + */ + focus: function() { + this.selectParentTab().getInputElement().focus(); + return this; + }, + + /** + * Registers the `on*` event handlers defined in the element definition. + * + * The default behavior of this function is: + * + * 1. If the on* event is defined in the class's eventProcesors list, + * then the registration is delegated to the corresponding function + * in the eventProcessors list. + * 2. If the on* event is not defined in the eventProcessors list, then + * register the event handler under the corresponding DOM event of + * the UI element's input DOM element (as defined by the return value + * of {@link #getInputElement}). + * + * This function is only called at UI element instantiation, but can + * be overridded in child classes if they require more flexibility. + * + * @chainable + * @param {CKEDITOR.dialog.definition.uiElement} definition The UI element + * definition. + */ + registerEvents: function( definition ) { + var regex = /^on([A-Z]\w+)/, + match; + + var registerDomEvent = function( uiElement, dialog, eventName, func ) { + dialog.on( 'load', function() { + uiElement.getInputElement().on( eventName, func, uiElement ); + } ); + }; + + for ( var i in definition ) { + if ( !( match = i.match( regex ) ) ) + continue; + if ( this.eventProcessors[ i ] ) + this.eventProcessors[ i ].call( this, this._.dialog, definition[ i ] ); + else + registerDomEvent( this, this._.dialog, match[ 1 ].toLowerCase(), definition[ i ] ); + } + + return this; + }, + + /** + * The event processor list used by + * {@link CKEDITOR.ui.dialog.uiElement#getInputElement} at UI element + * instantiation. The default list defines three `on*` events: + * + * 1. `onLoad` - Called when the element's parent dialog opens for the + * first time. + * 2. `onShow` - Called whenever the element's parent dialog opens. + * 3. `onHide` - Called whenever the element's parent dialog closes. + * + * // This connects the 'click' event in CKEDITOR.ui.dialog.button to onClick + * // handlers in the UI element's definitions. + * CKEDITOR.ui.dialog.button.eventProcessors = CKEDITOR.tools.extend( {}, + * CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors, + * { onClick : function( dialog, func ) { this.on( 'click', func ); } }, + * true + * ); + * + * @property {Object} + */ + eventProcessors: { + onLoad: function( dialog, func ) { + dialog.on( 'load', func, this ); + }, + + onShow: function( dialog, func ) { + dialog.on( 'show', func, this ); + }, + + onHide: function( dialog, func ) { + dialog.on( 'hide', func, this ); + } + }, + + /** + * The default handler for a UI element's access key down event, which + * tries to put focus to the UI element. + * + * Can be overridded in child classes for more sophisticaed behavior. + * + * @param {CKEDITOR.dialog} dialog The parent dialog object. + * @param {String} key The key combination pressed. Since access keys + * are defined to always include the `CTRL` key, its value should always + * include a `'CTRL+'` prefix. + */ + accessKeyDown: function() { + this.focus(); + }, + + /** + * The default handler for a UI element's access key up event, which + * does nothing. + * + * Can be overridded in child classes for more sophisticated behavior. + * + * @param {CKEDITOR.dialog} dialog The parent dialog object. + * @param {String} key The key combination pressed. Since access keys + * are defined to always include the `CTRL` key, its value should always + * include a `'CTRL+'` prefix. + */ + accessKeyUp: function() {}, + + /** + * Disables a UI element. + */ + disable: function() { + var element = this.getElement(), + input = this.getInputElement(); + input.setAttribute( 'disabled', 'true' ); + element.addClass( 'cke_disabled' ); + }, + + /** + * Enables a UI element. + */ + enable: function() { + var element = this.getElement(), + input = this.getInputElement(); + input.removeAttribute( 'disabled' ); + element.removeClass( 'cke_disabled' ); + }, + + /** + * Determines whether an UI element is enabled or not. + * + * @returns {Boolean} Whether the UI element is enabled. + */ + isEnabled: function() { + return !this.getElement().hasClass( 'cke_disabled' ); + }, + + /** + * Determines whether an UI element is visible or not. + * + * @returns {Boolean} Whether the UI element is visible. + */ + isVisible: function() { + return this.getInputElement().isVisible(); + }, + + /** + * Determines whether an UI element is focus-able or not. + * Focus-able is defined as being both visible and enabled. + * + * @returns {Boolean} Whether the UI element can be focused. + */ + isFocusable: function() { + if ( !this.isEnabled() || !this.isVisible() ) + return false; + return true; + } + }; + + /** @class CKEDITOR.ui.dialog.hbox */ + CKEDITOR.ui.dialog.hbox.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement(), { + /** + * Gets a child UI element inside this container. + * + * var checkbox = hbox.getChild( [0,1] ); + * checkbox.setValue( true ); + * + * @param {Array/Number} indices An array or a single number to indicate the child's + * position in the container's descendant tree. Omit to get all the children in an array. + * @returns {Array/CKEDITOR.ui.dialog.uiElement} Array of all UI elements in the container + * if no argument given, or the specified UI element if indices is given. + */ + getChild: function( indices ) { + // If no arguments, return a clone of the children array. + if ( arguments.length < 1 ) + return this._.children.concat(); + + // If indices isn't array, make it one. + if ( !indices.splice ) + indices = [ indices ]; + + // Retrieve the child element according to tree position. + if ( indices.length < 2 ) + return this._.children[ indices[ 0 ] ]; + else + return ( this._.children[ indices[ 0 ] ] && this._.children[ indices[ 0 ] ].getChild ) ? this._.children[ indices[ 0 ] ].getChild( indices.slice( 1, indices.length ) ) : null; + } + }, true ); + + CKEDITOR.ui.dialog.vbox.prototype = new CKEDITOR.ui.dialog.hbox(); + + ( function() { + var commonBuilder = { + build: function( dialog, elementDefinition, output ) { + var children = elementDefinition.children, + child, + childHtmlList = [], + childObjList = []; + for ( var i = 0; + ( i < children.length && ( child = children[ i ] ) ); i++ ) { + var childHtml = []; + childHtmlList.push( childHtml ); + childObjList.push( CKEDITOR.dialog._.uiElementBuilders[ child.type ].build( dialog, child, childHtml ) ); + } + return new CKEDITOR.ui.dialog[ elementDefinition.type ]( dialog, childObjList, childHtmlList, output, elementDefinition ); + } + }; + + CKEDITOR.dialog.addUIElement( 'hbox', commonBuilder ); + CKEDITOR.dialog.addUIElement( 'vbox', commonBuilder ); + } )(); + + /** + * Generic dialog command. It opens a specific dialog when executed. + * + * // Register the "link" command, which opens the "link" dialog. + * editor.addCommand( 'link', new CKEDITOR.dialogCommand( 'link' ) ); + * + * @class + * @constructor Creates a dialogCommand class instance. + * @extends CKEDITOR.commandDefinition + * @param {String} dialogName The name of the dialog to open when executing + * this command. + * @param {Object} [ext] Additional command definition's properties. + */ + CKEDITOR.dialogCommand = function( dialogName, ext ) { + this.dialogName = dialogName; + CKEDITOR.tools.extend( this, ext, true ); + }; + + CKEDITOR.dialogCommand.prototype = { + exec: function( editor ) { + editor.openDialog( this.dialogName ); + }, + + // Dialog commands just open a dialog ui, thus require no undo logic, + // undo support should dedicate to specific dialog implementation. + canUndo: false, + + editorFocus: 1 + }; + + ( function() { + var notEmptyRegex = /^([a]|[^a])+$/, + integerRegex = /^\d*$/, + numberRegex = /^\d*(?:\.\d+)?$/, + htmlLengthRegex = /^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/, + cssLengthRegex = /^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i, + inlineStyleRegex = /^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/; + + CKEDITOR.VALIDATE_OR = 1; + CKEDITOR.VALIDATE_AND = 2; + + CKEDITOR.dialog.validate = { + functions: function() { + var args = arguments; + return function() { + /** + * It's important for validate functions to be able to accept the value + * as argument in addition to this.getValue(), so that it is possible to + * combine validate functions together to make more sophisticated + * validators. + */ + var value = this && this.getValue ? this.getValue() : args[ 0 ]; + + var msg, + relation = CKEDITOR.VALIDATE_AND, + functions = [], + i; + + for ( i = 0; i < args.length; i++ ) { + if ( typeof args[ i ] == 'function' ) + functions.push( args[ i ] ); + else + break; + } + + if ( i < args.length && typeof args[ i ] == 'string' ) { + msg = args[ i ]; + i++; + } + + if ( i < args.length && typeof args[ i ] == 'number' ) + relation = args[ i ]; + + var passed = ( relation == CKEDITOR.VALIDATE_AND ? true : false ); + for ( i = 0; i < functions.length; i++ ) { + if ( relation == CKEDITOR.VALIDATE_AND ) + passed = passed && functions[ i ]( value ); + else + passed = passed || functions[ i ]( value ); + } + + return !passed ? msg : true; + }; + }, + + regex: function( regex, msg ) { + /* + * Can be greatly shortened by deriving from functions validator if code size + * turns out to be more important than performance. + */ + return function() { + var value = this && this.getValue ? this.getValue() : arguments[ 0 ]; + return !regex.test( value ) ? msg : true; + }; + }, + + notEmpty: function( msg ) { + return this.regex( notEmptyRegex, msg ); + }, + + integer: function( msg ) { + return this.regex( integerRegex, msg ); + }, + + 'number': function( msg ) { + return this.regex( numberRegex, msg ); + }, + + 'cssLength': function( msg ) { + return this.functions( function( val ) { + return cssLengthRegex.test( CKEDITOR.tools.trim( val ) ); + }, msg ); + }, + + 'htmlLength': function( msg ) { + return this.functions( function( val ) { + return htmlLengthRegex.test( CKEDITOR.tools.trim( val ) ); + }, msg ); + }, + + 'inlineStyle': function( msg ) { + return this.functions( function( val ) { + return inlineStyleRegex.test( CKEDITOR.tools.trim( val ) ); + }, msg ); + }, + + equals: function( value, msg ) { + return this.functions( function( val ) { + return val == value; + }, msg ); + }, + + notEqual: function( value, msg ) { + return this.functions( function( val ) { + return val != value; + }, msg ); + } + }; + + CKEDITOR.on( 'instanceDestroyed', function( evt ) { + // Remove dialog cover on last instance destroy. + if ( CKEDITOR.tools.isEmpty( CKEDITOR.instances ) ) { + var currentTopDialog; + while ( ( currentTopDialog = CKEDITOR.dialog._.currentTop ) ) + currentTopDialog.hide(); + removeCovers(); + } + + var dialogs = evt.editor._.storedDialogs; + for ( var name in dialogs ) + dialogs[ name ].destroy(); + + } ); + + } )(); + + // Extend the CKEDITOR.editor class with dialog specific functions. + CKEDITOR.tools.extend( CKEDITOR.editor.prototype, { + /** + * Loads and opens a registered dialog. + * + * CKEDITOR.instances.editor1.openDialog( 'smiley' ); + * + * @member CKEDITOR.editor + * @param {String} dialogName The registered name of the dialog. + * @param {Function} callback The function to be invoked after dialog instance created. + * @returns {CKEDITOR.dialog} The dialog object corresponding to the dialog displayed. + * `null` if the dialog name is not registered. + * @see CKEDITOR.dialog#add + */ + openDialog: function( dialogName, callback ) { + var dialog = null, dialogDefinitions = CKEDITOR.dialog._.dialogDefinitions[ dialogName ]; + + if ( CKEDITOR.dialog._.currentTop === null ) + showCover( this ); + + // If the dialogDefinition is already loaded, open it immediately. + if ( typeof dialogDefinitions == 'function' ) { + var storedDialogs = this._.storedDialogs || ( this._.storedDialogs = {} ); + + dialog = storedDialogs[ dialogName ] || ( storedDialogs[ dialogName ] = new CKEDITOR.dialog( this, dialogName ) ); + + callback && callback.call( dialog, dialog ); + dialog.show(); + + } else if ( dialogDefinitions == 'failed' ) { + hideCover( this ); + throw new Error( '[CKEDITOR.dialog.openDialog] Dialog "' + dialogName + '" failed when loading definition.' ); + } else if ( typeof dialogDefinitions == 'string' ) { + + CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( dialogDefinitions ), + function() { + var dialogDefinition = CKEDITOR.dialog._.dialogDefinitions[ dialogName ]; + // In case of plugin error, mark it as loading failed. + if ( typeof dialogDefinition != 'function' ) + CKEDITOR.dialog._.dialogDefinitions[ dialogName ] = 'failed'; + + this.openDialog( dialogName, callback ); + }, this, 0, 1 ); + } + + CKEDITOR.skin.loadPart( 'dialog' ); + + return dialog; + } + } ); +} )(); + +CKEDITOR.plugins.add( 'dialog', { + requires: 'dialogui', + init: function( editor ) { + editor.on( 'doubleclick', function( evt ) { + if ( evt.data.dialog ) + editor.openDialog( evt.data.dialog ); + }, null, null, 999 ); + } +} ); + +// Dialog related configurations. + +/** + * The color of the dialog background cover. It should be a valid CSS color string. + * + * config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)'; + * + * @cfg {String} [dialog_backgroundCoverColor='white'] + * @member CKEDITOR.config + */ + +/** + * The opacity of the dialog background cover. It should be a number within the + * range `[0.0, 1.0]`. + * + * config.dialog_backgroundCoverOpacity = 0.7; + * + * @cfg {Number} [dialog_backgroundCoverOpacity=0.5] + * @member CKEDITOR.config + */ + +/** + * If the dialog has more than one tab, put focus into the first tab as soon as dialog is opened. + * + * config.dialog_startupFocusTab = true; + * + * @cfg {Boolean} [dialog_startupFocusTab=false] + * @member CKEDITOR.config + */ + +/** + * The distance of magnetic borders used in moving and resizing dialogs, + * measured in pixels. + * + * config.dialog_magnetDistance = 30; + * + * @cfg {Number} [dialog_magnetDistance=20] + * @member CKEDITOR.config + */ + +/** + * The guideline to follow when generating the dialog buttons. There are 3 possible options: + * + * * `'OS'` - the buttons will be displayed in the default order of the user's OS; + * * `'ltr'` - for Left-To-Right order; + * * `'rtl'` - for Right-To-Left order. + * + * Example: + * + * config.dialog_buttonsOrder = 'rtl'; + * + * @since 3.5 + * @cfg {String} [dialog_buttonsOrder='OS'] + * @member CKEDITOR.config + */ + +/** + * The dialog contents to removed. It's a string composed by dialog name and tab name with a colon between them. + * + * Separate each pair with semicolon (see example). + * + * **Note:** All names are case-sensitive. + * + * **Note:** Be cautious when specifying dialog tabs that are mandatory, + * like `'info'`, dialog functionality might be broken because of this! + * + * config.removeDialogTabs = 'flash:advanced;image:Link'; + * + * @since 3.5 + * @cfg {String} [removeDialogTabs=''] + * @member CKEDITOR.config + */ + +/** + * Tells if user should not be asked to confirm close, if any dialog field was modified. + * By default it is set to `false` meaning that the confirmation dialog will be shown. + * + * config.dialog_noConfirmCancel = true; + * + * @since 4.3 + * @cfg {Boolean} [dialog_noConfirmCancel=false] + * @member CKEDITOR.config + */ + +/** + * Event fired when a dialog definition is about to be used to create a dialog into + * an editor instance. This event makes it possible to customize the definition + * before creating it. + * + * Note that this event is called only the first time a specific dialog is + * opened. Successive openings will use the cached dialog, and this event will + * not get fired. + * + * @event dialogDefinition + * @member CKEDITOR + * @param {CKEDITOR.dialog.definition} data The dialog defination that + * is being loaded. + * @param {CKEDITOR.editor} editor The editor instance that will use the dialog. + */ + +/** + * Event fired when a tab is going to be selected in a dialog. + * + * @event selectPage + * @member CKEDITOR.dialog + * @param data + * @param {String} data.page The id of the page that it's gonna be selected. + * @param {String} data.currentPage The id of the current page. + */ + +/** + * Event fired when the user tries to dismiss a dialog. + * + * @event cancel + * @member CKEDITOR.dialog + * @param data + * @param {Boolean} data.hide Whether the event should proceed or not. + */ + +/** + * Event fired when the user tries to confirm a dialog. + * + * @event ok + * @member CKEDITOR.dialog + * @param data + * @param {Boolean} data.hide Whether the event should proceed or not. + */ + +/** + * Event fired when a dialog is shown. + * + * @event show + * @member CKEDITOR.dialog + */ + +/** + * Event fired when a dialog is shown. + * + * @event dialogShow + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param {CKEDITOR.dialog} data The opened dialog instance. + */ + +/** + * Event fired when a dialog is hidden. + * + * @event hide + * @member CKEDITOR.dialog + */ + +/** + * Event fired when a dialog is hidden. + * + * @event dialogHide + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param {CKEDITOR.dialog} data The hidden dialog instance. + */ + +/** + * Event fired when a dialog is being resized. The event is fired on + * both the {@link CKEDITOR.dialog} object and the dialog instance + * since 3.5.3, previously it was only available in the global object. + * + * @static + * @event resize + * @member CKEDITOR.dialog + * @param data + * @param {CKEDITOR.dialog} data.dialog The dialog being resized (if + * it is fired on the dialog itself, this parameter is not sent). + * @param {String} data.skin The skin name. + * @param {Number} data.width The new width. + * @param {Number} data.height The new height. + */ + +/** + * Event fired when a dialog is being resized. The event is fired on + * both the {@link CKEDITOR.dialog} object and the dialog instance + * since 3.5.3, previously it was only available in the global object. + * + * @since 3.5 + * @event resize + * @member CKEDITOR.dialog + * @param data + * @param {Number} data.width The new width. + * @param {Number} data.height The new height. + */ + +/** + * Event fired when the dialog state changes, usually by {@link CKEDITOR.dialog#setState}. + * + * @since 4.5 + * @event state + * @member CKEDITOR.dialog + * @param data + * @param {Number} data The new state. Either {@link CKEDITOR#DIALOG_STATE_IDLE} or {@link CKEDITOR#DIALOG_STATE_BUSY}. + */ diff --git a/sources/plugins/dialog/samples/assets/my_dialog.js b/sources/plugins/dialog/samples/assets/my_dialog.js new file mode 100644 index 00000000..6ee1a201 --- /dev/null +++ b/sources/plugins/dialog/samples/assets/my_dialog.js @@ -0,0 +1,49 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.dialog.add( 'myDialog', function() { + return { + title: 'My Dialog', + minWidth: 400, + minHeight: 200, + contents: [ + { + id: 'tab1', + label: 'First Tab', + title: 'First Tab', + elements: [ + { + id: 'input1', + type: 'text', + label: 'Text Field' + }, + { + id: 'select1', + type: 'select', + label: 'Select Field', + items: [ + [ 'option1', 'value1' ], + [ 'option2', 'value2' ] + ] + } + ] + }, + { + id: 'tab2', + label: 'Second Tab', + title: 'Second Tab', + elements: [ + { + id: 'button1', + type: 'button', + label: 'Button Field' + } + ] + } + ] + }; +} ); + +// %LEAVE_UNMINIFIED% %REMOVE_LINE% diff --git a/sources/plugins/dialog/samples/dialog.html b/sources/plugins/dialog/samples/dialog.html new file mode 100644 index 00000000..df43657e --- /dev/null +++ b/sources/plugins/dialog/samples/dialog.html @@ -0,0 +1,190 @@ + + + + + + Using API to Customize Dialog Windows — CKEditor Sample + + + + + + + + + +

+ CKEditor Samples » Using CKEditor Dialog API +

+
+ This sample is not maintained anymore. Check out the brand new samples in CKEditor SDK. +
+
+

+ This sample shows how to use the + CKEditor Dialog API + to customize CKEditor dialog windows without changing the original editor code. + The following customizations are being done in the example below: +

+

+ For details on how to create this setup check the source code of this sample page. +

+
+

A custom dialog is added to the editors using the pluginsLoaded event, from an external dialog definition file:

+
    +
  1. Creating a custom dialog window – "My Dialog" dialog window opened with the "My Dialog" toolbar button.
  2. +
  3. Creating a custom button – Add button to open the dialog with "My Dialog" toolbar button.
  4. +
+ + +

The below editor modify the dialog definition of the above added dialog using the dialogDefinition event:

+
    +
  1. Adding dialog tab – Add new tab "My Tab" to dialog window.
  2. +
  3. Removing a dialog window tab – Remove "Second Tab" page from the dialog window.
  4. +
  5. Adding dialog window fields – Add "My Custom Field" to the dialog window.
  6. +
  7. Removing dialog window field – Remove "Select Field" selection field from the dialog window.
  8. +
  9. Setting default values for dialog window fields – Set default value of "Text Field" text field.
  10. +
  11. Setup initial focus for dialog window – Put initial focus on "My Custom Field" text field.
  12. +
+ + + + + diff --git a/sources/plugins/dialogadvtab/plugin.js b/sources/plugins/dialogadvtab/plugin.js new file mode 100644 index 00000000..f57f604b --- /dev/null +++ b/sources/plugins/dialogadvtab/plugin.js @@ -0,0 +1,196 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +( function() { + + function setupAdvParams( element ) { + var attrName = this.att; + + var value = element && element.hasAttribute( attrName ) && element.getAttribute( attrName ) || ''; + + if ( value !== undefined ) + this.setValue( value ); + } + + function commitAdvParams() { + // Dialogs may use different parameters in the commit list, so, by + // definition, we take the first CKEDITOR.dom.element available. + var element; + + for ( var i = 0; i < arguments.length; i++ ) { + if ( arguments[ i ] instanceof CKEDITOR.dom.element ) { + element = arguments[ i ]; + break; + } + } + + if ( element ) { + var attrName = this.att, + value = this.getValue(); + + if ( value ) + element.setAttribute( attrName, value ); + else + element.removeAttribute( attrName, value ); + } + } + + var defaultTabConfig = { id: 1, dir: 1, classes: 1, styles: 1 }; + + CKEDITOR.plugins.add( 'dialogadvtab', { + requires: 'dialog', + + // Returns allowed content rule for the content created by this plugin. + allowedContent: function( tabConfig ) { + if ( !tabConfig ) + tabConfig = defaultTabConfig; + + var allowedAttrs = []; + if ( tabConfig.id ) + allowedAttrs.push( 'id' ); + if ( tabConfig.dir ) + allowedAttrs.push( 'dir' ); + + var allowed = ''; + + if ( allowedAttrs.length ) + allowed += '[' + allowedAttrs.join( ',' ) + ']'; + + if ( tabConfig.classes ) + allowed += '(*)'; + if ( tabConfig.styles ) + allowed += '{*}'; + + return allowed; + }, + + // @param tabConfig + // id, dir, classes, styles + createAdvancedTab: function( editor, tabConfig, element ) { + if ( !tabConfig ) + tabConfig = defaultTabConfig; + + var lang = editor.lang.common; + + var result = { + id: 'advanced', + label: lang.advancedTab, + title: lang.advancedTab, + elements: [ { + type: 'vbox', + padding: 1, + children: [] + } ] + }; + + var contents = []; + + if ( tabConfig.id || tabConfig.dir ) { + if ( tabConfig.id ) { + contents.push( { + id: 'advId', + att: 'id', + type: 'text', + requiredContent: element ? element + '[id]' : null, + label: lang.id, + setup: setupAdvParams, + commit: commitAdvParams + } ); + } + + if ( tabConfig.dir ) { + contents.push( { + id: 'advLangDir', + att: 'dir', + type: 'select', + requiredContent: element ? element + '[dir]' : null, + label: lang.langDir, + 'default': '', + style: 'width:100%', + items: [ + [ lang.notSet, '' ], + [ lang.langDirLTR, 'ltr' ], + [ lang.langDirRTL, 'rtl' ] + ], + setup: setupAdvParams, + commit: commitAdvParams + } ); + } + + result.elements[ 0 ].children.push( { + type: 'hbox', + widths: [ '50%', '50%' ], + children: [].concat( contents ) + } ); + } + + if ( tabConfig.styles || tabConfig.classes ) { + contents = []; + + if ( tabConfig.styles ) { + contents.push( { + id: 'advStyles', + att: 'style', + type: 'text', + requiredContent: element ? element + '{cke-xyz}' : null, + label: lang.styles, + 'default': '', + + validate: CKEDITOR.dialog.validate.inlineStyle( lang.invalidInlineStyle ), + onChange: function() {}, + + getStyle: function( name, defaultValue ) { + var match = this.getValue().match( new RegExp( '(?:^|;)\\s*' + name + '\\s*:\\s*([^;]*)', 'i' ) ); + return match ? match[ 1 ] : defaultValue; + }, + + updateStyle: function( name, value ) { + var styles = this.getValue(); + + var tmp = editor.document.createElement( 'span' ); + tmp.setAttribute( 'style', styles ); + tmp.setStyle( name, value ); + styles = CKEDITOR.tools.normalizeCssText( tmp.getAttribute( 'style' ) ); + + this.setValue( styles, 1 ); + }, + + setup: setupAdvParams, + + commit: commitAdvParams + + } ); + } + + if ( tabConfig.classes ) { + contents.push( { + type: 'hbox', + widths: [ '45%', '55%' ], + children: [ { + id: 'advCSSClasses', + att: 'class', + type: 'text', + requiredContent: element ? element + '(cke-xyz)' : null, + label: lang.cssClasses, + 'default': '', + setup: setupAdvParams, + commit: commitAdvParams + + } ] + } ); + } + + result.elements[ 0 ].children.push( { + type: 'hbox', + widths: [ '50%', '50%' ], + children: [].concat( contents ) + } ); + } + + return result; + } + } ); + +} )(); diff --git a/sources/plugins/dialogui/plugin.js b/sources/plugins/dialogui/plugin.js new file mode 100644 index 00000000..3b3f1e22 --- /dev/null +++ b/sources/plugins/dialogui/plugin.js @@ -0,0 +1,1530 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview The Dialog User Interface plugin. + */ + +CKEDITOR.plugins.add( 'dialogui', { + onLoad: function() { + + var initPrivateObject = function( elementDefinition ) { + this._ || ( this._ = {} ); + this._[ 'default' ] = this._.initValue = elementDefinition[ 'default' ] || ''; + this._.required = elementDefinition.required || false; + var args = [ this._ ]; + for ( var i = 1; i < arguments.length; i++ ) + args.push( arguments[ i ] ); + args.push( true ); + CKEDITOR.tools.extend.apply( CKEDITOR.tools, args ); + return this._; + }, + textBuilder = { + build: function( dialog, elementDefinition, output ) { + return new CKEDITOR.ui.dialog.textInput( dialog, elementDefinition, output ); + } + }, + commonBuilder = { + build: function( dialog, elementDefinition, output ) { + return new CKEDITOR.ui.dialog[ elementDefinition.type ]( dialog, elementDefinition, output ); + } + }, + containerBuilder = { + build: function( dialog, elementDefinition, output ) { + var children = elementDefinition.children, + child, + childHtmlList = [], + childObjList = []; + for ( var i = 0; + ( i < children.length && ( child = children[ i ] ) ); i++ ) { + var childHtml = []; + childHtmlList.push( childHtml ); + childObjList.push( CKEDITOR.dialog._.uiElementBuilders[ child.type ].build( dialog, child, childHtml ) ); + } + return new CKEDITOR.ui.dialog[ elementDefinition.type ]( dialog, childObjList, childHtmlList, output, elementDefinition ); + } + }, + commonPrototype = { + isChanged: function() { + return this.getValue() != this.getInitValue(); + }, + + reset: function( noChangeEvent ) { + this.setValue( this.getInitValue(), noChangeEvent ); + }, + + setInitValue: function() { + this._.initValue = this.getValue(); + }, + + resetInitValue: function() { + this._.initValue = this._[ 'default' ]; + }, + + getInitValue: function() { + return this._.initValue; + } + }, + commonEventProcessors = CKEDITOR.tools.extend( {}, CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors, { + onChange: function( dialog, func ) { + if ( !this._.domOnChangeRegistered ) { + dialog.on( 'load', function() { + this.getInputElement().on( 'change', function() { + // Make sure 'onchange' doesn't get fired after dialog closed. (#5719) + if ( !dialog.parts.dialog.isVisible() ) + return; + + this.fire( 'change', { value: this.getValue() } ); + }, this ); + }, this ); + this._.domOnChangeRegistered = true; + } + + this.on( 'change', func ); + } + }, true ), + eventRegex = /^on([A-Z]\w+)/, + cleanInnerDefinition = function( def ) { + // An inner UI element should not have the parent's type, title or events. + for ( var i in def ) { + if ( eventRegex.test( i ) || i == 'title' || i == 'type' ) + delete def[ i ]; + } + return def; + }, + // @context {CKEDITOR.dialog.uiElement} UI element (textarea or textInput) + // @param {CKEDITOR.dom.event} evt + toggleBidiKeyUpHandler = function( evt ) { + var keystroke = evt.data.getKeystroke(); + + // ALT + SHIFT + Home for LTR direction. + if ( keystroke == CKEDITOR.SHIFT + CKEDITOR.ALT + 36 ) + this.setDirectionMarker( 'ltr' ); + + // ALT + SHIFT + End for RTL direction. + else if ( keystroke == CKEDITOR.SHIFT + CKEDITOR.ALT + 35 ) + this.setDirectionMarker( 'rtl' ); + }; + + CKEDITOR.tools.extend( CKEDITOR.ui.dialog, { + /** + * Base class for all dialog window elements with a textual label on the left. + * + * @class CKEDITOR.ui.dialog.labeledElement + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a labeledElement class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `label` (Required) The label string. + * * `labelLayout` (Optional) Put 'horizontal' here if the + * label element is to be laid out horizontally. Otherwise a vertical + * layout will be used. + * * `widths` (Optional) This applies only to horizontal + * layouts — a two-element array of lengths to specify the widths of the + * label and the content element. + * * `role` (Optional) Value for the `role` attribute. + * * `includeLabel` (Optional) If set to `true`, the `aria-labelledby` attribute + * will be included. + * + * @param {Array} htmlList The list of HTML code to output to. + * @param {Function} contentHtml + * A function returning the HTML code string to be added inside the content + * cell. + */ + labeledElement: function( dialog, elementDefinition, htmlList, contentHtml ) { + if ( arguments.length < 4 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition ); + _.labelId = CKEDITOR.tools.getNextId() + '_label'; + this._.children = []; + + var innerHTML = function() { + var html = [], + requiredClass = elementDefinition.required ? ' cke_required' : ''; + if ( elementDefinition.labelLayout != 'horizontal' ) { + html.push( + '', + '' ); + } else { + var hboxDefinition = { + type: 'hbox', + widths: elementDefinition.widths, + padding: 0, + children: [ { + type: 'html', + html: '' + }, + { + type: 'html', + html: '' + + contentHtml.call( this, dialog, elementDefinition ) + + '' + } ] + }; + CKEDITOR.dialog._.uiElementBuilders.hbox.build( dialog, hboxDefinition, html ); + } + return html.join( '' ); + }; + var attributes = { role: elementDefinition.role || 'presentation' }; + + if ( elementDefinition.includeLabel ) + attributes[ 'aria-labelledby' ] = _.labelId; + + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'div', null, attributes, innerHTML ); + }, + + /** + * A text input with a label. This UI element class represents both the + * single-line text inputs and password inputs in dialog boxes. + * + * @class CKEDITOR.ui.dialog.textInput + * @extends CKEDITOR.ui.dialog.labeledElement + * @constructor Creates a textInput class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `default` (Optional) The default value. + * * `validate` (Optional) The validation function. + * * `maxLength` (Optional) The maximum length of text box contents. + * * `size` (Optional) The size of the text box. This is + * usually overridden by the size defined by the skin, though. + * + * @param {Array} htmlList List of HTML code to output to. + */ + textInput: function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + initPrivateObject.call( this, elementDefinition ); + var domId = this._.inputId = CKEDITOR.tools.getNextId() + '_textInput', + attributes = { 'class': 'cke_dialog_ui_input_' + elementDefinition.type, id: domId, type: elementDefinition.type }; + + // Set the validator, if any. + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + // Set the max length and size. + if ( elementDefinition.maxLength ) + attributes.maxlength = elementDefinition.maxLength; + if ( elementDefinition.size ) + attributes.size = elementDefinition.size; + + if ( elementDefinition.inputStyle ) + attributes.style = elementDefinition.inputStyle; + + // If user presses Enter in a text box, it implies clicking OK for the dialog. + var me = this, + keyPressedOnMe = false; + dialog.on( 'load', function() { + me.getInputElement().on( 'keydown', function( evt ) { + if ( evt.data.getKeystroke() == 13 ) + keyPressedOnMe = true; + } ); + + // Lower the priority this 'keyup' since 'ok' will close the dialog.(#3749) + me.getInputElement().on( 'keyup', function( evt ) { + if ( evt.data.getKeystroke() == 13 && keyPressedOnMe ) { + dialog.getButton( 'ok' ) && setTimeout( function() { + dialog.getButton( 'ok' ).click(); + }, 0 ); + keyPressedOnMe = false; + } + + if ( me.bidi ) + toggleBidiKeyUpHandler.call( me, evt ); + }, null, null, 1000 ); + } ); + + var innerHTML = function() { + // IE BUG: Text input fields in IE at 100% would exceed a or inline + // container's width, so need to wrap it inside a
. + var html = [ '' ); + return html.join( '' ); + }; + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A text area with a label at the top or on the left. + * + * @class CKEDITOR.ui.dialog.textarea + * @extends CKEDITOR.ui.dialog.labeledElement + * @constructor Creates a textarea class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * + * The element definition. Accepted fields: + * + * * `rows` (Optional) The number of rows displayed. + * Defaults to 5 if not defined. + * * `cols` (Optional) The number of cols displayed. + * Defaults to 20 if not defined. Usually overridden by skins. + * * `default` (Optional) The default value. + * * `validate` (Optional) The validation function. + * + * @param {Array} htmlList List of HTML code to output to. + */ + textarea: function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + initPrivateObject.call( this, elementDefinition ); + var me = this, + domId = this._.inputId = CKEDITOR.tools.getNextId() + '_textarea', + attributes = {}; + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + // Generates the essential attributes for the textarea tag. + attributes.rows = elementDefinition.rows || 5; + attributes.cols = elementDefinition.cols || 20; + + attributes[ 'class' ] = 'cke_dialog_ui_input_textarea ' + ( elementDefinition[ 'class' ] || '' ); + + if ( typeof elementDefinition.inputStyle != 'undefined' ) + attributes.style = elementDefinition.inputStyle; + + if ( elementDefinition.dir ) + attributes.dir = elementDefinition.dir; + + if ( me.bidi ) { + dialog.on( 'load', function() { + me.getInputElement().on( 'keyup', toggleBidiKeyUpHandler ); + }, me ); + } + + var innerHTML = function() { + attributes[ 'aria-labelledby' ] = this._.labelId; + this._.required && ( attributes[ 'aria-required' ] = this._.required ); + var html = [ '' ); + return html.join( '' ); + }; + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A single checkbox with a label on the right. + * + * @class CKEDITOR.ui.dialog.checkbox + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a checkbox class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `checked` (Optional) Whether the checkbox is checked + * on instantiation. Defaults to `false`. + * * `validate` (Optional) The validation function. + * * `label` (Optional) The checkbox label. + * + * @param {Array} htmlList List of HTML code to output to. + */ + checkbox: function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition, { 'default': !!elementDefinition[ 'default' ] } ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + var innerHTML = function() { + var myDefinition = CKEDITOR.tools.extend( + {}, + elementDefinition, + { + id: elementDefinition.id ? elementDefinition.id + '_checkbox' : CKEDITOR.tools.getNextId() + '_checkbox' + }, + true + ), + html = []; + + var labelId = CKEDITOR.tools.getNextId() + '_label'; + var attributes = { 'class': 'cke_dialog_ui_checkbox_input', type: 'checkbox', 'aria-labelledby': labelId }; + cleanInnerDefinition( myDefinition ); + if ( elementDefinition[ 'default' ] ) + attributes.checked = 'checked'; + + if ( typeof myDefinition.inputStyle != 'undefined' ) + myDefinition.style = myDefinition.inputStyle; + + _.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes ); + html.push( + ' ' + ); + return html.join( '' ); + }; + + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'span', null, null, innerHTML ); + }, + + /** + * A group of radio buttons. + * + * @class CKEDITOR.ui.dialog.radio + * @extends CKEDITOR.ui.dialog.labeledElement + * @constructor Creates a radio class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `default` (Required) The default value. + * * `validate` (Optional) The validation function. + * * `items` (Required) An array of options. Each option + * is a one- or two-item array of format `[ 'Description', 'Value' ]`. If `'Value'` + * is missing, then the value would be assumed to be the same as the description. + * + * @param {Array} htmlList List of HTML code to output to. + */ + radio: function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + initPrivateObject.call( this, elementDefinition ); + + if ( !this._[ 'default' ] ) + this._[ 'default' ] = this._.initValue = elementDefinition.items[ 0 ][ 1 ]; + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + var children = [], + me = this; + + var innerHTML = function() { + var inputHtmlList = [], + html = [], + commonName = ( elementDefinition.id ? elementDefinition.id : CKEDITOR.tools.getNextId() ) + '_radio'; + + for ( var i = 0; i < elementDefinition.items.length; i++ ) { + var item = elementDefinition.items[ i ], + title = item[ 2 ] !== undefined ? item[ 2 ] : item[ 0 ], + value = item[ 1 ] !== undefined ? item[ 1 ] : item[ 0 ], + inputId = CKEDITOR.tools.getNextId() + '_radio_input', + labelId = inputId + '_label', + + inputDefinition = CKEDITOR.tools.extend( {}, elementDefinition, { + id: inputId, + title: null, + type: null + }, true ), + + labelDefinition = CKEDITOR.tools.extend( {}, inputDefinition, { + title: title + }, true ), + + inputAttributes = { + type: 'radio', + 'class': 'cke_dialog_ui_radio_input', + name: commonName, + value: value, + 'aria-labelledby': labelId + }, + + inputHtml = []; + + if ( me._[ 'default' ] == value ) + inputAttributes.checked = 'checked'; + + cleanInnerDefinition( inputDefinition ); + cleanInnerDefinition( labelDefinition ); + + if ( typeof inputDefinition.inputStyle != 'undefined' ) + inputDefinition.style = inputDefinition.inputStyle; + + // Make inputs of radio type focusable (#10866). + inputDefinition.keyboardFocusable = true; + + children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) ); + + inputHtml.push( ' ' ); + + new CKEDITOR.ui.dialog.uiElement( dialog, labelDefinition, inputHtml, 'label', null, { + id: labelId, + 'for': inputAttributes.id + }, item[ 0 ] ); + + inputHtmlList.push( inputHtml.join( '' ) ); + } + + new CKEDITOR.ui.dialog.hbox( dialog, children, inputHtmlList, html ); + + return html.join( '' ); + }; + + // Adding a role="radiogroup" to definition used for wrapper. + elementDefinition.role = 'radiogroup'; + elementDefinition.includeLabel = true; + + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + this._.children = children; + }, + + /** + * A button with a label inside. + * + * @class CKEDITOR.ui.dialog.button + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a button class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `label` (Required) The button label. + * * `disabled` (Optional) Set to `true` if you want the + * button to appear in the disabled state. + * + * @param {Array} htmlList List of HTML code to output to. + */ + button: function( dialog, elementDefinition, htmlList ) { + if ( !arguments.length ) + return; + + if ( typeof elementDefinition == 'function' ) + elementDefinition = elementDefinition( dialog.getParentEditor() ); + + initPrivateObject.call( this, elementDefinition, { disabled: elementDefinition.disabled || false } ); + + // Add OnClick event to this input. + CKEDITOR.event.implementOn( this ); + + var me = this; + + // Register an event handler for processing button clicks. + dialog.on( 'load', function() { + var element = this.getElement(); + + ( function() { + element.on( 'click', function( evt ) { + me.click(); + // #9958 + evt.data.preventDefault(); + } ); + + element.on( 'keydown', function( evt ) { + if ( evt.data.getKeystroke() in { 32: 1 } ) { + me.click(); + evt.data.preventDefault(); + } + } ); + } )(); + + element.unselectable(); + }, this ); + + var outerDefinition = CKEDITOR.tools.extend( {}, elementDefinition ); + delete outerDefinition.style; + + var labelId = CKEDITOR.tools.getNextId() + '_label'; + CKEDITOR.ui.dialog.uiElement.call( this, dialog, outerDefinition, htmlList, 'a', null, { + style: elementDefinition.style, + href: 'javascript:void(0)', // jshint ignore:line + title: elementDefinition.label, + hidefocus: 'true', + 'class': elementDefinition[ 'class' ], + role: 'button', + 'aria-labelledby': labelId + }, '' + + CKEDITOR.tools.htmlEncode( elementDefinition.label ) + + '' ); + }, + + /** + * A select box. + * + * @class CKEDITOR.ui.dialog.select + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a button class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `default` (Required) The default value. + * * `validate` (Optional) The validation function. + * * `items` (Required) An array of options. Each option + * is a one- or two-item array of format `[ 'Description', 'Value' ]`. If `'Value'` + * is missing, then the value would be assumed to be the same as the + * description. + * * `multiple` (Optional) Set this to `true` if you would like + * to have a multiple-choice select box. + * * `size` (Optional) The number of items to display in + * the select box. + * + * @param {Array} htmlList List of HTML code to output to. + */ + select: function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + _.inputId = CKEDITOR.tools.getNextId() + '_select'; + + var innerHTML = function() { + var myDefinition = CKEDITOR.tools.extend( + {}, + elementDefinition, + { + id: ( elementDefinition.id ? elementDefinition.id + '_select' : CKEDITOR.tools.getNextId() + '_select' ) + }, + true + ), + html = [], + innerHTML = [], + attributes = { 'id': _.inputId, 'class': 'cke_dialog_ui_input_select', 'aria-labelledby': this._.labelId }; + + html.push( '' ); + + return html.join( '' ); + }; + + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A file upload input. + * + * @class CKEDITOR.ui.dialog.file + * @extends CKEDITOR.ui.dialog.labeledElement + * @constructor Creates a file class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `validate` (Optional) The validation function. + * + * @param {Array} htmlList List of HTML code to output to. + */ + file: function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + if ( elementDefinition[ 'default' ] === undefined ) + elementDefinition[ 'default' ] = ''; + + var _ = CKEDITOR.tools.extend( initPrivateObject.call( this, elementDefinition ), { definition: elementDefinition, buttons: [] } ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + /** @ignore */ + var innerHTML = function() { + _.frameId = CKEDITOR.tools.getNextId() + '_fileInput'; + + var html = [ + '' ); + + return html.join( '' ); + }; + + // IE BUG: Parent container does not resize to contain the iframe automatically. + dialog.on( 'load', function() { + var iframe = CKEDITOR.document.getById( _.frameId ), + contentDiv = iframe.getParent(); + contentDiv.addClass( 'cke_dialog_ui_input_file' ); + } ); + + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A button for submitting the file in a file upload input. + * + * @class CKEDITOR.ui.dialog.fileButton + * @extends CKEDITOR.ui.dialog.button + * @constructor Creates a fileButton class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `for` (Required) The file input's page and element ID + * to associate with, in a two-item array format: `[ 'page_id', 'element_id' ]`. + * * `validate` (Optional) The validation function. + * + * @param {Array} htmlList List of HTML code to output to. + */ + fileButton: function( dialog, elementDefinition, htmlList ) { + var me = this; + if ( arguments.length < 3 ) + return; + + initPrivateObject.call( this, elementDefinition ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition ); + var onClick = myDefinition.onClick; + myDefinition.className = ( myDefinition.className ? myDefinition.className + ' ' : '' ) + 'cke_dialog_ui_button'; + myDefinition.onClick = function( evt ) { + var target = elementDefinition[ 'for' ]; // [ pageId, elementId ] + if ( !onClick || onClick.call( this, evt ) !== false ) { + dialog.getContentElement( target[ 0 ], target[ 1 ] ).submit(); + this.disable(); + } + }; + + dialog.on( 'load', function() { + dialog.getContentElement( elementDefinition[ 'for' ][ 0 ], elementDefinition[ 'for' ][ 1 ] )._.buttons.push( me ); + } ); + + CKEDITOR.ui.dialog.button.call( this, dialog, myDefinition, htmlList ); + }, + + html: ( function() { + var myHtmlRe = /^\s*<[\w:]+\s+([^>]*)?>/, + theirHtmlRe = /^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/, + emptyTagRe = /\/$/; + /** + * A dialog window element made from raw HTML code. + * + * @class CKEDITOR.ui.dialog.html + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a html class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition Element definition. + * Accepted fields: + * + * * `html` (Required) HTML code of this element. + * + * @param {Array} htmlList List of HTML code to be added to the dialog's content area. + */ + return function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + var myHtmlList = [], + myHtml, + theirHtml = elementDefinition.html, + myMatch, theirMatch; + + // If the HTML input doesn't contain any tags at the beginning, add a tag around it. + if ( theirHtml.charAt( 0 ) != '<' ) + theirHtml = '' + theirHtml + ''; + + // Look for focus function in definition. + var focus = elementDefinition.focus; + if ( focus ) { + var oldFocus = this.focus; + this.focus = function() { + ( typeof focus == 'function' ? focus : oldFocus ).call( this ); + this.fire( 'focus' ); + }; + if ( elementDefinition.isFocusable ) { + var oldIsFocusable = this.isFocusable; + this.isFocusable = oldIsFocusable; + } + this.keyboardFocusable = true; + } + + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, myHtmlList, 'span', null, null, '' ); + + // Append the attributes created by the uiElement call to the real HTML. + myHtml = myHtmlList.join( '' ); + myMatch = myHtml.match( myHtmlRe ); + theirMatch = theirHtml.match( theirHtmlRe ) || [ '', '', '' ]; + + if ( emptyTagRe.test( theirMatch[ 1 ] ) ) { + theirMatch[ 1 ] = theirMatch[ 1 ].slice( 0, -1 ); + theirMatch[ 2 ] = '/' + theirMatch[ 2 ]; + } + + htmlList.push( [ theirMatch[ 1 ], ' ', myMatch[ 1 ] || '', theirMatch[ 2 ] ].join( '' ) ); + }; + } )(), + + /** + * Form fieldset for grouping dialog UI elements. + * + * @class CKEDITOR.ui.dialog.fieldset + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a fieldset class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {Array} childObjList + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container. + * @param {Array} childHtmlList Array of HTML code that corresponds to the HTML output of all the + * objects in childObjList. + * @param {Array} htmlList Array of HTML code that this element will output to. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `label` (Optional) The legend of the this fieldset. + * * `children` (Required) An array of dialog window field definitions which will be grouped inside this fieldset. + * + */ + fieldset: function( dialog, childObjList, childHtmlList, htmlList, elementDefinition ) { + var legendLabel = elementDefinition.label; + /** @ignore */ + var innerHTML = function() { + var html = []; + legendLabel && html.push( '' + legendLabel + '' ); + for ( var i = 0; i < childHtmlList.length; i++ ) + html.push( childHtmlList[ i ] ); + return html.join( '' ); + }; + + this._ = { children: childObjList }; + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'fieldset', null, null, innerHTML ); + } + + }, true ); + + CKEDITOR.ui.dialog.html.prototype = new CKEDITOR.ui.dialog.uiElement(); + + /** @class CKEDITOR.ui.dialog.labeledElement */ + CKEDITOR.ui.dialog.labeledElement.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement(), { + /** + * Sets the label text of the element. + * + * @param {String} label The new label text. + * @returns {CKEDITOR.ui.dialog.labeledElement} The current labeled element. + */ + setLabel: function( label ) { + var node = CKEDITOR.document.getById( this._.labelId ); + if ( node.getChildCount() < 1 ) + ( new CKEDITOR.dom.text( label, CKEDITOR.document ) ).appendTo( node ); + else + node.getChild( 0 ).$.nodeValue = label; + return this; + }, + + /** + * Retrieves the current label text of the elment. + * + * @returns {String} The current label text. + */ + getLabel: function() { + var node = CKEDITOR.document.getById( this._.labelId ); + if ( !node || node.getChildCount() < 1 ) + return ''; + else + return node.getChild( 0 ).getText(); + }, + + /** + * Defines the `onChange` event for UI element definitions. + * @property {Object} + */ + eventProcessors: commonEventProcessors + }, true ); + + /** @class CKEDITOR.ui.dialog.button */ + CKEDITOR.ui.dialog.button.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement(), { + /** + * Simulates a click to the button. + * + * @returns {Object} Return value of the `click` event. + */ + click: function() { + if ( !this._.disabled ) + return this.fire( 'click', { dialog: this._.dialog } ); + return false; + }, + + /** + * Enables the button. + */ + enable: function() { + this._.disabled = false; + var element = this.getElement(); + element && element.removeClass( 'cke_disabled' ); + }, + + /** + * Disables the button. + */ + disable: function() { + this._.disabled = true; + this.getElement().addClass( 'cke_disabled' ); + }, + + /** + * Checks whether a field is visible. + * + * @returns {Boolean} + */ + isVisible: function() { + return this.getElement().getFirst().isVisible(); + }, + + /** + * Checks whether a field is enabled. Fields can be disabled by using the + * {@link #disable} method and enabled by using the {@link #enable} method. + * + * @returns {Boolean} + */ + isEnabled: function() { + return !this._.disabled; + }, + + /** + * Defines the `onChange` event and `onClick` for button element definitions. + * + * @property {Object} + */ + eventProcessors: CKEDITOR.tools.extend( {}, CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors, { + onClick: function( dialog, func ) { + this.on( 'click', function() { + func.apply( this, arguments ); + } ); + } + }, true ), + + /** + * Handler for the element's access key up event. Simulates a click to + * the button. + */ + accessKeyUp: function() { + this.click(); + }, + + /** + * Handler for the element's access key down event. Simulates a mouse + * down to the button. + */ + accessKeyDown: function() { + this.focus(); + }, + + keyboardFocusable: true + }, true ); + + /** @class CKEDITOR.ui.dialog.textInput */ + CKEDITOR.ui.dialog.textInput.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.labeledElement(), { + /** + * Gets the text input DOM element under this UI object. + * + * @returns {CKEDITOR.dom.element} The DOM element of the text input. + */ + getInputElement: function() { + return CKEDITOR.document.getById( this._.inputId ); + }, + + /** + * Puts focus into the text input. + */ + focus: function() { + var me = this.selectParentTab(); + + // GECKO BUG: setTimeout() is needed to workaround invisible selections. + setTimeout( function() { + var element = me.getInputElement(); + element && element.$.focus(); + }, 0 ); + }, + + /** + * Selects all the text in the text input. + */ + select: function() { + var me = this.selectParentTab(); + + // GECKO BUG: setTimeout() is needed to workaround invisible selections. + setTimeout( function() { + var e = me.getInputElement(); + if ( e ) { + e.$.focus(); + e.$.select(); + } + }, 0 ); + }, + + /** + * Handler for the text input's access key up event. Makes a `select()` + * call to the text input. + */ + accessKeyUp: function() { + this.select(); + }, + + /** + * Sets the value of this text input object. + * + * uiElement.setValue( 'Blamo' ); + * + * @param {Object} value The new value. + * @returns {CKEDITOR.ui.dialog.textInput} The current UI element. + */ + setValue: function( value ) { + if ( this.bidi ) { + var marker = value && value.charAt( 0 ), + dir = ( marker == '\u202A' ? 'ltr' : marker == '\u202B' ? 'rtl' : null ); + + if ( dir ) { + value = value.slice( 1 ); + } + + // Set the marker or reset it (if dir==null). + this.setDirectionMarker( dir ); + } + + if ( !value ) { + value = ''; + } + + return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply( this, arguments ); + }, + + /** + * Gets the value of this text input object. + * + * @returns {String} The value. + */ + getValue: function() { + var value = CKEDITOR.ui.dialog.uiElement.prototype.getValue.call( this ); + + if ( this.bidi && value ) { + var dir = this.getDirectionMarker(); + if ( dir ) { + value = ( dir == 'ltr' ? '\u202A' : '\u202B' ) + value; + } + } + + return value; + }, + + /** + * Sets the text direction marker and the `dir` attribute of the input element. + * + * @since 4.5 + * @param {String} dir The text direction. Pass `null` to reset. + */ + setDirectionMarker: function( dir ) { + var inputElement = this.getInputElement(); + + if ( dir ) { + inputElement.setAttributes( { + dir: dir, + 'data-cke-dir-marker': dir + } ); + // Don't remove the dir attribute if this field hasn't got the marker, + // because the dir attribute could be set independently. + } else if ( this.getDirectionMarker() ) { + inputElement.removeAttributes( [ 'dir', 'data-cke-dir-marker' ] ); + } + }, + + /** + * Gets the value of the text direction marker. + * + * @since 4.5 + * @returns {String} `'ltr'`, `'rtl'` or `null` if the marker is not set. + */ + getDirectionMarker: function() { + return this.getInputElement().data( 'cke-dir-marker' ); + }, + + keyboardFocusable: true + }, commonPrototype, true ); + + CKEDITOR.ui.dialog.textarea.prototype = new CKEDITOR.ui.dialog.textInput(); + + /** @class CKEDITOR.ui.dialog.select */ + CKEDITOR.ui.dialog.select.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.labeledElement(), { + /** + * Gets the DOM element of the select box. + * + * @returns {CKEDITOR.dom.element} The `` element of this file input. + * + * @returns {CKEDITOR.dom.element} The file input element. + */ + getInputElement: function() { + var frameDocument = CKEDITOR.document.getById( this._.frameId ).getFrameDocument(); + return frameDocument.$.forms.length > 0 ? new CKEDITOR.dom.element( frameDocument.$.forms[ 0 ].elements[ 0 ] ) : this.getElement(); + }, + + /** + * Uploads the file in the file input. + * + * @returns {CKEDITOR.ui.dialog.file} This object. + */ + submit: function() { + this.getInputElement().getParent().$.submit(); + return this; + }, + + /** + * Gets the action assigned to the form. + * + * @returns {String} The value of the action. + */ + getAction: function() { + return this.getInputElement().getParent().$.action; + }, + + /** + * The events must be applied to the inner input element, and + * this must be done when the iframe and form have been loaded. + */ + registerEvents: function( definition ) { + var regex = /^on([A-Z]\w+)/, + match; + + var registerDomEvent = function( uiElement, dialog, eventName, func ) { + uiElement.on( 'formLoaded', function() { + uiElement.getInputElement().on( eventName, func, uiElement ); + } ); + }; + + for ( var i in definition ) { + if ( !( match = i.match( regex ) ) ) + continue; + + if ( this.eventProcessors[ i ] ) + this.eventProcessors[ i ].call( this, this._.dialog, definition[ i ] ); + else + registerDomEvent( this, this._.dialog, match[ 1 ].toLowerCase(), definition[ i ] ); + } + + return this; + }, + + /** + * Redraws the file input and resets the file path in the file input. + * The redrawing logic is necessary because non-IE browsers tend to clear + * the `' ); + + var frameDocTpl = CKEDITOR.addTemplate( 'panel-frame-inner', '' + + '' + + '{css}' + + '' + + '<\/html>' ); + + /** @class CKEDITOR.ui.panel */ + CKEDITOR.ui.panel.prototype = { + /** + * Renders the combo. + * + * @param {CKEDITOR.editor} editor The editor instance which this button is + * to be used by. + * @param {Array} [output] The output array to which append the HTML relative + * to this button. + */ + render: function( editor, output ) { + this.getHolderElement = function() { + var holder = this._.holder; + + if ( !holder ) { + if ( this.isFramed ) { + var iframe = this.document.getById( this.id + '_frame' ), + parentDiv = iframe.getParent(), + doc = iframe.getFrameDocument(); + + // Make it scrollable on iOS. (#8308) + CKEDITOR.env.iOS && parentDiv.setStyles( { + 'overflow': 'scroll', + '-webkit-overflow-scrolling': 'touch' + } ); + + var onLoad = CKEDITOR.tools.addFunction( CKEDITOR.tools.bind( function() { + this.isLoaded = true; + if ( this.onLoad ) + this.onLoad(); + }, this ) ); + + doc.write( frameDocTpl.output( CKEDITOR.tools.extend( { + css: CKEDITOR.tools.buildStyleHtml( this.css ), + onload: 'window.parent.CKEDITOR.tools.callFunction(' + onLoad + ');' + }, data ) ) ); + + var win = doc.getWindow(); + + // Register the CKEDITOR global. + win.$.CKEDITOR = CKEDITOR; + + // Arrow keys for scrolling is only preventable with 'keypress' event in Opera (#4534). + doc.on( 'keydown', function( evt ) { + var keystroke = evt.data.getKeystroke(), + dir = this.document.getById( this.id ).getAttribute( 'dir' ); + + // Delegate key processing to block. + if ( this._.onKeyDown && this._.onKeyDown( keystroke ) === false ) { + evt.data.preventDefault(); + return; + } + + // ESC/ARROW-LEFT(ltr) OR ARROW-RIGHT(rtl) + if ( keystroke == 27 || keystroke == ( dir == 'rtl' ? 39 : 37 ) ) { + if ( this.onEscape && this.onEscape( keystroke ) === false ) + evt.data.preventDefault(); + } + }, this ); + + holder = doc.getBody(); + holder.unselectable(); + CKEDITOR.env.air && CKEDITOR.tools.callFunction( onLoad ); + } else { + holder = this.document.getById( this.id ); + } + + this._.holder = holder; + } + + return holder; + }; + + var data = { + editorId: editor.id, + id: this.id, + langCode: editor.langCode, + dir: editor.lang.dir, + cls: this.className, + frame: '', + env: CKEDITOR.env.cssClass, + 'z-index': editor.config.baseFloatZIndex + 1 + }; + + if ( this.isFramed ) { + // With IE, the custom domain has to be taken care at first, + // for other browers, the 'src' attribute should be left empty to + // trigger iframe's 'load' event. + var src = + CKEDITOR.env.air ? 'javascript:void(0)' : // jshint ignore:line + CKEDITOR.env.ie ? 'javascript:void(function(){' + encodeURIComponent( // jshint ignore:line + 'document.open();' + + // In IE, the document domain must be set any time we call document.open(). + '(' + CKEDITOR.tools.fixDomain + ')();' + + 'document.close();' + ) + '}())' : + ''; + + data.frame = frameTpl.output( { + id: this.id + '_frame', + src: src + } ); + } + + var html = panelTpl.output( data ); + + if ( output ) + output.push( html ); + + return html; + }, + + /** + * @todo + */ + addBlock: function( name, block ) { + block = this._.blocks[ name ] = block instanceof CKEDITOR.ui.panel.block ? block : new CKEDITOR.ui.panel.block( this.getHolderElement(), block ); + + if ( !this._.currentBlock ) + this.showBlock( name ); + + return block; + }, + + /** + * @todo + */ + getBlock: function( name ) { + return this._.blocks[ name ]; + }, + + /** + * @todo + */ + showBlock: function( name ) { + var blocks = this._.blocks, + block = blocks[ name ], + current = this._.currentBlock; + + // ARIA role works better in IE on the body element, while on the iframe + // for FF. (#8864) + var holder = !this.forceIFrame || CKEDITOR.env.ie ? this._.holder : this.document.getById( this.id + '_frame' ); + + if ( current ) + current.hide(); + + this._.currentBlock = block; + + CKEDITOR.fire( 'ariaWidget', holder ); + + // Reset the focus index, so it will always go into the first one. + block._.focusIndex = -1; + + this._.onKeyDown = block.onKeyDown && CKEDITOR.tools.bind( block.onKeyDown, block ); + + block.show(); + + return block; + }, + + /** + * @todo + */ + destroy: function() { + this.element && this.element.remove(); + } + }; + + /** + * @class + * + * @todo class and all methods + */ + CKEDITOR.ui.panel.block = CKEDITOR.tools.createClass( { + /** + * Creates a block class instances. + * + * @constructor + * @todo + */ + $: function( blockHolder, blockDefinition ) { + this.element = blockHolder.append( blockHolder.getDocument().createElement( 'div', { + attributes: { + 'tabindex': -1, + 'class': 'cke_panel_block' + }, + styles: { + display: 'none' + } + } ) ); + + // Copy all definition properties to this object. + if ( blockDefinition ) + CKEDITOR.tools.extend( this, blockDefinition ); + + // Set the a11y attributes of this element ... + this.element.setAttributes( { + 'role': this.attributes.role || 'presentation', + 'aria-label': this.attributes[ 'aria-label' ], + 'title': this.attributes.title || this.attributes[ 'aria-label' ] + } ); + + this.keys = {}; + + this._.focusIndex = -1; + + // Disable context menu for panels. + this.element.disableContextMenu(); + }, + + _: { + + /** + * Mark the item specified by the index as current activated. + */ + markItem: function( index ) { + if ( index == -1 ) + return; + var links = this.element.getElementsByTag( 'a' ); + var item = links.getItem( this._.focusIndex = index ); + + // Safari need focus on the iframe window first(#3389), but we need + // lock the blur to avoid hiding the panel. + if ( CKEDITOR.env.webkit ) + item.getDocument().getWindow().focus(); + item.focus(); + + this.onMark && this.onMark( item ); + } + }, + + proto: { + show: function() { + this.element.setStyle( 'display', '' ); + }, + + hide: function() { + if ( !this.onHide || this.onHide.call( this ) !== true ) + this.element.setStyle( 'display', 'none' ); + }, + + onKeyDown: function( keystroke, noCycle ) { + var keyAction = this.keys[ keystroke ]; + switch ( keyAction ) { + // Move forward. + case 'next': + var index = this._.focusIndex, + links = this.element.getElementsByTag( 'a' ), + link; + + while ( ( link = links.getItem( ++index ) ) ) { + // Move the focus only if the element is marked with + // the _cke_focus and it it's visible (check if it has + // width). + if ( link.getAttribute( '_cke_focus' ) && link.$.offsetWidth ) { + this._.focusIndex = index; + link.focus(); + break; + } + } + + // If no link was found, cycle and restart from the top. (#11125) + if ( !link && !noCycle ) { + this._.focusIndex = -1; + return this.onKeyDown( keystroke, 1 ); + } + + return false; + + // Move backward. + case 'prev': + index = this._.focusIndex; + links = this.element.getElementsByTag( 'a' ); + + while ( index > 0 && ( link = links.getItem( --index ) ) ) { + // Move the focus only if the element is marked with + // the _cke_focus and it it's visible (check if it has + // width). + if ( link.getAttribute( '_cke_focus' ) && link.$.offsetWidth ) { + this._.focusIndex = index; + link.focus(); + break; + } + + // Make sure link is null when the loop ends and nothing was + // found (#11125). + link = null; + } + + // If no link was found, cycle and restart from the bottom. (#11125) + if ( !link && !noCycle ) { + this._.focusIndex = links.count(); + return this.onKeyDown( keystroke, 1 ); + } + + return false; + + case 'click': + case 'mouseup': + index = this._.focusIndex; + link = index >= 0 && this.element.getElementsByTag( 'a' ).getItem( index ); + + if ( link ) + link.$[ keyAction ] ? link.$[ keyAction ]() : link.$[ 'on' + keyAction ](); + + return false; + } + + return true; + } + } + } ); + +} )(); + +/** + * Fired when a panel is added to the document. + * + * @event ariaWidget + * @member CKEDITOR + * @param {Object} data The element wrapping the panel. + */ diff --git a/sources/plugins/panelbutton/plugin.js b/sources/plugins/panelbutton/plugin.js new file mode 100644 index 00000000..7eab829a --- /dev/null +++ b/sources/plugins/panelbutton/plugin.js @@ -0,0 +1,138 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.add( 'panelbutton', { + requires: 'button', + onLoad: function() { + function clickFn( editor ) { + var _ = this._; + + if ( _.state == CKEDITOR.TRISTATE_DISABLED ) + return; + + this.createPanel( editor ); + + if ( _.on ) { + _.panel.hide(); + return; + } + + _.panel.showBlock( this._.id, this.document.getById( this._.id ), 4 ); + } + + /** + * @class + * @extends CKEDITOR.ui.button + * @todo class and methods + */ + CKEDITOR.ui.panelButton = CKEDITOR.tools.createClass( { + base: CKEDITOR.ui.button, + + /** + * Creates a panelButton class instance. + * + * @constructor + */ + $: function( definition ) { + // We don't want the panel definition in this object. + var panelDefinition = definition.panel || {}; + delete definition.panel; + + this.base( definition ); + + this.document = ( panelDefinition.parent && panelDefinition.parent.getDocument() ) || CKEDITOR.document; + + panelDefinition.block = { + attributes: panelDefinition.attributes + }; + panelDefinition.toolbarRelated = true; + + this.hasArrow = true; + + this.click = clickFn; + + this._ = { + panelDefinition: panelDefinition + }; + }, + + statics: { + handler: { + create: function( definition ) { + return new CKEDITOR.ui.panelButton( definition ); + } + } + }, + + proto: { + createPanel: function( editor ) { + var _ = this._; + + if ( _.panel ) + return; + + var panelDefinition = this._.panelDefinition, + panelBlockDefinition = this._.panelDefinition.block, + panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(), + panel = this._.panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ), + block = panel.addBlock( _.id, panelBlockDefinition ), + me = this; + + panel.onShow = function() { + if ( me.className ) + this.element.addClass( me.className + '_panel' ); + + me.setState( CKEDITOR.TRISTATE_ON ); + + _.on = 1; + + me.editorFocus && editor.focus(); + + if ( me.onOpen ) + me.onOpen(); + }; + + panel.onHide = function( preventOnClose ) { + if ( me.className ) + this.element.getFirst().removeClass( me.className + '_panel' ); + + me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); + + _.on = 0; + + if ( !preventOnClose && me.onClose ) + me.onClose(); + }; + + panel.onEscape = function() { + panel.hide( 1 ); + me.document.getById( _.id ).focus(); + }; + + if ( this.onBlock ) + this.onBlock( panel, block ); + + block.onHide = function() { + _.on = 0; + me.setState( CKEDITOR.TRISTATE_OFF ); + }; + } + } + } ); + + }, + beforeInit: function( editor ) { + editor.ui.addHandler( CKEDITOR.UI_PANELBUTTON, CKEDITOR.ui.panelButton.handler ); + } +} ); + +/** + * Button UI element. + * + * @readonly + * @property {String} [='panelbutton'] + * @member CKEDITOR + */ +CKEDITOR.UI_PANELBUTTON = 'panelbutton'; diff --git a/sources/plugins/pastefromword/filter/default.js b/sources/plugins/pastefromword/filter/default.js new file mode 100644 index 00000000..0c97ef52 --- /dev/null +++ b/sources/plugins/pastefromword/filter/default.js @@ -0,0 +1,1251 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +( function() { + var fragmentPrototype = CKEDITOR.htmlParser.fragment.prototype, + elementPrototype = CKEDITOR.htmlParser.element.prototype; + + fragmentPrototype.onlyChild = elementPrototype.onlyChild = function() { + var children = this.children, + count = children.length, + firstChild = ( count == 1 ) && children[ 0 ]; + return firstChild || null; + }; + + elementPrototype.removeAnyChildWithName = function( tagName ) { + var children = this.children, + childs = [], + child; + + for ( var i = 0; i < children.length; i++ ) { + child = children[ i ]; + if ( !child.name ) + continue; + + if ( child.name == tagName ) { + childs.push( child ); + children.splice( i--, 1 ); + } + childs = childs.concat( child.removeAnyChildWithName( tagName ) ); + } + return childs; + }; + + elementPrototype.getAncestor = function( tagNameRegex ) { + var parent = this.parent; + while ( parent && !( parent.name && parent.name.match( tagNameRegex ) ) ) + parent = parent.parent; + return parent; + }; + + fragmentPrototype.firstChild = elementPrototype.firstChild = function( evaluator ) { + var child; + + for ( var i = 0; i < this.children.length; i++ ) { + child = this.children[ i ]; + if ( evaluator( child ) ) + return child; + else if ( child.name ) { + child = child.firstChild( evaluator ); + if ( child ) + return child; + } + } + + return null; + }; + + // Adding a (set) of styles to the element's 'style' attributes. + elementPrototype.addStyle = function( name, value, isPrepend ) { + var styleText, + addingStyleText = ''; + // name/value pair. + if ( typeof value == 'string' ) + addingStyleText += name + ':' + value + ';'; + else { + // style literal. + if ( typeof name == 'object' ) { + for ( var style in name ) { + if ( name.hasOwnProperty( style ) ) + addingStyleText += style + ':' + name[ style ] + ';'; + } + } + // raw style text form. + else { + addingStyleText += name; + } + + isPrepend = value; + } + + if ( !this.attributes ) + this.attributes = {}; + + styleText = this.attributes.style || ''; + + styleText = ( isPrepend ? [ addingStyleText, styleText ] : [ styleText, addingStyleText ] ).join( ';' ); + + this.attributes.style = styleText.replace( /^;+|;(?=;)/g, '' ); + }; + + // Retrieve a style property value of the element. + elementPrototype.getStyle = function( name ) { + var styles = this.attributes.style; + if ( styles ) { + styles = CKEDITOR.tools.parseCssText( styles, 1 ); + return styles[ name ]; + } + }; + + /** + * Return the DTD-valid parent tag names of the specified one. + * + * @member CKEDITOR.dtd + * @param {String} tagName + * @returns {Object} + */ + CKEDITOR.dtd.parentOf = function( tagName ) { + var result = {}; + for ( var tag in this ) { + if ( tag.indexOf( '$' ) == -1 && this[ tag ][ tagName ] ) + result[ tag ] = 1; + } + return result; + }; + + // 1. move consistent list item styles up to list root. + // 2. clear out unnecessary list item numbering. + function postProcessList( list ) { + var children = list.children, + child, attrs, + count = list.children.length, + match, mergeStyle, + styleTypeRegexp = /list-style-type:(.*?)(?:;|$)/, + stylesFilter = CKEDITOR.plugins.pastefromword.filters.stylesFilter; + + attrs = list.attributes; + if ( styleTypeRegexp.exec( attrs.style ) ) + return; + + for ( var i = 0; i < count; i++ ) { + child = children[ i ]; + + if ( child.attributes.value && Number( child.attributes.value ) == i + 1 ) + delete child.attributes.value; + + match = styleTypeRegexp.exec( child.attributes.style ); + + if ( match ) { + if ( match[ 1 ] == mergeStyle || !mergeStyle ) + mergeStyle = match[ 1 ]; + else { + mergeStyle = null; + break; + } + } + } + + if ( mergeStyle ) { + for ( i = 0; i < count; i++ ) { + attrs = children[ i ].attributes; + attrs.style && ( attrs.style = stylesFilter( [ [ 'list-style-type' ] ] )( attrs.style ) || '' ); + } + + list.addStyle( 'list-style-type', mergeStyle ); + } + } + + var emptyMarginRegex = /^(?:\b0[^\s]*\s*){1,4}$/; // e.g. 0px 0pt 0px + var romanLiternalPattern = '^m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})$', + lowerRomanLiteralRegex = new RegExp( romanLiternalPattern ), + upperRomanLiteralRegex = new RegExp( romanLiternalPattern.toUpperCase() ); + + var orderedPatterns = { 'decimal': /\d+/, 'lower-roman': lowerRomanLiteralRegex, 'upper-roman': upperRomanLiteralRegex, 'lower-alpha': /^[a-z]+$/, 'upper-alpha': /^[A-Z]+$/ }, + unorderedPatterns = { 'disc': /[l\u00B7\u2002]/, 'circle': /[\u006F\u00D8]/, 'square': /[\u006E\u25C6]/ }, + listMarkerPatterns = { 'ol': orderedPatterns, 'ul': unorderedPatterns }, + romans = [ [ 1000, 'M' ], [ 900, 'CM' ], [ 500, 'D' ], [ 400, 'CD' ], [ 100, 'C' ], [ 90, 'XC' ], [ 50, 'L' ], [ 40, 'XL' ], [ 10, 'X' ], [ 9, 'IX' ], [ 5, 'V' ], [ 4, 'IV' ], [ 1, 'I' ] ], + alpahbets = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; + + // Convert roman numbering back to decimal. + function fromRoman( str ) { + str = str.toUpperCase(); + var l = romans.length, + retVal = 0; + for ( var i = 0; i < l; ++i ) { + for ( var j = romans[ i ], k = j[ 1 ].length; str.substr( 0, k ) == j[ 1 ]; str = str.substr( k ) ) + retVal += j[ 0 ]; + } + return retVal; + } + + // Convert alphabet numbering back to decimal. + function fromAlphabet( str ) { + str = str.toUpperCase(); + var l = alpahbets.length, + retVal = 1; + for ( var x = 1; str.length > 0; x *= l ) { + retVal += alpahbets.indexOf( str.charAt( str.length - 1 ) ) * x; + str = str.substr( 0, str.length - 1 ); + } + return retVal; + } + + var listBaseIndent = 0, + previousListItemMargin = null, + previousListId; + + var plugin = ( CKEDITOR.plugins.pastefromword = { + utils: { + // Create a which indicate an list item type. + createListBulletMarker: function( bullet, bulletText ) { + var marker = new CKEDITOR.htmlParser.element( 'cke:listbullet' ); + marker.attributes = { 'cke:listsymbol': bullet[ 0 ] }; + marker.add( new CKEDITOR.htmlParser.text( bulletText ) ); + return marker; + }, + + isListBulletIndicator: function( element ) { + var styleText = element.attributes && element.attributes.style; + if ( /mso-list\s*:\s*Ignore/i.test( styleText ) ) + return true; + }, + + isContainingOnlySpaces: function( element ) { + var text; + return ( ( text = element.onlyChild() ) && ( /^(:?\s| )+$/ ).test( text.value ) ); + }, + + resolveList: function( element ) { + // indicate a list item. + var attrs = element.attributes, + listMarker; + + if ( ( listMarker = element.removeAnyChildWithName( 'cke:listbullet' ) ) && listMarker.length && ( listMarker = listMarker[ 0 ] ) ) { + element.name = 'cke:li'; + + if ( attrs.style ) { + attrs.style = plugin.filters.stylesFilter( [ + // Text-indent is not representing list item level any more. + [ 'text-indent' ], + [ 'line-height' ], + // First attempt is to resolve indent level from on a constant margin increment. + [ ( /^margin(:?-left)?$/ ), null, function( margin ) { + // Deal with component/short-hand form. + var values = margin.split( ' ' ); + margin = CKEDITOR.tools.convertToPx( values[ 3 ] || values[ 1 ] || values[ 0 ] ); + + // Figure out the indent unit by checking the first time of incrementation. + if ( !listBaseIndent && previousListItemMargin !== null && margin > previousListItemMargin ) + listBaseIndent = margin - previousListItemMargin; + + previousListItemMargin = margin; + + attrs[ 'cke:indent' ] = listBaseIndent && ( Math.ceil( margin / listBaseIndent ) + 1 ) || 1; + } ], + // The best situation: "mso-list:l0 level1 lfo2" tells the belonged list root, list item indentation, etc. + [ ( /^mso-list$/ ), null, function( val ) { + val = val.split( ' ' ); + // Ignore values like "mso-list:Ignore". (FF #11976) + if ( val.length < 2 ) { + return; + } + + var listId = Number( val[ 0 ].match( /\d+/ ) ), + indent = Number( val[ 1 ].match( /\d+/ ) ); + + if ( indent == 1 ) { + listId !== previousListId && ( attrs[ 'cke:reset' ] = 1 ); + previousListId = listId; + } + attrs[ 'cke:indent' ] = indent; + } ] + ] )( attrs.style, element ) || ''; + } + + // First level list item might be presented without a margin. + + + // In case all above doesn't apply. + if ( !attrs[ 'cke:indent' ] ) { + previousListItemMargin = 0; + attrs[ 'cke:indent' ] = 1; + } + + // Inherit attributes from bullet. + CKEDITOR.tools.extend( attrs, listMarker.attributes ); + return true; + } + // Current list disconnected. + else { + previousListId = previousListItemMargin = listBaseIndent = null; + } + + return false; + }, + + // Providing a shorthand style then retrieve one or more style component values. + getStyleComponents: ( function() { + var calculator = CKEDITOR.dom.element.createFromHtml( '
', CKEDITOR.document ); + CKEDITOR.document.getBody().append( calculator ); + + return function( name, styleValue, fetchList ) { + calculator.setStyle( name, styleValue ); + var styles = {}, + count = fetchList.length; + for ( var i = 0; i < count; i++ ) + styles[ fetchList[ i ] ] = calculator.getStyle( fetchList[ i ] ); + + return styles; + }; + } )(), + + listDtdParents: CKEDITOR.dtd.parentOf( 'ol' ) + }, + + filters: { + // Transform a normal list into flat list items only presentation. + // E.g.
  • level1
    1. level2
  • => + // level1 + // level2 + flattenList: function( element, level ) { + level = typeof level == 'number' ? level : 1; + + var attrs = element.attributes, + listStyleType; + + // All list items are of the same type. + switch ( attrs.type ) { + case 'a': + listStyleType = 'lower-alpha'; + break; + case '1': + listStyleType = 'decimal'; + break; + // TODO: Support more list style type from MS-Word. + } + + var children = element.children, + child; + + for ( var i = 0; i < children.length; i++ ) { + child = children[ i ]; + + if ( child.name in CKEDITOR.dtd.$listItem ) { + var attributes = child.attributes, + listItemChildren = child.children, + count = listItemChildren.length, + first = listItemChildren[ 0 ], + last = listItemChildren[ count - 1 ]; + + // Converts
  • {...}

  • ->
  • {...}
  • . + // The above format is what we got when pasting from Word 2010 to IE11 and possibly some others. + // Existence of extra

    tag that can be later recognized as list item (see #getRules.return.elements.p) + // creates incorrect and problematic structures similar to {...}. (#11376) + if ( first.attributes && first.attributes.style && first.attributes.style.indexOf( 'mso-list' ) > -1 ) { + child.attributes.style = first.attributes.style; + first.replaceWithChildren(); + } + + // Move out nested list. + if ( last.name in CKEDITOR.dtd.$list ) { + element.add( last, i + 1 ); + + // Remove the parent list item if it's just a holder. + if ( !--listItemChildren.length ) + children.splice( i--, 1 ); + } + + child.name = 'cke:li'; + + // Inherit numbering from list root on the first list item. + attrs.start && !i && ( attributes.value = attrs.start ); + + plugin.filters.stylesFilter( [ + [ 'tab-stops', null, function( val ) { + // val = [left|center|right|decimal] Source: W3C, WD-tabs-970117. + // In some cases the first word is missing - hence the square brackets. + var margin = val.match( /0$|\d+\.?\d*\w+/ ); + margin && ( previousListItemMargin = CKEDITOR.tools.convertToPx( margin[ 0 ] ) ); + } ], + ( level == 1 ? [ 'mso-list', null, function( val ) { + val = val.split( ' ' ); + var listId = Number( val[ 0 ].match( /\d+/ ) ); + listId !== previousListId && ( attributes[ 'cke:reset' ] = 1 ); + previousListId = listId; + } ] : null ) + ] )( attributes.style ); + + attributes[ 'cke:indent' ] = level; + attributes[ 'cke:listtype' ] = element.name; + attributes[ 'cke:list-style-type' ] = listStyleType; + } + // Flatten sub list. + else if ( child.name in CKEDITOR.dtd.$list ) { + // Absorb sub list children. + arguments.callee.apply( this, [ child, level + 1 ] ); + children = children.slice( 0, i ).concat( child.children ).concat( children.slice( i + 1 ) ); + element.children = []; + for ( var j = 0, num = children.length; j < num; j++ ) + element.add( children[ j ] ); + + children = element.children; + } + } + + delete element.name; + + // We're loosing tag name here, signalize this element as a list. + attrs[ 'cke:list' ] = 1; + }, + + // Try to collect all list items among the children and establish one + // or more HTML list structures for them. + // @param element + assembleList: function( element ) { + var children = element.children, + child, listItem, // The current processing cke:li element. + listItemAttrs, listItemIndent, // Indent level of current list item. + lastIndent, lastListItem, // The previous one just been added to the list. + list, // Current staging list and it's parent list if any. + openedLists = [], + previousListStyleType, previousListType; + + // Properties of the list item are to be resolved from the list bullet. + var bullet, listType, listStyleType, itemNumeric; + + for ( var i = 0; i < children.length; i++ ) { + child = children[ i ]; + + if ( child.name == 'cke:li' ) { + child.name = 'li'; + listItem = child; + listItemAttrs = listItem.attributes; + bullet = listItemAttrs[ 'cke:listsymbol' ]; + bullet = bullet && bullet.match( /^(?:[(]?)([^\s]+?)([.)]?)$/ ); + listType = listStyleType = itemNumeric = null; + + if ( listItemAttrs[ 'cke:ignored' ] ) { + children.splice( i--, 1 ); + continue; + } + + + // This's from a new list root. + listItemAttrs[ 'cke:reset' ] && ( list = lastIndent = lastListItem = null ); + + // List item indent level might come from a real list indentation or + // been resolved from a pseudo list item's margin value, even get + // no indentation at all. + listItemIndent = Number( listItemAttrs[ 'cke:indent' ] ); + + // We're moving out of the current list, cleaning up. + if ( listItemIndent != lastIndent ) + previousListType = previousListStyleType = null; + + // List type and item style are already resolved. + if ( !bullet ) { + listType = listItemAttrs[ 'cke:listtype' ] || 'ol'; + listStyleType = listItemAttrs[ 'cke:list-style-type' ]; + } else { + // Probably share the same list style type with previous list item, + // give it priority to avoid ambiguous between C(Alpha) and C.(Roman). + if ( previousListType && listMarkerPatterns[ previousListType ][ previousListStyleType ].test( bullet[ 1 ] ) ) { + listType = previousListType; + listStyleType = previousListStyleType; + } else { + for ( var type in listMarkerPatterns ) { + for ( var style in listMarkerPatterns[ type ] ) { + if ( listMarkerPatterns[ type ][ style ].test( bullet[ 1 ] ) ) { + // Small numbering has higher priority, when dealing with ambiguous + // between C(Alpha) and C.(Roman). + if ( type == 'ol' && ( /alpha|roman/ ).test( style ) ) { + var num = /roman/.test( style ) ? fromRoman( bullet[ 1 ] ) : fromAlphabet( bullet[ 1 ] ); + if ( !itemNumeric || num < itemNumeric ) { + itemNumeric = num; + listType = type; + listStyleType = style; + } + } else { + listType = type; + listStyleType = style; + break; + } + } + } + } + } + + // Simply use decimal/disc for the rest forms of unrepresentable + // numerals, e.g. Chinese..., but as long as there a second part + // included, it has a bigger chance of being a order list ;) + !listType && ( listType = bullet[ 2 ] ? 'ol' : 'ul' ); + } + + previousListType = listType; + previousListStyleType = listStyleType || ( listType == 'ol' ? 'decimal' : 'disc' ); + if ( listStyleType && listStyleType != ( listType == 'ol' ? 'decimal' : 'disc' ) ) + listItem.addStyle( 'list-style-type', listStyleType ); + + // Figure out start numbering. + if ( listType == 'ol' && bullet ) { + switch ( listStyleType ) { + case 'decimal': + itemNumeric = Number( bullet[ 1 ] ); + break; + case 'lower-roman': + case 'upper-roman': + itemNumeric = fromRoman( bullet[ 1 ] ); + break; + case 'lower-alpha': + case 'upper-alpha': + itemNumeric = fromAlphabet( bullet[ 1 ] ); + break; + } + + // Always create the numbering, swipe out unnecessary ones later. + listItem.attributes.value = itemNumeric; + } + + // Start the list construction. + if ( !list ) { + openedLists.push( list = new CKEDITOR.htmlParser.element( listType ) ); + list.add( listItem ); + children[ i ] = list; + } else { + if ( listItemIndent > lastIndent ) { + openedLists.push( list = new CKEDITOR.htmlParser.element( listType ) ); + list.add( listItem ); + lastListItem.add( list ); + } else if ( listItemIndent < lastIndent ) { + // There might be a negative gap between two list levels. (#4944) + var diff = lastIndent - listItemIndent, + parent; + while ( diff-- && ( parent = list.parent ) ) + list = parent.parent; + + list.add( listItem ); + } else { + list.add( listItem ); + } + + children.splice( i--, 1 ); + } + + lastListItem = listItem; + lastIndent = listItemIndent; + } else if ( list ) { + list = lastIndent = lastListItem = null; + } + } + + for ( i = 0; i < openedLists.length; i++ ) + postProcessList( openedLists[ i ] ); + + list = lastIndent = lastListItem = previousListId = previousListItemMargin = listBaseIndent = null; + }, + + // A simple filter which always rejecting. + falsyFilter: function() { + return false; + }, + + // A filter dedicated on the 'style' attribute filtering, e.g. dropping/replacing style properties. + // @param styles {Array} in form of [ styleNameRegexp, styleValueRegexp, + // newStyleValue/newStyleGenerator, newStyleName ] where only the first + // parameter is mandatory. + // @param whitelist {Boolean} Whether the {@param styles} will be considered as a white-list. + stylesFilter: function( styles, whitelist ) { + return function( styleText, element ) { + var rules = []; + // html-encoded quote might be introduced by 'font-family' + // from MS-Word which confused the following regexp. e.g. + //'font-family: "Lucida, Console"' + ( styleText || '' ).replace( /"/g, '"' ).replace( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g, function( match, name, value ) { + name = name.toLowerCase(); + name == 'font-family' && ( value = value.replace( /["']/g, '' ) ); + + var namePattern, valuePattern, newValue, newName; + for ( var i = 0; i < styles.length; i++ ) { + if ( styles[ i ] ) { + namePattern = styles[ i ][ 0 ]; + valuePattern = styles[ i ][ 1 ]; + newValue = styles[ i ][ 2 ]; + newName = styles[ i ][ 3 ]; + + if ( name.match( namePattern ) && ( !valuePattern || value.match( valuePattern ) ) ) { + name = newName || name; + whitelist && ( newValue = newValue || value ); + + if ( typeof newValue == 'function' ) + newValue = newValue( value, element, name ); + + // Return an couple indicate both name and value + // changed. + if ( newValue && newValue.push ) + name = newValue[ 0 ], newValue = newValue[ 1 ]; + + if ( typeof newValue == 'string' ) + rules.push( [ name, newValue ] ); + return; + } + } + } + + !whitelist && rules.push( [ name, value ] ); + + } ); + + for ( var i = 0; i < rules.length; i++ ) + rules[ i ] = rules[ i ].join( ':' ); + return rules.length ? ( rules.join( ';' ) + ';' ) : false; + }; + }, + + // Migrate the element by decorate styles on it. + // @param styleDefinition + // @param variables + elementMigrateFilter: function( styleDefinition, variables ) { + return styleDefinition ? function( element ) { + var styleDef = variables ? new CKEDITOR.style( styleDefinition, variables )._.definition : styleDefinition; + element.name = styleDef.element; + CKEDITOR.tools.extend( element.attributes, CKEDITOR.tools.clone( styleDef.attributes ) ); + element.addStyle( CKEDITOR.style.getStyleText( styleDef ) ); + // Mark style classes as allowed so they will not be filtered out (#12256). + if ( styleDef.attributes && styleDef.attributes[ 'class' ] ) { + element.classWhiteList = ' ' + styleDef.attributes[ 'class' ] + ' '; + } + } : function() {}; + }, + + // Migrate styles by creating a new nested stylish element. + // @param styleDefinition + styleMigrateFilter: function( styleDefinition, variableName ) { + + var elementMigrateFilter = this.elementMigrateFilter; + return styleDefinition ? function( value, element ) { + // Build an stylish element first. + var styleElement = new CKEDITOR.htmlParser.element( null ), + variables = {}; + + variables[ variableName ] = value; + elementMigrateFilter( styleDefinition, variables )( styleElement ); + // Place the new element inside the existing span. + styleElement.children = element.children; + element.children = [ styleElement ]; + + // #10285 - later on styleElement will replace element if element won't have any attributes. + // However, in some cases styleElement is identical to element and therefore should not be filtered + // to avoid inf loop. Unfortunately calling element.filterChildren() does not prevent from that (#10327). + // However, we can assume that we don't need to filter styleElement at all, so it is safe to replace + // its filter method. + styleElement.filter = function() {}; + styleElement.parent = element; + } : function() {}; + }, + + // A filter which remove cke-namespaced-attribute on + // all none-cke-namespaced elements. + // @param value + // @param element + bogusAttrFilter: function( value, element ) { + if ( element.name.indexOf( 'cke:' ) == -1 ) + return false; + }, + + // A filter which will be used to apply inline css style according the stylesheet + // definition rules, is generated lazily when filtering. + applyStyleFilter: null + + }, + + getRules: function( editor, filter ) { + var dtd = CKEDITOR.dtd, + blockLike = CKEDITOR.tools.extend( {}, dtd.$block, dtd.$listItem, dtd.$tableContent ), + config = editor.config, + filters = this.filters, + falsyFilter = filters.falsyFilter, + stylesFilter = filters.stylesFilter, + elementMigrateFilter = filters.elementMigrateFilter, + styleMigrateFilter = CKEDITOR.tools.bind( this.filters.styleMigrateFilter, this.filters ), + createListBulletMarker = this.utils.createListBulletMarker, + flattenList = filters.flattenList, + assembleList = filters.assembleList, + isListBulletIndicator = this.utils.isListBulletIndicator, + containsNothingButSpaces = this.utils.isContainingOnlySpaces, + resolveListItem = this.utils.resolveList, + convertToPx = function( value ) { + value = CKEDITOR.tools.convertToPx( value ); + return isNaN( value ) ? value : value + 'px'; + }, + getStyleComponents = this.utils.getStyleComponents, + listDtdParents = this.utils.listDtdParents, + removeFontStyles = config.pasteFromWordRemoveFontStyles !== false, + removeStyles = config.pasteFromWordRemoveStyles !== false; + + return { + + elementNames: [ + // Remove script, meta and link elements. + [ ( /meta|link|script/ ), '' ] + ], + + root: function( element ) { + element.filterChildren( filter ); + assembleList( element ); + }, + + elements: { + '^': function( element ) { + // Transform CSS style declaration to inline style. + var applyStyleFilter; + if ( CKEDITOR.env.gecko && ( applyStyleFilter = filters.applyStyleFilter ) ) + applyStyleFilter( element ); + }, + + $: function( element ) { + var tagName = element.name || '', + attrs = element.attributes; + + // Convert length unit of width/height on blocks to + // a more editor-friendly way (px). + if ( tagName in blockLike && attrs.style ) + attrs.style = stylesFilter( [ [ ( /^(:?width|height)$/ ), null, convertToPx ] ] )( attrs.style ) || ''; + + // Processing headings. + if ( tagName.match( /h\d/ ) ) { + element.filterChildren( filter ); + // Is the heading actually a list item? + if ( resolveListItem( element ) ) + return; + + // Adapt heading styles to editor's convention. + elementMigrateFilter( config[ 'format_' + tagName ] )( element ); + } + // Remove inline elements which contain only empty spaces. + else if ( tagName in dtd.$inline ) { + element.filterChildren( filter ); + if ( containsNothingButSpaces( element ) ) + delete element.name; + } + // Remove element with ms-office namespace, + // with it's content preserved, e.g. 'o:p'. + else if ( tagName.indexOf( ':' ) != -1 && tagName.indexOf( 'cke' ) == -1 ) { + element.filterChildren( filter ); + + // Restore image real link from vml. + if ( tagName == 'v:imagedata' ) { + var href = element.attributes[ 'o:href' ]; + if ( href ) + element.attributes.src = href; + element.name = 'img'; + return; + } + delete element.name; + } + + // Assembling list items into a whole list. + if ( tagName in listDtdParents ) { + element.filterChildren( filter ); + assembleList( element ); + } + }, + + // We'll drop any style sheet, but Firefox conclude + // certain styles in a single style element, which are + // required to be changed into inline ones. + 'style': function( element ) { + if ( CKEDITOR.env.gecko ) { + // Grab only the style definition section. + var styleDefSection = element.onlyChild().value.match( /\/\* Style Definitions \*\/([\s\S]*?)\/\*/ ), + styleDefText = styleDefSection && styleDefSection[ 1 ], + rules = {}; // Storing the parsed result. + + if ( styleDefText ) { + styleDefText + // Remove line-breaks. + .replace( /[\n\r]/g, '' ) + // Extract selectors and style properties. + .replace( /(.+?)\{(.+?)\}/g, function( rule, selectors, styleBlock ) { + selectors = selectors.split( ',' ); + var length = selectors.length; + for ( var i = 0; i < length; i++ ) { + // Assume MS-Word mostly generate only simple + // selector( [Type selector][Class selector]). + CKEDITOR.tools.trim( selectors[ i ] ).replace( /^(\w+)(\.[\w-]+)?$/g, function( match, tagName, className ) { + tagName = tagName || '*'; + className = className.substring( 1, className.length ); + + // Reject MS-Word Normal styles. + if ( className.match( /MsoNormal/ ) ) + return; + + if ( !rules[ tagName ] ) + rules[ tagName ] = {}; + if ( className ) + rules[ tagName ][ className ] = styleBlock; + else + rules[ tagName ] = styleBlock; + } ); + } + } ); + + filters.applyStyleFilter = function( element ) { + var name = rules[ '*' ] ? '*' : element.name, + className = element.attributes && element.attributes[ 'class' ], + style; + if ( name in rules ) { + style = rules[ name ]; + if ( typeof style == 'object' ) + style = style[ className ]; + // Maintain style rules priorities. + style && element.addStyle( style, true ); + } + }; + } + } + return false; + }, + + 'p': function( element ) { + // A a fall-back approach to resolve list item in browsers + // that doesn't include "mso-list:Ignore" on list bullets, + // note it's not perfect as not all list style (e.g. "heading list") is shipped + // with this pattern. (#6662) + if ( ( /MsoListParagraph/i ).exec( element.attributes[ 'class' ] ) || + ( element.getStyle( 'mso-list' ) && !element.getStyle( 'mso-list' ).match( /^(none|skip)$/i ) ) ) { + var bulletText = element.firstChild( function( node ) { + return node.type == CKEDITOR.NODE_TEXT && !containsNothingButSpaces( node.parent ); + } ); + + var bullet = bulletText && bulletText.parent; + if ( bullet ) + bullet.addStyle( 'mso-list', 'Ignore' ); + + } + + element.filterChildren( filter ); + + // Is the paragraph actually a list item? + if ( resolveListItem( element ) ) + return; + + // Adapt paragraph formatting to editor's convention + // according to enter-mode. + if ( config.enterMode == CKEDITOR.ENTER_BR ) { + // We suffer from attribute/style lost in this situation. + delete element.name; + element.add( new CKEDITOR.htmlParser.element( 'br' ) ); + } else { + elementMigrateFilter( config[ 'format_' + ( config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ] )( element ); + } + }, + + 'div': function( element ) { + // Aligned table with no text surrounded is represented by a wrapper div, from which + // table cells inherit as text-align styles, which is wrong. + // Instead we use a clear-float div after the table to properly achieve the same layout. + var singleChild = element.onlyChild(); + if ( singleChild && singleChild.name == 'table' ) { + var attrs = element.attributes; + singleChild.attributes = CKEDITOR.tools.extend( singleChild.attributes, attrs ); + attrs.style && singleChild.addStyle( attrs.style ); + + var clearFloatDiv = new CKEDITOR.htmlParser.element( 'div' ); + clearFloatDiv.addStyle( 'clear', 'both' ); + element.add( clearFloatDiv ); + delete element.name; + } + }, + + 'td': function( element ) { + // 'td' in 'thead' is actually . + if ( element.getAncestor( 'thead' ) ) + element.name = 'th'; + }, + + // MS-Word sometimes present list as a mixing of normal list + // and pseudo-list, normalize the previous ones into pseudo form. + 'ol': flattenList, + 'ul': flattenList, + 'dl': flattenList, + + 'font': function( element ) { + // Drop the font tag if it comes from list bullet text. + if ( isListBulletIndicator( element.parent ) ) { + delete element.name; + return; + } + + element.filterChildren( filter ); + + var attrs = element.attributes, + styleText = attrs.style, + parent = element.parent; + + if ( parent.name == 'font' ) { // Merge nested tags. + CKEDITOR.tools.extend( parent.attributes, element.attributes ); + styleText && parent.addStyle( styleText ); + delete element.name; + } + // Convert the merged into a span with all attributes preserved. + else { + // Use array to avoid string concatenation and get rid of problems with trailing ";" (#12243). + styleText = ( styleText || '' ).split( ';' ); + + // IE's having those deprecated attributes, normalize them. + if ( attrs.color ) { + if ( attrs.color != '#000000' ) + styleText.push( 'color:' + attrs.color ); + delete attrs.color; + } + if ( attrs.face ) { + styleText.push( 'font-family:' + attrs.face ); + delete attrs.face; + } + // TODO: Mapping size in ranges of xx-small, + // x-small, small, medium, large, x-large, xx-large. + if ( attrs.size ) { + styleText.push( 'font-size:' + + ( attrs.size > 3 ? 'large' : ( attrs.size < 3 ? 'small' : 'medium' ) ) ); + delete attrs.size; + } + + element.name = 'span'; + element.addStyle( styleText.join( ';' ) ); + } + }, + + 'span': function( element ) { + // Remove the span if it comes from list bullet text. + if ( isListBulletIndicator( element.parent ) ) + return false; + + element.filterChildren( filter ); + if ( containsNothingButSpaces( element ) ) { + delete element.name; + return null; + } + + // List item bullet type is supposed to be indicated by + // the text of a span with style 'mso-list : Ignore' or an image. + if ( isListBulletIndicator( element ) ) { + var listSymbolNode = element.firstChild( function( node ) { + return node.value || node.name == 'img'; + } ); + + var listSymbol = listSymbolNode && ( listSymbolNode.value || 'l.' ), + listType = listSymbol && listSymbol.match( /^(?:[(]?)([^\s]+?)([.)]?)$/ ); + + if ( listType ) { + var marker = createListBulletMarker( listType, listSymbol ); + // Some non-existed list items might be carried by an inconsequential list, indicate by "mso-hide:all/display:none", + // those are to be removed later, now mark it with "cke:ignored". + var ancestor = element.getAncestor( 'span' ); + if ( ancestor && ( / mso-hide:\s*all|display:\s*none / ).test( ancestor.attributes.style ) ) + marker.attributes[ 'cke:ignored' ] = 1; + return marker; + } + } + + // Update the src attribute of image element with href. + var attrs = element.attributes, + styleText = attrs && attrs.style; + + // Assume MS-Word mostly carry font related styles on , + // adapting them to editor's convention. + if ( styleText ) { + attrs.style = stylesFilter( [ + // Drop 'inline-height' style which make lines overlapping. + [ 'line-height' ], + [ ( /^font-family$/ ), null, !removeFontStyles ? styleMigrateFilter( config.font_style, 'family' ) : null ], + [ ( /^font-size$/ ), null, !removeFontStyles ? styleMigrateFilter( config.fontSize_style, 'size' ) : null ], + [ ( /^color$/ ), null, !removeFontStyles ? styleMigrateFilter( config.colorButton_foreStyle, 'color' ) : null ], + [ ( /^background-color$/ ), null, !removeFontStyles ? styleMigrateFilter( config.colorButton_backStyle, 'color' ) : null ] + ] )( styleText, element ) || ''; + } + + if ( !attrs.style ) + delete attrs.style; + + if ( CKEDITOR.tools.isEmpty( attrs ) ) + delete element.name; + + return null; + }, + + // Migrate basic style formats to editor configured ones. + b: elementMigrateFilter( config.coreStyles_bold ), + i: elementMigrateFilter( config.coreStyles_italic ), + u: elementMigrateFilter( config.coreStyles_underline ), + s: elementMigrateFilter( config.coreStyles_strike ), + sup: elementMigrateFilter( config.coreStyles_superscript ), + sub: elementMigrateFilter( config.coreStyles_subscript ), + + // Remove full paths from links to anchors. + a: function( element ) { + var attrs = element.attributes; + + if ( attrs.name && attrs.name.match( /ole_link\d+/i ) ) { + delete element.name; + return; + } + + if ( attrs.href && attrs.href.match( /^file:\/\/\/[\S]+#/i ) ) + attrs.href = attrs.href.replace( /^file:\/\/\/[^#]+/i, '' ); + }, + + 'cke:listbullet': function( element ) { + if ( element.getAncestor( /h\d/ ) && !config.pasteFromWordNumberedHeadingToList ) + delete element.name; + } + }, + + attributeNames: [ + // Remove onmouseover and onmouseout events (from MS Word comments effect) + [ ( /^onmouse(:?out|over)/ ), '' ], + // Onload on image element. + [ ( /^onload$/ ), '' ], + // Remove office and vml attribute from elements. + [ ( /(?:v|o):\w+/ ), '' ], + // Remove lang/language attributes. + [ ( /^lang/ ), '' ] + ], + + attributes: { + 'style': stylesFilter( removeStyles ? + // Provide a white-list of styles that we preserve, those should + // be the ones that could later be altered with editor tools. + [ + // Leave list-style-type + [ ( /^list-style-type$/ ), null ], + + // Preserve margin-left/right which used as default indent style in the editor. + [ ( /^margin$|^margin-(?!bottom|top)/ ), null, function( value, element, name ) { + if ( element.name in { p: 1, div: 1 } ) { + var indentStyleName = config.contentsLangDirection == 'ltr' ? 'margin-left' : 'margin-right'; + + // Extract component value from 'margin' shorthand. + if ( name == 'margin' ) + value = getStyleComponents( name, value, [ indentStyleName ] )[ indentStyleName ]; + else if ( name != indentStyleName ) + return null; + + if ( value && !emptyMarginRegex.test( value ) ) + return [ indentStyleName, value ]; + } + + return null; + } ], + + // Preserve clear float style. + [ ( /^clear$/ ) ], + + [ ( /^border.*|margin.*|vertical-align|float$/ ), null, function( value, element ) { + if ( element.name == 'img' ) + return value; + } ], + + [ ( /^width|height$/ ), null, function( value, element ) { + if ( element.name in { table: 1, td: 1, th: 1, img: 1 } ) + return value; + } ] + ] : + // Otherwise provide a black-list of styles that we remove. + [ + [ ( /^mso-/ ) ], + // Fixing color values. + [ ( /-color$/ ), null, function( value ) { + if ( value == 'transparent' ) + return false; + if ( CKEDITOR.env.gecko ) + return value.replace( /-moz-use-text-color/g, 'transparent' ); + } ], + // Remove empty margin values, e.g. 0.00001pt 0em 0pt + [ ( /^margin$/ ), emptyMarginRegex ], + [ 'text-indent', '0cm' ], + [ 'page-break-before' ], + [ 'tab-stops' ], + [ 'display', 'none' ], + removeFontStyles ? [ ( /font-?/ ) ] : null + ], removeStyles ), + + // Prefer width styles over 'width' attributes. + 'width': function( value, element ) { + if ( element.name in dtd.$tableContent ) + return false; + }, + // Prefer border styles over table 'border' attributes. + 'border': function( value, element ) { + if ( element.name in dtd.$tableContent ) + return false; + }, + + // Only Firefox carry style sheet from MS-Word, which + // will be applied by us manually. For other browsers + // the css className is useless. + // We need to keep classes added as a style (#12256). + 'class': function( value, element ) { + if ( element.classWhiteList && element.classWhiteList.indexOf( ' ' + value + ' ' ) != -1 ) { + return value; + } + return false; + }, + + // MS-Word always generate 'background-color' along with 'bgcolor', + // simply drop the deprecated attributes. + 'bgcolor': falsyFilter, + + // Deprecate 'valign' attribute in favor of 'vertical-align'. + 'valign': removeStyles ? falsyFilter : function( value, element ) { + element.addStyle( 'vertical-align', value ); + return false; + } + }, + + // Fore none-IE, some useful data might be buried under these IE-conditional + // comments where RegExp were the right approach to dig them out where usual approach + // is transform it into a fake element node which hold the desired data. + comment: !CKEDITOR.env.ie ? function( value, node ) { + var imageInfo = value.match( // ), + listInfo = value.match( /^\[if !supportLists\]([\s\S]*?)\[endif\]$/ ); + + // Seek for list bullet indicator. + if ( listInfo ) { + // Bullet symbol could be either text or an image. + var listSymbol = listInfo[ 1 ] || ( imageInfo && 'l.' ), + listType = listSymbol && listSymbol.match( />(?:[(]?)([^\s]+?)([.)]?) element in conditional comments for Firefox. + if ( CKEDITOR.env.gecko && imageInfo ) { + var img = CKEDITOR.htmlParser.fragment.fromHtml( imageInfo[ 0 ] ).children[ 0 ], + previousComment = node.previous, + // Try to dig the real image link from vml markup from previous comment text. + imgSrcInfo = previousComment && previousComment.value.match( /]*o:href=['"](.*?)['"]/ ), + imgSrc = imgSrcInfo && imgSrcInfo[ 1 ]; + + // Is there a real 'src' url to be used? + imgSrc && ( img.attributes.src = imgSrc ); + return img; + } + + return false; + } : falsyFilter + }; + } + } ); + + // The paste processor here is just a reduced copy of html data processor. + var pasteProcessor = function() { + this.dataFilter = new CKEDITOR.htmlParser.filter(); + }; + + pasteProcessor.prototype = { + toHtml: function( data ) { + var fragment = CKEDITOR.htmlParser.fragment.fromHtml( data ), + writer = new CKEDITOR.htmlParser.basicWriter(); + + fragment.writeHtml( writer, this.dataFilter ); + return writer.getHtml( true ); + } + }; + + CKEDITOR.cleanWord = function( data, editor ) { + // We get and when we started using `dataTransfer` instead of pasteBin, so we need to + // change to and to . + data = data.replace( //g, '' ); + + // Firefox will be confused by those downlevel-revealed IE conditional + // comments, fixing them first( convert it to upperlevel-revealed one ). + // e.g. ... + if ( CKEDITOR.env.gecko ) + data = data.replace( /(([\S\s]*?))/gi, '$1$2$3' ); + + // #9456 - Webkit doesn't wrap list number with span, which is crucial for filter to recognize list. + // + //

    + // + // 3.       + // Test3 + //

    + // + // Transform to: + // + //

    + // + // + // 3.       + // + // Test3 + //

    + if ( CKEDITOR.env.webkit ) + data = data.replace( /(class="MsoListParagraph[^>]+>)([^<]+)()/gi, '$1$2$3' ); + + var dataProcessor = new pasteProcessor(), + dataFilter = dataProcessor.dataFilter; + + // These rules will have higher priorities than default ones. + dataFilter.addRules( CKEDITOR.plugins.pastefromword.getRules( editor, dataFilter ) ); + + // Allow extending data filter rules. + editor.fire( 'beforeCleanWord', { filter: dataFilter } ); + + try { + data = dataProcessor.toHtml( data ); + } catch ( e ) { + editor.showNotification( editor.lang.pastefromword.error ); + } + + // Below post processing those things that are unable to delivered by filter rules. + + // Remove 'cke' namespaced attribute used in filter rules as marker. + data = data.replace( /cke:.*?".*?"/g, '' ); + + // Remove empty style attribute. + data = data.replace( /style=""/g, '' ); + + // Remove the dummy spans ( having no inline style ). + data = data.replace( //g, '' ); + + return data; + }; +} )(); + +/** + * Whether to ignore all font related formatting styles, including: + * + * * font size; + * * font family; + * * font foreground/background color. + * + * config.pasteFromWordRemoveFontStyles = false; + * + * @since 3.1 + * @cfg {Boolean} [pasteFromWordRemoveFontStyles=true] + * @member CKEDITOR.config + */ + +/** + * Whether to transform MS Word outline numbered headings into lists. + * + * config.pasteFromWordNumberedHeadingToList = true; + * + * @since 3.1 + * @cfg {Boolean} [pasteFromWordNumberedHeadingToList=false] + * @member CKEDITOR.config + */ + +/** + * Whether to remove element styles that can't be managed with the editor. Note + * that this doesn't handle the font specific styles, which depends on the + * {@link #pasteFromWordRemoveFontStyles} setting instead. + * + * config.pasteFromWordRemoveStyles = false; + * + * @since 3.1 + * @cfg {Boolean} [pasteFromWordRemoveStyles=true] + * @member CKEDITOR.config + */ diff --git a/sources/plugins/pastefromword/icons/hidpi/pastefromword-rtl.png b/sources/plugins/pastefromword/icons/hidpi/pastefromword-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..142bd56952676ea8da427f5ef90f0331d3c65696 GIT binary patch literal 2090 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 literal 0 HcmV?d00001 diff --git a/sources/plugins/pastefromword/icons/pastefromword-rtl.png b/sources/plugins/pastefromword/icons/pastefromword-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..7b69c5550c355faa3016da0a9417e1b2367c4000 GIT binary patch literal 720 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|i<4aE$#}JFtrIY-S!1$T8zQ{DJ!e^AD~+@5*)`XJ=<; z@KKwbY%I+%zj6M7*5Y^9YwX%pJSVUS951ZVUU}(d$+Wd$-fzpIfe6T$>zA&%Qt0?c zT>_LHL4qEO zFDm3$oZkEWHtW4fQERsuT0VCzTr<_*t!Lc)dGn^^xt-zBr=L!`dpFiI>GsO&ucOix9-KdW*0pFB~~RCD5r;c0i?^Svc=)}{B~*EhV+Iezu;U)#uOk^iz@ z_aC=k+MrU9we9^@U`kLeag8WRNi0dVN-jzTQVd20hQ_)E=DG$ZA%^Bw2F5_7ZD3?& zVBouCH!zhTX~@k_$xN%nt-lpinR(g8$%zH2dih1^ Uv)|cB0TnTLy85}Sb4q9e0J4Q9M*si- literal 0 HcmV?d00001 diff --git a/sources/plugins/pastefromword/icons/pastefromword.png b/sources/plugins/pastefromword/icons/pastefromword.png new file mode 100644 index 0000000000000000000000000000000000000000..61a0ae43f58f0041ad15846c8a476d96f7dd1b56 GIT binary patch literal 723 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|i;~P&G#}JFtwUZ8dNe7Cw?Kdu;^rENbe*S)`Z zN&JQI4~E+2Z?>EAzc*drGZl3`)~hHrL1k9w_xFc<&TR3m-_d<|=XdM>f8TFCecJnx z#j=YT59TbMF!SqVm79zby>9ze-iqyAzFhs?yLS@($6L->PEt|iIeh(q`UBn%e;+(Z zNUyGzZaA2*Avvw~f#?U(A2Xi++}_^KzGL4$Hz9{v%U;f0lC}NzT+`XUrB<>)1Y+#I z3lyBSEZsq?Q|Gk8X`?;g877sO$nZ_Pa{d0R`}giCz2vx1W2b)F$cf>-ZJOJ>=X+14 z9QynB@4Di3Q#c!n`;H$!F6S`sIm7veqoM}JbBeEInNCt!7_{<(zUXgrGc%4b=`=Tq zHWg2&tx<1h&b+2`W=;6|>+@y*a7OynX`hTxHV$4Iq-h6Qmg`7gJf@#bC{;fUZ(>hs5 z;e0V4KfmGT#Zha&-HC8mc3Jbl$CD>J8IO1WaupXBzjNnKK~>c+<{vwMOw7s6^%Q!2 z?b)+sX`3Y*zt8(vapvB=d+eTz4+XBidg|Y2{wsOgH@__Dnmd2K{z^vyox?d>qvki3 zuem;b_3G8%_cPvjEo-g4DI^k@7*tDKBT7;dOH!?pi&B9UgOP!uv95u+u7OF2p}CcT zF%W4R7+Dz@_%7KEOejbia`RI%(<*Umu=&Y+1gJq0WJ7R%T1k0gQ7S`udAVL@UUqSE aVnM22eo^}DcQ#T$MGT& literal 0 HcmV?d00001 diff --git a/sources/plugins/pastefromword/lang/af.js b/sources/plugins/pastefromword/lang/af.js new file mode 100644 index 00000000..0e047b32 --- /dev/null +++ b/sources/plugins/pastefromword/lang/af.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'af', { + confirmCleanup: 'Die teks wat u wil plak lyk asof dit uit Word gekopiëer is. Wil u dit eers skoonmaak voordat dit geplak word?', + error: 'Die geplakte teks kon nie skoongemaak word nie, weens \'n interne fout', + title: 'Plak vanuit Word', + toolbar: 'Plak vanuit Word' +} ); diff --git a/sources/plugins/pastefromword/lang/ar.js b/sources/plugins/pastefromword/lang/ar.js new file mode 100644 index 00000000..37d6c35d --- /dev/null +++ b/sources/plugins/pastefromword/lang/ar.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'ar', { + confirmCleanup: 'يبدو أن النص المراد لصقه منسوخ من برنامج وورد. هل تود تنظيفه قبل الشروع في عملية اللصق؟', + error: 'لم يتم مسح المعلومات الملصقة لخلل داخلي', + title: 'لصق من وورد', + toolbar: 'لصق من وورد' +} ); diff --git a/sources/plugins/pastefromword/lang/bg.js b/sources/plugins/pastefromword/lang/bg.js new file mode 100644 index 00000000..eb4a6fab --- /dev/null +++ b/sources/plugins/pastefromword/lang/bg.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'bg', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'Вмъкни от MS Word', + toolbar: 'Вмъкни от MS Word' +} ); diff --git a/sources/plugins/pastefromword/lang/bn.js b/sources/plugins/pastefromword/lang/bn.js new file mode 100644 index 00000000..9fedb959 --- /dev/null +++ b/sources/plugins/pastefromword/lang/bn.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'bn', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'পেস্ট (শব্দ)', + toolbar: 'পেস্ট (শব্দ)' +} ); diff --git a/sources/plugins/pastefromword/lang/bs.js b/sources/plugins/pastefromword/lang/bs.js new file mode 100644 index 00000000..2b0528a7 --- /dev/null +++ b/sources/plugins/pastefromword/lang/bs.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'bs', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'Zalijepi iz Word-a', + toolbar: 'Zalijepi iz Word-a' +} ); diff --git a/sources/plugins/pastefromword/lang/ca.js b/sources/plugins/pastefromword/lang/ca.js new file mode 100644 index 00000000..b2da5cd8 --- /dev/null +++ b/sources/plugins/pastefromword/lang/ca.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'ca', { + confirmCleanup: 'El text que voleu enganxar sembla provenir de Word. Voleu netejar aquest text abans que sigui enganxat?', + error: 'No ha estat possible netejar les dades enganxades degut a un error intern', + title: 'Enganxa des del Word', + toolbar: 'Enganxa des del Word' +} ); diff --git a/sources/plugins/pastefromword/lang/cs.js b/sources/plugins/pastefromword/lang/cs.js new file mode 100644 index 00000000..5cb7c174 --- /dev/null +++ b/sources/plugins/pastefromword/lang/cs.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'cs', { + confirmCleanup: 'Jak je vidět, vkládaný text je kopírován z Wordu. Chcete jej před vložením vyčistit?', + error: 'Z důvodu vnitřní chyby nebylo možné provést vyčiÅ¡tění vkládaného textu.', + title: 'Vložit z Wordu', + toolbar: 'Vložit z Wordu' +} ); diff --git a/sources/plugins/pastefromword/lang/cy.js b/sources/plugins/pastefromword/lang/cy.js new file mode 100644 index 00000000..75fe3662 --- /dev/null +++ b/sources/plugins/pastefromword/lang/cy.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'cy', { + confirmCleanup: 'Mae\'r testun rydych chi am ludo wedi\'i gopïo o Word. Ydych chi am ei lanhau cyn ei ludo?', + error: 'Doedd dim modd glanhau y data a ludwyd oherwydd gwall mewnol', + title: 'Gludo o Word', + toolbar: 'Gludo o Word' +} ); diff --git a/sources/plugins/pastefromword/lang/da.js b/sources/plugins/pastefromword/lang/da.js new file mode 100644 index 00000000..81b26307 --- /dev/null +++ b/sources/plugins/pastefromword/lang/da.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'da', { + confirmCleanup: 'Den tekst du forsøger at indsætte ser ud til at komme fra Word. Vil du rense teksten før den indsættes?', + error: 'Det var ikke muligt at fjerne formatteringen pÃ¥ den indsatte tekst grundet en intern fejl', + title: 'Indsæt fra Word', + toolbar: 'Indsæt fra Word' +} ); diff --git a/sources/plugins/pastefromword/lang/de.js b/sources/plugins/pastefromword/lang/de.js new file mode 100644 index 00000000..836b7d74 --- /dev/null +++ b/sources/plugins/pastefromword/lang/de.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'de', { + confirmCleanup: 'Der Text, den Sie einfügen möchten, scheint aus MS-Word kopiert zu sein. Möchten Sie ihn zuvor bereinigen lassen?', + error: 'Aufgrund eines internen Fehlers war es nicht möglich die eingefügten Daten zu bereinigen', + title: 'Aus Word einfügen', + toolbar: 'Aus Word einfügen' +} ); diff --git a/sources/plugins/pastefromword/lang/el.js b/sources/plugins/pastefromword/lang/el.js new file mode 100644 index 00000000..96d1e878 --- /dev/null +++ b/sources/plugins/pastefromword/lang/el.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'el', { + confirmCleanup: 'Το κείμενο που επικολλάται φαίνεται να είναι αντιγραμμένο από το Word. Μήπως θα θέλατε να καθαριστεί προτού επικολληθεί;', + error: 'Δεν ήταν δυνατό να καθαριστούν τα δεδομένα λόγω ενός εσωτερικού σφάλματος', + title: 'Επικόλληση από το Word', + toolbar: 'Επικόλληση από το Word' +} ); diff --git a/sources/plugins/pastefromword/lang/en-au.js b/sources/plugins/pastefromword/lang/en-au.js new file mode 100644 index 00000000..0f677593 --- /dev/null +++ b/sources/plugins/pastefromword/lang/en-au.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'en-au', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'Paste from Word', + toolbar: 'Paste from Word' +} ); diff --git a/sources/plugins/pastefromword/lang/en-ca.js b/sources/plugins/pastefromword/lang/en-ca.js new file mode 100644 index 00000000..c3386622 --- /dev/null +++ b/sources/plugins/pastefromword/lang/en-ca.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'en-ca', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'Paste from Word', + toolbar: 'Paste from Word' +} ); diff --git a/sources/plugins/pastefromword/lang/en-gb.js b/sources/plugins/pastefromword/lang/en-gb.js new file mode 100644 index 00000000..085e6bce --- /dev/null +++ b/sources/plugins/pastefromword/lang/en-gb.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'en-gb', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', + error: 'It was not possible to clean up the pasted data due to an internal error', + title: 'Paste from Word', + toolbar: 'Paste from Word' +} ); diff --git a/sources/plugins/pastefromword/lang/en.js b/sources/plugins/pastefromword/lang/en.js new file mode 100644 index 00000000..396c85b8 --- /dev/null +++ b/sources/plugins/pastefromword/lang/en.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'en', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', + error: 'It was not possible to clean up the pasted data due to an internal error', + title: 'Paste from Word', + toolbar: 'Paste from Word' +} ); diff --git a/sources/plugins/pastefromword/lang/eo.js b/sources/plugins/pastefromword/lang/eo.js new file mode 100644 index 00000000..b9fc8e57 --- /dev/null +++ b/sources/plugins/pastefromword/lang/eo.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'eo', { + confirmCleanup: 'La teksto, kiun vi volas interglui, ŝajnas esti kopiita el Word. Ĉu vi deziras purigi ĝin antaÅ­ intergluo?', + error: 'Ne eblis purigi la intergluitajn datenojn pro interna eraro', + title: 'Interglui el Word', + toolbar: 'Interglui el Word' +} ); diff --git a/sources/plugins/pastefromword/lang/es.js b/sources/plugins/pastefromword/lang/es.js new file mode 100644 index 00000000..031de57f --- /dev/null +++ b/sources/plugins/pastefromword/lang/es.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'es', { + confirmCleanup: 'El texto que desea parece provenir de Word.\r\n¿Desea depurarlo antes de pegarlo?', + error: 'No ha sido posible limpiar los datos debido a un error interno', + title: 'Pegar desde Word', + toolbar: 'Pegar desde Word' +} ); diff --git a/sources/plugins/pastefromword/lang/et.js b/sources/plugins/pastefromword/lang/et.js new file mode 100644 index 00000000..f41c5ac9 --- /dev/null +++ b/sources/plugins/pastefromword/lang/et.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'et', { + confirmCleanup: 'Tekst, mida tahad asetada näib pärinevat Wordist. Kas tahad selle enne asetamist puhastada?', + error: 'Asetatud andmete puhastamine ei olnud sisemise vea tõttu võimalik', + title: 'Asetamine Wordist', + toolbar: 'Asetamine Wordist' +} ); diff --git a/sources/plugins/pastefromword/lang/eu.js b/sources/plugins/pastefromword/lang/eu.js new file mode 100644 index 00000000..3035a14c --- /dev/null +++ b/sources/plugins/pastefromword/lang/eu.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'eu', { + confirmCleanup: 'Itsatsi nahi duzun testua Word-etik kopiatua dela dirudi. Itsatsi baino lehen garbitu nahi duzu?', + error: 'Barne-errore bat dela eta ezin izan da itsatsitako testua garbitu', + title: 'Itsatsi Word-etik', + toolbar: 'Itsatsi Word-etik' +} ); diff --git a/sources/plugins/pastefromword/lang/fa.js b/sources/plugins/pastefromword/lang/fa.js new file mode 100644 index 00000000..029209ba --- /dev/null +++ b/sources/plugins/pastefromword/lang/fa.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'fa', { + confirmCleanup: 'متنی که میخواهید بچسبانید به نظر میرسد که از Word کپی شده است. آیا میخواهید قبل از چسباندن آن را پاکسازی کنید؟', + error: 'به دلیل بروز خطای داخلی امکان پاکسازی اطلاعات بازنشانی شده وجود ندارد.', + title: 'چسباندن از Word', + toolbar: 'چسباندن از Word' +} ); diff --git a/sources/plugins/pastefromword/lang/fi.js b/sources/plugins/pastefromword/lang/fi.js new file mode 100644 index 00000000..7b368fe7 --- /dev/null +++ b/sources/plugins/pastefromword/lang/fi.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'fi', { + confirmCleanup: 'Liittämäsi teksti näyttäisi olevan Word-dokumentista. Haluatko siivota sen ennen liittämistä? (Suositus: Kyllä)', + error: 'Liitetyn tiedon siivoaminen ei onnistunut sisäisen virheen takia', + title: 'Liitä Word-dokumentista', + toolbar: 'Liitä Word-dokumentista' +} ); diff --git a/sources/plugins/pastefromword/lang/fo.js b/sources/plugins/pastefromword/lang/fo.js new file mode 100644 index 00000000..dc994220 --- /dev/null +++ b/sources/plugins/pastefromword/lang/fo.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'fo', { + confirmCleanup: 'Teksturin, tú roynir at seta inn, sýnist at stava frá Word. Skal teksturin reinsast fyrst?', + error: 'Tað eydnaðist ikki at reinsa tekstin vegna ein internan feil', + title: 'Innrita frá Word', + toolbar: 'Innrita frá Word' +} ); diff --git a/sources/plugins/pastefromword/lang/fr-ca.js b/sources/plugins/pastefromword/lang/fr-ca.js new file mode 100644 index 00000000..4e27e997 --- /dev/null +++ b/sources/plugins/pastefromword/lang/fr-ca.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'fr-ca', { + confirmCleanup: 'Le texte que vous tentez de coller semble provenir de Word. Désirez vous le nettoyer avant de coller?', + error: 'Il n\'a pas été possible de nettoyer les données collées du à une erreur interne', + title: 'Coller de Word', + toolbar: 'Coller de Word' +} ); diff --git a/sources/plugins/pastefromword/lang/fr.js b/sources/plugins/pastefromword/lang/fr.js new file mode 100644 index 00000000..13126f7a --- /dev/null +++ b/sources/plugins/pastefromword/lang/fr.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'fr', { + confirmCleanup: 'Le texte à coller semble provenir de Word. Désirez-vous le nettoyer avant de coller?', + error: 'Il n\'a pas été possible de nettoyer les données collées à la suite d\'une erreur interne.', + title: 'Coller depuis Word', + toolbar: 'Coller depuis Word' +} ); diff --git a/sources/plugins/pastefromword/lang/gl.js b/sources/plugins/pastefromword/lang/gl.js new file mode 100644 index 00000000..655cc3d5 --- /dev/null +++ b/sources/plugins/pastefromword/lang/gl.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'gl', { + confirmCleanup: 'O texto que quere pegar semella ser copiado desde o Word. Quere depuralo antes de pegalo?', + error: 'Non foi posíbel depurar os datos pegados por mor dun erro interno', + title: 'Pegar desde Word', + toolbar: 'Pegar desde Word' +} ); diff --git a/sources/plugins/pastefromword/lang/gu.js b/sources/plugins/pastefromword/lang/gu.js new file mode 100644 index 00000000..6ea245d6 --- /dev/null +++ b/sources/plugins/pastefromword/lang/gu.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'gu', { + confirmCleanup: 'તમે જે ટેક્ષ્ત્ કોપી કરી રહ્યા છો ટે વર્ડ ની છે. કોપી કરતા પેહલા સાફ કરવી છે?', + error: 'પેસ્ટ કરેલો ડેટા ઇન્ટરનલ એરર ના લીથે સાફ કરી શકાયો નથી.', + title: 'પેસ્ટ (વડૅ ટેક્સ્ટ)', + toolbar: 'પેસ્ટ (વડૅ ટેક્સ્ટ)' +} ); diff --git a/sources/plugins/pastefromword/lang/he.js b/sources/plugins/pastefromword/lang/he.js new file mode 100644 index 00000000..80666c70 --- /dev/null +++ b/sources/plugins/pastefromword/lang/he.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'he', { + confirmCleanup: 'נראה הטקסט שבכוונתך להדביק מקורו בקובץ וורד. האם ברצונך לנקות אותו טרם ההדבקה?', + error: 'לא ניתן היה לנקות את המידע בשל תקלה פנימית.', + title: 'הדבקה מ-Word', + toolbar: 'הדבקה מ-Word' +} ); diff --git a/sources/plugins/pastefromword/lang/hi.js b/sources/plugins/pastefromword/lang/hi.js new file mode 100644 index 00000000..2e39fee2 --- /dev/null +++ b/sources/plugins/pastefromword/lang/hi.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'hi', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'पेस्ट (वर्ड से)', + toolbar: 'पेस्ट (वर्ड से)' +} ); diff --git a/sources/plugins/pastefromword/lang/hr.js b/sources/plugins/pastefromword/lang/hr.js new file mode 100644 index 00000000..2a765328 --- /dev/null +++ b/sources/plugins/pastefromword/lang/hr.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'hr', { + confirmCleanup: 'Tekst koji želite zalijepiti čini se da je kopiran iz Worda. Želite li prije očistiti tekst?', + error: 'Nije moguće očistiti podatke za ljepljenje zbog interne greÅ¡ke', + title: 'Zalijepi iz Worda', + toolbar: 'Zalijepi iz Worda' +} ); diff --git a/sources/plugins/pastefromword/lang/hu.js b/sources/plugins/pastefromword/lang/hu.js new file mode 100644 index 00000000..5f670e1e --- /dev/null +++ b/sources/plugins/pastefromword/lang/hu.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'hu', { + confirmCleanup: 'Úgy tűnik a beillesztett szöveget Word-ből másolt át. Meg szeretné tisztítani a szöveget? (ajánlott)', + error: 'Egy belső hiba miatt nem sikerült megtisztítani a szöveget', + title: 'Beillesztés Word-ből', + toolbar: 'Beillesztés Word-ből' +} ); diff --git a/sources/plugins/pastefromword/lang/id.js b/sources/plugins/pastefromword/lang/id.js new file mode 100644 index 00000000..be60dd24 --- /dev/null +++ b/sources/plugins/pastefromword/lang/id.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'id', { + confirmCleanup: 'Teks yang ingin anda tempel sepertinya di salin dari Word. Apakah anda mau membersihkannya sebelum menempel?', + error: 'Tidak mungkin membersihkan data yang ditempel dikerenakan kesalahan internal', + title: 'Tempel dari Word', + toolbar: 'Tempel dari Word' +} ); diff --git a/sources/plugins/pastefromword/lang/is.js b/sources/plugins/pastefromword/lang/is.js new file mode 100644 index 00000000..35dfe084 --- /dev/null +++ b/sources/plugins/pastefromword/lang/is.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'is', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'Líma úr Word', + toolbar: 'Líma úr Word' +} ); diff --git a/sources/plugins/pastefromword/lang/it.js b/sources/plugins/pastefromword/lang/it.js new file mode 100644 index 00000000..68020681 --- /dev/null +++ b/sources/plugins/pastefromword/lang/it.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'it', { + confirmCleanup: 'Il testo da incollare sembra provenire da Word. Desideri pulirlo prima di incollare?', + error: 'Non è stato possibile eliminare il testo incollato a causa di un errore interno.', + title: 'Incolla da Word', + toolbar: 'Incolla da Word' +} ); diff --git a/sources/plugins/pastefromword/lang/ja.js b/sources/plugins/pastefromword/lang/ja.js new file mode 100644 index 00000000..a1269c98 --- /dev/null +++ b/sources/plugins/pastefromword/lang/ja.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'ja', { + confirmCleanup: '貼り付けを行うテキストはワード文章からコピーされようとしています。貼り付ける前にクリーニングを行いますか?', + error: '内部エラーにより貼り付けたデータをクリアできませんでした', + title: 'ワード文章から貼り付け', + toolbar: 'ワード文章から貼り付け' +} ); diff --git a/sources/plugins/pastefromword/lang/ka.js b/sources/plugins/pastefromword/lang/ka.js new file mode 100644 index 00000000..472ff533 --- /dev/null +++ b/sources/plugins/pastefromword/lang/ka.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'ka', { + confirmCleanup: 'ჩასასმელი ტექსტი ვორდიდან გადმოტანილს გავს - გინდათ მისი წინასწარ გაწმენდა?', + error: 'შიდა შეცდომის გამო ვერ მოხერხდა ტექსტის გაწმენდა', + title: 'ვორდიდან ჩასმა', + toolbar: 'ვორდიდან ჩასმა' +} ); diff --git a/sources/plugins/pastefromword/lang/km.js b/sources/plugins/pastefromword/lang/km.js new file mode 100644 index 00000000..cd5268dc --- /dev/null +++ b/sources/plugins/pastefromword/lang/km.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'km', { + confirmCleanup: 'អត្ថបទ​ដែល​អ្នក​ចង់​បិទ​ភ្ជាប់​នេះ ទំនង​ដូច​ជា​ចម្លង​មក​ពី Word។ តើ​អ្នក​ចង់​សម្អាត​វា​មុន​បិទ​ភ្ជាប់​ទេ?', + error: 'ដោយ​សារ​មាន​បញ្ហា​ផ្នែក​ក្នុង​ធ្វើ​ឲ្យ​មិន​អាច​សម្អាត​ទិន្នន័យ​ដែល​បាន​បិទ​ភ្ជាប់', + title: 'បិទ​ភ្ជាប់​ពី Word', + toolbar: 'បិទ​ភ្ជាប់​ពី Word' +} ); diff --git a/sources/plugins/pastefromword/lang/ko.js b/sources/plugins/pastefromword/lang/ko.js new file mode 100644 index 00000000..54870707 --- /dev/null +++ b/sources/plugins/pastefromword/lang/ko.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'ko', { + confirmCleanup: '붙여 넣을 내용은 MS Word에서 복사 한 것입니다. 붙여 넣기 전에 정리 하시겠습니까?', + error: '내부 오류로 붙여 넣은 데이터를 정리 할 수 없습니다.', + title: 'MS Word 에서 붙여넣기', + toolbar: 'MS Word 에서 붙여넣기' +} ); diff --git a/sources/plugins/pastefromword/lang/ku.js b/sources/plugins/pastefromword/lang/ku.js new file mode 100644 index 00000000..7fa47dd7 --- /dev/null +++ b/sources/plugins/pastefromword/lang/ku.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'ku', { + confirmCleanup: 'ئەم دەقەی بەتەمای بیلکێنی پێدەچێت له word هێنرابێت. دەتەوێت پاکی بکەیوه پێش ئەوەی بیلکێنی؟', + error: 'هیچ ڕێگەیەك نەبوو لەلکاندنی دەقەکه بەهۆی هەڵەیەکی ناوەخۆیی', + title: 'لکاندنی لەلایەن Word', + toolbar: 'لکاندنی لەڕێی Word' +} ); diff --git a/sources/plugins/pastefromword/lang/lt.js b/sources/plugins/pastefromword/lang/lt.js new file mode 100644 index 00000000..b46b34f4 --- /dev/null +++ b/sources/plugins/pastefromword/lang/lt.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'lt', { + confirmCleanup: 'Tekstas, kurį įkeliate yra kopijuojamas iÅ¡ Word. Ar norite jį iÅ¡valyti prieÅ¡ įkeliant?', + error: 'Dėl vidinių sutrikimų, nepavyko iÅ¡valyti įkeliamo teksto', + title: 'Ä®dėti iÅ¡ Word', + toolbar: 'Ä®dėti iÅ¡ Word' +} ); diff --git a/sources/plugins/pastefromword/lang/lv.js b/sources/plugins/pastefromword/lang/lv.js new file mode 100644 index 00000000..c82f2093 --- /dev/null +++ b/sources/plugins/pastefromword/lang/lv.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'lv', { + confirmCleanup: 'Teksts, kuru vēlaties ielÄ«mēt, izskatās ir nokopēts no Word. Vai vēlaties to iztÄ«rÄ«t pirms ielÄ«mēšanas?', + error: 'Iekšējas kļūdas dēļ, neizdevās iztÄ«rÄ«t ielÄ«mētos datus.', + title: 'Ievietot no Worda', + toolbar: 'Ievietot no Worda' +} ); diff --git a/sources/plugins/pastefromword/lang/mk.js b/sources/plugins/pastefromword/lang/mk.js new file mode 100644 index 00000000..b856a05e --- /dev/null +++ b/sources/plugins/pastefromword/lang/mk.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'mk', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'Paste from Word', // MISSING + toolbar: 'Paste from Word' // MISSING +} ); diff --git a/sources/plugins/pastefromword/lang/mn.js b/sources/plugins/pastefromword/lang/mn.js new file mode 100644 index 00000000..2e6fb128 --- /dev/null +++ b/sources/plugins/pastefromword/lang/mn.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'mn', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'Word-оос буулгах', + toolbar: 'Word-оос буулгах' +} ); diff --git a/sources/plugins/pastefromword/lang/ms.js b/sources/plugins/pastefromword/lang/ms.js new file mode 100644 index 00000000..ce6ffe6e --- /dev/null +++ b/sources/plugins/pastefromword/lang/ms.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'ms', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'Tampal dari Word', + toolbar: 'Tampal dari Word' +} ); diff --git a/sources/plugins/pastefromword/lang/nb.js b/sources/plugins/pastefromword/lang/nb.js new file mode 100644 index 00000000..edd15bdd --- /dev/null +++ b/sources/plugins/pastefromword/lang/nb.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'nb', { + confirmCleanup: 'Teksten du limer inn ser ut til Ã¥ være kopiert fra Word. Vil du renske den før du limer den inn?', + error: 'Det var ikke mulig Ã¥ renske den innlimte teksten pÃ¥ grunn av en intern feil', + title: 'Lim inn fra Word', + toolbar: 'Lim inn fra Word' +} ); diff --git a/sources/plugins/pastefromword/lang/nl.js b/sources/plugins/pastefromword/lang/nl.js new file mode 100644 index 00000000..a699f3d0 --- /dev/null +++ b/sources/plugins/pastefromword/lang/nl.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'nl', { + confirmCleanup: 'De tekst die u wilt plakken lijkt gekopieerd te zijn vanuit Word. Wilt u de tekst opschonen voordat deze geplakt wordt?', + error: 'Het was niet mogelijk om de geplakte tekst op te schonen door een interne fout', + title: 'Plakken vanuit Word', + toolbar: 'Plakken vanuit Word' +} ); diff --git a/sources/plugins/pastefromword/lang/no.js b/sources/plugins/pastefromword/lang/no.js new file mode 100644 index 00000000..fbb970be --- /dev/null +++ b/sources/plugins/pastefromword/lang/no.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'no', { + confirmCleanup: 'Teksten du limer inn ser ut til Ã¥ være kopiert fra Word. Vil du renske den før du limer den inn?', + error: 'Det var ikke mulig Ã¥ renske den innlimte teksten pÃ¥ grunn av en intern feil', + title: 'Lim inn fra Word', + toolbar: 'Lim inn fra Word' +} ); diff --git a/sources/plugins/pastefromword/lang/pl.js b/sources/plugins/pastefromword/lang/pl.js new file mode 100644 index 00000000..245b7d05 --- /dev/null +++ b/sources/plugins/pastefromword/lang/pl.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'pl', { + confirmCleanup: 'Tekst, który chcesz wkleić, prawdopodobnie pochodzi z programu Microsoft Word. Czy chcesz go wyczyścić przed wklejeniem?', + error: 'Wyczyszczenie wklejonych danych nie było możliwe z powodu wystąpienia błędu.', + title: 'Wklej z programu MS Word', + toolbar: 'Wklej z programu MS Word' +} ); diff --git a/sources/plugins/pastefromword/lang/pt-br.js b/sources/plugins/pastefromword/lang/pt-br.js new file mode 100644 index 00000000..199b5a6b --- /dev/null +++ b/sources/plugins/pastefromword/lang/pt-br.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'pt-br', { + confirmCleanup: 'O texto que você deseja colar parece ter sido copiado do Word. Você gostaria de remover a formatação antes de colar?', + error: 'Não foi possível limpar os dados colados devido a um erro interno', + title: 'Colar do Word', + toolbar: 'Colar do Word' +} ); diff --git a/sources/plugins/pastefromword/lang/pt.js b/sources/plugins/pastefromword/lang/pt.js new file mode 100644 index 00000000..06cdee8a --- /dev/null +++ b/sources/plugins/pastefromword/lang/pt.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'pt', { + confirmCleanup: 'O texto que pretende colar parece ter sido copiado do Word. Deseja limpá-lo antes de colar?', + error: 'Não foi possivel limpar a informação colada decido a um erro interno.', + title: 'Colar do Word', + toolbar: 'Colar do Word' +} ); diff --git a/sources/plugins/pastefromword/lang/ro.js b/sources/plugins/pastefromword/lang/ro.js new file mode 100644 index 00000000..5871070c --- /dev/null +++ b/sources/plugins/pastefromword/lang/ro.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'ro', { + confirmCleanup: 'Textul pe care doriți să-l lipiți este din Word. Doriți curățarea textului înante de a-l adăuga?', + error: 'Nu a fost posibilă curățarea datelor adăugate datorită unei erori interne', + title: 'Adaugă din Word', + toolbar: 'Adaugă din Word' +} ); diff --git a/sources/plugins/pastefromword/lang/ru.js b/sources/plugins/pastefromword/lang/ru.js new file mode 100644 index 00000000..1a8e159d --- /dev/null +++ b/sources/plugins/pastefromword/lang/ru.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'ru', { + confirmCleanup: 'Текст, который вы желаете вставить, по всей видимости, был скопирован из Word. Следует ли очистить его перед вставкой?', + error: 'Невозможно очистить вставленные данные из-за внутренней ошибки', + title: 'Вставить из Word', + toolbar: 'Вставить из Word' +} ); diff --git a/sources/plugins/pastefromword/lang/si.js b/sources/plugins/pastefromword/lang/si.js new file mode 100644 index 00000000..e66b0cbd --- /dev/null +++ b/sources/plugins/pastefromword/lang/si.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'si', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'වචන වලින් අලවන්න', + toolbar: 'වචන වලින් අලවන්න' +} ); diff --git a/sources/plugins/pastefromword/lang/sk.js b/sources/plugins/pastefromword/lang/sk.js new file mode 100644 index 00000000..8386c681 --- /dev/null +++ b/sources/plugins/pastefromword/lang/sk.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'sk', { + confirmCleanup: 'Vkladaný text vyzerá byÅ¥ skopírovaný z Wordu. Chcete ho automaticky vyčistiÅ¥ pred vkladaním?', + error: 'Nebolo možné vyčistiÅ¥ vložené dáta kvôli internej chybe', + title: 'VložiÅ¥ z Wordu', + toolbar: 'VložiÅ¥ z Wordu' +} ); diff --git a/sources/plugins/pastefromword/lang/sl.js b/sources/plugins/pastefromword/lang/sl.js new file mode 100644 index 00000000..b558ca8a --- /dev/null +++ b/sources/plugins/pastefromword/lang/sl.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'sl', { + confirmCleanup: 'Besedilo, ki ga želite prilepiti je kopirano iz Word-a. Ali ga želite očistiti, preden ga prilepite?', + error: 'Ni bilo mogoče očistiti prilepljenih podatkov zaradi notranje napake', + title: 'Prilepi iz Worda', + toolbar: 'Prilepi iz Worda' +} ); diff --git a/sources/plugins/pastefromword/lang/sq.js b/sources/plugins/pastefromword/lang/sq.js new file mode 100644 index 00000000..41c7c775 --- /dev/null +++ b/sources/plugins/pastefromword/lang/sq.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'sq', { + confirmCleanup: 'Teksti që dëshironi të e hidhni siç duket është kopjuar nga Word-i. Dëshironi të e pastroni para se të e hidhni?', + error: 'Nuk ishte e mundur të fshiheshin të dhënat e hedhura për shkak të një gabimi të brendshëm', + title: 'Hidhe nga Word-i', + toolbar: 'Hidhe nga Word-i' +} ); diff --git a/sources/plugins/pastefromword/lang/sr-latn.js b/sources/plugins/pastefromword/lang/sr-latn.js new file mode 100644 index 00000000..3774a3de --- /dev/null +++ b/sources/plugins/pastefromword/lang/sr-latn.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'sr-latn', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'Zalepi iz Worda', + toolbar: 'Zalepi iz Worda' +} ); diff --git a/sources/plugins/pastefromword/lang/sr.js b/sources/plugins/pastefromword/lang/sr.js new file mode 100644 index 00000000..259715b3 --- /dev/null +++ b/sources/plugins/pastefromword/lang/sr.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'sr', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'Залепи из Worda', + toolbar: 'Залепи из Worda' +} ); diff --git a/sources/plugins/pastefromword/lang/sv.js b/sources/plugins/pastefromword/lang/sv.js new file mode 100644 index 00000000..d5954b49 --- /dev/null +++ b/sources/plugins/pastefromword/lang/sv.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'sv', { + confirmCleanup: 'Texten du vill klistra in verkar vara kopierad frÃ¥n Word. Vill du rensa den innan du klistrar in den?', + error: 'Det var inte möjligt att städa upp den inklistrade data pÃ¥ grund av ett internt fel', + title: 'Klistra in frÃ¥n Word', + toolbar: 'Klistra in frÃ¥n Word' +} ); diff --git a/sources/plugins/pastefromword/lang/th.js b/sources/plugins/pastefromword/lang/th.js new file mode 100644 index 00000000..2ddcca55 --- /dev/null +++ b/sources/plugins/pastefromword/lang/th.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'th', { + confirmCleanup: 'ข้อความที่คุณต้องการวางลงไปเป็นข้อความที่คัดลอกมาจากโปรแกรมไมโครซอฟท์เวิร์ด คุณต้องการล้างค่าข้อความดังกล่าวก่อนวางลงไปหรือไม่?', + error: 'ไม่สามารถล้างข้อมูลที่ต้องการวางได้เนื่องจากเกิดข้อผิดพลาดภายในระบบ', + title: 'วางสำเนาจากตัวอักษรเวิร์ด', + toolbar: 'วางสำเนาจากตัวอักษรเวิร์ด' +} ); diff --git a/sources/plugins/pastefromword/lang/tr.js b/sources/plugins/pastefromword/lang/tr.js new file mode 100644 index 00000000..12331e38 --- /dev/null +++ b/sources/plugins/pastefromword/lang/tr.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'tr', { + confirmCleanup: 'Yapıştırmaya çalıştığınız metin Word\'den kopyalanmıştır. Yapıştırmadan önce silmek istermisiniz?', + error: 'Yapıştırmadaki veri bilgisi hata düzelene kadar silinmeyecektir', + title: 'Word\'den Yapıştır', + toolbar: 'Word\'den Yapıştır' +} ); diff --git a/sources/plugins/pastefromword/lang/tt.js b/sources/plugins/pastefromword/lang/tt.js new file mode 100644 index 00000000..a5876219 --- /dev/null +++ b/sources/plugins/pastefromword/lang/tt.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'tt', { + confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING + error: 'It was not possible to clean up the pasted data due to an internal error', // MISSING + title: 'Word\'тан өстәү', + toolbar: 'Word\'тан өстәү' +} ); diff --git a/sources/plugins/pastefromword/lang/ug.js b/sources/plugins/pastefromword/lang/ug.js new file mode 100644 index 00000000..8285b371 --- /dev/null +++ b/sources/plugins/pastefromword/lang/ug.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'ug', { + confirmCleanup: 'سىز چاپلىماقچى بولغان مەزمۇن MS Word تىن كەلگەندەك قىلىدۇ، MS Word پىچىمىنى تازىلىۋەتكەندىن كېيىن ئاندىن چاپلامدۇ؟', + error: 'ئىچكى خاتالىق سەۋەبىدىن چاپلايدىغان سانلىق مەلۇماتنى تازىلىيالمايدۇ', + title: 'MS Word تىن چاپلا', + toolbar: 'MS Word تىن چاپلا' +} ); diff --git a/sources/plugins/pastefromword/lang/uk.js b/sources/plugins/pastefromword/lang/uk.js new file mode 100644 index 00000000..ff3fe230 --- /dev/null +++ b/sources/plugins/pastefromword/lang/uk.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'uk', { + confirmCleanup: 'Текст, що Ви намагаєтесь вставити, схожий на скопійований з Word. Бажаєте очистити його форматування перед вставлянням?', + error: 'Неможливо очистити форматування через внутрішню помилку.', + title: 'Вставити з Word', + toolbar: 'Вставити з Word' +} ); diff --git a/sources/plugins/pastefromword/lang/vi.js b/sources/plugins/pastefromword/lang/vi.js new file mode 100644 index 00000000..e967297f --- /dev/null +++ b/sources/plugins/pastefromword/lang/vi.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'vi', { + confirmCleanup: 'Văn bản bạn muốn dán có kèm định dạng của Word. Bạn có muốn loại bỏ định dạng Word trước khi dán?', + error: 'Không thể để làm sạch các dữ liệu dán do một lỗi nội bộ', + title: 'Dán với định dạng Word', + toolbar: 'Dán với định dạng Word' +} ); diff --git a/sources/plugins/pastefromword/lang/zh-cn.js b/sources/plugins/pastefromword/lang/zh-cn.js new file mode 100644 index 00000000..f9e1a952 --- /dev/null +++ b/sources/plugins/pastefromword/lang/zh-cn.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'zh-cn', { + confirmCleanup: '您要粘贴的内容好像是来自 MS Word,是否要清除 MS Word 格式后再粘贴?', + error: '由于内部错误无法清理要粘贴的数据', + title: '从 MS Word 粘贴', + toolbar: '从 MS Word 粘贴' +} ); diff --git a/sources/plugins/pastefromword/lang/zh.js b/sources/plugins/pastefromword/lang/zh.js new file mode 100644 index 00000000..fc460ba6 --- /dev/null +++ b/sources/plugins/pastefromword/lang/zh.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'pastefromword', 'zh', { + confirmCleanup: '您想貼上的文字似乎是自 Word 複製而來,請問您是否要先清除 Word 的格式後再行貼上?', + error: '由於發生內部錯誤,無法清除清除 Word 的格式。', + title: '自 Word 貼上', + toolbar: '自 Word 貼上' +} ); diff --git a/sources/plugins/pastefromword/plugin.js b/sources/plugins/pastefromword/plugin.js new file mode 100644 index 00000000..3bc93798 --- /dev/null +++ b/sources/plugins/pastefromword/plugin.js @@ -0,0 +1,149 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +( function() { + CKEDITOR.plugins.add( 'pastefromword', { + requires: 'clipboard', + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'pastefromword,pastefromword-rtl', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + init: function( editor ) { + var commandName = 'pastefromword', + // Flag indicate this command is actually been asked instead of a generic pasting. + forceFromWord = 0, + path = this.path; + + editor.addCommand( commandName, { + // Snapshots are done manually by editable.insertXXX methods. + canUndo: false, + async: true, + + exec: function( editor ) { + var cmd = this; + + forceFromWord = 1; + // Force html mode for incomming paste events sequence. + editor.once( 'beforePaste', forceHtmlMode ); + + editor.getClipboardData( { title: editor.lang.pastefromword.title }, function( data ) { + // Do not use editor#paste, because it would start from beforePaste event. + data && editor.fire( 'paste', { + type: 'html', + dataValue: data.dataValue, + method: 'paste', + dataTransfer: CKEDITOR.plugins.clipboard.initPasteDataTransfer() + } ); + + editor.fire( 'afterCommandExec', { + name: commandName, + command: cmd, + returnValue: !!data + } ); + } ); + } + } ); + + // Register the toolbar button. + editor.ui.addButton && editor.ui.addButton( 'PasteFromWord', { + label: editor.lang.pastefromword.toolbar, + command: commandName, + toolbar: 'clipboard,50' + } ); + + editor.on( 'pasteState', function( evt ) { + editor.getCommand( commandName ).setState( evt.data ); + } ); + + // Features bring by this command beside the normal process: + // 1. No more bothering of user about the clean-up. + // 2. Perform the clean-up even if content is not from MS-Word. + // (e.g. from a MS-Word similar application.) + // 3. Listen with high priority (3), so clean up is done before content + // type sniffing (priority = 6). + editor.on( 'paste', function( evt ) { + var data = evt.data, + mswordHtml = data.dataValue; + + // MS-WORD format sniffing. + if ( mswordHtml && ( forceFromWord || ( /(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/ ).test( mswordHtml ) ) ) { + // Do not apply paste filter to data filtered by the Word filter (#13093). + data.dontFilter = true; + + // If filter rules aren't loaded then cancel 'paste' event, + // load them and when they'll get loaded fire new paste event + // for which data will be filtered in second execution of + // this listener. + var isLazyLoad = loadFilterRules( editor, path, function() { + // Event continuation with the original data. + if ( isLazyLoad ) + editor.fire( 'paste', data ); + else if ( !editor.config.pasteFromWordPromptCleanup || ( forceFromWord || confirm( editor.lang.pastefromword.confirmCleanup ) ) ) // jshint ignore:line + data.dataValue = CKEDITOR.cleanWord( mswordHtml, editor ); + + // Reset forceFromWord. + forceFromWord = 0; + } ); + + // The cleanup rules are to be loaded, we should just cancel + // this event. + isLazyLoad && evt.cancel(); + } + }, null, null, 3 ); + } + + } ); + + function loadFilterRules( editor, path, callback ) { + var isLoaded = CKEDITOR.cleanWord; + + if ( isLoaded ) + callback(); + else { + var filterFilePath = CKEDITOR.getUrl( editor.config.pasteFromWordCleanupFile || ( path + 'filter/default.js' ) ); + + // Load with busy indicator. + CKEDITOR.scriptLoader.load( filterFilePath, callback, null, true ); + } + + return !isLoaded; + } + + function forceHtmlMode( evt ) { + evt.data.type = 'html'; + } +} )(); + + +/** + * Whether to prompt the user about the clean up of content being pasted from MS Word. + * + * config.pasteFromWordPromptCleanup = true; + * + * @since 3.1 + * @cfg {Boolean} [pasteFromWordPromptCleanup=false] + * @member CKEDITOR.config + */ + +/** + * The file that provides the MS Word cleanup function for pasting operations. + * + * **Note:** This is a global configuration shared by all editor instances present + * in the page. + * + * // Load from 'pastefromword' plugin 'filter' sub folder (custom.js file) using path relative to CKEditor installation folder. + * CKEDITOR.config.pasteFromWordCleanupFile = 'plugins/pastefromword/filter/custom.js'; + * + * // Load from 'pastefromword' plugin 'filter' sub folder (custom.js file) using full path (including CKEditor installation folder). + * CKEDITOR.config.pasteFromWordCleanupFile = '/ckeditor/plugins/pastefromword/filter/custom.js'; + * + * // Load custom.js file from 'customFilerts' folder (located in server's root) using full URL. + * CKEDITOR.config.pasteFromWordCleanupFile = 'http://my.example.com/customFilerts/custom.js'; + * + * @since 3.1 + * @cfg {String} [pasteFromWordCleanupFile= + 'filter/default.js'] + * @member CKEDITOR.config + */ diff --git a/sources/plugins/pastetext/icons/hidpi/pastetext-rtl.png b/sources/plugins/pastetext/icons/hidpi/pastetext-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..35354a5f8d91e7e6176cdd54b931a8e2ce04aec3 GIT binary patch literal 1950 zcmV;P2VwY$P);bpT(%c2#AY}M=3gMdh>E{HAwDFg-2V`6L!F+DvFTn63*X3U*C z55?^4m%!YG_um(dMnjOgMSKH(JvnK_v11DO%G|m0j+mVt2krv5fe+2Sdk-HxdPKF+ zK*jnp(YGv%Qa;}~+_qO=pPhYo=G3VPW6Wdi`y4)geD1vq7cfyI+U+*GEfYoJy$csO zeEj&F_I->ok7rJuns|M7_FZgyRZLHhm-2Zm%j)8m03!B49M{X|=I8evot)fWSy^cT zd$%hUCdS7_y;_xxMuWij34)-1`96(CgL<_pC&tIccBKNacV%Uzb#!ua``rBeKH#!r z+ejfu0@w|KiAi$c$dR|Im5N+mUVgEd%bB&s#q}3PM|tJwQSrB1w>lsP;!n>AVHEM( zGiOBA_qo5gxIT69qPwuT=$)IN=fII8Z>d!LcL0c@h<)Yq{z|n>v_UxP5R7UG8==^npPO1h2ZIp8*9$U2ucWa6tQ~s z>UkB0=P`x>{`V3g&IZeIuw55v+gPs4*4JOJ$xH^5I(SD2v@ry}&-#-mU<_?zkeLj| z7=)Ba+h#}V4N{<+kpiSd#6`{aJh1JKtw8_+kWyj^K@bGo|M5ov{&oF2nQWHKFv9I} zxYimKFH&HHl<4HY0eiNTlDz9u%I9&EB90>m%4O_a4w1^)X96&WMzhIQtwy8S>;sYT zYd5hiDH$ymDV{m=JKzdXjQ7+pI=LrzflIYpxBlD=LzLECcZ(Qc^4#wMA;@Mj09Q_( zJv-y&^8~FHMhHk1jA8MXLf|sn7YbBrHB_xeH3-OiUZ?6M zAQI$>A+3p8EgC_Z{N0z zF+?f--8!Wi7J@-{8bE2y#MBgfM@DdL8`p6txGn(oW|L+Z5=IeEt5uZN*ivG&-qrQV zap^1&g8&kiCb?YoeSWxn+439*$F{MGMP@$uKmpucSg=&BMi@l|VMx{Y*;6QVNj8kM zdMF2CwkIyq#?TBy>dj`iMNb$*-S+{As#P9rZ4pKh+8Asp`^T)1N{ zkLYRXRvK;0P@+7~z7T?pWl_xK$P|lY<8C;Zrrnv)49x3E?>4dFu-ztXx4VQJ?CpuZ z5CTg|vW~-Ou}FFUe#EP<&g2}2edRLAMASc!2+<*lF`zX@DNIZn4Fo~J+(WAkGp3N;@Ghn%XP1`e4jT@pT-Y@zE0Vj3AF~L5bZXi*+jJ4 zU<_JHYEi`Fr6miXwz-K8Lxk3yW)-)M`PYz^Lb8!RE=6C*}3eKYtNe zY4|>Nq0k%4wbrznO*S?*{{E|S`GgQ+i|3F-hYy>lPoAv$jRqT=o0wWHA$WrM-@u21 zM7EVuY;SL~dhZ?=&z~3T4jg=KPzx$3_r)pN>PyPek0{(P& zVPPvOV literal 0 HcmV?d00001 diff --git a/sources/plugins/pastetext/icons/hidpi/pastetext.png b/sources/plugins/pastetext/icons/hidpi/pastetext.png new file mode 100644 index 0000000000000000000000000000000000000000..f82900fa997b7a35ceb8a3d0ae27507d8bd18f31 GIT binary patch literal 1963 zcmZ{ldpr}28pr1nOK*%0l1F!vR*p=~Z{)9+Ys2K6k)B#t1hK=Uj9tUd+mM)nQP65_Xmw z1?TSU=GoRBRHJ&Cc@omrMabWt)3_`e>7B6+Yh`V#-KlEiaD?=si7((*_ZTMBN5@ z7>Y=Q@Kr7|+pc*jK*`S~CN>azo=#-CAKKLz#X*U~S}O)MtJk zn`_RW@7{U@dounap6RMLz6T$OG?MSw7#~eD{{kKKWGeDOA7$ zxRo|^R0Nu{>Hyz%CJG96B$@_mj@ZlA8N8IGm7Mdoi&yh-ZpaOEPb*`*|JG{&h@l2u|E(_J=rpRydB&ceBYZ~d2Gx!R zuTJm90ruiHbgvks;&RS~s)I+LE{X3leTU{pJp&i2TDwZn^$_U4Hsw zPvcajGVQLG1C=YtQ5a9O#9e}xoS`#%r@|(ha=3HekF0J=CDxm%B0Y%_ehdww>E3S7 znGCNR;eVv(U>wpAKnrP!)@>0!PCWIi>-q@wHJf_cX#K{L>TBtESD@or~bfZ&lsdI4a|bk5AyQ_FmIAvamsu%im8;VaQ-tOCMXc%#md&T$tq8}-B+wWVl}ph z?6at14kRzox^b5@9X!H~C@i59!6SSaqx&1Vslm2Fxy$pq&JL$K<6I-x@_y2|(B~7o z$49QT?zCHlfEoj9tZh}3zPh-j(Vy#mw=3e2@dBvRyfqVXbA8J?; z>sON#7z)V_Vk%i@mj5Y4D>yy49+WP_7?LC)oSpwjJwqhQTf{{j$u0-t$D}UWadZ#l zSI24s2=uXkVD?!%Tim_PzWh+q&*l$RRDG;t|7lYlglD#_P|$KMo?a9XoH9kU&@{~3 zeA|Vd6#+%uAy~`E&nYIeY>0U(WHE~U=FMe@jUEh^Fb{+#fe74M2(+`ew>PHWRtkUl zG(hKeY{_dw!?SHp)0u5?XqWJF86IBO@V9*vrSNzSpk(hHl18I(>%_DKMflvjtY@I- z_{#l*=hnVy6ecs4-S=+3gmsL$cej37$K+AR4@{_UcV|28{Fmn2eAIr)t|)VH_)p8K z7m8SVHdm9#-jhEg%>zGnl3u0y9289w(fhwgl;xL;c*67KmWhX>GNUZ#6F!d(#vG~5IYH#!SPqT%q(nR4v^1a5`6R}0HP2B%kU4LXxWMGs6>qhl z2-fuNIbSvR2h*etlX!PL&`>(GW5UhYZOeBT3061RTV4pb8(O=|Z|<~{DNcbRIeB?W zJ&H~)$6N#7Fq-&&_71&&WX|__yVhmSV$1GHtgV&Je#`!V`-9+*!kU^r*WZ6<+_87> zUEzs_ANYQ7&C!{DI=}lU)5=v{YuD~*>i6v^(@rrdU)%Wlp;%r=hSQp$Va)G4m>59d67_>l3r zj8fD0eWz7ZBbAh#1sz?!Y@M2VvmiN{Ia}9r(t|m#Io50y%YLi=e9i~?C7G)-XDKPo z?KRw{$Z~2^&%M{5Pp{HSjdW9w^9l$}+Z-9bX4NL37mqS*zR7d7{!XEol9LdB$kdl5 zTnFynm1Vg6QY7@PiFERYYj%p>N!}YTRG&}Uc%b^eVD)>$V;5e3op<{8ZAOPlDk+iQ zmMEMydX(Q&EofUV-pMvoqAmHzm2{9_rG=jb1$3R_*rxA+&RCm zvzP^U@7^6+BUr)Ur#6{WktHYgdQ4p0Jf`_S?furTTbFS=EM%&H)AK{}uPWURd(PbV z5|~m{OI#yLQW8s2t&)pUffR$0fuXUkfw``MNr<7jm4Pu3X&V?>85sC3*$qrZNE&kU zQ!>*kaci*o$$SK;K@wy`aDG}zd16s2LwR|*US?i)adKios$PCk`s{Z$Qb0uvp00i_ I>zopr0MM326951J literal 0 HcmV?d00001 diff --git a/sources/plugins/pastetext/icons/pastetext.png b/sources/plugins/pastetext/icons/pastetext.png new file mode 100644 index 0000000000000000000000000000000000000000..20816a4f46074e8baa018286206654bca5ecd1d0 GIT binary patch literal 750 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|i6T7F2V~EA++DYfVWE=&K)nC19%yY(Sow=icAnWua#R8LyZGLk# z?s1r>{C@Mi#rg`K*EV!1DW6cv5i_p8v21zKg_#*=o;5Gpz4Fzn_4~AT?%Ji~8yprE zw&B_(CzoTHv+@{4TnpE&y1iDvj$?VK74rX)hjKA z?c29UD;crHF~&FefByMr$GU8l^TpS$T@#piF~ek&wYBy7@87@IGfp&QYgm@a@aN=7 z&-ZWMym_5qz_H3|$IhLNHs?Ryo4jo0s#gc^-j!Wtb#1zY{V%>rDi?p&_|1E65xO)} zYTC4ED_&PcOj89Kbo-oT6r1jvts$YNK9gA9+cLacX`s}!b()Iji|@Z(0*~xBnCr*5 zVpZ3=mhW=OJm)Nb{k1EU;dgZrmryb~v*}G^V~2oK#&LHMSBvNOs^7P=b}aIkTdW_Q z5qf^p8s8Q5^P-Sd=M>*Ht9l<8 znzmVzVe(0qhMPHUtIAk=Ulq6QjpNVORcz5SXmNx(068z591yX#KVxGjsFL z|KBv`<>WjG4YlntY&r1r=g*CX&w4u^%z6Ci(Ibu@2a;rB 1 && width.substr( width.length - 1, 1 ) == '%' ) + width = parseInt( window.screen.width * parseInt( width, 10 ) / 100, 10 ); + + if ( typeof height == 'string' && height.length > 1 && height.substr( height.length - 1, 1 ) == '%' ) + height = parseInt( window.screen.height * parseInt( height, 10 ) / 100, 10 ); + + if ( width < 640 ) + width = 640; + + if ( height < 420 ) + height = 420; + + var top = parseInt( ( window.screen.height - height ) / 2, 10 ), + left = parseInt( ( window.screen.width - width ) / 2, 10 ); + + options = ( options || 'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes' ) + ',width=' + width + + ',height=' + height + + ',top=' + top + + ',left=' + left; + + var popupWindow = window.open( '', null, options, true ); + + // Blocked by a popup blocker. + if ( !popupWindow ) + return false; + + try { + // Chrome is problematic with moveTo/resizeTo, but it's not really needed here (#8855). + var ua = navigator.userAgent.toLowerCase(); + if ( ua.indexOf( ' chrome/' ) == -1 ) { + popupWindow.moveTo( left, top ); + popupWindow.resizeTo( width, height ); + } + popupWindow.focus(); + popupWindow.location.href = url; + } catch ( e ) { + popupWindow = window.open( url, null, options, true ); + } + + return true; + } +} ); diff --git a/sources/plugins/preview/icons/hidpi/preview-rtl.png b/sources/plugins/preview/icons/hidpi/preview-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..cd64e19a87a150e7b05f6b682953e45251f21b90 GIT binary patch literal 2145 zcmV-n2%h(eP)8b8)M^-wXrdE9Iw4LScH@qgp`y}iK>PMmyb$T1Bwu#l&VA~{Y4N_<@kqFfkaBx z0_u+{3Q<}SLZC=aBv4Fam!Kj#6}PUlC?^M}-Hs3or(jtY zu|$HA@o{2_1g2#zoWK-#UQP~$fdC>BIRtb)Mgp=i^1%mcJe68Fff?ZW`G}^bLzT6) zUE%tA#>d7;B$G%fLCU!%qbLe4UB~6|FdC1eDas7#Y>x|GQB%{ktg1@<;JN2S$JVV2 zUisSf>#-aTtjx+ENni$eK>?z%@lg5FrCl|ZmEwmRH%@`yTPT5vcsx&2)pWKVMPN?w z>gukVP)Karv`OsTz8zriCvUvbt=R4G5HkwEu4xnn0tii$GBY+Wfw{oTs;auG%F1Sd zUwQM*Zl}+OqGTQ+YNJ2T){ zdwROF@nn*b zXq53-48t^Mk+9^P`I$*TW**D3NG6jal}Z8Z{p$4T?odq)qO~;#*afr#O_^y|fj*#D z_V-VyckVD6jbfPQ49(?22xLFDEE35iKEEIH{Q2&pswzYz@-&Kaq9PQk&~+WB!-15N zcp~w_$`pU@L_jxQBlR!Yu7G_hK6V5r=MOnO_Q-$EDb2ceF+}$ zfHD_>L?XeGk`h{;eDXgc9L{mLTqjmEHL2^`+9uDPI~QEr)>aF+0B37!>-Wx{JzLh< z**Vc14y$&z`-BLGa~63#sMCyUnkHr@Bl8llEQ@$NPJ4ShzyV-ab5m2u@AHX+2M^`| zmwP>1M~+C<=}eyoq`Zu2UT%Knm6u+9?X}*G8#V|fH+QvVSx2+Bd!P)b zi!gT&6@tjhm48gU_ns^Xg;r0-#aOeCR$OPQM?g*UOFL$KNXS z`QDv~#V9T=UTql04ChPB${KNA2^2-a>2&hZrAuGfb)6>`FIG_${xLZCr?1YOF>`!A zG+js4G!#uk)ig9+Cuh+jfL=vW@caFC!!Tx)p_OS?3nHMqTx?mlE+{mO4I4Hnc1@$R zvr`n6mg4n#(J~uQwrlD-`GEk!<-(?EG&MDeWFnCToXZ3ARzb$CwHO9J+O%mz(=`6~ z_1D`)YpXpN4C3{8a5)_0IGy-%b6FA$;#|BKQmK8GX%Y^HCu5V7>BEPVX%9?E@TfAh zEQ`rl3@POxHX9c{{P3pJ;h?6fYAK5H+menBTmF(Il$DfFT2exOc{$386+%>3|0+~b zvDV{u^Yg7+|2`3oVofVMIem|qMq<`xq$&yyn+>2)JoC&Be?h_1Es+RzyIq7E8eY0K zFwi1uYhMSh00|(1&9>)>VDMSXFgSJU6u`yFcpRIiW&dkV>x$DOOCWm?ak(h;`w>Fi z3KSL|U)kI&EGbFE;{^PE5w5QffAQs)e~zWIgzj|W^?GqS9QV$hKkqFH20sUSt?8+r zXE)4Bpa_9m*C{M4M6|T*C@e1i-O830#j-4sN+uZ{9c5%>MEqjkzTxG|mR-&F`|kvN zzHiFQ%KCTj+V$VT!9j0PFqi^CXw1Vya_P0ZTt4!e>i#a z80mdrDr$fZ;4S8fr<$7?OQr6Y=7R(*DVdm@1o#_pqrbnurnU*hOkhsCoQkR2v6K=sksvWTO7osQLExjz z>V|+d|2%s1#`699R{?(o+~>^EqHGliA<})_05UK! zGc7PSEiy1vF)=zYH##shD=;!TFfjJwrbz$*03~!qSaf7zbY(hiZ)9m^c>ppnF*7YN zHZ3wRR539+FgH3dG%GMNIxsMYzaI4f000?uMObuGZ)S9NVRB^vcXxL#X>MzCV_|S* XE^l&Yo9;Xs00000NkvXXu0mjfTFvbC literal 0 HcmV?d00001 diff --git a/sources/plugins/preview/icons/hidpi/preview.png b/sources/plugins/preview/icons/hidpi/preview.png new file mode 100644 index 0000000000000000000000000000000000000000..402db20e2776fdfd7f70a0a23edec0ffdc46c28c GIT binary patch literal 2204 zcmZ`)dpOgL7yk~)-DtGs&O$=7#>*lz%O#|8i9)Vp?lZ!KGMu8z8JEGX?+-H(2A$99`JO*>S-R zqYB+^ZKU|>>abvqM#flXN~=|`x$98|3Y>-Tn7FR|v=F3v0&e~eay3fEu_g)oXV=qm zA$ou@3N9j-k*@mQt`Y?=sF68Oba^ccE%mlNl7UKrrx+$o#`Sa8l5-3_|5j62`1vh= zV=r%NX73E^W0fudfIMktbT~p4Jfy@29Oa{WQA9y1xQQUU^~0~BsCt+LQ#^NE?6u2J z0ILj@@EKd}4p0Ur5kpifzM7z8OLt{q)x;m`GozjJoLzQ1kpFX^U=9a_C~u(&&m)f4 zIm-A9peWBe`p&tT@z6GYQtULyWsEB(99Y&Uh5O01pHN)ub z;0enEcCC*P?VfOdtelh63t5~r1}?EPfKiU^d5eqo_lFdg2?se>v%VYRqP8SjSZ3#+==6l87b=2Pi;1d9 zT~LTCwOsRJAKv9HKA>ErqEC?dCN*(sYD!`{d5)!yLKzIv>X1VbB#tc|awvfyp{!MQ z!ro4R0qDy%uwmxbRMiq!!*-U7?%WXxXIqtN905FR z=`otN^c3w1ndZjGfE6KY*E zAP=)%+Uu2{#^TuEyV+gPU|G=!63Oi0!zkI7eXP5?d(RT=G&k<+bjP*P_?MWShM-&9 zCUK$JvNBtzTxtq%Z{D_IMnAd*q zS*r(uO%*Q^4;qzyl?`~>$ezk?@Ll&_nrL`)N{{8v-R7{rY;j$Lh;0Q0%BB#JVgb*Y zNxNEkFc$t%Pc_F*9SEr0Cfl6U(kk^@zA8sK4SWNQfeZodL*WEYV+c&Qgz>SwT_Z#X?Iq?4L<0 zpbOCQ7u|JT@-FZ^z{u$9$`S-<9AKIr{O6V@_)u~2){|3h5GQ^8ZuKJ#!oY3#%?p70 z=%3l@j-1_`1^Z$|I~@4v2T^7rUnoQD(4>629F~x z>S+2l*<|h9?LYu*B57tjYd8-T6`0;4^M624tb7@{*=Ynt$-En9kdFGq?9CYCf{ClM z>qVA}ey*>3pG_%Z|7P|h)d}6ftwh=eMiov49emYHcsICqlsR%|h)zGg`C9JU_=n~P z4sNv0BtD1?MA?4=1wk3)wvXk*{QPFi$7!PT1BsFhVQl)x_OY=y70QZ9O%m`_WwQD6 zn9p6eXSX)yea3)!FpR##gUXM+=d1hhMd60D#*DM&oUy4XcuF`^ z=8%+o2Kh&^iq$*u*v;5P?t>EtKj*&tMd0ygb#%0@eu-@62K4+BQ|el|Q%54%$4=cG zW-dou(u4{~J!xc7>n2ysagou19*W3H=Nw!0!KN1)l}Rye{bnfWD%kScLxe#U%%UtH~|ZsgXh?Z=t?>thvlViD-9YE6u`hQK@` z$?Qklk3tQfS9i34MX8YPk@W54lK{6L${}vd*$w>VTJH%JMA?}e%CkOqc9!s(UD-NH z?j%uMdKR*T-sTGC8f`=!sPqXUHv6AP=~!mSk4JC(t79MQ3KJ9*oDMe}93Gw#SYxba zD47;^!;L}805s3%{c3me-i{Ph9(N-&^m3i?Jmk{jm?x}MFz=@1+f2!u(eW8d&+_)a zRm5Lu+v|5Y6Q)QelYwaiis>FdC1`&4V043Zvfi*I*ox)5rm2`I>}0KRvWR zyTAxBu&T@ZGJXJp$=%%Tp|JOPU;TLGIhROZuSh?%PlO+j03<^1v<|{R2Z?ah(?cWv zKqF8m5lA!wvHh84{Xc?`Fkb>b_Wujg+7!2V0@&{f4q^DnXs-xAAUZl)mk=66^6?7y Y(+!L8XRa6@;}rqc=Pux?u%1c(1w(J?%m4rY literal 0 HcmV?d00001 diff --git a/sources/plugins/preview/icons/preview-rtl.png b/sources/plugins/preview/icons/preview-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..1c9d97874cae75a185e975ba4af676c4162ec78e GIT binary patch literal 850 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|iQ?{pzV~EA+(#d=Mqyq(7_wT$Om7e(VmXK571Oe6vLEecmZR`$H zrd$aLP|2Slf6K;U7l)=-OVCeVjfKk@nwmF?GX`E**PMFrpD&jIpP=QX7h%uuSQ@7< zxtU|s&=H^^^1+7x{&&M;A0#HJD0V6R`fK+re$)HkAzGqqw&uIK$ZH=j+!CUd*t1jg z$LtubsR9$XKP~#Xb=9YcvuDo&MV~TCB!94ZKkv=&f3FRAstfFpK&5`$u1kTC=r-qjKKjRVtoE_WeyA3Q7^#jQ3g+ zE4XwR)}B1+$q+I%Z~N)9XL*%AIUL}rQT06Z<%`LIrVbnNiL!z}b(O4-%{W@Lv*&qb zME1$gGJ=v(CqBKChYuei;dC1rAcX$6NpW>RLQBYHJ=I2k#Rlf=|Gd;`8%P&uzI+fpn z>Baw5*I!@E+dgseV&zRbi^EpiGVWuXUH)$0p|@*o+7vicJca%-=pD@zdc5%D7GPRb zEpd$~Nl7e8wMs5Z1yT$~28PDE2Ijg3CLxCARtCmEq-|hiWnkdDWH&IKB5BCYPsvQH z#I3>RC-V`Y21$?&!TD(=<%vb93_zFaW#(lUCnpx9>g5-u&wghk1ysb~>FVdQ&MBb@ E02sM!6951J literal 0 HcmV?d00001 diff --git a/sources/plugins/preview/icons/preview.png b/sources/plugins/preview/icons/preview.png new file mode 100644 index 0000000000000000000000000000000000000000..162b44b845ae7e4ab3c0206a167c0a05aeda2b69 GIT binary patch literal 855 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|iQ-P<8V~EA++Q}RJq#Z?E&)?qIo6}RS8+b(UP@Y3a+o9AS3@-DT zW|@QpsLXe8n$7Pa?%Jgk_={g7$ibh{&tO_^OQ%Ej?5U~i%bzc0xXrb|=4Fc?`$hzn<%-E@3@$_UywFp9?nL z%rTPSnK6I<^@jx>yYC+RUb|+i|KcejTUl3Zoffv*b!}L6fr3&*w&Ae}XVX5~@EM|3l z#I+bizue>hR)6-jUHA}Ef z(b(8nxZ(A#iL2gy`(2xtmnXr)cIW>6`ly(go?Um}&GuVv%&2nAw&QWdr&p(*8ucqH z&-G&l`v2ywTS3=LHy?gDL4jk#wSTvnLzmuvUtCb|LHdV=lC@Hhz{I;HR)7C}`C_tX z_ipdyL7GN0dHNpPxO6Pya0nH>|2^<(@8->$?SIznW4oiTt9$kI(@pEvuGRd&T_Nf! zcs8w=OF*#J=sRzyZP?X$tK{P2)4U!-mg7ec#$`gxH8OqDc^)mCai<1)zQuXqS(r3T3kpe1W@O1Ta JS?83{1OV;eZD;@h literal 0 HcmV?d00001 diff --git a/sources/plugins/preview/lang/af.js b/sources/plugins/preview/lang/af.js new file mode 100644 index 00000000..c3129122 --- /dev/null +++ b/sources/plugins/preview/lang/af.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'af', { + preview: 'Voorbeeld' +} ); diff --git a/sources/plugins/preview/lang/ar.js b/sources/plugins/preview/lang/ar.js new file mode 100644 index 00000000..ff24304b --- /dev/null +++ b/sources/plugins/preview/lang/ar.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'ar', { + preview: 'معاينة الصفحة' +} ); diff --git a/sources/plugins/preview/lang/bg.js b/sources/plugins/preview/lang/bg.js new file mode 100644 index 00000000..d74194d9 --- /dev/null +++ b/sources/plugins/preview/lang/bg.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'bg', { + preview: 'Преглед' +} ); diff --git a/sources/plugins/preview/lang/bn.js b/sources/plugins/preview/lang/bn.js new file mode 100644 index 00000000..6b6a7a38 --- /dev/null +++ b/sources/plugins/preview/lang/bn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'bn', { + preview: 'প্রিভিউ' +} ); diff --git a/sources/plugins/preview/lang/bs.js b/sources/plugins/preview/lang/bs.js new file mode 100644 index 00000000..40f674df --- /dev/null +++ b/sources/plugins/preview/lang/bs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'bs', { + preview: 'Prikaži' +} ); diff --git a/sources/plugins/preview/lang/ca.js b/sources/plugins/preview/lang/ca.js new file mode 100644 index 00000000..fe205416 --- /dev/null +++ b/sources/plugins/preview/lang/ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'ca', { + preview: 'Visualització prèvia' +} ); diff --git a/sources/plugins/preview/lang/cs.js b/sources/plugins/preview/lang/cs.js new file mode 100644 index 00000000..6552515a --- /dev/null +++ b/sources/plugins/preview/lang/cs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'cs', { + preview: 'Náhled' +} ); diff --git a/sources/plugins/preview/lang/cy.js b/sources/plugins/preview/lang/cy.js new file mode 100644 index 00000000..47db9de0 --- /dev/null +++ b/sources/plugins/preview/lang/cy.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'cy', { + preview: 'Rhagolwg' +} ); diff --git a/sources/plugins/preview/lang/da.js b/sources/plugins/preview/lang/da.js new file mode 100644 index 00000000..a88b1af3 --- /dev/null +++ b/sources/plugins/preview/lang/da.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'da', { + preview: 'Vis eksempel' +} ); diff --git a/sources/plugins/preview/lang/de.js b/sources/plugins/preview/lang/de.js new file mode 100644 index 00000000..be6e986c --- /dev/null +++ b/sources/plugins/preview/lang/de.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'de', { + preview: 'Vorschau' +} ); diff --git a/sources/plugins/preview/lang/el.js b/sources/plugins/preview/lang/el.js new file mode 100644 index 00000000..51dfff2f --- /dev/null +++ b/sources/plugins/preview/lang/el.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'el', { + preview: 'Προεπισκόπιση' +} ); diff --git a/sources/plugins/preview/lang/en-au.js b/sources/plugins/preview/lang/en-au.js new file mode 100644 index 00000000..ebaa47b2 --- /dev/null +++ b/sources/plugins/preview/lang/en-au.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'en-au', { + preview: 'Preview' +} ); diff --git a/sources/plugins/preview/lang/en-ca.js b/sources/plugins/preview/lang/en-ca.js new file mode 100644 index 00000000..a6a520db --- /dev/null +++ b/sources/plugins/preview/lang/en-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'en-ca', { + preview: 'Preview' +} ); diff --git a/sources/plugins/preview/lang/en-gb.js b/sources/plugins/preview/lang/en-gb.js new file mode 100644 index 00000000..21c416d4 --- /dev/null +++ b/sources/plugins/preview/lang/en-gb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'en-gb', { + preview: 'Preview' +} ); diff --git a/sources/plugins/preview/lang/en.js b/sources/plugins/preview/lang/en.js new file mode 100644 index 00000000..093335a9 --- /dev/null +++ b/sources/plugins/preview/lang/en.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'en', { + preview: 'Preview' +} ); diff --git a/sources/plugins/preview/lang/eo.js b/sources/plugins/preview/lang/eo.js new file mode 100644 index 00000000..8c29fb80 --- /dev/null +++ b/sources/plugins/preview/lang/eo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'eo', { + preview: 'Vidigi Aspekton' +} ); diff --git a/sources/plugins/preview/lang/es.js b/sources/plugins/preview/lang/es.js new file mode 100644 index 00000000..5562fb8f --- /dev/null +++ b/sources/plugins/preview/lang/es.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'es', { + preview: 'Vista Previa' +} ); diff --git a/sources/plugins/preview/lang/et.js b/sources/plugins/preview/lang/et.js new file mode 100644 index 00000000..88685f93 --- /dev/null +++ b/sources/plugins/preview/lang/et.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'et', { + preview: 'Eelvaade' +} ); diff --git a/sources/plugins/preview/lang/eu.js b/sources/plugins/preview/lang/eu.js new file mode 100644 index 00000000..683e157a --- /dev/null +++ b/sources/plugins/preview/lang/eu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'eu', { + preview: 'Aurrebista' +} ); diff --git a/sources/plugins/preview/lang/fa.js b/sources/plugins/preview/lang/fa.js new file mode 100644 index 00000000..f3e3ce3a --- /dev/null +++ b/sources/plugins/preview/lang/fa.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'fa', { + preview: 'پیشنمایش' +} ); diff --git a/sources/plugins/preview/lang/fi.js b/sources/plugins/preview/lang/fi.js new file mode 100644 index 00000000..f8322356 --- /dev/null +++ b/sources/plugins/preview/lang/fi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'fi', { + preview: 'Esikatsele' +} ); diff --git a/sources/plugins/preview/lang/fo.js b/sources/plugins/preview/lang/fo.js new file mode 100644 index 00000000..0a364971 --- /dev/null +++ b/sources/plugins/preview/lang/fo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'fo', { + preview: 'Frumsýning' +} ); diff --git a/sources/plugins/preview/lang/fr-ca.js b/sources/plugins/preview/lang/fr-ca.js new file mode 100644 index 00000000..6e67d06a --- /dev/null +++ b/sources/plugins/preview/lang/fr-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'fr-ca', { + preview: 'Prévisualiser' +} ); diff --git a/sources/plugins/preview/lang/fr.js b/sources/plugins/preview/lang/fr.js new file mode 100644 index 00000000..fc164303 --- /dev/null +++ b/sources/plugins/preview/lang/fr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'fr', { + preview: 'Aperçu' +} ); diff --git a/sources/plugins/preview/lang/gl.js b/sources/plugins/preview/lang/gl.js new file mode 100644 index 00000000..6a446582 --- /dev/null +++ b/sources/plugins/preview/lang/gl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'gl', { + preview: 'Vista previa' +} ); diff --git a/sources/plugins/preview/lang/gu.js b/sources/plugins/preview/lang/gu.js new file mode 100644 index 00000000..c9f8906f --- /dev/null +++ b/sources/plugins/preview/lang/gu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'gu', { + preview: 'પૂર્વદર્શન' +} ); diff --git a/sources/plugins/preview/lang/he.js b/sources/plugins/preview/lang/he.js new file mode 100644 index 00000000..792a1170 --- /dev/null +++ b/sources/plugins/preview/lang/he.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'he', { + preview: 'תצוגה מקדימה' +} ); diff --git a/sources/plugins/preview/lang/hi.js b/sources/plugins/preview/lang/hi.js new file mode 100644 index 00000000..92c7e40d --- /dev/null +++ b/sources/plugins/preview/lang/hi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'hi', { + preview: 'प्रीव्यू' +} ); diff --git a/sources/plugins/preview/lang/hr.js b/sources/plugins/preview/lang/hr.js new file mode 100644 index 00000000..a489a418 --- /dev/null +++ b/sources/plugins/preview/lang/hr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'hr', { + preview: 'Pregledaj' +} ); diff --git a/sources/plugins/preview/lang/hu.js b/sources/plugins/preview/lang/hu.js new file mode 100644 index 00000000..8ae9d9fd --- /dev/null +++ b/sources/plugins/preview/lang/hu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'hu', { + preview: 'Előnézet' +} ); diff --git a/sources/plugins/preview/lang/id.js b/sources/plugins/preview/lang/id.js new file mode 100644 index 00000000..88cf3620 --- /dev/null +++ b/sources/plugins/preview/lang/id.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'id', { + preview: 'Pratinjau' +} ); diff --git a/sources/plugins/preview/lang/is.js b/sources/plugins/preview/lang/is.js new file mode 100644 index 00000000..7f407390 --- /dev/null +++ b/sources/plugins/preview/lang/is.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'is', { + preview: 'Forskoða' +} ); diff --git a/sources/plugins/preview/lang/it.js b/sources/plugins/preview/lang/it.js new file mode 100644 index 00000000..f2767ba2 --- /dev/null +++ b/sources/plugins/preview/lang/it.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'it', { + preview: 'Anteprima' +} ); diff --git a/sources/plugins/preview/lang/ja.js b/sources/plugins/preview/lang/ja.js new file mode 100644 index 00000000..80eea689 --- /dev/null +++ b/sources/plugins/preview/lang/ja.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'ja', { + preview: 'プレビュー' +} ); diff --git a/sources/plugins/preview/lang/ka.js b/sources/plugins/preview/lang/ka.js new file mode 100644 index 00000000..d597a2c3 --- /dev/null +++ b/sources/plugins/preview/lang/ka.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'ka', { + preview: 'გადახედვა' +} ); diff --git a/sources/plugins/preview/lang/km.js b/sources/plugins/preview/lang/km.js new file mode 100644 index 00000000..d19f98e6 --- /dev/null +++ b/sources/plugins/preview/lang/km.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'km', { + preview: 'មើល​ជា​មុន' +} ); diff --git a/sources/plugins/preview/lang/ko.js b/sources/plugins/preview/lang/ko.js new file mode 100644 index 00000000..252a77fe --- /dev/null +++ b/sources/plugins/preview/lang/ko.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'ko', { + preview: '미리보기' +} ); diff --git a/sources/plugins/preview/lang/ku.js b/sources/plugins/preview/lang/ku.js new file mode 100644 index 00000000..cf83583c --- /dev/null +++ b/sources/plugins/preview/lang/ku.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'ku', { + preview: 'پێشبینین' +} ); diff --git a/sources/plugins/preview/lang/lt.js b/sources/plugins/preview/lang/lt.js new file mode 100644 index 00000000..3436bab4 --- /dev/null +++ b/sources/plugins/preview/lang/lt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'lt', { + preview: 'PeržiÅ«ra' +} ); diff --git a/sources/plugins/preview/lang/lv.js b/sources/plugins/preview/lang/lv.js new file mode 100644 index 00000000..3cdb26b0 --- /dev/null +++ b/sources/plugins/preview/lang/lv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'lv', { + preview: 'PriekÅ¡skatÄ«t' +} ); diff --git a/sources/plugins/preview/lang/mk.js b/sources/plugins/preview/lang/mk.js new file mode 100644 index 00000000..e5478a84 --- /dev/null +++ b/sources/plugins/preview/lang/mk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'mk', { + preview: 'Preview' // MISSING +} ); diff --git a/sources/plugins/preview/lang/mn.js b/sources/plugins/preview/lang/mn.js new file mode 100644 index 00000000..2e578f1e --- /dev/null +++ b/sources/plugins/preview/lang/mn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'mn', { + preview: 'Уридчлан харах' +} ); diff --git a/sources/plugins/preview/lang/ms.js b/sources/plugins/preview/lang/ms.js new file mode 100644 index 00000000..64db268a --- /dev/null +++ b/sources/plugins/preview/lang/ms.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'ms', { + preview: 'Prebiu' +} ); diff --git a/sources/plugins/preview/lang/nb.js b/sources/plugins/preview/lang/nb.js new file mode 100644 index 00000000..ea92da7a --- /dev/null +++ b/sources/plugins/preview/lang/nb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'nb', { + preview: 'ForhÃ¥ndsvis' +} ); diff --git a/sources/plugins/preview/lang/nl.js b/sources/plugins/preview/lang/nl.js new file mode 100644 index 00000000..5db2f755 --- /dev/null +++ b/sources/plugins/preview/lang/nl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'nl', { + preview: 'Voorbeeld' +} ); diff --git a/sources/plugins/preview/lang/no.js b/sources/plugins/preview/lang/no.js new file mode 100644 index 00000000..7c6c4ce2 --- /dev/null +++ b/sources/plugins/preview/lang/no.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'no', { + preview: 'ForhÃ¥ndsvis' +} ); diff --git a/sources/plugins/preview/lang/pl.js b/sources/plugins/preview/lang/pl.js new file mode 100644 index 00000000..1534907a --- /dev/null +++ b/sources/plugins/preview/lang/pl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'pl', { + preview: 'Podgląd' +} ); diff --git a/sources/plugins/preview/lang/pt-br.js b/sources/plugins/preview/lang/pt-br.js new file mode 100644 index 00000000..0e24087d --- /dev/null +++ b/sources/plugins/preview/lang/pt-br.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'pt-br', { + preview: 'Visualizar' +} ); diff --git a/sources/plugins/preview/lang/pt.js b/sources/plugins/preview/lang/pt.js new file mode 100644 index 00000000..709fe77f --- /dev/null +++ b/sources/plugins/preview/lang/pt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'pt', { + preview: 'Pré-visualizar' +} ); diff --git a/sources/plugins/preview/lang/ro.js b/sources/plugins/preview/lang/ro.js new file mode 100644 index 00000000..5e23b41e --- /dev/null +++ b/sources/plugins/preview/lang/ro.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'ro', { + preview: 'Previzualizare' +} ); diff --git a/sources/plugins/preview/lang/ru.js b/sources/plugins/preview/lang/ru.js new file mode 100644 index 00000000..9e1556ef --- /dev/null +++ b/sources/plugins/preview/lang/ru.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'ru', { + preview: 'Предварительный просмотр' +} ); diff --git a/sources/plugins/preview/lang/si.js b/sources/plugins/preview/lang/si.js new file mode 100644 index 00000000..c03c538e --- /dev/null +++ b/sources/plugins/preview/lang/si.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'si', { + preview: 'නැවත ' +} ); diff --git a/sources/plugins/preview/lang/sk.js b/sources/plugins/preview/lang/sk.js new file mode 100644 index 00000000..380b2364 --- /dev/null +++ b/sources/plugins/preview/lang/sk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'sk', { + preview: 'Náhľad' +} ); diff --git a/sources/plugins/preview/lang/sl.js b/sources/plugins/preview/lang/sl.js new file mode 100644 index 00000000..aeec46db --- /dev/null +++ b/sources/plugins/preview/lang/sl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'sl', { + preview: 'Predogled' +} ); diff --git a/sources/plugins/preview/lang/sq.js b/sources/plugins/preview/lang/sq.js new file mode 100644 index 00000000..8e001b8a --- /dev/null +++ b/sources/plugins/preview/lang/sq.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'sq', { + preview: 'Parashiko' +} ); diff --git a/sources/plugins/preview/lang/sr-latn.js b/sources/plugins/preview/lang/sr-latn.js new file mode 100644 index 00000000..7338823b --- /dev/null +++ b/sources/plugins/preview/lang/sr-latn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'sr-latn', { + preview: 'Izgled stranice' +} ); diff --git a/sources/plugins/preview/lang/sr.js b/sources/plugins/preview/lang/sr.js new file mode 100644 index 00000000..273d4193 --- /dev/null +++ b/sources/plugins/preview/lang/sr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'sr', { + preview: 'Изглед странице' +} ); diff --git a/sources/plugins/preview/lang/sv.js b/sources/plugins/preview/lang/sv.js new file mode 100644 index 00000000..d1b34367 --- /dev/null +++ b/sources/plugins/preview/lang/sv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'sv', { + preview: 'Förhandsgranska' +} ); diff --git a/sources/plugins/preview/lang/th.js b/sources/plugins/preview/lang/th.js new file mode 100644 index 00000000..25b5b49e --- /dev/null +++ b/sources/plugins/preview/lang/th.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'th', { + preview: 'ดูหน้าเอกสารตัวอย่าง' +} ); diff --git a/sources/plugins/preview/lang/tr.js b/sources/plugins/preview/lang/tr.js new file mode 100644 index 00000000..5f034bb4 --- /dev/null +++ b/sources/plugins/preview/lang/tr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'tr', { + preview: 'Ön Ä°zleme' +} ); diff --git a/sources/plugins/preview/lang/tt.js b/sources/plugins/preview/lang/tt.js new file mode 100644 index 00000000..9511dbaf --- /dev/null +++ b/sources/plugins/preview/lang/tt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'tt', { + preview: 'Карап алу' +} ); diff --git a/sources/plugins/preview/lang/ug.js b/sources/plugins/preview/lang/ug.js new file mode 100644 index 00000000..0398cd94 --- /dev/null +++ b/sources/plugins/preview/lang/ug.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'ug', { + preview: 'ئالدىن كۆزەت' +} ); diff --git a/sources/plugins/preview/lang/uk.js b/sources/plugins/preview/lang/uk.js new file mode 100644 index 00000000..20b295dd --- /dev/null +++ b/sources/plugins/preview/lang/uk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'uk', { + preview: 'Попередній перегляд' +} ); diff --git a/sources/plugins/preview/lang/vi.js b/sources/plugins/preview/lang/vi.js new file mode 100644 index 00000000..e7f3c799 --- /dev/null +++ b/sources/plugins/preview/lang/vi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'vi', { + preview: 'Xem trước' +} ); diff --git a/sources/plugins/preview/lang/zh-cn.js b/sources/plugins/preview/lang/zh-cn.js new file mode 100644 index 00000000..7a34a0d5 --- /dev/null +++ b/sources/plugins/preview/lang/zh-cn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'zh-cn', { + preview: '预览' +} ); diff --git a/sources/plugins/preview/lang/zh.js b/sources/plugins/preview/lang/zh.js new file mode 100644 index 00000000..21f3aceb --- /dev/null +++ b/sources/plugins/preview/lang/zh.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'preview', 'zh', { + preview: '預覽' +} ); diff --git a/sources/plugins/preview/plugin.js b/sources/plugins/preview/plugin.js new file mode 100644 index 00000000..5f814995 --- /dev/null +++ b/sources/plugins/preview/plugin.js @@ -0,0 +1,145 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview Preview plugin. + */ + +( function() { + var pluginPath; + + var previewCmd = { modes: { wysiwyg: 1, source: 1 }, + canUndo: false, + readOnly: 1, + exec: function( editor ) { + var sHTML, + config = editor.config, + baseTag = config.baseHref ? '' : '', + eventData; + + if ( config.fullPage ) + sHTML = editor.getData().replace( //, '$&' + baseTag ).replace( /[^>]*(?=<\/title>)/, '$& — ' + editor.lang.preview.preview ); + else { + var bodyHtml = '' + + '' + + baseTag + + '' + editor.lang.preview.preview + '' + + CKEDITOR.tools.buildStyleHtml( editor.config.contentsCss ) + + '' + bodyHtml + + editor.getData() + + ''; + } + + var iWidth = 640, + // 800 * 0.8, + iHeight = 420, + // 600 * 0.7, + iLeft = 80; // (800 - 0.8 * 800) /2 = 800 * 0.1. + try { + var screen = window.screen; + iWidth = Math.round( screen.width * 0.8 ); + iHeight = Math.round( screen.height * 0.7 ); + iLeft = Math.round( screen.width * 0.1 ); + } catch ( e ) {} + + // (#9907) Allow data manipulation before preview is displayed. + // Also don't open the preview window when event cancelled. + if ( editor.fire( 'contentPreview', eventData = { dataValue: sHTML } ) === false ) + return false; + + var sOpenUrl = '', + ieLocation; + + if ( CKEDITOR.env.ie ) { + window._cke_htmlToLoad = eventData.dataValue; + ieLocation = 'javascript:void( (function(){' + // jshint ignore:line + 'document.open();' + + // Support for custom document.domain. + // Strip comments and replace parent with window.opener in the function body. + ( '(' + CKEDITOR.tools.fixDomain + ')();' ).replace( /\/\/.*?\n/g, '' ).replace( /parent\./g, 'window.opener.' ) + + 'document.write( window.opener._cke_htmlToLoad );' + + 'document.close();' + + 'window.opener._cke_htmlToLoad = null;' + + '})() )'; + // For IE we should use window.location rather than setting url in window.open. (#11146) + sOpenUrl = ''; + } + + // With Firefox only, we need to open a special preview page, so + // anchors will work properly on it. (#9047) + if ( CKEDITOR.env.gecko ) { + window._cke_htmlToLoad = eventData.dataValue; + sOpenUrl = CKEDITOR.getUrl( pluginPath + 'preview.html' ); + } + + var oWindow = window.open( sOpenUrl, null, 'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' + + iWidth + ',height=' + iHeight + ',left=' + iLeft ); + + // For IE we want to assign whole js stored in ieLocation, but in case of + // popup blocker activation oWindow variable will be null. (#11597) + if ( CKEDITOR.env.ie && oWindow ) + oWindow.location = ieLocation; + + if ( !CKEDITOR.env.ie && !CKEDITOR.env.gecko ) { + var doc = oWindow.document; + doc.open(); + doc.write( eventData.dataValue ); + doc.close(); + } + + return true; + } + }; + + var pluginName = 'preview'; + + // Register a plugin named "preview". + CKEDITOR.plugins.add( pluginName, { + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'preview,preview-rtl', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + init: function( editor ) { + + // Preview is not used for the inline creator. + if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE ) + return; + + pluginPath = this.path; + + editor.addCommand( pluginName, previewCmd ); + editor.ui.addButton && editor.ui.addButton( 'Preview', { + label: editor.lang.preview.preview, + command: pluginName, + toolbar: 'document,40' + } ); + } + } ); +} )(); + +/** + * Event fired when executing `preview` command, which allows additional data manipulation. + * With this event, the raw HTML content of the preview window to be displayed can be altered + * or modified. + * + * @event contentPreview + * @member CKEDITOR + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {String} data.dataValue The data that will go to the preview. + */ diff --git a/sources/plugins/preview/preview.html b/sources/plugins/preview/preview.html new file mode 100644 index 00000000..8c028262 --- /dev/null +++ b/sources/plugins/preview/preview.html @@ -0,0 +1,13 @@ + diff --git a/sources/plugins/print/icons/hidpi/print.png b/sources/plugins/print/icons/hidpi/print.png new file mode 100644 index 0000000000000000000000000000000000000000..4b72460dd4f1239d5aad15f2c78a959642eac9a5 GIT binary patch literal 1648 zcmV-$29NoPP)Z^M1$zL`%`G1Nz z>7xLMoX>;z__G4gN}-iPDTSO9fcGBf95&Ze0Vt)Iota_2(V$+fqLexp0OuUhU_iUu zB^nNK6CjQOFiJ7sXwZD+l?vX!0sI2E@-6-U3HUW4zYBME(qWpCoCH7sB|X>C#%GL=f+Zqlm)?58eWPlUL@v^432$H!(qg7QuOs zwHD_bMkz(TT4lb`V76LCyeEqyfDiMWJd16=FgzRmv4n;0d+j4=T3{PfjV*B2KSaL(bK8xikY)_i3JNWwR z^{tOTerLv*A1M)xXEZF9*VfiAG@GQuVd>Q80IaoGYs+`1Is~-VXst&?%-@L!7n)6$ z*VfjZb9lhuJe?GCMnq9h*d#(w%cy zYe(4yR1O=Lr@PQB%jk4Ee6qE5X6FE{R_ldNwzf>C(#Nwrqvpxvf->(=hvYp-2*B6o_&5uqq~5x6Nz;GHW|REP=! zhTGe_L9+=;5%v50_Ja@Ze(%zyA5KgAKfe6(^Pj)@<|;}NG@A^!w|7+#jJjtmFz;Mh zf^shyuTil;w8m7cC2|0pWlybp@y!Ezw4)+gmr;-VDTAB_pj1HeQ;~>Jt<_jsT3UTt z-Itb@R;#sI`M)StI-k@+OtF2sJT;R@C6C@YhqIRT^>w=4E=iI+!GRzMXfztQyqycX z$1>|2uHb;kSP3RLF#argm-M2D-*0Z-y?F8BR1Vy~fB*BJz5e>DwYDVLF#rVz$_$M4 zy|osfPp#rGSpv*~WG8SS%d%r99#;gG+p^YvGf}i(G>HZTCK+N^75*+cIx>|YrXp8Yu5SeB$-yJUEq4| z6N6IdnHj#gapMm*Nv@U$MiF!nFxzNQ@Fb37Y??mxw&cAh$uf%iN)YhHjT>Tkw9%4?pDP_*_IF5<>eMD=5xw+$Khl2UFry8}+5%qd!@eM%K>rK6kPRf4({A%Fv6b#8* z0000bbVXQnWMOn=I%9HWVRU5xGB7bSEig7MGB8vzF*-0eIxsXVFfuwYF!ti6NdN!< zC3HntbYx+4WjbwdWNBu305UK!Gc7PSEiy1vF)=zYH##shD=;!TFffO|9`yhK02y>e uSaefwW^{L9a%BK_cXuvnZfkR6VQ^(GZ*pgw?mQX*0000K3&jgxE^A%mE|C8C@ec+g z{fF8=M0ORwO>-#xmc+u`<>8S0`t81r^;u#Yn~fJA5}9*%=kixqR%(Zbhj(xslUTDg zBKzm6SG$(2%bvB&F*K6N;Mj%NUp*$VB%hhi9at`yCK=(zwq(YNTpS$e*M~&mz#UhgjZi*U&Pfh z_Byxp+j+b0>YYA)S|ZuP);85f?zGT>1cL+B{l$IF&CT;OXVv}IXuO#5CA+-*d-eM3 z$p#V(XOeYJPr80Rd`|I_%w76Q?ed%}UhOM>x8d^3E!Pa+_b*#j?o%>>=Lqoec zSFN(jpT)-T-nMdHu*lIn(~J8o`p!>Mxv0?<66$&R%lsRcOhQ9dyOew z85sC3*$qrmNE&kUQ!>*kaci*o$$SK;K@wy`aDG}zd16s2LwR|*US?i)adKios$PCk U`s{Z$Qb0uvp00i_>zopr0P|i^5dZ)H literal 0 HcmV?d00001 diff --git a/sources/plugins/print/lang/af.js b/sources/plugins/print/lang/af.js new file mode 100644 index 00000000..b6148b4a --- /dev/null +++ b/sources/plugins/print/lang/af.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'af', { + toolbar: 'Druk' +} ); diff --git a/sources/plugins/print/lang/ar.js b/sources/plugins/print/lang/ar.js new file mode 100644 index 00000000..20a813c8 --- /dev/null +++ b/sources/plugins/print/lang/ar.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'ar', { + toolbar: 'طباعة' +} ); diff --git a/sources/plugins/print/lang/bg.js b/sources/plugins/print/lang/bg.js new file mode 100644 index 00000000..c6d14a58 --- /dev/null +++ b/sources/plugins/print/lang/bg.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'bg', { + toolbar: 'Печат' +} ); diff --git a/sources/plugins/print/lang/bn.js b/sources/plugins/print/lang/bn.js new file mode 100644 index 00000000..7bb9a02e --- /dev/null +++ b/sources/plugins/print/lang/bn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'bn', { + toolbar: 'প্রিন্ট' +} ); diff --git a/sources/plugins/print/lang/bs.js b/sources/plugins/print/lang/bs.js new file mode 100644 index 00000000..be3860dc --- /dev/null +++ b/sources/plugins/print/lang/bs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'bs', { + toolbar: 'Å tampaj' +} ); diff --git a/sources/plugins/print/lang/ca.js b/sources/plugins/print/lang/ca.js new file mode 100644 index 00000000..a700f02d --- /dev/null +++ b/sources/plugins/print/lang/ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'ca', { + toolbar: 'Imprimeix' +} ); diff --git a/sources/plugins/print/lang/cs.js b/sources/plugins/print/lang/cs.js new file mode 100644 index 00000000..cf3c9772 --- /dev/null +++ b/sources/plugins/print/lang/cs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'cs', { + toolbar: 'Tisk' +} ); diff --git a/sources/plugins/print/lang/cy.js b/sources/plugins/print/lang/cy.js new file mode 100644 index 00000000..851fee9c --- /dev/null +++ b/sources/plugins/print/lang/cy.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'cy', { + toolbar: 'Argraffu' +} ); diff --git a/sources/plugins/print/lang/da.js b/sources/plugins/print/lang/da.js new file mode 100644 index 00000000..d2384c1f --- /dev/null +++ b/sources/plugins/print/lang/da.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'da', { + toolbar: 'Udskriv' +} ); diff --git a/sources/plugins/print/lang/de.js b/sources/plugins/print/lang/de.js new file mode 100644 index 00000000..e02c544c --- /dev/null +++ b/sources/plugins/print/lang/de.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'de', { + toolbar: 'Drucken' +} ); diff --git a/sources/plugins/print/lang/el.js b/sources/plugins/print/lang/el.js new file mode 100644 index 00000000..cb04ec2f --- /dev/null +++ b/sources/plugins/print/lang/el.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'el', { + toolbar: 'Εκτύπωση' +} ); diff --git a/sources/plugins/print/lang/en-au.js b/sources/plugins/print/lang/en-au.js new file mode 100644 index 00000000..dfef21a6 --- /dev/null +++ b/sources/plugins/print/lang/en-au.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'en-au', { + toolbar: 'Print' +} ); diff --git a/sources/plugins/print/lang/en-ca.js b/sources/plugins/print/lang/en-ca.js new file mode 100644 index 00000000..019ddd99 --- /dev/null +++ b/sources/plugins/print/lang/en-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'en-ca', { + toolbar: 'Print' +} ); diff --git a/sources/plugins/print/lang/en-gb.js b/sources/plugins/print/lang/en-gb.js new file mode 100644 index 00000000..88ffbfdd --- /dev/null +++ b/sources/plugins/print/lang/en-gb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'en-gb', { + toolbar: 'Print' +} ); diff --git a/sources/plugins/print/lang/en.js b/sources/plugins/print/lang/en.js new file mode 100644 index 00000000..7be9ec15 --- /dev/null +++ b/sources/plugins/print/lang/en.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'en', { + toolbar: 'Print' +} ); diff --git a/sources/plugins/print/lang/eo.js b/sources/plugins/print/lang/eo.js new file mode 100644 index 00000000..61c8be4e --- /dev/null +++ b/sources/plugins/print/lang/eo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'eo', { + toolbar: 'Presi' +} ); diff --git a/sources/plugins/print/lang/es.js b/sources/plugins/print/lang/es.js new file mode 100644 index 00000000..e1bdb6d2 --- /dev/null +++ b/sources/plugins/print/lang/es.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'es', { + toolbar: 'Imprimir' +} ); diff --git a/sources/plugins/print/lang/et.js b/sources/plugins/print/lang/et.js new file mode 100644 index 00000000..c7fd13c6 --- /dev/null +++ b/sources/plugins/print/lang/et.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'et', { + toolbar: 'Printimine' +} ); diff --git a/sources/plugins/print/lang/eu.js b/sources/plugins/print/lang/eu.js new file mode 100644 index 00000000..d4316628 --- /dev/null +++ b/sources/plugins/print/lang/eu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'eu', { + toolbar: 'Inprimatu' +} ); diff --git a/sources/plugins/print/lang/fa.js b/sources/plugins/print/lang/fa.js new file mode 100644 index 00000000..8ab4d6ba --- /dev/null +++ b/sources/plugins/print/lang/fa.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'fa', { + toolbar: 'چاپ' +} ); diff --git a/sources/plugins/print/lang/fi.js b/sources/plugins/print/lang/fi.js new file mode 100644 index 00000000..7b2d3778 --- /dev/null +++ b/sources/plugins/print/lang/fi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'fi', { + toolbar: 'Tulosta' +} ); diff --git a/sources/plugins/print/lang/fo.js b/sources/plugins/print/lang/fo.js new file mode 100644 index 00000000..cbdfc86e --- /dev/null +++ b/sources/plugins/print/lang/fo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'fo', { + toolbar: 'Prenta' +} ); diff --git a/sources/plugins/print/lang/fr-ca.js b/sources/plugins/print/lang/fr-ca.js new file mode 100644 index 00000000..84b3c349 --- /dev/null +++ b/sources/plugins/print/lang/fr-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'fr-ca', { + toolbar: 'Imprimer' +} ); diff --git a/sources/plugins/print/lang/fr.js b/sources/plugins/print/lang/fr.js new file mode 100644 index 00000000..01967d8d --- /dev/null +++ b/sources/plugins/print/lang/fr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'fr', { + toolbar: 'Imprimer' +} ); diff --git a/sources/plugins/print/lang/gl.js b/sources/plugins/print/lang/gl.js new file mode 100644 index 00000000..73711791 --- /dev/null +++ b/sources/plugins/print/lang/gl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'gl', { + toolbar: 'Imprimir' +} ); diff --git a/sources/plugins/print/lang/gu.js b/sources/plugins/print/lang/gu.js new file mode 100644 index 00000000..441619ec --- /dev/null +++ b/sources/plugins/print/lang/gu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'gu', { + toolbar: 'પ્રિન્ટ' +} ); diff --git a/sources/plugins/print/lang/he.js b/sources/plugins/print/lang/he.js new file mode 100644 index 00000000..eb29d376 --- /dev/null +++ b/sources/plugins/print/lang/he.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'he', { + toolbar: 'הדפסה' +} ); diff --git a/sources/plugins/print/lang/hi.js b/sources/plugins/print/lang/hi.js new file mode 100644 index 00000000..d983068b --- /dev/null +++ b/sources/plugins/print/lang/hi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'hi', { + toolbar: 'प्रिन्ट' +} ); diff --git a/sources/plugins/print/lang/hr.js b/sources/plugins/print/lang/hr.js new file mode 100644 index 00000000..e827346d --- /dev/null +++ b/sources/plugins/print/lang/hr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'hr', { + toolbar: 'IspiÅ¡i' +} ); diff --git a/sources/plugins/print/lang/hu.js b/sources/plugins/print/lang/hu.js new file mode 100644 index 00000000..d4640b8e --- /dev/null +++ b/sources/plugins/print/lang/hu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'hu', { + toolbar: 'Nyomtatás' +} ); diff --git a/sources/plugins/print/lang/id.js b/sources/plugins/print/lang/id.js new file mode 100644 index 00000000..a2136467 --- /dev/null +++ b/sources/plugins/print/lang/id.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'id', { + toolbar: 'Cetak' +} ); diff --git a/sources/plugins/print/lang/is.js b/sources/plugins/print/lang/is.js new file mode 100644 index 00000000..fd94420f --- /dev/null +++ b/sources/plugins/print/lang/is.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'is', { + toolbar: 'Prenta' +} ); diff --git a/sources/plugins/print/lang/it.js b/sources/plugins/print/lang/it.js new file mode 100644 index 00000000..e6cf48ae --- /dev/null +++ b/sources/plugins/print/lang/it.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'it', { + toolbar: 'Stampa' +} ); diff --git a/sources/plugins/print/lang/ja.js b/sources/plugins/print/lang/ja.js new file mode 100644 index 00000000..b0ddd826 --- /dev/null +++ b/sources/plugins/print/lang/ja.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'ja', { + toolbar: '印刷' +} ); diff --git a/sources/plugins/print/lang/ka.js b/sources/plugins/print/lang/ka.js new file mode 100644 index 00000000..a95653e9 --- /dev/null +++ b/sources/plugins/print/lang/ka.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'ka', { + toolbar: 'ბეჭდვა' +} ); diff --git a/sources/plugins/print/lang/km.js b/sources/plugins/print/lang/km.js new file mode 100644 index 00000000..7be82362 --- /dev/null +++ b/sources/plugins/print/lang/km.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'km', { + toolbar: 'បោះពុម្ព' +} ); diff --git a/sources/plugins/print/lang/ko.js b/sources/plugins/print/lang/ko.js new file mode 100644 index 00000000..ff0adf3a --- /dev/null +++ b/sources/plugins/print/lang/ko.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'ko', { + toolbar: '인쇄' +} ); diff --git a/sources/plugins/print/lang/ku.js b/sources/plugins/print/lang/ku.js new file mode 100644 index 00000000..1650f88b --- /dev/null +++ b/sources/plugins/print/lang/ku.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'ku', { + toolbar: 'چاپکردن' +} ); diff --git a/sources/plugins/print/lang/lt.js b/sources/plugins/print/lang/lt.js new file mode 100644 index 00000000..e31b1966 --- /dev/null +++ b/sources/plugins/print/lang/lt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'lt', { + toolbar: 'Spausdinti' +} ); diff --git a/sources/plugins/print/lang/lv.js b/sources/plugins/print/lang/lv.js new file mode 100644 index 00000000..f8ace80d --- /dev/null +++ b/sources/plugins/print/lang/lv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'lv', { + toolbar: 'Drukāt' +} ); diff --git a/sources/plugins/print/lang/mk.js b/sources/plugins/print/lang/mk.js new file mode 100644 index 00000000..cf76c295 --- /dev/null +++ b/sources/plugins/print/lang/mk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'mk', { + toolbar: 'Print' // MISSING +} ); diff --git a/sources/plugins/print/lang/mn.js b/sources/plugins/print/lang/mn.js new file mode 100644 index 00000000..5402896a --- /dev/null +++ b/sources/plugins/print/lang/mn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'mn', { + toolbar: 'Хэвлэх' +} ); diff --git a/sources/plugins/print/lang/ms.js b/sources/plugins/print/lang/ms.js new file mode 100644 index 00000000..a589b47f --- /dev/null +++ b/sources/plugins/print/lang/ms.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'ms', { + toolbar: 'Cetak' +} ); diff --git a/sources/plugins/print/lang/nb.js b/sources/plugins/print/lang/nb.js new file mode 100644 index 00000000..ad07c698 --- /dev/null +++ b/sources/plugins/print/lang/nb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'nb', { + toolbar: 'Skriv ut' +} ); diff --git a/sources/plugins/print/lang/nl.js b/sources/plugins/print/lang/nl.js new file mode 100644 index 00000000..78684df6 --- /dev/null +++ b/sources/plugins/print/lang/nl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'nl', { + toolbar: 'Afdrukken' +} ); diff --git a/sources/plugins/print/lang/no.js b/sources/plugins/print/lang/no.js new file mode 100644 index 00000000..d181c25b --- /dev/null +++ b/sources/plugins/print/lang/no.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'no', { + toolbar: 'Skriv ut' +} ); diff --git a/sources/plugins/print/lang/pl.js b/sources/plugins/print/lang/pl.js new file mode 100644 index 00000000..627f7722 --- /dev/null +++ b/sources/plugins/print/lang/pl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'pl', { + toolbar: 'Drukuj' +} ); diff --git a/sources/plugins/print/lang/pt-br.js b/sources/plugins/print/lang/pt-br.js new file mode 100644 index 00000000..68f540ce --- /dev/null +++ b/sources/plugins/print/lang/pt-br.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'pt-br', { + toolbar: 'Imprimir' +} ); diff --git a/sources/plugins/print/lang/pt.js b/sources/plugins/print/lang/pt.js new file mode 100644 index 00000000..79cfc1a3 --- /dev/null +++ b/sources/plugins/print/lang/pt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'pt', { + toolbar: 'Imprimir' +} ); diff --git a/sources/plugins/print/lang/ro.js b/sources/plugins/print/lang/ro.js new file mode 100644 index 00000000..1b734090 --- /dev/null +++ b/sources/plugins/print/lang/ro.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'ro', { + toolbar: 'Printează' +} ); diff --git a/sources/plugins/print/lang/ru.js b/sources/plugins/print/lang/ru.js new file mode 100644 index 00000000..5f060461 --- /dev/null +++ b/sources/plugins/print/lang/ru.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'ru', { + toolbar: 'Печать' +} ); diff --git a/sources/plugins/print/lang/si.js b/sources/plugins/print/lang/si.js new file mode 100644 index 00000000..84cf9b9b --- /dev/null +++ b/sources/plugins/print/lang/si.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'si', { + toolbar: 'මුද්‍රණය කරන්න' +} ); diff --git a/sources/plugins/print/lang/sk.js b/sources/plugins/print/lang/sk.js new file mode 100644 index 00000000..cf5baad0 --- /dev/null +++ b/sources/plugins/print/lang/sk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'sk', { + toolbar: 'Tlač' +} ); diff --git a/sources/plugins/print/lang/sl.js b/sources/plugins/print/lang/sl.js new file mode 100644 index 00000000..3336a970 --- /dev/null +++ b/sources/plugins/print/lang/sl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'sl', { + toolbar: 'Natisni' +} ); diff --git a/sources/plugins/print/lang/sq.js b/sources/plugins/print/lang/sq.js new file mode 100644 index 00000000..3e81de15 --- /dev/null +++ b/sources/plugins/print/lang/sq.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'sq', { + toolbar: 'Shtype' +} ); diff --git a/sources/plugins/print/lang/sr-latn.js b/sources/plugins/print/lang/sr-latn.js new file mode 100644 index 00000000..f313a96f --- /dev/null +++ b/sources/plugins/print/lang/sr-latn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'sr-latn', { + toolbar: 'Å tampa' +} ); diff --git a/sources/plugins/print/lang/sr.js b/sources/plugins/print/lang/sr.js new file mode 100644 index 00000000..32eaf11e --- /dev/null +++ b/sources/plugins/print/lang/sr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'sr', { + toolbar: 'Штампа' +} ); diff --git a/sources/plugins/print/lang/sv.js b/sources/plugins/print/lang/sv.js new file mode 100644 index 00000000..5daade92 --- /dev/null +++ b/sources/plugins/print/lang/sv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'sv', { + toolbar: 'Skriv ut' +} ); diff --git a/sources/plugins/print/lang/th.js b/sources/plugins/print/lang/th.js new file mode 100644 index 00000000..0a331243 --- /dev/null +++ b/sources/plugins/print/lang/th.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'th', { + toolbar: 'สั่งพิมพ์' +} ); diff --git a/sources/plugins/print/lang/tr.js b/sources/plugins/print/lang/tr.js new file mode 100644 index 00000000..61cfb0c5 --- /dev/null +++ b/sources/plugins/print/lang/tr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'tr', { + toolbar: 'Yazdır' +} ); diff --git a/sources/plugins/print/lang/tt.js b/sources/plugins/print/lang/tt.js new file mode 100644 index 00000000..53371af8 --- /dev/null +++ b/sources/plugins/print/lang/tt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'tt', { + toolbar: 'Бастыру' +} ); diff --git a/sources/plugins/print/lang/ug.js b/sources/plugins/print/lang/ug.js new file mode 100644 index 00000000..86cc4d6a --- /dev/null +++ b/sources/plugins/print/lang/ug.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'ug', { + toolbar: 'باس ' +} ); diff --git a/sources/plugins/print/lang/uk.js b/sources/plugins/print/lang/uk.js new file mode 100644 index 00000000..e7d07d8a --- /dev/null +++ b/sources/plugins/print/lang/uk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'uk', { + toolbar: 'Друк' +} ); diff --git a/sources/plugins/print/lang/vi.js b/sources/plugins/print/lang/vi.js new file mode 100644 index 00000000..1b965858 --- /dev/null +++ b/sources/plugins/print/lang/vi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'vi', { + toolbar: 'In' +} ); diff --git a/sources/plugins/print/lang/zh-cn.js b/sources/plugins/print/lang/zh-cn.js new file mode 100644 index 00000000..2f1ec326 --- /dev/null +++ b/sources/plugins/print/lang/zh-cn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'zh-cn', { + toolbar: '打印' +} ); diff --git a/sources/plugins/print/lang/zh.js b/sources/plugins/print/lang/zh.js new file mode 100644 index 00000000..e12f1e8b --- /dev/null +++ b/sources/plugins/print/lang/zh.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'print', 'zh', { + toolbar: '列印' +} ); diff --git a/sources/plugins/print/plugin.js b/sources/plugins/print/plugin.js new file mode 100644 index 00000000..faa567b6 --- /dev/null +++ b/sources/plugins/print/plugin.js @@ -0,0 +1,46 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview Print Plugin + */ + +CKEDITOR.plugins.add( 'print', { + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'print,', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + init: function( editor ) { + // Print plugin isn't available in inline mode yet. + if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE ) + return; + + var pluginName = 'print'; + + // Register the command. + editor.addCommand( pluginName, CKEDITOR.plugins.print ); + + // Register the toolbar button. + editor.ui.addButton && editor.ui.addButton( 'Print', { + label: editor.lang.print.toolbar, + command: pluginName, + toolbar: 'document,50' + } ); + } +} ); + +CKEDITOR.plugins.print = { + exec: function( editor ) { + if ( CKEDITOR.env.gecko ) { + editor.window.$.print(); + } else { + editor.document.$.execCommand( 'Print' ); + } + }, + canUndo: false, + readOnly: 1, + modes: { wysiwyg: 1 } +}; diff --git a/sources/plugins/removeformat/icons/hidpi/removeformat.png b/sources/plugins/removeformat/icons/hidpi/removeformat.png new file mode 100644 index 0000000000000000000000000000000000000000..910b0a3c8f529b16e788fd2a9cc5edb2aae18854 GIT binary patch literal 2119 zcmV-N2)Or&P)j(Cl^#Vo)fdb-XyRq|t7zIP3R!aMUgs4#?MXIVsZPk)QYE%`ZG*Ldb)Q#HElt__M zTnQnNBDGKmNgI`>QPM%y|Xj-_QNiYO)&(wQjauW=H5ByKmY%^ z=bS5l>+9qHY0g{=0w6Mf&(>mZ7l4SMM9^BJME)xf)>@3Ugkgv=W==5E07L{wYm%Nv zZ8C`$iJ(O02cQ~!qEsT6&oePKMQF^;0Voj?o=0db*akv_x(7Bc&ADanMT5X2e=TV+ex)Q{8I;YYY>mk~w(b!231` zuy*cja6a>82}&h^#bK%R!QjAvV~jzG5Rb>vTE}ba>ee_~PX`KufRQU#E?XFwnw*^0 zIt)XSsg!T6?KpGbz?;EMq?`s21OX!>BUoz(fp)-~x$%V;UO4&j#~)){7ZJf2L!nS0 z)7<>YzL#I_zJc!mc(*t)fr`hGTLCcEQkoi+o7*Z${*!9da z7C3SP--GY<_7)?l)J+rlvtuZNibVKe-@d`n_rDAfaU7Z(8c6ThvEZJ2@4c*)s?cmL ze!0w8K3}}|uDjm(aPQvTWf5#OkcgmMmq;pwjzs4C`&j^_3cz(7Tx$^^8i`PwP6KRN z*4pY?Yca-PjKMFJ2#xs!IH5d`Xe@@zOi~dZ|&y#P^s)Fcwf+O>;TE?>U> z+M2bNau84`6h_-tul~pnLzLr?jK^7&$q?JLNhdaMekha4P@70pDyrj9n@rN2$*^F{ zmW9dg?(XJHhT3EjN9zhZ*Chas*2H2lfSyz`DPb5A1OY)1FgZC%{lbO+0FDO6pp+sN ziy<2~MuG1T<{ zlnBvC1UwHMXZvKaNU>0$SS*sy=gH-AJo4zHW57pN1gs_SeSo&sWy`*F=f;h+u3EKQ zHg4Qg*U~~=OAE4oeRCv{IJvdEdu>-ohl|Kl($S%#RR(4^Bc*VaLe{MlU~7MWKc=cx z5QgN($NApVPY-3kJ{{`SKU6ZbsQwY4;+QY2lM*!JxL`~pZ^cStPo&D7<~ z6ZQ4=c+n_97&7qITf><<@BDD}>eWwWGMRTzoH&uqHaE-S#fv?x<-&yvXHTC#T?1SM zw!YWfThyM1XpQ{+;6c(gHPrR={1(`Dn|0*a=&@rDUcPb#?fbMo{`gmbpKjQ&!A+;r zjaqAb->0Fm@sGdh>uUtI{Pm@mE~!KU9gQMN;b1LcC6Q>#W>Hk8+8f<$u3c0_DGYG& z{CSkM)YsRuu%-qP`76<@}OL1XlQ6)=gysjM~)oX+|tqlT7OrzY?-p}zyE`a z7cVkaEE0qv&b1rNe9h4sX>YH`b&q|az5NcqRN~B;Gs7bzBQc;`Y5jKJfdiYCX0wFG zd|%qz1AFS!o>I9?acT-@#xVLo==)$l&y^BHDWaZ7wlXs=S(42zE#~tK4GsM>m&++2 z5A6HVbI>^mVX0mtYe_r zF(5|(001R)MObuXVRU6WV{&C-bY%cCFflVNFg7hRFjO%yIxsgnFf=PLGCD9Y_Tr{V z0000bbVXQnWMOn=I&E)cX=Zr x8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H1002ovPDHLkV1g-h2krm> literal 0 HcmV?d00001 diff --git a/sources/plugins/removeformat/icons/removeformat.png b/sources/plugins/removeformat/icons/removeformat.png new file mode 100644 index 0000000000000000000000000000000000000000..1bc9b38601a9bf1b0c43c81aaed50c507826cf9e GIT binary patch literal 871 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|iQ-i0AV~EA++8|$V=|Bu z{imPaDL%h@%l`fRiY!Z}2skx#6iCjHER<31QaVz|lg7rNq12Q)>qLst1ry%zg}2{6 zdh>?o`Sa&18w8vVnE1Zf^>0SU53N_b{?!x|2sm|wgcuqhGB|SSQjm$E;l_s+eAA{+ z|9ms&Tig5J8*+btee-6`wXCfMrlwzwIhc+V&fyBMZ+2Q(Abr4>VNr~p{oFZo&Rogb znvt8ED|n!PN&V*s4<1zCuY0A?r6eOOo7>mho2#|-)aTEiXBzMXuD`yYvEtdTb=O~( zIJk&6i7`01Tqu?@ook(82>V$H$S-|_Fax00vOvP>ohozt^kf33@K;PpJ=gysLUXs?^*H{YSOdMR=UAFK&5N~LA>Nxi0%N8Lglm7nxc!mn?r7WwiYR#xLo%u&UeCZUf z1E&`*RIE=;ed=pAyOdFeN#cFk?gQ`M>CK2V{Cq$)WM|B|Q_nxkZ`-!bY{pMPN&PEETh{4m<&t;ucLK6VJ{BKtP literal 0 HcmV?d00001 diff --git a/sources/plugins/removeformat/lang/af.js b/sources/plugins/removeformat/lang/af.js new file mode 100644 index 00000000..a4aa5367 --- /dev/null +++ b/sources/plugins/removeformat/lang/af.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'af', { + toolbar: 'Verwyder opmaak' +} ); diff --git a/sources/plugins/removeformat/lang/ar.js b/sources/plugins/removeformat/lang/ar.js new file mode 100644 index 00000000..16217eb3 --- /dev/null +++ b/sources/plugins/removeformat/lang/ar.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'ar', { + toolbar: 'إزالة التنسيقات' +} ); diff --git a/sources/plugins/removeformat/lang/bg.js b/sources/plugins/removeformat/lang/bg.js new file mode 100644 index 00000000..01d1348f --- /dev/null +++ b/sources/plugins/removeformat/lang/bg.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'bg', { + toolbar: 'Премахване на форматирането' +} ); diff --git a/sources/plugins/removeformat/lang/bn.js b/sources/plugins/removeformat/lang/bn.js new file mode 100644 index 00000000..0e54f499 --- /dev/null +++ b/sources/plugins/removeformat/lang/bn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'bn', { + toolbar: 'ফরমেট সরাও' +} ); diff --git a/sources/plugins/removeformat/lang/bs.js b/sources/plugins/removeformat/lang/bs.js new file mode 100644 index 00000000..55e0b7e5 --- /dev/null +++ b/sources/plugins/removeformat/lang/bs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'bs', { + toolbar: 'PoniÅ¡ti format' +} ); diff --git a/sources/plugins/removeformat/lang/ca.js b/sources/plugins/removeformat/lang/ca.js new file mode 100644 index 00000000..d2507469 --- /dev/null +++ b/sources/plugins/removeformat/lang/ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'ca', { + toolbar: 'Elimina Format' +} ); diff --git a/sources/plugins/removeformat/lang/cs.js b/sources/plugins/removeformat/lang/cs.js new file mode 100644 index 00000000..3e16778e --- /dev/null +++ b/sources/plugins/removeformat/lang/cs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'cs', { + toolbar: 'Odstranit formátování' +} ); diff --git a/sources/plugins/removeformat/lang/cy.js b/sources/plugins/removeformat/lang/cy.js new file mode 100644 index 00000000..3c8606e6 --- /dev/null +++ b/sources/plugins/removeformat/lang/cy.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'cy', { + toolbar: 'Tynnu Fformat' +} ); diff --git a/sources/plugins/removeformat/lang/da.js b/sources/plugins/removeformat/lang/da.js new file mode 100644 index 00000000..5599b638 --- /dev/null +++ b/sources/plugins/removeformat/lang/da.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'da', { + toolbar: 'Fjern formatering' +} ); diff --git a/sources/plugins/removeformat/lang/de.js b/sources/plugins/removeformat/lang/de.js new file mode 100644 index 00000000..8361c14b --- /dev/null +++ b/sources/plugins/removeformat/lang/de.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'de', { + toolbar: 'Formatierung entfernen' +} ); diff --git a/sources/plugins/removeformat/lang/el.js b/sources/plugins/removeformat/lang/el.js new file mode 100644 index 00000000..6f69f98c --- /dev/null +++ b/sources/plugins/removeformat/lang/el.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'el', { + toolbar: 'Εκκαθάριση Μορφοποίησης' +} ); diff --git a/sources/plugins/removeformat/lang/en-au.js b/sources/plugins/removeformat/lang/en-au.js new file mode 100644 index 00000000..61bc04ee --- /dev/null +++ b/sources/plugins/removeformat/lang/en-au.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'en-au', { + toolbar: 'Remove Format' +} ); diff --git a/sources/plugins/removeformat/lang/en-ca.js b/sources/plugins/removeformat/lang/en-ca.js new file mode 100644 index 00000000..213048cc --- /dev/null +++ b/sources/plugins/removeformat/lang/en-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'en-ca', { + toolbar: 'Remove Format' +} ); diff --git a/sources/plugins/removeformat/lang/en-gb.js b/sources/plugins/removeformat/lang/en-gb.js new file mode 100644 index 00000000..020d1e46 --- /dev/null +++ b/sources/plugins/removeformat/lang/en-gb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'en-gb', { + toolbar: 'Remove Format' +} ); diff --git a/sources/plugins/removeformat/lang/en.js b/sources/plugins/removeformat/lang/en.js new file mode 100644 index 00000000..6a27bd00 --- /dev/null +++ b/sources/plugins/removeformat/lang/en.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'en', { + toolbar: 'Remove Format' +} ); diff --git a/sources/plugins/removeformat/lang/eo.js b/sources/plugins/removeformat/lang/eo.js new file mode 100644 index 00000000..c7e8057b --- /dev/null +++ b/sources/plugins/removeformat/lang/eo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'eo', { + toolbar: 'Forigi Formaton' +} ); diff --git a/sources/plugins/removeformat/lang/es.js b/sources/plugins/removeformat/lang/es.js new file mode 100644 index 00000000..fca22159 --- /dev/null +++ b/sources/plugins/removeformat/lang/es.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'es', { + toolbar: 'Eliminar Formato' +} ); diff --git a/sources/plugins/removeformat/lang/et.js b/sources/plugins/removeformat/lang/et.js new file mode 100644 index 00000000..5d2b3361 --- /dev/null +++ b/sources/plugins/removeformat/lang/et.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'et', { + toolbar: 'Vormingu eemaldamine' +} ); diff --git a/sources/plugins/removeformat/lang/eu.js b/sources/plugins/removeformat/lang/eu.js new file mode 100644 index 00000000..ba7a0e5d --- /dev/null +++ b/sources/plugins/removeformat/lang/eu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'eu', { + toolbar: 'Kendu formatua' +} ); diff --git a/sources/plugins/removeformat/lang/fa.js b/sources/plugins/removeformat/lang/fa.js new file mode 100644 index 00000000..c31b7b2c --- /dev/null +++ b/sources/plugins/removeformat/lang/fa.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'fa', { + toolbar: 'برداشتن فرمت' +} ); diff --git a/sources/plugins/removeformat/lang/fi.js b/sources/plugins/removeformat/lang/fi.js new file mode 100644 index 00000000..9f34c3bc --- /dev/null +++ b/sources/plugins/removeformat/lang/fi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'fi', { + toolbar: 'Poista muotoilu' +} ); diff --git a/sources/plugins/removeformat/lang/fo.js b/sources/plugins/removeformat/lang/fo.js new file mode 100644 index 00000000..b30ac5f9 --- /dev/null +++ b/sources/plugins/removeformat/lang/fo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'fo', { + toolbar: 'Strika sniðgeving' +} ); diff --git a/sources/plugins/removeformat/lang/fr-ca.js b/sources/plugins/removeformat/lang/fr-ca.js new file mode 100644 index 00000000..b266ef7e --- /dev/null +++ b/sources/plugins/removeformat/lang/fr-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'fr-ca', { + toolbar: 'Supprimer le formatage' +} ); diff --git a/sources/plugins/removeformat/lang/fr.js b/sources/plugins/removeformat/lang/fr.js new file mode 100644 index 00000000..8822f12d --- /dev/null +++ b/sources/plugins/removeformat/lang/fr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'fr', { + toolbar: 'Supprimer la mise en forme' +} ); diff --git a/sources/plugins/removeformat/lang/gl.js b/sources/plugins/removeformat/lang/gl.js new file mode 100644 index 00000000..7c8ad55b --- /dev/null +++ b/sources/plugins/removeformat/lang/gl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'gl', { + toolbar: 'Retirar o formato' +} ); diff --git a/sources/plugins/removeformat/lang/gu.js b/sources/plugins/removeformat/lang/gu.js new file mode 100644 index 00000000..4c92c3d6 --- /dev/null +++ b/sources/plugins/removeformat/lang/gu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'gu', { + toolbar: 'ફૉર્મટ કાઢવું' +} ); diff --git a/sources/plugins/removeformat/lang/he.js b/sources/plugins/removeformat/lang/he.js new file mode 100644 index 00000000..082c285e --- /dev/null +++ b/sources/plugins/removeformat/lang/he.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'he', { + toolbar: 'הסרת העיצוב' +} ); diff --git a/sources/plugins/removeformat/lang/hi.js b/sources/plugins/removeformat/lang/hi.js new file mode 100644 index 00000000..90202b4a --- /dev/null +++ b/sources/plugins/removeformat/lang/hi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'hi', { + toolbar: 'फ़ॉर्मैट हटायें' +} ); diff --git a/sources/plugins/removeformat/lang/hr.js b/sources/plugins/removeformat/lang/hr.js new file mode 100644 index 00000000..804bcfe9 --- /dev/null +++ b/sources/plugins/removeformat/lang/hr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'hr', { + toolbar: 'Ukloni formatiranje' +} ); diff --git a/sources/plugins/removeformat/lang/hu.js b/sources/plugins/removeformat/lang/hu.js new file mode 100644 index 00000000..b3190cbc --- /dev/null +++ b/sources/plugins/removeformat/lang/hu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'hu', { + toolbar: 'Formázás eltávolítása' +} ); diff --git a/sources/plugins/removeformat/lang/id.js b/sources/plugins/removeformat/lang/id.js new file mode 100644 index 00000000..c1449777 --- /dev/null +++ b/sources/plugins/removeformat/lang/id.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'id', { + toolbar: 'Hapus Format' +} ); diff --git a/sources/plugins/removeformat/lang/is.js b/sources/plugins/removeformat/lang/is.js new file mode 100644 index 00000000..2df2ecc0 --- /dev/null +++ b/sources/plugins/removeformat/lang/is.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'is', { + toolbar: 'Fjarlægja snið' +} ); diff --git a/sources/plugins/removeformat/lang/it.js b/sources/plugins/removeformat/lang/it.js new file mode 100644 index 00000000..97f531a4 --- /dev/null +++ b/sources/plugins/removeformat/lang/it.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'it', { + toolbar: 'Elimina formattazione' +} ); diff --git a/sources/plugins/removeformat/lang/ja.js b/sources/plugins/removeformat/lang/ja.js new file mode 100644 index 00000000..9b897f69 --- /dev/null +++ b/sources/plugins/removeformat/lang/ja.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'ja', { + toolbar: '書式を解除' +} ); diff --git a/sources/plugins/removeformat/lang/ka.js b/sources/plugins/removeformat/lang/ka.js new file mode 100644 index 00000000..aa1f91ae --- /dev/null +++ b/sources/plugins/removeformat/lang/ka.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'ka', { + toolbar: 'ფორმატირების მოხსნა' +} ); diff --git a/sources/plugins/removeformat/lang/km.js b/sources/plugins/removeformat/lang/km.js new file mode 100644 index 00000000..f7550dc1 --- /dev/null +++ b/sources/plugins/removeformat/lang/km.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'km', { + toolbar: 'ជម្រះ​ទ្រង់​ទ្រាយ' +} ); diff --git a/sources/plugins/removeformat/lang/ko.js b/sources/plugins/removeformat/lang/ko.js new file mode 100644 index 00000000..b19a77e9 --- /dev/null +++ b/sources/plugins/removeformat/lang/ko.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'ko', { + toolbar: '형식 지우기' +} ); diff --git a/sources/plugins/removeformat/lang/ku.js b/sources/plugins/removeformat/lang/ku.js new file mode 100644 index 00000000..7471b2f8 --- /dev/null +++ b/sources/plugins/removeformat/lang/ku.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'ku', { + toolbar: 'لابردنی داڕشتەکە' +} ); diff --git a/sources/plugins/removeformat/lang/lt.js b/sources/plugins/removeformat/lang/lt.js new file mode 100644 index 00000000..69666fcb --- /dev/null +++ b/sources/plugins/removeformat/lang/lt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'lt', { + toolbar: 'Panaikinti formatą' +} ); diff --git a/sources/plugins/removeformat/lang/lv.js b/sources/plugins/removeformat/lang/lv.js new file mode 100644 index 00000000..8421e6b2 --- /dev/null +++ b/sources/plugins/removeformat/lang/lv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'lv', { + toolbar: 'Noņemt stilus' +} ); diff --git a/sources/plugins/removeformat/lang/mk.js b/sources/plugins/removeformat/lang/mk.js new file mode 100644 index 00000000..70908a22 --- /dev/null +++ b/sources/plugins/removeformat/lang/mk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'mk', { + toolbar: 'Remove Format' // MISSING +} ); diff --git a/sources/plugins/removeformat/lang/mn.js b/sources/plugins/removeformat/lang/mn.js new file mode 100644 index 00000000..96a7fbe4 --- /dev/null +++ b/sources/plugins/removeformat/lang/mn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'mn', { + toolbar: 'Параргафын загварыг авч хаях' +} ); diff --git a/sources/plugins/removeformat/lang/ms.js b/sources/plugins/removeformat/lang/ms.js new file mode 100644 index 00000000..aec04ae7 --- /dev/null +++ b/sources/plugins/removeformat/lang/ms.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'ms', { + toolbar: 'Buang Format' +} ); diff --git a/sources/plugins/removeformat/lang/nb.js b/sources/plugins/removeformat/lang/nb.js new file mode 100644 index 00000000..63aca263 --- /dev/null +++ b/sources/plugins/removeformat/lang/nb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'nb', { + toolbar: 'Fjern formatering' +} ); diff --git a/sources/plugins/removeformat/lang/nl.js b/sources/plugins/removeformat/lang/nl.js new file mode 100644 index 00000000..a5775f68 --- /dev/null +++ b/sources/plugins/removeformat/lang/nl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'nl', { + toolbar: 'Opmaak verwijderen' +} ); diff --git a/sources/plugins/removeformat/lang/no.js b/sources/plugins/removeformat/lang/no.js new file mode 100644 index 00000000..6ae98eb2 --- /dev/null +++ b/sources/plugins/removeformat/lang/no.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'no', { + toolbar: 'Fjern formatering' +} ); diff --git a/sources/plugins/removeformat/lang/pl.js b/sources/plugins/removeformat/lang/pl.js new file mode 100644 index 00000000..81442e17 --- /dev/null +++ b/sources/plugins/removeformat/lang/pl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'pl', { + toolbar: 'Usuń formatowanie' +} ); diff --git a/sources/plugins/removeformat/lang/pt-br.js b/sources/plugins/removeformat/lang/pt-br.js new file mode 100644 index 00000000..56efddd1 --- /dev/null +++ b/sources/plugins/removeformat/lang/pt-br.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'pt-br', { + toolbar: 'Remover Formatação' +} ); diff --git a/sources/plugins/removeformat/lang/pt.js b/sources/plugins/removeformat/lang/pt.js new file mode 100644 index 00000000..4ec568b4 --- /dev/null +++ b/sources/plugins/removeformat/lang/pt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'pt', { + toolbar: 'Eliminar Formato' +} ); diff --git a/sources/plugins/removeformat/lang/ro.js b/sources/plugins/removeformat/lang/ro.js new file mode 100644 index 00000000..4b689bbf --- /dev/null +++ b/sources/plugins/removeformat/lang/ro.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'ro', { + toolbar: 'Înlătură formatarea' +} ); diff --git a/sources/plugins/removeformat/lang/ru.js b/sources/plugins/removeformat/lang/ru.js new file mode 100644 index 00000000..dcba65a8 --- /dev/null +++ b/sources/plugins/removeformat/lang/ru.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'ru', { + toolbar: 'Убрать форматирование' +} ); diff --git a/sources/plugins/removeformat/lang/si.js b/sources/plugins/removeformat/lang/si.js new file mode 100644 index 00000000..e1efff63 --- /dev/null +++ b/sources/plugins/removeformat/lang/si.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'si', { + toolbar: 'සැකසීම වෙනස් කරන්න' +} ); diff --git a/sources/plugins/removeformat/lang/sk.js b/sources/plugins/removeformat/lang/sk.js new file mode 100644 index 00000000..9ce3fc30 --- /dev/null +++ b/sources/plugins/removeformat/lang/sk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'sk', { + toolbar: 'OdstrániÅ¥ formátovanie' +} ); diff --git a/sources/plugins/removeformat/lang/sl.js b/sources/plugins/removeformat/lang/sl.js new file mode 100644 index 00000000..6edc4abd --- /dev/null +++ b/sources/plugins/removeformat/lang/sl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'sl', { + toolbar: 'Odstrani oblikovanje' +} ); diff --git a/sources/plugins/removeformat/lang/sq.js b/sources/plugins/removeformat/lang/sq.js new file mode 100644 index 00000000..7bf36689 --- /dev/null +++ b/sources/plugins/removeformat/lang/sq.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'sq', { + toolbar: 'Largo Formatin' +} ); diff --git a/sources/plugins/removeformat/lang/sr-latn.js b/sources/plugins/removeformat/lang/sr-latn.js new file mode 100644 index 00000000..8c008213 --- /dev/null +++ b/sources/plugins/removeformat/lang/sr-latn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'sr-latn', { + toolbar: 'Ukloni formatiranje' +} ); diff --git a/sources/plugins/removeformat/lang/sr.js b/sources/plugins/removeformat/lang/sr.js new file mode 100644 index 00000000..42c78b19 --- /dev/null +++ b/sources/plugins/removeformat/lang/sr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'sr', { + toolbar: 'Уклони форматирање' +} ); diff --git a/sources/plugins/removeformat/lang/sv.js b/sources/plugins/removeformat/lang/sv.js new file mode 100644 index 00000000..4f32fad1 --- /dev/null +++ b/sources/plugins/removeformat/lang/sv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'sv', { + toolbar: 'Radera formatering' +} ); diff --git a/sources/plugins/removeformat/lang/th.js b/sources/plugins/removeformat/lang/th.js new file mode 100644 index 00000000..78d2d6ed --- /dev/null +++ b/sources/plugins/removeformat/lang/th.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'th', { + toolbar: 'ล้างรูปแบบ' +} ); diff --git a/sources/plugins/removeformat/lang/tr.js b/sources/plugins/removeformat/lang/tr.js new file mode 100644 index 00000000..6c63b545 --- /dev/null +++ b/sources/plugins/removeformat/lang/tr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'tr', { + toolbar: 'Biçimi Kaldır' +} ); diff --git a/sources/plugins/removeformat/lang/tt.js b/sources/plugins/removeformat/lang/tt.js new file mode 100644 index 00000000..95206995 --- /dev/null +++ b/sources/plugins/removeformat/lang/tt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'tt', { + toolbar: 'Форматлауны бетерү' +} ); diff --git a/sources/plugins/removeformat/lang/ug.js b/sources/plugins/removeformat/lang/ug.js new file mode 100644 index 00000000..d4664f12 --- /dev/null +++ b/sources/plugins/removeformat/lang/ug.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'ug', { + toolbar: 'پىچىمنى چىقىرىۋەت' +} ); diff --git a/sources/plugins/removeformat/lang/uk.js b/sources/plugins/removeformat/lang/uk.js new file mode 100644 index 00000000..143f69af --- /dev/null +++ b/sources/plugins/removeformat/lang/uk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'uk', { + toolbar: 'Видалити форматування' +} ); diff --git a/sources/plugins/removeformat/lang/vi.js b/sources/plugins/removeformat/lang/vi.js new file mode 100644 index 00000000..d129e2a0 --- /dev/null +++ b/sources/plugins/removeformat/lang/vi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'vi', { + toolbar: 'Xoá định dạng' +} ); diff --git a/sources/plugins/removeformat/lang/zh-cn.js b/sources/plugins/removeformat/lang/zh-cn.js new file mode 100644 index 00000000..762a88d7 --- /dev/null +++ b/sources/plugins/removeformat/lang/zh-cn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'zh-cn', { + toolbar: '清除格式' +} ); diff --git a/sources/plugins/removeformat/lang/zh.js b/sources/plugins/removeformat/lang/zh.js new file mode 100644 index 00000000..d4be5286 --- /dev/null +++ b/sources/plugins/removeformat/lang/zh.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'removeformat', 'zh', { + toolbar: '移除格式' +} ); diff --git a/sources/plugins/removeformat/plugin.js b/sources/plugins/removeformat/plugin.js new file mode 100644 index 00000000..9a808df1 --- /dev/null +++ b/sources/plugins/removeformat/plugin.js @@ -0,0 +1,193 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.add( 'removeformat', { + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'removeformat', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + init: function( editor ) { + editor.addCommand( 'removeFormat', CKEDITOR.plugins.removeformat.commands.removeformat ); + editor.ui.addButton && editor.ui.addButton( 'RemoveFormat', { + label: editor.lang.removeformat.toolbar, + command: 'removeFormat', + toolbar: 'cleanup,10' + } ); + } +} ); + +CKEDITOR.plugins.removeformat = { + commands: { + removeformat: { + exec: function( editor ) { + var tagsRegex = editor._.removeFormatRegex || ( editor._.removeFormatRegex = new RegExp( '^(?:' + editor.config.removeFormatTags.replace( /,/g, '|' ) + ')$', 'i' ) ); + + var removeAttributes = editor._.removeAttributes || ( editor._.removeAttributes = editor.config.removeFormatAttributes.split( ',' ) ), + filter = CKEDITOR.plugins.removeformat.filter, + ranges = editor.getSelection().getRanges(), + iterator = ranges.createIterator(), + isElement = function( element ) { + return element.type == CKEDITOR.NODE_ELEMENT; + }, + range; + + while ( ( range = iterator.getNextRange() ) ) { + if ( !range.collapsed ) + range.enlarge( CKEDITOR.ENLARGE_ELEMENT ); + + // Bookmark the range so we can re-select it after processing. + var bookmark = range.createBookmark(), + // The style will be applied within the bookmark boundaries. + startNode = bookmark.startNode, + endNode = bookmark.endNode, + currentNode; + + // We need to check the selection boundaries (bookmark spans) to break + // the code in a way that we can properly remove partially selected nodes. + // For example, removing a style from + // This is [some text to show the] problem + // ... where [ and ] represent the selection, must result: + // This is [some text to show the] problem + // The strategy is simple, we just break the partial nodes before the + // removal logic, having something that could be represented this way: + // This is [some text to show the] problem + + var breakParent = function( node ) { + // Let's start checking the start boundary. + var path = editor.elementPath( node ), + pathElements = path.elements; + + for ( var i = 1, pathElement; pathElement = pathElements[ i ]; i++ ) { + if ( pathElement.equals( path.block ) || pathElement.equals( path.blockLimit ) ) + break; + + // If this element can be removed (even partially). + if ( tagsRegex.test( pathElement.getName() ) && filter( editor, pathElement ) ) + node.breakParent( pathElement ); + } + }; + + breakParent( startNode ); + if ( endNode ) { + breakParent( endNode ); + + // Navigate through all nodes between the bookmarks. + currentNode = startNode.getNextSourceNode( true, CKEDITOR.NODE_ELEMENT ); + + while ( currentNode ) { + // If we have reached the end of the selection, stop looping. + if ( currentNode.equals( endNode ) ) + break; + + if ( currentNode.isReadOnly() ) { + // In case of non-editable we're skipping to the next sibling *elmenet*. + + // We need to be aware that endNode can be nested within current non-editable. + // This condition tests if currentNode (non-editable) contains endNode. If it does + // then we should break the filtering + if ( currentNode.getPosition( endNode ) & CKEDITOR.POSITION_CONTAINS ) { + break; + } + + currentNode = currentNode.getNext( isElement ); + continue; + } + + // Cache the next node to be processed. Do it now, because + // currentNode may be removed. + var nextNode = currentNode.getNextSourceNode( false, CKEDITOR.NODE_ELEMENT ), + isFakeElement = currentNode.getName() == 'img' && currentNode.data( 'cke-realelement' ); + + // This node must not be a fake element, and must not be read-only. + if ( !isFakeElement && filter( editor, currentNode ) ) { + // Remove elements nodes that match with this style rules. + if ( tagsRegex.test( currentNode.getName() ) ) + currentNode.remove( 1 ); + else { + currentNode.removeAttributes( removeAttributes ); + editor.fire( 'removeFormatCleanup', currentNode ); + } + } + + currentNode = nextNode; + } + } + + range.moveToBookmark( bookmark ); + } + + // The selection path may not changed, but we should force a selection + // change event to refresh command states, due to the above attribution change. (#9238) + editor.forceNextSelectionCheck(); + editor.getSelection().selectRanges( ranges ); + } + } + }, + + // Perform the remove format filters on the passed element. + // @param {CKEDITOR.editor} editor + // @param {CKEDITOR.dom.element} element + filter: function( editor, element ) { + // If editor#addRemoveFotmatFilter hasn't been executed yet value is not initialized. + var filters = editor._.removeFormatFilters || []; + for ( var i = 0; i < filters.length; i++ ) { + if ( filters[ i ]( element ) === false ) + return false; + } + return true; + } +}; + +/** + * Add to a collection of functions to decide whether a specific + * element should be considered as formatting element and thus + * could be removed during `removeFormat` command. + * + * **Note:** Only available with the existence of `removeformat` plugin. + * + * // Don't remove empty span. + * editor.addRemoveFormatFilter( function( element ) { + * return !( element.is( 'span' ) && CKEDITOR.tools.isEmpty( element.getAttributes() ) ); + * } ); + * + * @since 3.3 + * @member CKEDITOR.editor + * @param {Function} func The function to be called, which will be passed a {CKEDITOR.dom.element} element to test. + */ +CKEDITOR.editor.prototype.addRemoveFormatFilter = function( func ) { + if ( !this._.removeFormatFilters ) + this._.removeFormatFilters = []; + + this._.removeFormatFilters.push( func ); +}; + +/** + * A comma separated list of elements to be removed when executing the `remove + * format` command. Note that only inline elements are allowed. + * + * @cfg + * @member CKEDITOR.config + */ +CKEDITOR.config.removeFormatTags = 'b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var'; + +/** + * A comma separated list of elements attributes to be removed when executing + * the `remove format` command. + * + * @cfg + * @member CKEDITOR.config + */ +CKEDITOR.config.removeFormatAttributes = 'class,style,lang,width,height,align,hspace,valign'; + +/** + * Fired after an element was cleaned by the removeFormat plugin. + * + * @event removeFormatCleanup + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {CKEDITOR.dom.element} data.element The element that was cleaned up. + */ diff --git a/sources/plugins/resize/plugin.js b/sources/plugins/resize/plugin.js new file mode 100644 index 00000000..f57990c8 --- /dev/null +++ b/sources/plugins/resize/plugin.js @@ -0,0 +1,187 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.add( 'resize', { + init: function( editor ) { + function dragHandler( evt ) { + var dx = evt.data.$.screenX - origin.x, + dy = evt.data.$.screenY - origin.y, + width = startSize.width, + height = startSize.height, + internalWidth = width + dx * ( resizeDir == 'rtl' ? -1 : 1 ), + internalHeight = height + dy; + + if ( resizeHorizontal ) + width = Math.max( config.resize_minWidth, Math.min( internalWidth, config.resize_maxWidth ) ); + + if ( resizeVertical ) + height = Math.max( config.resize_minHeight, Math.min( internalHeight, config.resize_maxHeight ) ); + + // DO NOT impose fixed size with single direction resize. (#6308) + editor.resize( resizeHorizontal ? width : null, height ); + } + + function dragEndHandler() { + CKEDITOR.document.removeListener( 'mousemove', dragHandler ); + CKEDITOR.document.removeListener( 'mouseup', dragEndHandler ); + + if ( editor.document ) { + editor.document.removeListener( 'mousemove', dragHandler ); + editor.document.removeListener( 'mouseup', dragEndHandler ); + } + } + + var config = editor.config; + var spaceId = editor.ui.spaceId( 'resizer' ); + + // Resize in the same direction of chrome, + // which is identical to dir of editor element. (#6614) + var resizeDir = editor.element ? editor.element.getDirection( 1 ) : 'ltr'; + + !config.resize_dir && ( config.resize_dir = 'vertical' ); + ( config.resize_maxWidth === undefined ) && ( config.resize_maxWidth = 3000 ); + ( config.resize_maxHeight === undefined ) && ( config.resize_maxHeight = 3000 ); + ( config.resize_minWidth === undefined ) && ( config.resize_minWidth = 750 ); + ( config.resize_minHeight === undefined ) && ( config.resize_minHeight = 250 ); + + if ( config.resize_enabled !== false ) { + var container = null, + origin, startSize, + resizeHorizontal = ( config.resize_dir == 'both' || config.resize_dir == 'horizontal' ) && ( config.resize_minWidth != config.resize_maxWidth ), + resizeVertical = ( config.resize_dir == 'both' || config.resize_dir == 'vertical' ) && ( config.resize_minHeight != config.resize_maxHeight ); + + var mouseDownFn = CKEDITOR.tools.addFunction( function( $event ) { + if ( !container ) + container = editor.getResizable(); + + startSize = { width: container.$.offsetWidth || 0, height: container.$.offsetHeight || 0 }; + origin = { x: $event.screenX, y: $event.screenY }; + + config.resize_minWidth > startSize.width && ( config.resize_minWidth = startSize.width ); + config.resize_minHeight > startSize.height && ( config.resize_minHeight = startSize.height ); + + CKEDITOR.document.on( 'mousemove', dragHandler ); + CKEDITOR.document.on( 'mouseup', dragEndHandler ); + + if ( editor.document ) { + editor.document.on( 'mousemove', dragHandler ); + editor.document.on( 'mouseup', dragEndHandler ); + } + + $event.preventDefault && $event.preventDefault(); + } ); + + editor.on( 'destroy', function() { + CKEDITOR.tools.removeFunction( mouseDownFn ); + } ); + + editor.on( 'uiSpace', function( event ) { + if ( event.data.space == 'bottom' ) { + var direction = ''; + if ( resizeHorizontal && !resizeVertical ) + direction = ' cke_resizer_horizontal'; + if ( !resizeHorizontal && resizeVertical ) + direction = ' cke_resizer_vertical'; + + var resizerHtml = + '' + + // BLACK LOWER RIGHT TRIANGLE (ltr) + // BLACK LOWER LEFT TRIANGLE (rtl) + ( resizeDir == 'ltr' ? '\u25E2' : '\u25E3' ) + + ''; + + // Always sticks the corner of botttom space. + resizeDir == 'ltr' && direction == 'ltr' ? event.data.html += resizerHtml : event.data.html = resizerHtml + event.data.html; + } + }, editor, null, 100 ); + + // Toggle the visibility of the resizer when an editor is being maximized or minimized. + editor.on( 'maximize', function( event ) { + editor.ui.space( 'resizer' )[ event.data == CKEDITOR.TRISTATE_ON ? 'hide' : 'show' ](); + } ); + } + } +} ); + +/** + * The minimum editor width, in pixels, when resizing the editor interface by using the resize handle. + * Note: It falls back to editor's actual width if it is smaller than the default value. + * + * Read more in the [documentation](#!/guide/dev_resize) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/resize.html). + * + * config.resize_minWidth = 500; + * + * @cfg {Number} [resize_minWidth=750] + * @member CKEDITOR.config + */ + +/** + * The minimum editor height, in pixels, when resizing the editor interface by using the resize handle. + * Note: It falls back to editor's actual height if it is smaller than the default value. + * + * Read more in the [documentation](#!/guide/dev_resize) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/resize.html). + * + * config.resize_minHeight = 600; + * + * @cfg {Number} [resize_minHeight=250] + * @member CKEDITOR.config + */ + +/** + * The maximum editor width, in pixels, when resizing the editor interface by using the resize handle. + * + * Read more in the [documentation](#!/guide/dev_resize) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/resize.html). + * + * config.resize_maxWidth = 750; + * + * @cfg {Number} [resize_maxWidth=3000] + * @member CKEDITOR.config + */ + +/** + * The maximum editor height, in pixels, when resizing the editor interface by using the resize handle. + * + * Read more in the [documentation](#!/guide/dev_resize) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/resize.html). + * + * config.resize_maxHeight = 600; + * + * @cfg {Number} [resize_maxHeight=3000] + * @member CKEDITOR.config + */ + +/** + * Whether to enable the resizing feature. If this feature is disabled, the resize handle will not be visible. + * + * Read more in the [documentation](#!/guide/dev_resize) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/resize.html). + * + * config.resize_enabled = false; + * + * @cfg {Boolean} [resize_enabled=true] + * @member CKEDITOR.config + */ + +/** + * The dimensions for which the editor resizing is enabled. Possible values + * are `both`, `vertical`, and `horizontal`. + * + * Read more in the [documentation](#!/guide/dev_resize) + * and see the [SDK sample](http://sdk.ckeditor.com/samples/resize.html). + * + * config.resize_dir = 'both'; + * + * @since 3.3 + * @cfg {String} [resize_dir='vertical'] + * @member CKEDITOR.config + */ diff --git a/sources/plugins/richcombo/plugin.js b/sources/plugins/richcombo/plugin.js new file mode 100644 index 00000000..4395b2a4 --- /dev/null +++ b/sources/plugins/richcombo/plugin.js @@ -0,0 +1,434 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.add( 'richcombo', { + requires: 'floatpanel,listblock,button', + + beforeInit: function( editor ) { + editor.ui.addHandler( CKEDITOR.UI_RICHCOMBO, CKEDITOR.ui.richCombo.handler ); + } +} ); + +( function() { + var template = '' + + '{label}' + + '' + + '{label}' + + '' + + '' + + // BLACK DOWN-POINTING TRIANGLE + ( CKEDITOR.env.hc ? '▼' : CKEDITOR.env.air ? ' ' : '' ) + + '' + + '' + + '' + + ''; + + var rcomboTpl = CKEDITOR.addTemplate( 'combo', template ); + + /** + * Button UI element. + * + * @readonly + * @property {String} [='richcombo'] + * @member CKEDITOR + */ + CKEDITOR.UI_RICHCOMBO = 'richcombo'; + + /** + * @class + * @todo + */ + CKEDITOR.ui.richCombo = CKEDITOR.tools.createClass( { + $: function( definition ) { + // Copy all definition properties to this object. + CKEDITOR.tools.extend( this, definition, + // Set defaults. + { + // The combo won't participate in toolbar grouping. + canGroup: false, + title: definition.label, + modes: { wysiwyg: 1 }, + editorFocus: 1 + } ); + + // We don't want the panel definition in this object. + var panelDefinition = this.panel || {}; + delete this.panel; + + this.id = CKEDITOR.tools.getNextNumber(); + + this.document = ( panelDefinition.parent && panelDefinition.parent.getDocument() ) || CKEDITOR.document; + + panelDefinition.className = 'cke_combopanel'; + panelDefinition.block = { + multiSelect: panelDefinition.multiSelect, + attributes: panelDefinition.attributes + }; + panelDefinition.toolbarRelated = true; + + this._ = { + panelDefinition: panelDefinition, + items: {} + }; + }, + + proto: { + renderHtml: function( editor ) { + var output = []; + this.render( editor, output ); + return output.join( '' ); + }, + + /** + * Renders the combo. + * + * @param {CKEDITOR.editor} editor The editor instance which this button is + * to be used by. + * @param {Array} output The output array to which append the HTML relative + * to this button. + */ + render: function( editor, output ) { + var env = CKEDITOR.env; + + var id = 'cke_' + this.id; + var clickFn = CKEDITOR.tools.addFunction( function( el ) { + // Restore locked selection in Opera. + if ( selLocked ) { + editor.unlockSelection( 1 ); + selLocked = 0; + } + instance.execute( el ); + }, this ); + + var combo = this; + var instance = { + id: id, + combo: this, + focus: function() { + var element = CKEDITOR.document.getById( id ).getChild( 1 ); + element.focus(); + }, + execute: function( el ) { + var _ = combo._; + + if ( _.state == CKEDITOR.TRISTATE_DISABLED ) + return; + + combo.createPanel( editor ); + + if ( _.on ) { + _.panel.hide(); + return; + } + + combo.commit(); + var value = combo.getValue(); + if ( value ) + _.list.mark( value ); + else + _.list.unmarkAll(); + + _.panel.showBlock( combo.id, new CKEDITOR.dom.element( el ), 4 ); + }, + clickFn: clickFn + }; + + function updateState() { + // Don't change state while richcombo is active (#11793). + if ( this.getState() == CKEDITOR.TRISTATE_ON ) + return; + + var state = this.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED; + + if ( editor.readOnly && !this.readOnly ) + state = CKEDITOR.TRISTATE_DISABLED; + + this.setState( state ); + this.setValue( '' ); + + // Let plugin to disable button. + if ( state != CKEDITOR.TRISTATE_DISABLED && this.refresh ) + this.refresh(); + } + + // Update status when activeFilter, mode, selection or readOnly changes. + editor.on( 'activeFilterChange', updateState, this ); + editor.on( 'mode', updateState, this ); + editor.on( 'selectionChange', updateState, this ); + // If this combo is sensitive to readOnly state, update it accordingly. + !this.readOnly && editor.on( 'readOnly', updateState, this ); + + var keyDownFn = CKEDITOR.tools.addFunction( function( ev, element ) { + ev = new CKEDITOR.dom.event( ev ); + + var keystroke = ev.getKeystroke(); + + // ARROW-DOWN + // This call is duplicated in plugins/toolbar/plugin.js in itemKeystroke(). + // Move focus to the first element after drop down was opened by the arrow down key. + if ( keystroke == 40 ) { + editor.once( 'panelShow', function( evt ) { + evt.data._.panel._.currentBlock.onKeyDown( 40 ); + } ); + } + + switch ( keystroke ) { + case 13: // ENTER + case 32: // SPACE + case 40: // ARROW-DOWN + // Show panel + CKEDITOR.tools.callFunction( clickFn, element ); + break; + default: + // Delegate the default behavior to toolbar button key handling. + instance.onkey( instance, keystroke ); + } + + // Avoid subsequent focus grab on editor document. + ev.preventDefault(); + } ); + + var focusFn = CKEDITOR.tools.addFunction( function() { + instance.onfocus && instance.onfocus(); + } ); + + var selLocked = 0; + + // For clean up + instance.keyDownFn = keyDownFn; + + var params = { + id: id, + name: this.name || this.command, + label: this.label, + title: this.title, + cls: this.className || '', + titleJs: env.gecko && !env.hc ? '' : ( this.title || '' ).replace( "'", '' ), + keydownFn: keyDownFn, + focusFn: focusFn, + clickFn: clickFn + }; + + rcomboTpl.output( params, output ); + + if ( this.onRender ) + this.onRender(); + + return instance; + }, + + createPanel: function( editor ) { + if ( this._.panel ) + return; + + var panelDefinition = this._.panelDefinition, + panelBlockDefinition = this._.panelDefinition.block, + panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(), + namedPanelCls = 'cke_combopanel__' + this.name, + panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ), + list = panel.addListBlock( this.id, panelBlockDefinition ), + me = this; + + panel.onShow = function() { + this.element.addClass( namedPanelCls ); + + me.setState( CKEDITOR.TRISTATE_ON ); + + me._.on = 1; + + me.editorFocus && !editor.focusManager.hasFocus && editor.focus(); + + if ( me.onOpen ) + me.onOpen(); + + // The "panelShow" event is fired assinchronously, after the + // onShow method call. + editor.once( 'panelShow', function() { + list.focus( !list.multiSelect && me.getValue() ); + } ); + }; + + panel.onHide = function( preventOnClose ) { + this.element.removeClass( namedPanelCls ); + + me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); + + me._.on = 0; + + if ( !preventOnClose && me.onClose ) + me.onClose(); + }; + + panel.onEscape = function() { + // Hide drop-down with focus returned. + panel.hide( 1 ); + }; + + list.onClick = function( value, marked ) { + + if ( me.onClick ) + me.onClick.call( me, value, marked ); + + panel.hide(); + }; + + this._.panel = panel; + this._.list = list; + + panel.getBlock( this.id ).onHide = function() { + me._.on = 0; + me.setState( CKEDITOR.TRISTATE_OFF ); + }; + + if ( this.init ) + this.init(); + }, + + setValue: function( value, text ) { + this._.value = value; + + var textElement = this.document.getById( 'cke_' + this.id + '_text' ); + if ( textElement ) { + if ( !( value || text ) ) { + text = this.label; + textElement.addClass( 'cke_combo_inlinelabel' ); + } else { + textElement.removeClass( 'cke_combo_inlinelabel' ); + } + + textElement.setText( typeof text != 'undefined' ? text : value ); + } + }, + + getValue: function() { + return this._.value || ''; + }, + + unmarkAll: function() { + this._.list.unmarkAll(); + }, + + mark: function( value ) { + this._.list.mark( value ); + }, + + hideItem: function( value ) { + this._.list.hideItem( value ); + }, + + hideGroup: function( groupTitle ) { + this._.list.hideGroup( groupTitle ); + }, + + showAll: function() { + this._.list.showAll(); + }, + + add: function( value, html, text ) { + this._.items[ value ] = text || value; + this._.list.add( value, html, text ); + }, + + startGroup: function( title ) { + this._.list.startGroup( title ); + }, + + commit: function() { + if ( !this._.committed ) { + this._.list.commit(); + this._.committed = 1; + CKEDITOR.ui.fire( 'ready', this ); + } + this._.committed = 1; + }, + + setState: function( state ) { + if ( this._.state == state ) + return; + + var el = this.document.getById( 'cke_' + this.id ); + el.setState( state, 'cke_combo' ); + + state == CKEDITOR.TRISTATE_DISABLED ? + el.setAttribute( 'aria-disabled', true ) : + el.removeAttribute( 'aria-disabled' ); + + this._.state = state; + }, + + getState: function() { + return this._.state; + }, + + enable: function() { + if ( this._.state == CKEDITOR.TRISTATE_DISABLED ) + this.setState( this._.lastState ); + }, + + disable: function() { + if ( this._.state != CKEDITOR.TRISTATE_DISABLED ) { + this._.lastState = this._.state; + this.setState( CKEDITOR.TRISTATE_DISABLED ); + } + } + }, + + /** + * Represents richCombo handler object. + * + * @class CKEDITOR.ui.richCombo.handler + * @singleton + * @extends CKEDITOR.ui.handlerDefinition + */ + statics: { + handler: { + /** + * Transforms a richCombo definition in a {@link CKEDITOR.ui.richCombo} instance. + * + * @param {Object} definition + * @returns {CKEDITOR.ui.richCombo} + */ + create: function( definition ) { + return new CKEDITOR.ui.richCombo( definition ); + } + } + } + } ); + + /** + * @param {String} name + * @param {Object} definition + * @member CKEDITOR.ui + * @todo + */ + CKEDITOR.ui.prototype.addRichCombo = function( name, definition ) { + this.add( name, CKEDITOR.UI_RICHCOMBO, definition ); + }; + +} )(); diff --git a/sources/plugins/save/icons/hidpi/save.png b/sources/plugins/save/icons/hidpi/save.png new file mode 100644 index 0000000000000000000000000000000000000000..fc59f677aa3cb94f888a1c922f126cc8d06d18a4 GIT binary patch literal 1648 zcmV-$29NoPP)yM+Y#hfG$A52jXP5Uy zQj|!VA!D_)U6_K-g#d?!gA@krHV71`VUtd*BEV?^IE@U;jVU;R1@~fO0e0lh1??bC zLqsZEIDjF9h%HgHNLswxTi)KzOp5*Bo<)C1jMlq5a%5GNy2Wo zOE->5jlowUG;1|}F+Gj6+oyrcz#=enO#X{?5BLoDlUrZkxO@LTdr^e%c^>192GVYy z_UiRpzj^7UvDWA)Ns`cuB8;_9o(2&-rKmR=1VJ#<+1vZwC!c=$inQBjqP4Y+Xn#M8 zK;ZiTmzOSF7!&9C=I&iSzIjs}=k;HG?KS)K+#E|6E{wf@?b_wQ_kXWMP%bCM)6YJ; zXsjiUV>-RwF-IRdy&iEKW30`58IzIFIfqG8=4NMSk|e=ei)hV*4?d7@zWtVDFnD4z z3J_?`?Bpb(wK3M>l7zY0*%_0j82|w59AOw@jLH7!`vlD@S3p?sgC5<&Ss%JZ<+W`xdt6{`f`a$zW*3o#NnQVIYh*MREz zCBVY4P$qKczUSd7HKb&Zk02{U-}4T{EmyK|nY@Keo2Fk@@*2=K!EE(N+^K+dmrLrkYsjLKxi~d*@6poBBL{Y@f&JIx&{Ui^n@PsV?jYfls zi3u8w2A<~~0C+?P4grv+DLXqm+`4t^NbTUvnKL#FLzGfK06^rR3@d3c*3wIoqxc4( zmn0Z#vk2y?F3V5^p9(u|UaLiZL~9;?_@QiUZsMF{dVHLj^XG>Y>E8A0-sbKugKFCr zA=H}FPd$ZbZHg30MQch9xV-LrQRMo~rua&g;S%2`XtfyW_W>9?b&C13XZhu+Qvm$$ z!2`yorr1-8{$Mb4^H6JoR;!!?ii=h&4L})d>2^B&@zSNwH}BtfQ50pfK_0epF39_O zAy$Q`485;z&nxGEqMD2`*!)*Y0LJieZ;y*hOD`@hE&X$IbCX`LM=`UJf2b7OR^-~| zy+dHgrn;*lbSMd(bM&+P{o(aXm#+1?-OpB6SATV4VglzJf$uY-H2_-cQnZS4(^?Y- z0iuSBCGh>szEb}oaovd#& zoY^4APHi@+70*B|2#^yenA7^vZs~cYy*P(8hBQs-bUKWVjopd&_p#PypJrYV;F?X= zS62SkUS8I3zxCETaU8FGbo1t-Jontt$uFEcN0O5=PzrhGnIG-bFPu9^KX(>I5gT8B zz4zVrcJ0pf>!c!iFHj0U3;|eQSy^c>FY9-&UVVFacX#dYJ3EUbBO~QV_1~|)DpgN_ z$*HLy9@`3g=SY%dYjSe(&Uf3}r-A=;yIoYHfqb#LdSGu1X}?d}>Cj$Yex2+)@wnGR z;Q4>Q_ufX(Y7I}_;(7RCh~I4TuPayH1pa)Cj_(1h!1JG9xw4^x07Updwg+U@m1h9U z0000bbVXQnWMOn=I%9HWVRU5xGB7bSEig7MGB8vzF*-0eIxsXVFfuwYF!ti6NdN!< zC3HntbYx+4WjbwdWNBu305UK!Gc7PSEiy1vF)=zYH##shD=;!TFffO|9`yhK02y>e uSaefwW^{L9a%BK_cXuvnZfkR6VQ^(GZ*pgw?mQX*0000EB`#%WS*3?=^?>oT<6@{r5fTMH+`J+dKY* zTRrbs#4)Fsq5lBO1ny!c8>{CIE(~gS^TJ(@#7qKG4V@hi7)z|?wkvQjNW};^3cRtJ zdyct)#YBpC&DNC2v}d0!kIjgQ6!g+;Qdn>|FL~|Kix$^DF>KOV9JF%5)@RS2wVh3K zo|c-zjJxp zmBT+>jM;K6WOeAe_3J;{yqDQ<|GnX{58u8WE3xvm-&{~%|K5DIFJJp%!3n97o|7i1 zaLzuv>;~)7EAI|F{meg5w)^hY*I$#otoo9F{r&g-`t|TjCaeYxnOmc_MCmeYj?p_? zw9}*^&?|ARt!Bjf>pbm;`C`XC5mc$b|X3j42^!@|{3;q;p zQ>lpinR(g8$%zH2dih1^ Uv)|cB0TnTLy85}Sb4q9e06jA>YXATM literal 0 HcmV?d00001 diff --git a/sources/plugins/save/lang/af.js b/sources/plugins/save/lang/af.js new file mode 100644 index 00000000..8f019845 --- /dev/null +++ b/sources/plugins/save/lang/af.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'af', { + toolbar: 'Bewaar' +} ); diff --git a/sources/plugins/save/lang/ar.js b/sources/plugins/save/lang/ar.js new file mode 100644 index 00000000..7b911a61 --- /dev/null +++ b/sources/plugins/save/lang/ar.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'ar', { + toolbar: 'حفظ' +} ); diff --git a/sources/plugins/save/lang/bg.js b/sources/plugins/save/lang/bg.js new file mode 100644 index 00000000..980170c1 --- /dev/null +++ b/sources/plugins/save/lang/bg.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'bg', { + toolbar: 'Запис' +} ); diff --git a/sources/plugins/save/lang/bn.js b/sources/plugins/save/lang/bn.js new file mode 100644 index 00000000..aeaf0616 --- /dev/null +++ b/sources/plugins/save/lang/bn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'bn', { + toolbar: 'সংরক্ষন কর' +} ); diff --git a/sources/plugins/save/lang/bs.js b/sources/plugins/save/lang/bs.js new file mode 100644 index 00000000..9823a2bd --- /dev/null +++ b/sources/plugins/save/lang/bs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'bs', { + toolbar: 'Snimi' +} ); diff --git a/sources/plugins/save/lang/ca.js b/sources/plugins/save/lang/ca.js new file mode 100644 index 00000000..9938a2e5 --- /dev/null +++ b/sources/plugins/save/lang/ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'ca', { + toolbar: 'Desa' +} ); diff --git a/sources/plugins/save/lang/cs.js b/sources/plugins/save/lang/cs.js new file mode 100644 index 00000000..597db8d7 --- /dev/null +++ b/sources/plugins/save/lang/cs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'cs', { + toolbar: 'Uložit' +} ); diff --git a/sources/plugins/save/lang/cy.js b/sources/plugins/save/lang/cy.js new file mode 100644 index 00000000..64be9138 --- /dev/null +++ b/sources/plugins/save/lang/cy.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'cy', { + toolbar: 'Cadw' +} ); diff --git a/sources/plugins/save/lang/da.js b/sources/plugins/save/lang/da.js new file mode 100644 index 00000000..6586d44d --- /dev/null +++ b/sources/plugins/save/lang/da.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'da', { + toolbar: 'Gem' +} ); diff --git a/sources/plugins/save/lang/de.js b/sources/plugins/save/lang/de.js new file mode 100644 index 00000000..14379b2c --- /dev/null +++ b/sources/plugins/save/lang/de.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'de', { + toolbar: 'Speichern' +} ); diff --git a/sources/plugins/save/lang/el.js b/sources/plugins/save/lang/el.js new file mode 100644 index 00000000..dea5622c --- /dev/null +++ b/sources/plugins/save/lang/el.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'el', { + toolbar: 'Αποθήκευση' +} ); diff --git a/sources/plugins/save/lang/en-au.js b/sources/plugins/save/lang/en-au.js new file mode 100644 index 00000000..f05aa6c2 --- /dev/null +++ b/sources/plugins/save/lang/en-au.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'en-au', { + toolbar: 'Save' +} ); diff --git a/sources/plugins/save/lang/en-ca.js b/sources/plugins/save/lang/en-ca.js new file mode 100644 index 00000000..ffa5e8e5 --- /dev/null +++ b/sources/plugins/save/lang/en-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'en-ca', { + toolbar: 'Save' +} ); diff --git a/sources/plugins/save/lang/en-gb.js b/sources/plugins/save/lang/en-gb.js new file mode 100644 index 00000000..bf17d87f --- /dev/null +++ b/sources/plugins/save/lang/en-gb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'en-gb', { + toolbar: 'Save' +} ); diff --git a/sources/plugins/save/lang/en.js b/sources/plugins/save/lang/en.js new file mode 100644 index 00000000..1da76ddc --- /dev/null +++ b/sources/plugins/save/lang/en.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'en', { + toolbar: 'Save' +} ); diff --git a/sources/plugins/save/lang/eo.js b/sources/plugins/save/lang/eo.js new file mode 100644 index 00000000..28ecc6ef --- /dev/null +++ b/sources/plugins/save/lang/eo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'eo', { + toolbar: 'Konservi' +} ); diff --git a/sources/plugins/save/lang/es.js b/sources/plugins/save/lang/es.js new file mode 100644 index 00000000..e71316ab --- /dev/null +++ b/sources/plugins/save/lang/es.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'es', { + toolbar: 'Guardar' +} ); diff --git a/sources/plugins/save/lang/et.js b/sources/plugins/save/lang/et.js new file mode 100644 index 00000000..a5464059 --- /dev/null +++ b/sources/plugins/save/lang/et.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'et', { + toolbar: 'Salvestamine' +} ); diff --git a/sources/plugins/save/lang/eu.js b/sources/plugins/save/lang/eu.js new file mode 100644 index 00000000..fe3a900d --- /dev/null +++ b/sources/plugins/save/lang/eu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'eu', { + toolbar: 'Gorde' +} ); diff --git a/sources/plugins/save/lang/fa.js b/sources/plugins/save/lang/fa.js new file mode 100644 index 00000000..fef1704f --- /dev/null +++ b/sources/plugins/save/lang/fa.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'fa', { + toolbar: 'ذخیره' +} ); diff --git a/sources/plugins/save/lang/fi.js b/sources/plugins/save/lang/fi.js new file mode 100644 index 00000000..288635b6 --- /dev/null +++ b/sources/plugins/save/lang/fi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'fi', { + toolbar: 'Tallenna' +} ); diff --git a/sources/plugins/save/lang/fo.js b/sources/plugins/save/lang/fo.js new file mode 100644 index 00000000..9f813786 --- /dev/null +++ b/sources/plugins/save/lang/fo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'fo', { + toolbar: 'Goym' +} ); diff --git a/sources/plugins/save/lang/fr-ca.js b/sources/plugins/save/lang/fr-ca.js new file mode 100644 index 00000000..2658de99 --- /dev/null +++ b/sources/plugins/save/lang/fr-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'fr-ca', { + toolbar: 'Sauvegarder' +} ); diff --git a/sources/plugins/save/lang/fr.js b/sources/plugins/save/lang/fr.js new file mode 100644 index 00000000..343eb2a3 --- /dev/null +++ b/sources/plugins/save/lang/fr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'fr', { + toolbar: 'Enregistrer' +} ); diff --git a/sources/plugins/save/lang/gl.js b/sources/plugins/save/lang/gl.js new file mode 100644 index 00000000..be320708 --- /dev/null +++ b/sources/plugins/save/lang/gl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'gl', { + toolbar: 'Gardar' +} ); diff --git a/sources/plugins/save/lang/gu.js b/sources/plugins/save/lang/gu.js new file mode 100644 index 00000000..44a2d6ba --- /dev/null +++ b/sources/plugins/save/lang/gu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'gu', { + toolbar: 'સેવ' +} ); diff --git a/sources/plugins/save/lang/he.js b/sources/plugins/save/lang/he.js new file mode 100644 index 00000000..44113764 --- /dev/null +++ b/sources/plugins/save/lang/he.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'he', { + toolbar: 'שמירה' +} ); diff --git a/sources/plugins/save/lang/hi.js b/sources/plugins/save/lang/hi.js new file mode 100644 index 00000000..d68a1e96 --- /dev/null +++ b/sources/plugins/save/lang/hi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'hi', { + toolbar: 'सेव' +} ); diff --git a/sources/plugins/save/lang/hr.js b/sources/plugins/save/lang/hr.js new file mode 100644 index 00000000..92486d6e --- /dev/null +++ b/sources/plugins/save/lang/hr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'hr', { + toolbar: 'Snimi' +} ); diff --git a/sources/plugins/save/lang/hu.js b/sources/plugins/save/lang/hu.js new file mode 100644 index 00000000..7c609f66 --- /dev/null +++ b/sources/plugins/save/lang/hu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'hu', { + toolbar: 'Mentés' +} ); diff --git a/sources/plugins/save/lang/id.js b/sources/plugins/save/lang/id.js new file mode 100644 index 00000000..8f5c6034 --- /dev/null +++ b/sources/plugins/save/lang/id.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'id', { + toolbar: 'Simpan' +} ); diff --git a/sources/plugins/save/lang/is.js b/sources/plugins/save/lang/is.js new file mode 100644 index 00000000..2a6b3dae --- /dev/null +++ b/sources/plugins/save/lang/is.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'is', { + toolbar: 'Vista' +} ); diff --git a/sources/plugins/save/lang/it.js b/sources/plugins/save/lang/it.js new file mode 100644 index 00000000..6181e482 --- /dev/null +++ b/sources/plugins/save/lang/it.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'it', { + toolbar: 'Salva' +} ); diff --git a/sources/plugins/save/lang/ja.js b/sources/plugins/save/lang/ja.js new file mode 100644 index 00000000..6fefc175 --- /dev/null +++ b/sources/plugins/save/lang/ja.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'ja', { + toolbar: '保存' +} ); diff --git a/sources/plugins/save/lang/ka.js b/sources/plugins/save/lang/ka.js new file mode 100644 index 00000000..556c4963 --- /dev/null +++ b/sources/plugins/save/lang/ka.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'ka', { + toolbar: 'ჩაწერა' +} ); diff --git a/sources/plugins/save/lang/km.js b/sources/plugins/save/lang/km.js new file mode 100644 index 00000000..7e43926b --- /dev/null +++ b/sources/plugins/save/lang/km.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'km', { + toolbar: 'រក្សាទុក' +} ); diff --git a/sources/plugins/save/lang/ko.js b/sources/plugins/save/lang/ko.js new file mode 100644 index 00000000..7d2155fd --- /dev/null +++ b/sources/plugins/save/lang/ko.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'ko', { + toolbar: '저장' +} ); diff --git a/sources/plugins/save/lang/ku.js b/sources/plugins/save/lang/ku.js new file mode 100644 index 00000000..428ebbc7 --- /dev/null +++ b/sources/plugins/save/lang/ku.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'ku', { + toolbar: 'پاشکەوتکردن' +} ); diff --git a/sources/plugins/save/lang/lt.js b/sources/plugins/save/lang/lt.js new file mode 100644 index 00000000..6f80d48c --- /dev/null +++ b/sources/plugins/save/lang/lt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'lt', { + toolbar: 'IÅ¡saugoti' +} ); diff --git a/sources/plugins/save/lang/lv.js b/sources/plugins/save/lang/lv.js new file mode 100644 index 00000000..ed763045 --- /dev/null +++ b/sources/plugins/save/lang/lv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'lv', { + toolbar: 'Saglabāt' +} ); diff --git a/sources/plugins/save/lang/mk.js b/sources/plugins/save/lang/mk.js new file mode 100644 index 00000000..61819d31 --- /dev/null +++ b/sources/plugins/save/lang/mk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'mk', { + toolbar: 'Save' // MISSING +} ); diff --git a/sources/plugins/save/lang/mn.js b/sources/plugins/save/lang/mn.js new file mode 100644 index 00000000..ba625c4c --- /dev/null +++ b/sources/plugins/save/lang/mn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'mn', { + toolbar: 'Хадгалах' +} ); diff --git a/sources/plugins/save/lang/ms.js b/sources/plugins/save/lang/ms.js new file mode 100644 index 00000000..4818a8fd --- /dev/null +++ b/sources/plugins/save/lang/ms.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'ms', { + toolbar: 'Simpan' +} ); diff --git a/sources/plugins/save/lang/nb.js b/sources/plugins/save/lang/nb.js new file mode 100644 index 00000000..47158ee9 --- /dev/null +++ b/sources/plugins/save/lang/nb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'nb', { + toolbar: 'Lagre' +} ); diff --git a/sources/plugins/save/lang/nl.js b/sources/plugins/save/lang/nl.js new file mode 100644 index 00000000..9611b028 --- /dev/null +++ b/sources/plugins/save/lang/nl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'nl', { + toolbar: 'Opslaan' +} ); diff --git a/sources/plugins/save/lang/no.js b/sources/plugins/save/lang/no.js new file mode 100644 index 00000000..1a15d996 --- /dev/null +++ b/sources/plugins/save/lang/no.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'no', { + toolbar: 'Lagre' +} ); diff --git a/sources/plugins/save/lang/pl.js b/sources/plugins/save/lang/pl.js new file mode 100644 index 00000000..cb41e863 --- /dev/null +++ b/sources/plugins/save/lang/pl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'pl', { + toolbar: 'Zapisz' +} ); diff --git a/sources/plugins/save/lang/pt-br.js b/sources/plugins/save/lang/pt-br.js new file mode 100644 index 00000000..c78840b2 --- /dev/null +++ b/sources/plugins/save/lang/pt-br.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'pt-br', { + toolbar: 'Salvar' +} ); diff --git a/sources/plugins/save/lang/pt.js b/sources/plugins/save/lang/pt.js new file mode 100644 index 00000000..087b2603 --- /dev/null +++ b/sources/plugins/save/lang/pt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'pt', { + toolbar: 'Guardar' +} ); diff --git a/sources/plugins/save/lang/ro.js b/sources/plugins/save/lang/ro.js new file mode 100644 index 00000000..31cef218 --- /dev/null +++ b/sources/plugins/save/lang/ro.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'ro', { + toolbar: 'Salvează' +} ); diff --git a/sources/plugins/save/lang/ru.js b/sources/plugins/save/lang/ru.js new file mode 100644 index 00000000..19f85cde --- /dev/null +++ b/sources/plugins/save/lang/ru.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'ru', { + toolbar: 'Сохранить' +} ); diff --git a/sources/plugins/save/lang/si.js b/sources/plugins/save/lang/si.js new file mode 100644 index 00000000..ed66b7cd --- /dev/null +++ b/sources/plugins/save/lang/si.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'si', { + toolbar: 'ආරක්ෂා කරන්න' +} ); diff --git a/sources/plugins/save/lang/sk.js b/sources/plugins/save/lang/sk.js new file mode 100644 index 00000000..650be532 --- /dev/null +++ b/sources/plugins/save/lang/sk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'sk', { + toolbar: 'UložiÅ¥' +} ); diff --git a/sources/plugins/save/lang/sl.js b/sources/plugins/save/lang/sl.js new file mode 100644 index 00000000..0ad06fdf --- /dev/null +++ b/sources/plugins/save/lang/sl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'sl', { + toolbar: 'Shrani' +} ); diff --git a/sources/plugins/save/lang/sq.js b/sources/plugins/save/lang/sq.js new file mode 100644 index 00000000..666e8cfa --- /dev/null +++ b/sources/plugins/save/lang/sq.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'sq', { + toolbar: 'Ruaje' +} ); diff --git a/sources/plugins/save/lang/sr-latn.js b/sources/plugins/save/lang/sr-latn.js new file mode 100644 index 00000000..0b6ad39f --- /dev/null +++ b/sources/plugins/save/lang/sr-latn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'sr-latn', { + toolbar: 'Sačuvaj' +} ); diff --git a/sources/plugins/save/lang/sr.js b/sources/plugins/save/lang/sr.js new file mode 100644 index 00000000..c0c4c5e2 --- /dev/null +++ b/sources/plugins/save/lang/sr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'sr', { + toolbar: 'Сачувај' +} ); diff --git a/sources/plugins/save/lang/sv.js b/sources/plugins/save/lang/sv.js new file mode 100644 index 00000000..cf0b9de1 --- /dev/null +++ b/sources/plugins/save/lang/sv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'sv', { + toolbar: 'Spara' +} ); diff --git a/sources/plugins/save/lang/th.js b/sources/plugins/save/lang/th.js new file mode 100644 index 00000000..4f09b831 --- /dev/null +++ b/sources/plugins/save/lang/th.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'th', { + toolbar: 'บันทึก' +} ); diff --git a/sources/plugins/save/lang/tr.js b/sources/plugins/save/lang/tr.js new file mode 100644 index 00000000..faae6d88 --- /dev/null +++ b/sources/plugins/save/lang/tr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'tr', { + toolbar: 'Kaydet' +} ); diff --git a/sources/plugins/save/lang/tt.js b/sources/plugins/save/lang/tt.js new file mode 100644 index 00000000..3a93eb34 --- /dev/null +++ b/sources/plugins/save/lang/tt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'tt', { + toolbar: 'Саклау' +} ); diff --git a/sources/plugins/save/lang/ug.js b/sources/plugins/save/lang/ug.js new file mode 100644 index 00000000..7e919d56 --- /dev/null +++ b/sources/plugins/save/lang/ug.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'ug', { + toolbar: 'ساقلا' +} ); diff --git a/sources/plugins/save/lang/uk.js b/sources/plugins/save/lang/uk.js new file mode 100644 index 00000000..ea3922f7 --- /dev/null +++ b/sources/plugins/save/lang/uk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'uk', { + toolbar: 'Зберегти' +} ); diff --git a/sources/plugins/save/lang/vi.js b/sources/plugins/save/lang/vi.js new file mode 100644 index 00000000..f7c8734c --- /dev/null +++ b/sources/plugins/save/lang/vi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'vi', { + toolbar: 'LÆ°u' +} ); diff --git a/sources/plugins/save/lang/zh-cn.js b/sources/plugins/save/lang/zh-cn.js new file mode 100644 index 00000000..e2950e34 --- /dev/null +++ b/sources/plugins/save/lang/zh-cn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'zh-cn', { + toolbar: '保存' +} ); diff --git a/sources/plugins/save/lang/zh.js b/sources/plugins/save/lang/zh.js new file mode 100644 index 00000000..e9bf39c1 --- /dev/null +++ b/sources/plugins/save/lang/zh.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'save', 'zh', { + toolbar: '儲存' +} ); diff --git a/sources/plugins/save/plugin.js b/sources/plugins/save/plugin.js new file mode 100644 index 00000000..54ac3acd --- /dev/null +++ b/sources/plugins/save/plugin.js @@ -0,0 +1,67 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview The Save plugin. + */ + +( function() { + var saveCmd = { + readOnly: 1, + + exec: function( editor ) { + if ( editor.fire( 'save' ) ) { + var $form = editor.element.$.form; + + if ( $form ) { + try { + $form.submit(); + } catch ( e ) { + // If there's a button named "submit" then the form.submit + // function is masked and can't be called in IE/FF, so we + // call the click() method of that button. + if ( $form.submit.click ) + $form.submit.click(); + } + } + } + } + }; + + var pluginName = 'save'; + + // Register a plugin named "save". + CKEDITOR.plugins.add( pluginName, { + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'save', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + init: function( editor ) { + // Save plugin is for replace mode only. + if ( editor.elementMode != CKEDITOR.ELEMENT_MODE_REPLACE ) + return; + + var command = editor.addCommand( pluginName, saveCmd ); + command.modes = { wysiwyg: !!( editor.element.$.form ) }; + + editor.ui.addButton && editor.ui.addButton( 'Save', { + label: editor.lang.save.toolbar, + command: pluginName, + toolbar: 'document,10' + } ); + } + } ); +} )(); + +/** + * Fired when the user clicks the Save button on the editor toolbar. + * This event allows to overwrite the default Save button behavior. + * + * @since 4.2 + * @event save + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + */ diff --git a/sources/plugins/scayt/CHANGELOG.md b/sources/plugins/scayt/CHANGELOG.md new file mode 100644 index 00000000..ac33d966 --- /dev/null +++ b/sources/plugins/scayt/CHANGELOG.md @@ -0,0 +1,20 @@ +SCAYT plugin for CKEditor 4 Changelog +==================== +### CKEditor 4.5.6 + +New Features: +* CKEditor [language adddon](http://ckeditor.com/addon/language) support +* CKEditor [placeholder adddon](http://ckeditor.com/addon/placeholder) support +* Drag and Drop support +* *Experimental* GRAYT functionality http://www.webspellchecker.net/samples/scayt-ckeditor-plugin.html#25 + +Fixed issues: +* [#98](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/98) SCAYT Affects Dialog Double Click. Fixed in SCAYT Core. +* [#102](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/102) SCAYT Core performance enhancements +* [#104](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/104) SCAYT's spans leak into the clipboard and after pasting +* [#105](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/105) Javascript error fired in case of multiple instances of CKEditor in one page +* [#107](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/107) SCAYT should not check non-editable parts of content +* [#108](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/108) Latest SCAYT copies id of editor element to the iframe +* SCAYT stops working when CKEditor Undo plug-in not enabled +* Issue with pasting SCAYT markup in CKEditor +* SCAYT stops working after pressing Cancel button in WSC dialog diff --git a/sources/plugins/scayt/LICENSE.md b/sources/plugins/scayt/LICENSE.md new file mode 100644 index 00000000..844ab4de --- /dev/null +++ b/sources/plugins/scayt/LICENSE.md @@ -0,0 +1,28 @@ +Software License Agreement +========================== + +**CKEditor SCAYT Plugin** +Copyright © 2012, [CKSource](http://cksource.com) - Frederico Knabben. All rights reserved. + +Licensed under the terms of any of the following licenses at your choice: + +* GNU General Public License Version 2 or later (the "GPL"): + http://www.gnu.org/licenses/gpl.html + +* GNU Lesser General Public License Version 2.1 or later (the "LGPL"): + http://www.gnu.org/licenses/lgpl.html + +* Mozilla Public License Version 1.1 or later (the "MPL"): + http://www.mozilla.org/MPL/MPL-1.1.html + +You are not required to, but if you want to explicitly declare the license you have chosen to be bound to when using, reproducing, modifying and distributing this software, just include a text file titled "legal.txt" in your version of this software, indicating your license choice. + +Sources of Intellectual Property Included in this plugin +-------------------------------------------------------- + +Where not otherwise indicated, all plugin content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, the plugin will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/sources/plugins/scayt/README.md b/sources/plugins/scayt/README.md new file mode 100644 index 00000000..1231d91e --- /dev/null +++ b/sources/plugins/scayt/README.md @@ -0,0 +1,25 @@ +CKEditor SCAYT Plugin +===================== + +This plugin brings Spell Check As You Type (SCAYT) into up to CKEditor 4+. + +SCAYT is a "installation-less", using the web-services of [WebSpellChecker.net](http://www.webspellchecker.net/). It's an out of the box solution. + +Installation +------------ + +1. Clone/copy this repository contents in a new "plugins/scayt" folder in your CKEditor installation. +2. Enable the "scayt" plugin in the CKEditor configuration file (config.js): + + config.extraPlugins = 'scayt'; + +That's all. SCAYT will appear on the editor toolbar and will be ready to use. + +License +------- + +Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html). + +See LICENSE.md for more information. + +Developed in cooperation with [WebSpellChecker.net](http://www.webspellchecker.net/). diff --git a/sources/plugins/scayt/dialogs/options.js b/sources/plugins/scayt/dialogs/options.js new file mode 100644 index 00000000..c26b3506 --- /dev/null +++ b/sources/plugins/scayt/dialogs/options.js @@ -0,0 +1,573 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dialog.add( 'scaytDialog', function( editor ) { + var scayt_instance = editor.scayt; + + var aboutTabDefinition = '

    ' + + '

    ' + scayt_instance.getLocal('version') + scayt_instance.getVersion() + '

    ' + + '

    ' + scayt_instance.getLocal('text_copyrights') + '

    '; + + var doc = CKEDITOR.document; + + var optionGenerator = function() { + var scayt_instance_ = editor.scayt, + applicationConfig = scayt_instance.getApplicationConfig(), + optionArrayUiCheckboxes = [], + optionLocalizationList = { + "ignore-all-caps-words" : "label_allCaps", + "ignore-domain-names" : "label_ignoreDomainNames", + "ignore-words-with-mixed-cases" : "label_mixedCase", + "ignore-words-with-numbers" : "label_mixedWithDigits" + }; + + for(var option in applicationConfig) { + + var checkboxConfig = { + type: "checkbox" + }; + + checkboxConfig.id = option; + checkboxConfig.label = scayt_instance.getLocal(optionLocalizationList[option]); + + optionArrayUiCheckboxes.push(checkboxConfig); + } + + return optionArrayUiCheckboxes; + }; + + var languageModelState = { + isChanged : function() { + return (this.newLang === null || this.currentLang === this.newLang) ? false : true; + }, + currentLang: scayt_instance.getLang(), + newLang: null, + reset: function() { + this.currentLang = scayt_instance.getLang(); + this.newLang = null; + }, + id: 'lang' + }; + + var generateDialogTabs = function(tabsList, editor) { + var tabs = [], + uiTabs = editor.config.scayt_uiTabs; + + if(!uiTabs) { + return tabsList; + } else { + for(var i in uiTabs) { + (uiTabs[i] == 1) && tabs.push(tabsList[i]); + } + + tabs.push(tabsList[tabsList.length - 1]); + } + + return tabs; + }; + + var dialogTabs = [{ + id : 'options', + label : scayt_instance.getLocal('tab_options'), + onShow: function() { + // console.log("tab show"); + }, + elements : [ + { + type: 'vbox', + id: 'scaytOptions', + children: optionGenerator(), + onShow: function() { + var optionsTab = this.getChild(), + scayt_instance = editor.scayt; + for(var i = 0; i < this.getChild().length; i++) { + this.getChild()[i].setValue(scayt_instance.getApplicationConfig()[this.getChild()[i].id]); + } + + } + } + + ] + }, + { + id : 'langs', + label : scayt_instance.getLocal('tab_languages'), + elements : [ + { + id: "leftLangColumn", + type: 'vbox', + align: 'left', + widths: ['100'], + children: [ + { + type: 'html', + id: 'langBox', + style: 'overflow: hidden; white-space: normal;margin-bottom:15px;', + html: '
    ', + onShow: function() { + var scayt_instance = editor.scayt; + var lang = scayt_instance.getLang(), + prefix_id = "scaytLang_", + radio = doc.getById(prefix_id + editor.name + '_' + lang); + + radio.$.checked = true; + } + }, + { + type: 'html', + id: 'graytLanguagesHint', + html: '
    - This languages are supported by Grammar As You Type(GRAYT).
    ', + onShow: function() { + var graytLanguagesHint = doc.getById(editor.name + 'graytLanguagesHint'); + + if (!editor.config.grayt_autoStartup) { + graytLanguagesHint.$.style.display = 'none'; + } + } + } + ] + } + ] + }, + { + id : 'dictionaries', + label : scayt_instance.getLocal('tab_dictionaries'), + elements : [ + { + type: 'vbox', + id: 'rightCol_col__left', + children: [ + { + type: 'html', + id: 'dictionaryNote', + html: '' + }, + { + type: 'text', + id: 'dictionaryName', + label: scayt_instance.getLocal('label_fieldNameDic') || 'Dictionary name', + onShow: function(data) { + var dialog = data.sender, + scayt_instance = editor.scayt; + + // IE7 specific fix + setTimeout(function() { + // clear dictionaryNote field + dialog.getContentElement("dictionaries", "dictionaryNote").getElement().setText(''); + + // restore/clear dictionaryName field + if(scayt_instance.getUserDictionaryName() != null && scayt_instance.getUserDictionaryName() != '') { + dialog.getContentElement("dictionaries", "dictionaryName").setValue(scayt_instance.getUserDictionaryName()); + } + }, 0); + } + }, + { + type: 'hbox', + id: 'notExistDic', + align: 'left', + style: 'width:auto;', + widths: [ '50%', '50%' ], + children: [ + { + type: 'button', + id: 'createDic', + label: scayt_instance.getLocal('btn_createDic'), + title: scayt_instance.getLocal('btn_createDic'), + onClick: function() { + var dialog = this.getDialog(), + self = dialogDefinition, + scayt_instance = editor.scayt, + name = dialog.getContentElement("dictionaries", "dictionaryName").getValue(); + + scayt_instance.createUserDictionary(name, function(response) { + if(!response.error) { + self.toggleDictionaryButtons.call(dialog, true); + } + response.dialog = dialog; + response.command = "create"; + response.name = name; + editor.fire("scaytUserDictionaryAction", response); + }, function(error) { + error.dialog = dialog; + error.command = "create"; + error.name = name; + editor.fire("scaytUserDictionaryActionError", error); + }); + } + }, + { + type: 'button', + id: 'restoreDic', + label: scayt_instance.getLocal('btn_restoreDic'), + title: scayt_instance.getLocal('btn_restoreDic'), + onClick: function() { + var dialog = this.getDialog(), + scayt_instance = editor.scayt, + self = dialogDefinition, + name = dialog.getContentElement("dictionaries", "dictionaryName").getValue(); + + scayt_instance.restoreUserDictionary(name, function(response) { + response.dialog = dialog; + if(!response.error) { + self.toggleDictionaryButtons.call(dialog, true); + } + response.command = "restore"; + response.name = name; + editor.fire("scaytUserDictionaryAction", response); + }, function(error) { + error.dialog = dialog; + error.command = "restore"; + error.name = name; + editor.fire("scaytUserDictionaryActionError", error); + }); + } + } + ] + }, + { + type: 'hbox', + id: 'existDic', + align: 'left', + style: 'width:auto;', + widths: [ '50%', '50%' ], + children: [ + { + type: 'button', + id: 'removeDic', + label: scayt_instance.getLocal('btn_deleteDic'), + title: scayt_instance.getLocal('btn_deleteDic'), + onClick: function() { + var dialog = this.getDialog(), + scayt_instance = editor.scayt, + self = dialogDefinition, + dictionaryNameField = dialog.getContentElement("dictionaries", "dictionaryName"), + name = dictionaryNameField.getValue(); + + scayt_instance.removeUserDictionary(name, function(response) { + dictionaryNameField.setValue(""); + if(!response.error) { + self.toggleDictionaryButtons.call(dialog, false); + } + response.dialog = dialog; + response.command = "remove"; + response.name = name; + editor.fire("scaytUserDictionaryAction", response); + }, function(error) { + error.dialog = dialog; + error.command = "remove"; + error.name = name; + editor.fire("scaytUserDictionaryActionError", error); + }); + } + }, + { + type: 'button', + id: 'renameDic', + label: scayt_instance.getLocal('btn_renameDic'), + title: scayt_instance.getLocal('btn_renameDic'), + onClick: function() { + var dialog = this.getDialog(), + scayt_instance = editor.scayt, + name = dialog.getContentElement("dictionaries", "dictionaryName").getValue(); + + scayt_instance.renameUserDictionary(name, function(response) { + response.dialog = dialog; + response.command = "rename"; + response.name = name; + editor.fire("scaytUserDictionaryAction", response); + }, function(error) { + error.dialog = dialog; + error.command = "rename"; + error.name = name; + editor.fire("scaytUserDictionaryActionError", error); + }); + } + } + ] + }, + { + type: 'html', + id: 'dicInfo', + html: '
    ' + scayt_instance.getLocal('text_descriptionDic') + '
    ' + } + ] + } + ] + }, + { + id : 'about', + label : scayt_instance.getLocal('tab_about'), + elements : [ + { + type : 'html', + id : 'about', + style : 'margin: 5px 5px;', + html : '
    ' + + aboutTabDefinition + + '
    ' + } + ] + }]; + + editor.on("scaytUserDictionaryAction", function(event) { + var UILib = SCAYT.prototype.UILib, + dialog = event.data.dialog, + dictionaryNote = dialog.getContentElement("dictionaries", "dictionaryNote").getElement(), + scayt_instance = event.editor.scayt, + messageTemplate; + + if(event.data.error === undefined) { + + // success message + messageTemplate = scayt_instance.getLocal("message_success_" + event.data.command + "Dic"); + messageTemplate = messageTemplate.replace('%s', event.data.name); + dictionaryNote.setText(messageTemplate); + UILib.css(dictionaryNote.$, {color: 'blue'}); + } else { + + // error message + if(event.data.name === '') { + + // empty dictionary name + dictionaryNote.setText(scayt_instance.getLocal('message_info_emptyDic')); + } else { + messageTemplate = scayt_instance.getLocal("message_error_" + event.data.command + "Dic"); + messageTemplate = messageTemplate.replace('%s', event.data.name); + dictionaryNote.setText(messageTemplate); + } + UILib.css(dictionaryNote.$, {color: 'red'}); + + if(scayt_instance.getUserDictionaryName() != null && scayt_instance.getUserDictionaryName() != '') { + dialog.getContentElement("dictionaries", "dictionaryName").setValue(scayt_instance.getUserDictionaryName()); + } else { + dialog.getContentElement("dictionaries", "dictionaryName").setValue(""); + } + } + }); + + editor.on("scaytUserDictionaryActionError", function(event) { + var UILib = SCAYT.prototype.UILib, + dialog = event.data.dialog, + dictionaryNote = dialog.getContentElement("dictionaries", "dictionaryNote").getElement(), + scayt_instance = event.editor.scayt, + messageTemplate; + + if(event.data.name === '') { + + // empty dictionary name + dictionaryNote.setText(scayt_instance.getLocal('message_info_emptyDic')); + } else { + messageTemplate = scayt_instance.getLocal("message_error_" + event.data.command + "Dic"); + messageTemplate = messageTemplate.replace('%s', event.data.name); + dictionaryNote.setText(messageTemplate); + } + UILib.css(dictionaryNote.$, {color: 'red'}); + + + if(scayt_instance.getUserDictionaryName() != null && scayt_instance.getUserDictionaryName() != '') { + dialog.getContentElement("dictionaries", "dictionaryName").setValue(scayt_instance.getUserDictionaryName()); + } else { + dialog.getContentElement("dictionaries", "dictionaryName").setValue(""); + } + + }); + + var plugin = CKEDITOR.plugins.scayt; + + var dialogDefinition = { + title: scayt_instance.getLocal('text_title'), + resizable: CKEDITOR.DIALOG_RESIZE_BOTH, + minWidth: 340, + minHeight: 260, + onLoad: function() { + if(editor.config.scayt_uiTabs[1] == 0) { + return; + } + + var dialog = this, + self = dialogDefinition, + langBoxes = self.getLangBoxes.call(dialog); + + langBoxes.getParent().setStyle("white-space", "normal"); + + //dialog.data = editor.fire( 'scaytDialog', {} ); + self.renderLangList(langBoxes); + + var scayt_instance = editor.scayt; + + this.definition.minWidth = this.getSize().width; + this.resize(this.definition.minWidth, this.definition.minHeight); + }, + onCancel: function() { + languageModelState.reset(); + }, + onHide: function() { + editor.unlockSelection(); + }, + onShow: function() { + editor.fire("scaytDialogShown", this); + + if(editor.config.scayt_uiTabs[2] == 0) { + return; + } + + var scayt_instance = editor.scayt, + self = dialogDefinition, + dialog = this, + dictionaryNameField = dialog.getContentElement("dictionaries", "dictionaryName"), + existance = dialog.getContentElement("dictionaries", "existDic").getElement().getParent(), + notExistance = dialog.getContentElement("dictionaries", "notExistDic").getElement().getParent(); + + existance.hide(); + notExistance.hide(); + + if(scayt_instance.getUserDictionaryName() != null && scayt_instance.getUserDictionaryName() != '') { + dialog.getContentElement("dictionaries", "dictionaryName").setValue(scayt_instance.getUserDictionaryName()); + existance.show(); + } else { + dictionaryNameField.setValue(""); + notExistance.show(); + } + }, + onOk: function() { + var dialog = this, + self = dialogDefinition, + scayt_instance = editor.scayt, + scaytOptions = dialog.getContentElement("options", "scaytOptions"), + changedOptions = self.getChangedOption.call(dialog); + + scayt_instance.commitOption({ changedOptions: changedOptions }); + }, + toggleDictionaryButtons: function(exist) { + var existance = this.getContentElement("dictionaries", "existDic").getElement().getParent(), + notExistance = this.getContentElement("dictionaries", "notExistDic").getElement().getParent(); + + if(exist) { + existance.show(); + notExistance.hide(); + } else { + existance.hide(); + notExistance.show(); + } + + }, + getChangedOption: function() { + var changedOption = {}; + + if(editor.config.scayt_uiTabs[0] == 1) { + var dialog = this, + scaytOptions = dialog.getContentElement("options", "scaytOptions").getChild(); + + for(var i = 0; i < scaytOptions.length; i++) { + if(scaytOptions[i].isChanged()) { + changedOption[scaytOptions[i].id] = scaytOptions[i].getValue(); + } + } + } + + if(languageModelState.isChanged()) { + changedOption[languageModelState.id] = editor.config.scayt_sLang = languageModelState.currentLang = languageModelState.newLang; + } + + return changedOption; + }, + buildRadioInputs: function(key, value, isSupportedByGrayt) { + var divContainer = new CKEDITOR.dom.element( 'div' ), + doc = CKEDITOR.document, + id = "scaytLang_" + editor.name + '_' + value, + radio = CKEDITOR.dom.element.createFromHtml( '' ), + + radioLabel = new CKEDITOR.dom.element( 'label' ), + scayt_instance = editor.scayt; + + divContainer.setStyles({ + "white-space": "normal", + 'position': 'relative', + 'padding-bottom': '2px' + }); + + radio.on( 'click', function(data) { + languageModelState.newLang = data.sender.getValue(); + }); + + radioLabel.appendText(key); + radioLabel.setAttribute("for", id); + + if(isSupportedByGrayt && editor.config.grayt_autoStartup) { + radioLabel.setStyles({ + 'color': '#02b620' + }); + } + + divContainer.append(radio); + divContainer.append(radioLabel); + + if(value === scayt_instance.getLang()) { + radio.setAttribute("checked", true); + radio.setAttribute('defaultChecked', 'defaultChecked'); + } + + return divContainer; + }, + renderLangList: function(langBoxes) { + var dialog = this, + leftCol = langBoxes.find('#left-col-' + editor.name).getItem(0), + rightCol = langBoxes.find('#right-col-' + editor.name).getItem(0), + scaytLangList = scayt_instance.getScaytLangList(), + graytLangList = scayt_instance.getGraytLangList(), + mergedLangList = {}, + sortable = [], + counter = 0, + isSupportedByGrayt = false, + half, lang; + + for(lang in scaytLangList.ltr) { + mergedLangList[lang] = scaytLangList.ltr[lang]; + } + + for(lang in scaytLangList.rtl) { + mergedLangList[lang] = scaytLangList.rtl[lang]; + } + + // sort alphabetically lang list + for(lang in mergedLangList) { + sortable.push([lang, mergedLangList[lang]]); + } + sortable.sort(function(a, b) { + var result = 0; + if(a[1] > b[1]) { + result = 1; + } else if(a[1] < b[1]) { + result = -1; + } + return result; + }); + mergedLangList = {}; + for(var i = 0; i < sortable.length; i++) { + mergedLangList[sortable[i][0]] = sortable[i][1]; + } + + half = Math.round(sortable.length / 2); + + for(lang in mergedLangList) { + counter++; + isSupportedByGrayt = (lang in graytLangList.ltr) || (lang in graytLangList.rtl); + dialog.buildRadioInputs(mergedLangList[lang], lang, isSupportedByGrayt).appendTo(counter <= half ? leftCol : rightCol); + } + }, + getLangBoxes: function() { + var dialog = this, + langboxes = dialog.getContentElement("langs", "langBox").getElement(); + + return langboxes; + }, + contents: generateDialogTabs(dialogTabs, editor) + }; + + return dialogDefinition; +}); diff --git a/sources/plugins/scayt/dialogs/toolbar.css b/sources/plugins/scayt/dialogs/toolbar.css new file mode 100644 index 00000000..ecabdac9 --- /dev/null +++ b/sources/plugins/scayt/dialogs/toolbar.css @@ -0,0 +1,71 @@ +a +{ + text-decoration:none; + padding: 2px 4px 4px 6px; + display : block; + border-width: 1px; + border-style: solid; + margin : 0px; +} + +a.cke_scayt_toogle:hover, +a.cke_scayt_toogle:focus, +a.cke_scayt_toogle:active +{ + border-color: #316ac5; + background-color: #dff1ff; + color : #000; + cursor: pointer; + margin : 0px; +} +a.cke_scayt_toogle { + color : #316ac5; + border-color: #fff; +} +.scayt_enabled a.cke_scayt_item { + color : #316ac5; + border-color: #fff; + margin : 0px; +} +.scayt_disabled a.cke_scayt_item { + color : gray; + border-color : #fff; +} +.scayt_enabled a.cke_scayt_item:hover, +.scayt_enabled a.cke_scayt_item:focus, +.scayt_enabled a.cke_scayt_item:active +{ + border-color: #316ac5; + background-color: #dff1ff; + color : #000; + cursor: pointer; +} +.scayt_disabled a.cke_scayt_item:hover, +.scayt_disabled a.cke_scayt_item:focus, +.scayt_disabled a.cke_scayt_item:active +{ + border-color: gray; + background-color: #dff1ff; + color : gray; + cursor: no-drop; +} +.cke_scayt_set_on, .cke_scayt_set_off +{ + display: none; +} +.scayt_enabled .cke_scayt_set_on +{ + display: none; +} +.scayt_disabled .cke_scayt_set_on +{ + display: inline; +} +.scayt_disabled .cke_scayt_set_off +{ + display: none; +} +.scayt_enabled .cke_scayt_set_off +{ + display: inline; +} diff --git a/sources/plugins/scayt/icons/hidpi/scayt.png b/sources/plugins/scayt/icons/hidpi/scayt.png new file mode 100644 index 0000000000000000000000000000000000000000..58a9f4c1328de5c5c9d05e61878e9860cd8a6399 GIT binary patch literal 2816 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 S?mQX*0000t}QT literal 0 HcmV?d00001 diff --git a/sources/plugins/scayt/icons/scayt.png b/sources/plugins/scayt/icons/scayt.png new file mode 100644 index 0000000000000000000000000000000000000000..701ceee69ffd031218ea8100f52256d433b94db5 GIT binary patch literal 839 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|iQ-Y_9V~EA+)XAs)ZU+do?cXRXBVV&5he=R+$-5n%8&p@V(mS!q zzj0OEy(Rq&{ue^^XL~4c<@{#Q$ja8^7UM{CNJyS6<1elfm?5q__w)REH{<{I?tT6J zA8q*We`hQ>$N1p4-Mr_4p`zz3SFMuztoHH1_u6I4mv=svXs|iYxZ#=*3*+Cq`MY;p zpW39t|DiUabV@E&A&OcPk*wv@eQ^~=23bSvUUBcTERkw z*RNmuBn1ZtpRZVT>-?rSnJq_;x;C&Kc=amFY@sW2LTaiib3|O6TrvYcKR=6-ktK<`Z`h=R^4LPI6dk2@86FeJ!(3b@IhrohXIeeQeKF{=}jjEvlv1{1ziQNMfDi6 zI5s?=qwIUx(9$=Up=*)E*4r~?&z6pU{oBsi*!ax3b3(3yF|o0RA-mSC`Wm(NS;*A1 z&6Y2n7Ot8zckbUgB@ci7lJfKS54@`6Iq73%My{b?=>lb?%H4O%Zr{FbAF|cL-u`%X zO^u9pb`N7lME3Ew%)Ek?l5G#Cm+h8~%H}sSH@9c*wK+fE#b?rz4c9K^mxHRKF1HdT>SCj#S068|x$w5Eo-ulF-1>mfri*p$i5(p!J%;mLRKzEmHykPalbe~j zGOx$-McMBCjr@D#{N3x7ByLWAZn;WpuHW+y&z?QIdh+DS@`j&3e`<6sYTmndul<4F zCsPCuO6ze&PGfxY?#&w+pd~l5w)(8TYIN<^;lF?XvQ&J}H)>GvY+4l*D%yOop|zEj z|HiEwH!2u6?A|?_A-}(`&xC`i=Dxf-^B>l#+?0;qrIUMs2~f4fHKHUXu_VKd4b7#dj_8(SHhY8x0@85n%HA#8=BAvZrIGp!Q0hQ`*_Z9ol@ARB`7 r(@M${i&7cN%ggmL^RkPR6AM!H@{7`Ezq647Dq`?-^>bP0l+XkKZ;E0; literal 0 HcmV?d00001 diff --git a/sources/plugins/scayt/lang/af.js b/sources/plugins/scayt/lang/af.js new file mode 100644 index 00000000..57e54237 --- /dev/null +++ b/sources/plugins/scayt/lang/af.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'af', { + btn_about: 'SCAYT info', + btn_dictionaries: 'Woordeboeke', + btn_disable: 'SCAYT af', + btn_enable: 'SCAYT aan', + btn_langs:'Tale', + btn_options: 'Opsies', + text_title: 'Speltoets terwyl u tik' +}); diff --git a/sources/plugins/scayt/lang/ar.js b/sources/plugins/scayt/lang/ar.js new file mode 100644 index 00000000..d7a5cace --- /dev/null +++ b/sources/plugins/scayt/lang/ar.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'ar', { + btn_about: 'عن SCAYT', + btn_dictionaries: 'قواميس', + btn_disable: 'تعطيل SCAYT', + btn_enable: 'تفعيل SCAYT', + btn_langs:'لغات', + btn_options: 'خيارات', + text_title: 'تدقيق إملائي أثناء الكتابة' +}); diff --git a/sources/plugins/scayt/lang/bg.js b/sources/plugins/scayt/lang/bg.js new file mode 100644 index 00000000..550e82f2 --- /dev/null +++ b/sources/plugins/scayt/lang/bg.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'bg', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Речници', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/bn.js b/sources/plugins/scayt/lang/bn.js new file mode 100644 index 00000000..f0398d8c --- /dev/null +++ b/sources/plugins/scayt/lang/bn.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'bn', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/bs.js b/sources/plugins/scayt/lang/bs.js new file mode 100644 index 00000000..268fab28 --- /dev/null +++ b/sources/plugins/scayt/lang/bs.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'bs', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/ca.js b/sources/plugins/scayt/lang/ca.js new file mode 100644 index 00000000..798cd0f3 --- /dev/null +++ b/sources/plugins/scayt/lang/ca.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'ca', { + btn_about: 'Quant a l\'SCAYT', + btn_dictionaries: 'Diccionaris', + btn_disable: 'Deshabilita SCAYT', + btn_enable: 'Habilitat l\'SCAYT', + btn_langs:'Idiomes', + btn_options: 'Opcions', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/cs.js b/sources/plugins/scayt/lang/cs.js new file mode 100644 index 00000000..a0ec6141 --- /dev/null +++ b/sources/plugins/scayt/lang/cs.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'cs', { + btn_about: 'O aplikaci SCAYT', + btn_dictionaries: 'Slovníky', + btn_disable: 'Vypnout SCAYT', + btn_enable: 'Zapnout SCAYT', + btn_langs:'Jazyky', + btn_options: 'Nastavení', + text_title: 'Kontrola pravopisu během psaní (SCAYT)' +}); diff --git a/sources/plugins/scayt/lang/cy.js b/sources/plugins/scayt/lang/cy.js new file mode 100644 index 00000000..b94d6c31 --- /dev/null +++ b/sources/plugins/scayt/lang/cy.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'cy', { + btn_about: 'Ynghylch SCAYT', + btn_dictionaries: 'Geiriaduron', + btn_disable: 'Analluogi SCAYT', + btn_enable: 'Galluogi SCAYT', + btn_langs:'Ieithoedd', + btn_options: 'Opsiynau', + text_title: 'Gwirio\'r Sillafu Wrth Deipio' +}); diff --git a/sources/plugins/scayt/lang/da.js b/sources/plugins/scayt/lang/da.js new file mode 100644 index 00000000..de05a38a --- /dev/null +++ b/sources/plugins/scayt/lang/da.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'da', { + btn_about: 'Om SCAYT', + btn_dictionaries: 'Ordbøger', + btn_disable: 'Deaktivér SCAYT', + btn_enable: 'Aktivér SCAYT', + btn_langs:'Sprog', + btn_options: 'Indstillinger', + text_title: 'Stavekontrol mens du skriver' +}); diff --git a/sources/plugins/scayt/lang/de.js b/sources/plugins/scayt/lang/de.js new file mode 100644 index 00000000..1b68c7b7 --- /dev/null +++ b/sources/plugins/scayt/lang/de.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'de', { + btn_about: 'Über SCAYT', + btn_dictionaries: 'Wörterbücher', + btn_disable: 'SCAYT ausschalten', + btn_enable: 'SCAYT einschalten', + btn_langs:'Sprachen', + btn_options: 'Optionen', + text_title: 'Rechtschreibprüfung während der Texteingabe (SCAYT)' +}); diff --git a/sources/plugins/scayt/lang/el.js b/sources/plugins/scayt/lang/el.js new file mode 100644 index 00000000..0bfe6209 --- /dev/null +++ b/sources/plugins/scayt/lang/el.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'el', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Λεξικά', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Γλώσσες', + btn_options: 'Επιλογές', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/en-au.js b/sources/plugins/scayt/lang/en-au.js new file mode 100644 index 00000000..f86d0db6 --- /dev/null +++ b/sources/plugins/scayt/lang/en-au.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'en-au', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/en-ca.js b/sources/plugins/scayt/lang/en-ca.js new file mode 100644 index 00000000..fa67a845 --- /dev/null +++ b/sources/plugins/scayt/lang/en-ca.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'en-ca', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/en-gb.js b/sources/plugins/scayt/lang/en-gb.js new file mode 100644 index 00000000..53923dfc --- /dev/null +++ b/sources/plugins/scayt/lang/en-gb.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'en-gb', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/en.js b/sources/plugins/scayt/lang/en.js new file mode 100644 index 00000000..a9fb9047 --- /dev/null +++ b/sources/plugins/scayt/lang/en.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'en', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/eo.js b/sources/plugins/scayt/lang/eo.js new file mode 100644 index 00000000..f539e031 --- /dev/null +++ b/sources/plugins/scayt/lang/eo.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'eo', { + btn_about: 'Pri OKDVT', + btn_dictionaries: 'Vortaroj', + btn_disable: 'Malebligi OKDVT', + btn_enable: 'Ebligi OKDVT', + btn_langs:'Lingvoj', + btn_options: 'Opcioj', + text_title: 'OrtografiKontrolado Dum Vi Tajpas (OKDVT)' +}); diff --git a/sources/plugins/scayt/lang/es.js b/sources/plugins/scayt/lang/es.js new file mode 100644 index 00000000..15c29d12 --- /dev/null +++ b/sources/plugins/scayt/lang/es.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'es', { + btn_about: 'Acerca de Corrector', + btn_dictionaries: 'Diccionarios', + btn_disable: 'Desactivar Corrector', + btn_enable: 'Activar Corrector', + btn_langs:'Idiomas', + btn_options: 'Opciones', + text_title: 'Comprobar Ortografía Mientras Escribe' +}); diff --git a/sources/plugins/scayt/lang/et.js b/sources/plugins/scayt/lang/et.js new file mode 100644 index 00000000..a107bd82 --- /dev/null +++ b/sources/plugins/scayt/lang/et.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'et', { + btn_about: 'SCAYT-ist lähemalt', + btn_dictionaries: 'Sõnaraamatud', + btn_disable: 'SCAYT keelatud', + btn_enable: 'SCAYT lubatud', + btn_langs:'Keeled', + btn_options: 'Valikud', + text_title: 'Õigekirjakontroll kirjutamise ajal' +}); diff --git a/sources/plugins/scayt/lang/eu.js b/sources/plugins/scayt/lang/eu.js new file mode 100644 index 00000000..deeeadaf --- /dev/null +++ b/sources/plugins/scayt/lang/eu.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'eu', { + btn_about: 'SCAYTi buruz', + btn_dictionaries: 'Hiztegiak', + btn_disable: 'Desgaitu SCAYT', + btn_enable: 'Gaitu SCAYT', + btn_langs:'Hizkuntzak', + btn_options: 'Aukerak', + text_title: 'Ortografia Zuzenketa Idatzi Ahala (SCAYT)' +}); diff --git a/sources/plugins/scayt/lang/fa.js b/sources/plugins/scayt/lang/fa.js new file mode 100644 index 00000000..0830f689 --- /dev/null +++ b/sources/plugins/scayt/lang/fa.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'fa', { + btn_about: 'درباره SCAYT', + btn_dictionaries: 'دیکشنریها', + btn_disable: 'غیرفعالسازی SCAYT', + btn_enable: 'فعالسازی SCAYT', + btn_langs:'زبانها', + btn_options: 'گزینهها', + text_title: 'بررسی املای تایپ شما' +}); diff --git a/sources/plugins/scayt/lang/fi.js b/sources/plugins/scayt/lang/fi.js new file mode 100644 index 00000000..3d2a1b17 --- /dev/null +++ b/sources/plugins/scayt/lang/fi.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'fi', { + btn_about: 'Tietoja oikoluvusta kirjoitetaessa', + btn_dictionaries: 'Sanakirjat', + btn_disable: 'Poista käytöstä oikoluku kirjoitetaessa', + btn_enable: 'Ota käyttöön oikoluku kirjoitettaessa', + btn_langs:'Kielet', + btn_options: 'Asetukset', + text_title: 'Oikolue kirjoitettaessa' +}); diff --git a/sources/plugins/scayt/lang/fo.js b/sources/plugins/scayt/lang/fo.js new file mode 100644 index 00000000..61f5c66c --- /dev/null +++ b/sources/plugins/scayt/lang/fo.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'fo', { + btn_about: 'Um SCAYT', + btn_dictionaries: 'Orðabøkur', + btn_disable: 'Nokta SCAYT', + btn_enable: 'Loyv SCAYT', + btn_langs:'Tungumál', + btn_options: 'Uppseting', + text_title: 'Kanna stavseting, meðan tú skrivar' +}); diff --git a/sources/plugins/scayt/lang/fr-ca.js b/sources/plugins/scayt/lang/fr-ca.js new file mode 100644 index 00000000..18a14f51 --- /dev/null +++ b/sources/plugins/scayt/lang/fr-ca.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'fr-ca', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/fr.js b/sources/plugins/scayt/lang/fr.js new file mode 100644 index 00000000..c2c0ffb9 --- /dev/null +++ b/sources/plugins/scayt/lang/fr.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'fr', { + btn_about: 'A propos de SCAYT', + btn_dictionaries: 'Dictionnaires', + btn_disable: 'Désactiver SCAYT', + btn_enable: 'Activer SCAYT', + btn_langs:'Langues', + btn_options: 'Options', + text_title: 'Vérification de l\'Orthographe en Cours de Frappe (SCAYT)' +}); diff --git a/sources/plugins/scayt/lang/gl.js b/sources/plugins/scayt/lang/gl.js new file mode 100644 index 00000000..665c10d9 --- /dev/null +++ b/sources/plugins/scayt/lang/gl.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'gl', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/gu.js b/sources/plugins/scayt/lang/gu.js new file mode 100644 index 00000000..5b7b5d0b --- /dev/null +++ b/sources/plugins/scayt/lang/gu.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'gu', { + btn_about: 'SCAYT વિષે', + btn_dictionaries: 'શબ્દકોશ', + btn_disable: 'SCAYT ડિસેબલ કરવું', + btn_enable: 'SCAYT એનેબલ કરવું', + btn_langs:'ભાષાઓ', + btn_options: 'વિકલ્પો', + text_title: 'ટાઈપ કરતા સ્પેલ તપાસો' +}); diff --git a/sources/plugins/scayt/lang/he.js b/sources/plugins/scayt/lang/he.js new file mode 100644 index 00000000..3f4301a9 --- /dev/null +++ b/sources/plugins/scayt/lang/he.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'he', { + btn_about: 'אודות SCAYT', + btn_dictionaries: 'מילון', + btn_disable: 'בטל SCAYT', + btn_enable: 'אפשר SCAYT', + btn_langs:'שפות', + btn_options: 'אפשרויות', + text_title: 'בדיקת איות בזמן כתיבה (SCAYT)' +}); diff --git a/sources/plugins/scayt/lang/hi.js b/sources/plugins/scayt/lang/hi.js new file mode 100644 index 00000000..d05d1976 --- /dev/null +++ b/sources/plugins/scayt/lang/hi.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'hi', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/hr.js b/sources/plugins/scayt/lang/hr.js new file mode 100644 index 00000000..94da1a4a --- /dev/null +++ b/sources/plugins/scayt/lang/hr.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'hr', { + btn_about: 'O SCAYT', + btn_dictionaries: 'Rječnici', + btn_disable: 'Onemogući SCAYT', + btn_enable: 'Omogući SCAYT', + btn_langs:'Jezici', + btn_options: 'Opcije', + text_title: 'Provjeri pravopis tijekom tipkanja (SCAYT)' +}); diff --git a/sources/plugins/scayt/lang/hu.js b/sources/plugins/scayt/lang/hu.js new file mode 100644 index 00000000..5c1fff35 --- /dev/null +++ b/sources/plugins/scayt/lang/hu.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'hu', { + btn_about: 'SCAYT névjegy', + btn_dictionaries: 'Szótár', + btn_disable: 'SCAYT letiltása', + btn_enable: 'SCAYT engedélyezése', + btn_langs:'Nyelvek', + btn_options: 'Beállítások', + text_title: 'Helyesírás ellenőrzés gépelés közben' +}); diff --git a/sources/plugins/scayt/lang/is.js b/sources/plugins/scayt/lang/is.js new file mode 100644 index 00000000..d3c488f0 --- /dev/null +++ b/sources/plugins/scayt/lang/is.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'is', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/it.js b/sources/plugins/scayt/lang/it.js new file mode 100644 index 00000000..05fe90f2 --- /dev/null +++ b/sources/plugins/scayt/lang/it.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'it', { + btn_about: 'About COMS', + btn_dictionaries: 'Dizionari', + btn_disable: 'Disabilita COMS', + btn_enable: 'Abilita COMS', + btn_langs:'Lingue', + btn_options: 'Opzioni', + text_title: 'Controllo Ortografico Mentre Scrivi' +}); diff --git a/sources/plugins/scayt/lang/ja.js b/sources/plugins/scayt/lang/ja.js new file mode 100644 index 00000000..bc66e6e9 --- /dev/null +++ b/sources/plugins/scayt/lang/ja.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'ja', { + btn_about: 'SCAYTバージョン', + btn_dictionaries: '辞書', + btn_disable: 'SCAYT無効', + btn_enable: 'SCAYT有効', + btn_langs:'言語', + btn_options: 'オプション', + text_title: 'スペルチェック設定(SCAYT)' +}); diff --git a/sources/plugins/scayt/lang/ka.js b/sources/plugins/scayt/lang/ka.js new file mode 100644 index 00000000..2504a998 --- /dev/null +++ b/sources/plugins/scayt/lang/ka.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'ka', { + btn_about: 'SCAYT-ის შესახებ', + btn_dictionaries: 'ლექსიკონები', + btn_disable: 'SCAYT-ის გამორთვა', + btn_enable: 'SCAYT-ის ჩართვა', + btn_langs:'ენები', + btn_options: 'პარამეტრები', + text_title: 'მართლწერის შემოწმება კრეფისას' +}); diff --git a/sources/plugins/scayt/lang/km.js b/sources/plugins/scayt/lang/km.js new file mode 100644 index 00000000..e0749431 --- /dev/null +++ b/sources/plugins/scayt/lang/km.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'km', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/ko.js b/sources/plugins/scayt/lang/ko.js new file mode 100644 index 00000000..26311081 --- /dev/null +++ b/sources/plugins/scayt/lang/ko.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'ko', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/ku.js b/sources/plugins/scayt/lang/ku.js new file mode 100644 index 00000000..b811be52 --- /dev/null +++ b/sources/plugins/scayt/lang/ku.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'ku', { + btn_about: 'دهربارهی SCAYT', + btn_dictionaries: 'فهرههنگهکان', + btn_disable: 'ناچالاککردنی SCAYT', + btn_enable: 'چالاککردنی SCAYT', + btn_langs:'زمانهکان', + btn_options: 'ههڵبژارده', + text_title: 'پشکنینی نووسه لهکاتی نووسین' +}); diff --git a/sources/plugins/scayt/lang/lt.js b/sources/plugins/scayt/lang/lt.js new file mode 100644 index 00000000..f9744ce8 --- /dev/null +++ b/sources/plugins/scayt/lang/lt.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'lt', { + btn_about: 'Apie SCAYT', + btn_dictionaries: 'Žodynai', + btn_disable: 'IÅ¡jungti SCAYT', + btn_enable: 'Ä®jungti SCAYT', + btn_langs:'Kalbos', + btn_options: 'Parametrai', + text_title: 'Tikrinti klaidas kai raÅ¡oma' +}); diff --git a/sources/plugins/scayt/lang/lv.js b/sources/plugins/scayt/lang/lv.js new file mode 100644 index 00000000..b839a5b5 --- /dev/null +++ b/sources/plugins/scayt/lang/lv.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'lv', { + btn_about: 'Par SCAYT', + btn_dictionaries: 'VārdnÄ«cas', + btn_disable: 'Atslēgt SCAYT', + btn_enable: 'Ieslēgt SCAYT', + btn_langs:'Valodas', + btn_options: 'UzstādÄ«jumi', + text_title: 'PārbaudÄ«t gramatiku rakstot' +}); diff --git a/sources/plugins/scayt/lang/mk.js b/sources/plugins/scayt/lang/mk.js new file mode 100644 index 00000000..f740b8a3 --- /dev/null +++ b/sources/plugins/scayt/lang/mk.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'mk', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/mn.js b/sources/plugins/scayt/lang/mn.js new file mode 100644 index 00000000..5df4bf0b --- /dev/null +++ b/sources/plugins/scayt/lang/mn.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'mn', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Толь бичгүүд', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Хэлүүд', + btn_options: 'Сонголт', + text_title: 'Spell Check As You Type' +}); diff --git a/sources/plugins/scayt/lang/ms.js b/sources/plugins/scayt/lang/ms.js new file mode 100644 index 00000000..0c6b31c7 --- /dev/null +++ b/sources/plugins/scayt/lang/ms.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'ms', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' // MISSING +}); diff --git a/sources/plugins/scayt/lang/nb.js b/sources/plugins/scayt/lang/nb.js new file mode 100644 index 00000000..73cb009a --- /dev/null +++ b/sources/plugins/scayt/lang/nb.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'nb', { + btn_about: 'Om SCAYT', + btn_dictionaries: 'Ordbøker', + btn_disable: 'SlÃ¥ av SCAYT', + btn_enable: 'SlÃ¥ pÃ¥ SCAYT', + btn_langs:'SprÃ¥k', + btn_options: 'Valg', + text_title: 'Stavekontroll mens du skriver' +}); diff --git a/sources/plugins/scayt/lang/nl.js b/sources/plugins/scayt/lang/nl.js new file mode 100644 index 00000000..4d6ed02b --- /dev/null +++ b/sources/plugins/scayt/lang/nl.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'nl', { + btn_about: 'Over SCAYT', + btn_dictionaries: 'Woordenboeken', + btn_disable: 'SCAYT uitschakelen', + btn_enable: 'SCAYT inschakelen', + btn_langs:'Talen', + btn_options: 'Opties', + text_title: 'Controleer de spelling tijdens het typen' +}); diff --git a/sources/plugins/scayt/lang/no.js b/sources/plugins/scayt/lang/no.js new file mode 100644 index 00000000..0d0006aa --- /dev/null +++ b/sources/plugins/scayt/lang/no.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'no', { + btn_about: 'Om SCAYT', + btn_dictionaries: 'Ordbøker', + btn_disable: 'SlÃ¥ av SCAYT', + btn_enable: 'SlÃ¥ pÃ¥ SCAYT', + btn_langs:'SprÃ¥k', + btn_options: 'Valg', + text_title: 'Stavekontroll mens du skriver' +}); diff --git a/sources/plugins/scayt/lang/pl.js b/sources/plugins/scayt/lang/pl.js new file mode 100644 index 00000000..db3eb362 --- /dev/null +++ b/sources/plugins/scayt/lang/pl.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'pl', { + btn_about: 'Informacje o SCAYT', + btn_dictionaries: 'Słowniki', + btn_disable: 'Wyłącz SCAYT', + btn_enable: 'Włącz SCAYT', + btn_langs:'Języki', + btn_options: 'Opcje', + text_title: 'Sprawdź pisownię podczas pisania (SCAYT)' +}); diff --git a/sources/plugins/scayt/lang/pt-br.js b/sources/plugins/scayt/lang/pt-br.js new file mode 100644 index 00000000..ac37fc42 --- /dev/null +++ b/sources/plugins/scayt/lang/pt-br.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'pt-br', { + btn_about: 'Sobre a correção ortográfica durante a digitação', + btn_dictionaries: 'Dicionários', + btn_disable: 'Desabilitar correção ortográfica durante a digitação', + btn_enable: 'Habilitar correção ortográfica durante a digitação', + btn_langs:'Idiomas', + btn_options: 'Opções', + text_title: 'Correção ortográfica durante a digitação' +}); diff --git a/sources/plugins/scayt/lang/pt.js b/sources/plugins/scayt/lang/pt.js new file mode 100644 index 00000000..932b2df2 --- /dev/null +++ b/sources/plugins/scayt/lang/pt.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'pt', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' // MISSING +}); diff --git a/sources/plugins/scayt/lang/ro.js b/sources/plugins/scayt/lang/ro.js new file mode 100644 index 00000000..b2c84b2d --- /dev/null +++ b/sources/plugins/scayt/lang/ro.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'ro', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' // MISSING +}); diff --git a/sources/plugins/scayt/lang/ru.js b/sources/plugins/scayt/lang/ru.js new file mode 100644 index 00000000..0f142cd1 --- /dev/null +++ b/sources/plugins/scayt/lang/ru.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'ru', { + btn_about: 'О SCAYT', + btn_dictionaries: 'Словари', + btn_disable: 'Отключить SCAYT', + btn_enable: 'Включить SCAYT', + btn_langs:'Языки', + btn_options: 'Настройки', + text_title: 'Проверка орфографии по мере ввода (SCAYT)' +}); diff --git a/sources/plugins/scayt/lang/sk.js b/sources/plugins/scayt/lang/sk.js new file mode 100644 index 00000000..81ca5bcc --- /dev/null +++ b/sources/plugins/scayt/lang/sk.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'sk', { + btn_about: 'O KPPP (Kontrola pravopisu počas písania)', + btn_dictionaries: 'Slovníky', + btn_disable: 'ZakázaÅ¥ KPPP (Kontrola pravopisu počas písania)', + btn_enable: 'PovoliÅ¥ KPPP (Kontrola pravopisu počas písania)', + btn_langs:'Jazyky', + btn_options: 'Možnosti', + text_title: 'Kontrola pravopisu počas písania' +}); diff --git a/sources/plugins/scayt/lang/sl.js b/sources/plugins/scayt/lang/sl.js new file mode 100644 index 00000000..44f1c122 --- /dev/null +++ b/sources/plugins/scayt/lang/sl.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'sl', { + btn_about: 'O storitvi SCAYT', + btn_dictionaries: 'Slovarji', + btn_disable: 'Onemogoči SCAYT', + btn_enable: 'Omogoči SCAYT', + btn_langs:'Jeziki', + btn_options: 'Možnosti', + text_title: 'Črkovanje med tipkanjem' +}); diff --git a/sources/plugins/scayt/lang/sr-latn.js b/sources/plugins/scayt/lang/sr-latn.js new file mode 100644 index 00000000..d2dbbd3d --- /dev/null +++ b/sources/plugins/scayt/lang/sr-latn.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'sr-latn', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' // MISSING +}); diff --git a/sources/plugins/scayt/lang/sr.js b/sources/plugins/scayt/lang/sr.js new file mode 100644 index 00000000..6fa35d2c --- /dev/null +++ b/sources/plugins/scayt/lang/sr.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'sr', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' // MISSING +}); diff --git a/sources/plugins/scayt/lang/sv.js b/sources/plugins/scayt/lang/sv.js new file mode 100644 index 00000000..738ac7e3 --- /dev/null +++ b/sources/plugins/scayt/lang/sv.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'sv', { + btn_about: 'Om SCAYT', + btn_dictionaries: 'Ordlistor', + btn_disable: 'Inaktivera SCAYT', + btn_enable: 'Aktivera SCAYT', + btn_langs:'SprÃ¥k', + btn_options: 'Inställningar', + text_title: 'Stavningskontroll medan du skriver' +}); diff --git a/sources/plugins/scayt/lang/th.js b/sources/plugins/scayt/lang/th.js new file mode 100644 index 00000000..f129315b --- /dev/null +++ b/sources/plugins/scayt/lang/th.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'th', { + btn_about: 'About SCAYT', + btn_dictionaries: 'Dictionaries', + btn_disable: 'Disable SCAYT', + btn_enable: 'Enable SCAYT', + btn_langs:'Languages', + btn_options: 'Options', + text_title: 'Spell Check As You Type' // MISSING +}); diff --git a/sources/plugins/scayt/lang/tr.js b/sources/plugins/scayt/lang/tr.js new file mode 100644 index 00000000..0e315091 --- /dev/null +++ b/sources/plugins/scayt/lang/tr.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'tr', { + btn_about: 'SCAYT\'ı hakkında', + btn_dictionaries: 'Sözlükler', + btn_disable: 'SCAYT\'ı pasifleştir', + btn_enable: 'SCAYT\'ı etkinleştir', + btn_langs:'Diller', + btn_options: 'Seçenekler', + text_title: 'Girmiş olduğunuz kelime denetimi' +}); diff --git a/sources/plugins/scayt/lang/ug.js b/sources/plugins/scayt/lang/ug.js new file mode 100644 index 00000000..e453cc71 --- /dev/null +++ b/sources/plugins/scayt/lang/ug.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'ug', { + btn_about: 'شۇئان ئىملا تەكشۈرۈش ھەققىدە', + btn_dictionaries: 'لۇغەت', + btn_disable: 'شۇئان ئىملا تەكشۈرۈشنى چەكلە', + btn_enable: 'شۇئان ئىملا تەكشۈرۈشنى قوزغات', + btn_langs:'تىل', + btn_options: 'تاللانما', + text_title: 'شۇئان ئىملا تەكشۈر' +}); diff --git a/sources/plugins/scayt/lang/uk.js b/sources/plugins/scayt/lang/uk.js new file mode 100644 index 00000000..682a897b --- /dev/null +++ b/sources/plugins/scayt/lang/uk.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'uk', { + btn_about: 'Про SCAYT', + btn_dictionaries: 'Словники', + btn_disable: 'Вимкнути SCAYT', + btn_enable: 'Ввімкнути SCAYT', + btn_langs:'Мови', + btn_options: 'Опції', + text_title: 'Перефірка орфографії по мірі набору' +}); diff --git a/sources/plugins/scayt/lang/vi.js b/sources/plugins/scayt/lang/vi.js new file mode 100644 index 00000000..fcdfeabe --- /dev/null +++ b/sources/plugins/scayt/lang/vi.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'vi', { + btn_about: 'Thông tin về SCAYT', + btn_dictionaries: 'Từ điển', + btn_disable: 'Tắt SCAYT', + btn_enable: 'Bật SCAYT', + btn_langs:'Ngôn ngữ', + btn_options: 'Tùy chọn', + text_title: 'Kiểm tra chính tả ngay khi gõ chữ (SCAYT)' +}); diff --git a/sources/plugins/scayt/lang/zh-cn.js b/sources/plugins/scayt/lang/zh-cn.js new file mode 100644 index 00000000..a58502af --- /dev/null +++ b/sources/plugins/scayt/lang/zh-cn.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'zh-cn', { + btn_about: '关于即时拼写检查', + btn_dictionaries: '字典', + btn_disable: '禁用即时拼写检查', + btn_enable: '启用即时拼写检查', + btn_langs:'语言', + btn_options: '选项', + text_title: '即时拼写检查' +}); diff --git a/sources/plugins/scayt/lang/zh.js b/sources/plugins/scayt/lang/zh.js new file mode 100644 index 00000000..0bb259e1 --- /dev/null +++ b/sources/plugins/scayt/lang/zh.js @@ -0,0 +1,13 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'scayt', 'zh', { + btn_about: '關於即時拼寫檢查', + btn_dictionaries: '字典', + btn_disable: '關閉即時拼寫檢查', + btn_enable: '啟用即時拼寫檢查', + btn_langs: '語言', + btn_options: '選項', + text_title: '即時拼寫檢查' +}); diff --git a/sources/plugins/scayt/plugin.js b/sources/plugins/scayt/plugin.js new file mode 100644 index 00000000..ef315263 --- /dev/null +++ b/sources/plugins/scayt/plugin.js @@ -0,0 +1,1800 @@ +'use strict'; +CKEDITOR.plugins.add('scayt', { + + //requires : ['menubutton', 'dialog'], + requires: 'menubutton,dialog', + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en-au,en-ca,en-gb,en,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,ka,km,ko,lt,lv,mk,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sr-latn,sr,sv,th,tr,ug,uk,vi,zh-cn,zh', // %REMOVE_LINE_CORE% + icons: 'scayt', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + tabToOpen : null, + dialogName: 'scaytDialog', + init: function(editor) { + var self = this, + plugin = CKEDITOR.plugins.scayt; + + this.bindEvents(editor); + this.parseConfig(editor); + this.addRule(editor); + + // source mode + CKEDITOR.dialog.add(this.dialogName, CKEDITOR.getUrl(this.path + 'dialogs/options.js')); + // end source mode + + this.addMenuItems(editor); + var config = editor.config, + lang = editor.lang.scayt, + env = CKEDITOR.env; + + editor.ui.add('Scayt', CKEDITOR.UI_MENUBUTTON, { + label : lang.text_title, + title : ( editor.plugins.wsc ? editor.lang.wsc.title : lang.text_title ), + // SCAYT doesn't work in IE Compatibility Mode and IE (8 & 9) Quirks Mode + modes : {wysiwyg: !(env.ie && ( env.version < 8 || env.quirks ) ) }, + toolbar: 'spellchecker,20', + refresh: function() { + var buttonState = editor.ui.instances.Scayt.getState(); + + // check if scayt is created + if(editor.scayt) { + // check if scayt is enabled + if(plugin.state.scayt[editor.name]) { + buttonState = CKEDITOR.TRISTATE_ON; + } else { + buttonState = CKEDITOR.TRISTATE_OFF; + } + } + + editor.fire('scaytButtonState', buttonState); + }, + onRender: function() { + var that = this; + + editor.on('scaytButtonState', function(ev) { + if(typeof ev.data !== undefined) { + that.setState(ev.data); + } + }); + }, + onMenu : function() { + var scaytInstance = editor.scayt; + + editor.getMenuItem('scaytToggle').label = editor.lang.scayt[(scaytInstance ? plugin.state.scayt[editor.name] : false) ? 'btn_disable' : 'btn_enable']; + + // If UI tab is disabled we shouldn't show menu item + var menuDefinition = { + scaytToggle : CKEDITOR.TRISTATE_OFF, + scaytOptions : scaytInstance ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + scaytLangs : scaytInstance ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + scaytDict : scaytInstance ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + scaytAbout : scaytInstance ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, + WSC : editor.plugins.wsc ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED + }; + + if(!editor.config.scayt_uiTabs[0]) { + delete menuDefinition.scaytOptions; + } + + if(!editor.config.scayt_uiTabs[1]) { + delete menuDefinition.scaytLangs; + } + + if(!editor.config.scayt_uiTabs[2]) { + delete menuDefinition.scaytDict; + } + + return menuDefinition; + } + }); + + // If the 'contextmenu' plugin is loaded, register the listeners. + if(editor.contextMenu && editor.addMenuItems) { + editor.contextMenu.addListener(function(element, selection) { + var scaytInstance = editor.scayt, + result, selectionNode; + + if(scaytInstance) { + selectionNode = scaytInstance.getSelectionNode(); + + // SCAYT shouldn't build context menu if instance isnot created or word is without misspelling or grammar problem + if(selectionNode) { + var items = self.menuGenerator(editor, selectionNode); + + scaytInstance.showBanner('.' + editor.contextMenu._.definition.panel.className.split(' ').join(' .')); + result = items; + } + } + + return result; + }); + + editor.contextMenu._.onHide = CKEDITOR.tools.override(editor.contextMenu._.onHide, function(org) { + return function() { + var scaytInstance = editor.scayt; + + if(scaytInstance) { + scaytInstance.hideBanner(); + } + + return org.apply(this); + }; + }); + } + }, + addMenuItems: function(editor) { + var self = this, + plugin = CKEDITOR.plugins.scayt, + graytGroups = ['grayt_description', 'grayt_suggest', 'grayt_control'], + menuGroup = 'scaytButton'; + + editor.addMenuGroup(menuGroup); + + var items_order = editor.config.scayt_contextMenuItemsOrder.split('|'); + + for(var pos = 0 ; pos < items_order.length ; pos++) { + items_order[pos] = 'scayt_' + items_order[pos]; + } + items_order = graytGroups.concat(items_order); + + if(items_order && items_order.length) { + for(var pos = 0 ; pos < items_order.length ; pos++) { + editor.addMenuGroup(items_order[pos], pos - 10); + } + } + + editor.addCommand( 'scaytToggle', { + exec: function(editor) { + var scaytInstance = editor.scayt; + + plugin.state.scayt[editor.name] = !plugin.state.scayt[editor.name]; + + if(plugin.state.scayt[editor.name] === true) { + if(!scaytInstance) { + plugin.createScayt(editor); + } + } else { + if(scaytInstance) { + plugin.destroy(editor); + } + } + } + } ); + + editor.addCommand( 'scaytAbout', { + exec: function(editor) { + var scaytInstance = editor.scayt; + + scaytInstance.tabToOpen = 'about'; + editor.lockSelection(); + editor.openDialog(self.dialogName); + } + } ); + + editor.addCommand( 'scaytOptions', { + exec: function(editor) { + var scaytInstance = editor.scayt; + + scaytInstance.tabToOpen = 'options'; + editor.lockSelection(); + editor.openDialog(self.dialogName); + } + } ); + + editor.addCommand( 'scaytLangs', { + exec: function(editor) { + var scaytInstance = editor.scayt; + + scaytInstance.tabToOpen = 'langs'; + editor.lockSelection(); + editor.openDialog(self.dialogName); + } + } ); + + editor.addCommand( 'scaytDict', { + exec: function(editor) { + var scaytInstance = editor.scayt; + + scaytInstance.tabToOpen = 'dictionaries'; + editor.lockSelection(); + editor.openDialog(self.dialogName); + } + } ); + + var uiMenuItems = { + scaytToggle: { + label : editor.lang.scayt.btn_enable, + group : menuGroup, + command: 'scaytToggle' + }, + scaytAbout: { + label : editor.lang.scayt.btn_about, + group : menuGroup, + command: 'scaytAbout' + }, + scaytOptions: { + label : editor.lang.scayt.btn_options, + group : menuGroup, + command: 'scaytOptions' + }, + scaytLangs: { + label : editor.lang.scayt.btn_langs, + group : menuGroup, + command: 'scaytLangs' + }, + scaytDict: { + label : editor.lang.scayt.btn_dictionaries, + group : menuGroup, + command: 'scaytDict' + } + }; + + if(editor.plugins.wsc) { + uiMenuItems.WSC = { + label : editor.lang.wsc.toolbar, + group : menuGroup, + onClick: function() { + var inlineMode = (editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE), + plugin = CKEDITOR.plugins.scayt, + scaytInstance = editor.scayt, + text = inlineMode ? editor.container.getText() : editor.document.getBody().getText(); + + text = text.replace(/\s/g, ''); + + if(text) { + if(scaytInstance && plugin.state.scayt[editor.name] && scaytInstance.setMarkupPaused) { + scaytInstance.setMarkupPaused(true); + } + + editor.lockSelection(); + editor.execCommand('checkspell'); + } else { + alert('Nothing to check!'); + } + } + } + } + + editor.addMenuItems(uiMenuItems); + }, + bindEvents: function(editor) { + var self = this, + plugin = CKEDITOR.plugins.scayt, + inline_mode = (editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE); + + var scaytDestroy = function() { + plugin.destroy(editor); + }; + + /** + * Dirty fix for placeholder drag&drop + * Should be fixed with next release + */ + /* + editor.on('drop', function(evt) { + var dropRange = evt.data.dropRange; + var b = dropRange.createBookmark(true); + editor.scayt.removeMarkupInSelectionNode({ selectionNode: evt.data.target.$, forceBookmark: false }); + dropRange.moveToBookmark(b); + + evt.data.dropRange = dropRange; + return evt; + }, this, null, 0); // We should be sure that we modify dropRange before CKEDITOR.plugins.clipboard calls + */ + + var contentDomReady = function() { + // The event is fired when editable iframe node was reinited so we should restart our service + if (plugin.state.scayt[editor.name] && !editor.readOnly && !editor.scayt) { + plugin.createScayt(editor); + } + }; + + var addMarkupStateHandlers = function() { + var editable = editor.editable(); + + editable.attachListener( editable, 'focus', function( evt ) { + if( CKEDITOR.plugins.scayt && !editor.scayt ) { + setTimeout(contentDomReady, 0); // we need small timeout in order to correctly set initial 'focused' option value in SCAYT core + } + + var pluginStatus = CKEDITOR.plugins.scayt && CKEDITOR.plugins.scayt.state.scayt[editor.name] && editor.scayt, + selectedElement, ranges, textLength, range; + + if((inline_mode ? true : pluginStatus) && editor._.savedSelection) { + selectedElement = editor._.savedSelection.getSelectedElement(); + ranges = !selectedElement && editor._.savedSelection.getRanges(); + + for(var i = 0; i < ranges.length; i++) { + range = ranges[i]; + // we need to check type of node value in order to avoid error in IE when accessing 'nodeValue' property + if(typeof range.startContainer.$.nodeValue === 'string') { + textLength = range.startContainer.getText().length; + if(textLength < range.startOffset || textLength < range.endOffset) { + editor.unlockSelection(false); + } + } + } + } + }, this, null, -10 ); // priority "-10" is set to call SCAYT CKEDITOR.editor#unlockSelection before CKEDITOR.editor#unlockSelection call + }; + + var contentDomHandler = function() { + if(inline_mode) { + + if (!editor.config.scayt_inlineModeImmediateMarkup) { + /** + * Give an opportunity to CKEditor to perform all needed updates + * and only after that call 'scaytDestroy' method (#72725) + */ + editor.on('blur', function () { setTimeout( scaytDestroy, 0 ); } ); + editor.on('focus', contentDomReady); + + // We need to check if editor has focus(created) right now. + // If editor is active - make attempt to create scayt + if(editor.focusManager.hasFocus) { + contentDomReady(); + } + + } else { + contentDomReady(); + } + + } else { + contentDomReady(); + } + + addMarkupStateHandlers(); + + /** + * 'mousedown' handler handle widget selection (click on widget). To + * fix the issue when widget#wrapper referenced to element which can + * be broken after markup. + */ + var editable = editor.editable(); + editable.attachListener(editable, 'mousedown', function( evt ) { + var target = evt.data.getTarget(); + var widget = editor.widgets && editor.widgets.getByElement( target ); + if ( widget ) { + widget.wrapper = target.getAscendant( function( el ) { + return el.hasAttribute( 'data-cke-widget-wrapper' ) + }, true ); + } + }, this, null, -10); // '-10': we need to be shure that widget#wrapper updated before any other calls + }; + + editor.on('contentDom', contentDomHandler); + + editor.on('beforeCommandExec', function(ev) { + var scaytInstance = editor.scayt, + selectedLangElement = null, + forceBookmark = false, + removeMarkupInsideSelection = true; + + // TODO: after switching in source mode not recreate SCAYT instance, try to just rerun markuping to don't make requests to server + if(ev.data.name in plugin.options.disablingCommandExec && editor.mode == 'wysiwyg') { + if(scaytInstance) { + plugin.destroy(editor); + editor.fire('scaytButtonState', CKEDITOR.TRISTATE_DISABLED); + } + } else if( ev.data.name === 'bold' || ev.data.name === 'italic' || ev.data.name === 'underline' || + ev.data.name === 'strike' || ev.data.name === 'subscript' || ev.data.name === 'superscript' || + ev.data.name === 'enter' || ev.data.name === 'cut' || ev.data.name === 'language') { + if(scaytInstance) { + if(ev.data.name === 'cut') { + removeMarkupInsideSelection = false; + // We need to force bookmark before we remove our markup. + // Otherwise we will get issues with cutting text via context menu. + forceBookmark = true; + } + + // We need to remove all SCAYT markup from 'lang' node before it will be deleted. + // We need to remove SCAYT markup from selected text before creating 'lang' node as well. + if(ev.data.name === 'language') { + selectedLangElement = editor.plugins.language.getCurrentLangElement(editor); + selectedLangElement = selectedLangElement && selectedLangElement.$; + // We need to force bookmark before we remove our markup. + // Otherwise we will get issues with cutting text via language plugin menu. + forceBookmark = true; + } + + editor.fire('reloadMarkupScayt', { + removeOptions: { + removeInside: removeMarkupInsideSelection, + forceBookmark: forceBookmark, + selectionNode: selectedLangElement + }, + timeout: 0 + }); + } + } + }); + + editor.on('beforeSetMode', function(ev) { + var scaytInstance; + // needed when we use: + // CKEDITOR.instances.editor_ID.setMode("source") + // CKEDITOR.instances.editor_ID.setMode("wysiwyg") + // can't be implemented in editor.on('mode', function(ev) {}); + if (ev.data == 'source') { + scaytInstance = editor.scayt; + if(scaytInstance) { + plugin.destroy(editor); + editor.fire('scaytButtonState', CKEDITOR.TRISTATE_DISABLED); + } + + // remove custom data from body, to prevent waste properties showing in IE8 + if(editor.document) { //GitHub #84 : make sure that document exists(e.g. when startup mode set to 'source') + editor.document.getBody().removeAttribute('_jquid'); + } + } + }); + + editor.on('afterCommandExec', function(ev) { + if(editor.mode == 'wysiwyg' && (ev.data.name == 'undo' || ev.data.name == 'redo')) { + setTimeout(function() { + var scaytInstance = editor.scayt, + scaytLangList = scaytInstance && scaytInstance.getScaytLangList(); + + /** + * Checks SCAYT initialization of LangList. To prevent immediate + * markup which is triggered by 'startSpellCheck' event. + * E.g.: Drop into inline CKEDITOR with scayt_autoStartup = true; + */ + if (!scaytLangList || !(scaytLangList.ltr && scaytLangList.rtl)) return; + + scaytInstance.fire('startSpellCheck, startGrammarCheck'); + }, 250); + } + }); + + // handle readonly changes + editor.on('readOnly', function(ev) { + var scaytInstance; + + if(ev) { + scaytInstance = editor.scayt; + + if(ev.editor.readOnly === true) { + if(scaytInstance) { + scaytInstance.fire('removeMarkupInDocument', {}); + } + } else { + if(scaytInstance) { + scaytInstance.fire('startSpellCheck, startGrammarCheck'); + } else if(ev.editor.mode == 'wysiwyg' && plugin.state.scayt[ev.editor.name] === true) { + plugin.createScayt(editor); + ev.editor.fire('scaytButtonState', CKEDITOR.TRISTATE_ON); + } + } + } + }); + + // we need to destroy SCAYT before CK editor will be completely destroyed + editor.on('beforeDestroy', scaytDestroy); + + //#9439 after SetData method fires contentDom event and SCAYT create additional instanse + // This way we should destroy SCAYT on setData event when contenteditable Iframe was re-created + editor.on('setData', function() { + scaytDestroy(); + + // in inline mode SetData does not fire contentDom event + if(editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE || editor.plugins.divarea) { + contentDomHandler(); + } + }, this, null, 50); + + /** + * Main entry point to react on changes in document + */ + editor.on('reloadMarkupScayt', function(ev) { + var removeOptions = ev.data && ev.data.removeOptions, + timeout = ev.data && ev.data.timeout; + + /** + * Perform removeMarkupInSelectionNode and 'startSpellCheck' fire + * asynchroniosly and keep CKEDITOR flow as expected + */ + setTimeout(function() { + var scaytInstance = editor.scayt, + scaytLangList = scaytInstance && scaytInstance.getScaytLangList(); + + /** + * Checks SCAYT initialization of LangList. To prevent immediate + * markup which is triggered by 'startSpellCheck' event. + * E.g.: Drop into inline CKEDITOR with scayt_autoStartup = true; + */ + if (!scaytLangList || !(scaytLangList.ltr && scaytLangList.rtl)) return; + + /** + * CKEditor can keep \u200B character in document (with selection#selectRanges) + * we need to take care about that. For this case we fire + * 'keydown' [left arrow], what will trigger 'removeFillingChar' on Webkit + * to cleanup the document + */ + editor.document.fire( 'keydown', new CKEDITOR.dom.event( { keyCode: 37 } ) ); + + /* trigger remove markup with 'startSpellCheck' */ + scaytInstance.removeMarkupInSelectionNode(removeOptions); + scaytInstance.fire('startSpellCheck, startGrammarCheck'); + }, timeout || 0 ); + }); + + // Reload spell-checking for current word after insertion completed. + editor.on('insertElement', function() { + // IE bug: we need wait here to make sure that focus is returned to editor, and we can store the selection before we proceed with markup + editor.fire('reloadMarkupScayt', {removeOptions: {forceBookmark: true}}); + }, this, null, 50); + + editor.on('insertHtml', function() { + editor.fire('reloadMarkupScayt'); + }, this, null, 50); + + editor.on('insertText', function() { + editor.fire('reloadMarkupScayt'); + }, this, null, 50); + + // The event is listening to open necessary dialog tab + editor.on('scaytDialogShown', function(ev) { + var dialog = ev.data, + scaytInstance = editor.scayt; + + dialog.selectPage(scaytInstance.tabToOpen); + }); + }, + parseConfig: function(editor) { + var plugin = CKEDITOR.plugins.scayt; + + // preprocess config for backward compatibility + plugin.replaceOldOptionsNames(editor.config); + + // Checking editor's config after initialization + if(typeof editor.config.scayt_autoStartup !== 'boolean') { + editor.config.scayt_autoStartup = false; + } + plugin.state.scayt[editor.name] = editor.config.scayt_autoStartup; + + if(typeof editor.config.grayt_autoStartup !== 'boolean') { + editor.config.grayt_autoStartup = false; + } + if(typeof editor.config.scayt_inlineModeImmediateMarkup !== 'boolean') { + editor.config.scayt_inlineModeImmediateMarkup = false; + } + plugin.state.grayt[editor.name] = editor.config.grayt_autoStartup; + + if(!editor.config.scayt_contextCommands) { + editor.config.scayt_contextCommands = 'ignore|ignoreall|add'; + } + + if(!editor.config.scayt_contextMenuItemsOrder) { + editor.config.scayt_contextMenuItemsOrder = 'suggest|moresuggest|control'; + } + + if(!editor.config.scayt_sLang) { + editor.config.scayt_sLang = 'en_US'; + } + + if(editor.config.scayt_maxSuggestions === undefined || typeof editor.config.scayt_maxSuggestions != 'number' || editor.config.scayt_maxSuggestions < 0) { + editor.config.scayt_maxSuggestions = 5; + } + + if(editor.config.scayt_minWordLength === undefined || typeof editor.config.scayt_minWordLength != 'number' || editor.config.scayt_minWordLength < 1) { + editor.config.scayt_minWordLength = 4; + } + + if(editor.config.scayt_customDictionaryIds === undefined || typeof editor.config.scayt_customDictionaryIds !== 'string') { + editor.config.scayt_customDictionaryIds = ''; + } + + if(editor.config.scayt_userDictionaryName === undefined || typeof editor.config.scayt_userDictionaryName !== 'string') { + editor.config.scayt_userDictionaryName = null; + } + + if(typeof editor.config.scayt_uiTabs === 'string' && editor.config.scayt_uiTabs.split(',').length === 3) { + var scayt_uiTabs = [], _tempUITabs = []; + editor.config.scayt_uiTabs = editor.config.scayt_uiTabs.split(','); + + CKEDITOR.tools.search(editor.config.scayt_uiTabs, function(value) { + if (Number(value) === 1 || Number(value) === 0) { + _tempUITabs.push(true); + scayt_uiTabs.push(Number(value)); + } else { + _tempUITabs.push(false); + } + }); + + if (CKEDITOR.tools.search(_tempUITabs, false) === null) { + editor.config.scayt_uiTabs = scayt_uiTabs; + } else { + editor.config.scayt_uiTabs = [1,1,1]; + } + + } else { + editor.config.scayt_uiTabs = [1,1,1]; + } + + if(typeof editor.config.scayt_serviceProtocol != 'string') { + editor.config.scayt_serviceProtocol = null; + } + + if(typeof editor.config.scayt_serviceHost != 'string') { + editor.config.scayt_serviceHost = null; + } + + if(typeof editor.config.scayt_servicePort != 'string') { + editor.config.scayt_servicePort = null; + } + + if(typeof editor.config.scayt_servicePath != 'string') { + editor.config.scayt_servicePath = null; + } + + if(!editor.config.scayt_moreSuggestions) { + editor.config.scayt_moreSuggestions = 'on'; + } + + if(typeof editor.config.scayt_customerId !== 'string') { + editor.config.scayt_customerId = '1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2'; + } + + if(typeof editor.config.scayt_srcUrl !== 'string') { + var protocol = document.location.protocol; + protocol = protocol.search(/https?:/) != -1 ? protocol : 'http:'; + + editor.config.scayt_srcUrl = protocol + '//svc.webspellchecker.net/spellcheck31/lf/scayt3/ckscayt/ckscayt.js'; + } + + if(typeof CKEDITOR.config.scayt_handleCheckDirty !== 'boolean') { + CKEDITOR.config.scayt_handleCheckDirty = true; + } + + if(typeof CKEDITOR.config.scayt_handleUndoRedo !== 'boolean') { + /* set default as 'true' */ + CKEDITOR.config.scayt_handleUndoRedo = true; + } + /* checking 'undo' plugin, if no disable SCAYT handler */ + CKEDITOR.config.scayt_handleUndoRedo = CKEDITOR.plugins.undo ? CKEDITOR.config.scayt_handleUndoRedo : false; + + if(typeof editor.config.scayt_multiLanguageMode !== 'boolean') { + editor.config.scayt_multiLanguageMode = false; + } + + if(typeof editor.config.scayt_multiLanguageStyles !== 'object') { + editor.config.scayt_multiLanguageStyles = {}; + } + + if(editor.config.scayt_ignoreAllCapsWords && typeof editor.config.scayt_ignoreAllCapsWords !== 'boolean') { + editor.config.scayt_ignoreAllCapsWords = false; + } + + if(editor.config.scayt_ignoreDomainNames && typeof editor.config.scayt_ignoreDomainNames !== 'boolean') { + editor.config.scayt_ignoreDomainNames = false; + } + + if(editor.config.scayt_ignoreWordsWithMixedCases && typeof editor.config.scayt_ignoreWordsWithMixedCases !== 'boolean') { + editor.config.scayt_ignoreWordsWithMixedCases = false; + } + + if(editor.config.scayt_ignoreWordsWithNumbers && typeof editor.config.scayt_ignoreWordsWithNumbers !== 'boolean') { + editor.config.scayt_ignoreWordsWithNumbers = false; + } + + if( editor.config.scayt_disableOptionsStorage ) { + var userOptions = CKEDITOR.tools.isArray( editor.config.scayt_disableOptionsStorage ) ? editor.config.scayt_disableOptionsStorage : ( typeof editor.config.scayt_disableOptionsStorage === 'string' ) ? [ editor.config.scayt_disableOptionsStorage ] : undefined, + availableValue = [ 'all', 'options', 'lang', 'ignore-all-caps-words', 'ignore-domain-names', 'ignore-words-with-mixed-cases', 'ignore-words-with-numbers'], + valuesOption = ['lang', 'ignore-all-caps-words', 'ignore-domain-names', 'ignore-words-with-mixed-cases', 'ignore-words-with-numbers'], + search = CKEDITOR.tools.search, + indexOf = CKEDITOR.tools.indexOf; + + var isValidOption = function( option ) { + return !!search( availableValue, option ); + }; + + var makeOptionsToStorage = function( options ) { + var retval = []; + + for (var i = 0; i < options.length; i++) { + var value = options[i], + isGroupOptionInUserOptions = !!search( options, 'options' ); + + if( !isValidOption( value ) || isGroupOptionInUserOptions && !!search( valuesOption, function( val ) { if( val === 'lang' ) { return false; } } ) ) { + return; + } + + if( !!search( valuesOption, value ) ) { + valuesOption.splice( indexOf( valuesOption, value ), 1 ); + } + + if( value === 'all' || isGroupOptionInUserOptions && !!search( options, 'lang' )) { + return []; + } + + if( value === 'options' ) { + valuesOption = [ 'lang' ]; + } + } + + retval = retval.concat( valuesOption ); + + return retval; + }; + + editor.config.scayt_disableOptionsStorage = makeOptionsToStorage( userOptions ); + } + }, + addRule: function(editor) { + var plugin = CKEDITOR.plugins.scayt, + dataProcessor = editor.dataProcessor, + htmlFilter = dataProcessor && dataProcessor.htmlFilter, + pathFilters = editor._.elementsPath && editor._.elementsPath.filters, + dataFilter = dataProcessor && dataProcessor.dataFilter, + removeFormatFilter = editor.addRemoveFormatFilter, + pathFilter = function(element) { + var scaytInstance = editor.scayt; + + if( scaytInstance && (element.hasAttribute(plugin.options.data_attribute_name) || element.hasAttribute(plugin.options.problem_grammar_data_attribute)) ) { + return false; + } + }, + removeFormatFilterTemplate = function(element) { + var scaytInstance = editor.scayt, + result = true; + + if( scaytInstance && (element.hasAttribute(plugin.options.data_attribute_name) || element.hasAttribute(plugin.options.problem_grammar_data_attribute)) ) { + result = false; + } + + return result; + }; + + if(pathFilters) { + pathFilters.push(pathFilter); + } + + if(dataFilter) { + var dataFilterRules = { + elements: { + span: function(element) { + + var scaytState = element.hasClass(plugin.options.misspelled_word_class) && element.attributes[plugin.options.data_attribute_name], + graytState = element.hasClass(plugin.options.problem_grammar_class) && element.attributes[plugin.options.problem_grammar_data_attribute]; + + if(plugin && (scaytState || graytState)) { + delete element.name; + } + + return element; + } + } + }; + + dataFilter.addRules(dataFilterRules); + } + + if (htmlFilter) { + var htmlFilterRules = { + elements: { + span: function(element) { + + var scaytState = element.hasClass(plugin.options.misspelled_word_class) && element.attributes[plugin.options.data_attribute_name], + graytState = element.hasClass(plugin.options.problem_grammar_class) && element.attributes[plugin.options.problem_grammar_data_attribute]; + + if(plugin && (scaytState || graytState)) { + delete element.name; + } + + return element; + } + } + }; + + htmlFilter.addRules(htmlFilterRules); + } + + if(removeFormatFilter) { + removeFormatFilter.call(editor, removeFormatFilterTemplate); + } + }, + scaytMenuDefinition: function(editor) { + var self = this, + plugin = CKEDITOR.plugins.scayt, + scayt_instance = editor.scayt; + + return { + scayt: { + scayt_ignore: { + label: scayt_instance.getLocal('btn_ignore'), + group : 'scayt_control', + order : 1, + exec: function(editor) { + var scaytInstance = editor.scayt; + scaytInstance.ignoreWord(); + } + }, + scayt_ignoreall: { + label : scayt_instance.getLocal('btn_ignoreAll'), + group : 'scayt_control', + order : 2, + exec: function(editor) { + var scaytInstance = editor.scayt; + scaytInstance.ignoreAllWords(); + } + }, + scayt_add: { + label : scayt_instance.getLocal('btn_addWord'), + group : 'scayt_control', + order : 3, + exec : function(editor) { + var scaytInstance = editor.scayt; + + // @TODO: We need to add set/restore bookmark logic to 'addWordToUserDictionary' method inside dictionarymanager. + // Timeout is used as tmp fix for IE9, when after hitting 'Add word' menu item, document container was blurred. + setTimeout(function() { + scaytInstance.addWordToUserDictionary(); + }, 10); + } + }, + scayt_option: { + label : scayt_instance.getLocal('btn_options'), + group : 'scayt_control', + order : 4, + exec: function(editor) { + var scaytInstance = editor.scayt; + + scaytInstance.tabToOpen = 'options'; + editor.lockSelection(); + editor.openDialog(self.dialogName); + }, + verification: function(editor) { + return (editor.config.scayt_uiTabs[0] == 1) ? true : false; + } + }, + scayt_language: { + label : scayt_instance.getLocal('btn_langs'), + group : 'scayt_control', + order : 5, + exec: function(editor) { + var scaytInstance = editor.scayt; + + scaytInstance.tabToOpen = 'langs'; + editor.lockSelection(); + editor.openDialog(self.dialogName); + }, + verification: function(editor) { + return (editor.config.scayt_uiTabs[1] == 1) ? true : false; + } + }, + scayt_dictionary: { + label : scayt_instance.getLocal('btn_dictionaries'), + group : 'scayt_control', + order : 6, + exec: function(editor) { + var scaytInstance = editor.scayt; + + scaytInstance.tabToOpen = 'dictionaries'; + editor.lockSelection(); + editor.openDialog(self.dialogName); + }, + verification: function(editor) { + return (editor.config.scayt_uiTabs[2] == 1) ? true : false; + } + }, + scayt_about: { + label : scayt_instance.getLocal('btn_about'), + group : 'scayt_control', + order : 7, + exec: function(editor) { + var scaytInstance = editor.scayt; + + scaytInstance.tabToOpen = 'about'; + editor.lockSelection(); + editor.openDialog(self.dialogName); + } + } + }, + grayt: { + grayt_problemdescription: { + label : 'Grammar problem description', + group : 'grayt_description', // look at addMenuItems method for further info + order : 1, + state : CKEDITOR.TRISTATE_DISABLED, + exec: function(editor) {} + }, + grayt_ignore: { + label : scayt_instance.getLocal('btn_ignore'), + group : 'grayt_control', + order : 2, + exec: function(editor) { + var scaytInstance = editor.scayt; + + scaytInstance.ignorePhrase(); + } + } + } + }; + }, + buildSuggestionMenuItems: function(editor, suggestions, isScaytNode) { + var self = this, + itemList = {}, + subItemList = {}, + replaceKeyName = isScaytNode ? 'word' : 'phrase', + updateEventName = isScaytNode ? 'startGrammarCheck' : 'startSpellCheck', + plugin = CKEDITOR.plugins.scayt, + scayt_instance = editor.scayt; + + if(suggestions.length > 0 && suggestions[0] !== 'no_any_suggestions') { + + if(isScaytNode) { + // build SCAYT suggestions + for(var i = 0; i < suggestions.length; i++) { + + var commandName = 'scayt_suggest_' + CKEDITOR.plugins.scayt.suggestions[i].replace(' ', '_'); + + editor.addCommand(commandName, self.createCommand(CKEDITOR.plugins.scayt.suggestions[i], replaceKeyName, updateEventName)); + + if(i < editor.config.scayt_maxSuggestions) { + + // mainSuggestions + editor.addMenuItem(commandName, { + label: suggestions[i], + command: commandName, + group: 'scayt_suggest', + order: i + 1 + }); + + itemList[commandName] = CKEDITOR.TRISTATE_OFF; + + } else { + + // moreSuggestions + editor.addMenuItem(commandName, { + label: suggestions[i], + command: commandName, + group: 'scayt_moresuggest', + order: i + 1 + }); + + subItemList[commandName] = CKEDITOR.TRISTATE_OFF; + + if(editor.config.scayt_moreSuggestions === 'on') { + + editor.addMenuItem('scayt_moresuggest', { + label : scayt_instance.getLocal('btn_moreSuggestions'), + group : 'scayt_moresuggest', + order : 10, + getItems : function() { + return subItemList; + } + }); + + itemList['scayt_moresuggest'] = CKEDITOR.TRISTATE_OFF; + } + } + } + } else { + // build GRAYT suggestions + for(var i = 0; i < suggestions.length; i++) { + var commandName = 'grayt_suggest_' + CKEDITOR.plugins.scayt.suggestions[i].replace(' ', '_'); + + editor.addCommand(commandName, self.createCommand(CKEDITOR.plugins.scayt.suggestions[i], replaceKeyName, updateEventName)); + + // mainSuggestions + editor.addMenuItem(commandName, { + label: suggestions[i], + command: commandName, + group: 'grayt_suggest', + order: i + 1 + }); + + itemList[commandName] = CKEDITOR.TRISTATE_OFF; + } + } + } else { + var noSuggestionsCommand = 'no_scayt_suggest'; + itemList[noSuggestionsCommand] = CKEDITOR.TRISTATE_DISABLED; + + editor.addCommand(noSuggestionsCommand, { + exec: function() { + + } + }); + + editor.addMenuItem(noSuggestionsCommand, { + label : scayt_instance.getLocal('btn_noSuggestions') || noSuggestionsCommand, + command: noSuggestionsCommand, + group : 'scayt_suggest', + order : 0 + }); + } + + return itemList; + }, + menuGenerator: function(editor, selectionNode) { + var self = this, + scaytInstance = editor.scayt, + menuItems = this.scaytMenuDefinition(editor), + itemList = {}, + allowedOption = editor.config.scayt_contextCommands.split('|'), + lang = selectionNode.getAttribute(scaytInstance.getLangAttribute()) || scaytInstance.getLang(), + word, grammarPhrase, isScaytNode, isGrammarNode, problemDescriptionText; + + + isScaytNode = scaytInstance.isScaytNode(selectionNode); + isGrammarNode = scaytInstance.isGraytNode(selectionNode); + + if(isScaytNode) { + // we clicked scayt misspelling + // get suggestions + menuItems = menuItems.scayt; + + word = selectionNode.getAttribute(scaytInstance.getScaytNodeAttributeName()); + + scaytInstance.fire('getSuggestionsList', { + lang: lang, + word: word + }); + + itemList = this.buildSuggestionMenuItems(editor, CKEDITOR.plugins.scayt.suggestions, isScaytNode); + } else if(isGrammarNode) { + // we clicked grammar problem + // get suggestions + menuItems = menuItems.grayt; + grammarPhrase = selectionNode.getAttribute(scaytInstance.getGraytNodeAttributeName()); + + // setup grammar problem description + problemDescriptionText = scaytInstance.getProblemDescriptionText(grammarPhrase, lang); + if(menuItems.grayt_problemdescription && problemDescriptionText) { + menuItems.grayt_problemdescription.label = problemDescriptionText; + } + + scaytInstance.fire('getGrammarSuggestionsList', { + lang: lang, + phrase: grammarPhrase + }); + + itemList = this.buildSuggestionMenuItems(editor, CKEDITOR.plugins.scayt.suggestions, isScaytNode); + } + + if(isScaytNode && editor.config.scayt_contextCommands == 'off') { + return itemList; + } + + for(var key in menuItems) { + if(isScaytNode && CKEDITOR.tools.indexOf(allowedOption, key.replace('scayt_', '')) == -1 && editor.config.scayt_contextCommands != 'all') { + continue; + } + + if(typeof menuItems[key].state != 'undefined') { + itemList[key] = menuItems[key].state; + } else { + itemList[key] = CKEDITOR.TRISTATE_OFF; + } + + // delete item from context menu if its state isn't verified as allowed + if(typeof menuItems[key].verification === 'function' && !menuItems[key].verification(editor)) { + // itemList[key] = (menuItems[key].verification(editor)) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED; + delete itemList[key]; + } + + editor.addCommand(key, { + exec: menuItems[key].exec + }); + + editor.addMenuItem(key, { + label : editor.lang.scayt[menuItems[key].label] || menuItems[key].label, + command: key, + group : menuItems[key].group, + order : menuItems[key].order + }); + } + + return itemList; + }, + createCommand: function(suggestion, replaceKeyName, updateEventName) { + return { + exec: function(editor) { + var scaytInstance = editor.scayt, + eventObject = {}; + + eventObject[replaceKeyName] = suggestion; + scaytInstance.replaceSelectionNode(eventObject); + + // we need to remove grammar markup from selection node if we just performed replace action for misspelling + if(updateEventName === 'startGrammarCheck') { + scaytInstance.removeMarkupInSelectionNode({grammarOnly: true}); + } + // for grayt problem replacement we need to fire 'startSpellCheck' + // for scayt misspelling replacement we need to fire 'startGrammarCheck' + scaytInstance.fire(updateEventName); + } + }; + } +}); + +CKEDITOR.plugins.scayt = { + state: { + scayt: {}, + grayt: {} + }, + suggestions: [], + loadingHelper: { + loadOrder: [] + }, + isLoading: false, + options: { + disablingCommandExec: { + source: true, + newpage: true, + templates: true + }, + data_attribute_name: 'data-scayt-word', + misspelled_word_class: 'scayt-misspell-word', + problem_grammar_data_attribute: 'data-grayt-phrase', + problem_grammar_class: 'gramm-problem' + }, + backCompatibilityMap: { + 'scayt_service_protocol': 'scayt_serviceProtocol', + 'scayt_service_host' : 'scayt_serviceHost', + 'scayt_service_port' : 'scayt_servicePort', + 'scayt_service_path' : 'scayt_servicePath', + 'scayt_customerid' : 'scayt_customerId' + }, + replaceOldOptionsNames: function(config) { + for(var key in config) { + if(key in this.backCompatibilityMap) { + config[this.backCompatibilityMap[key]] = config[key]; + delete config[key]; + } + } + }, + createScayt : function(editor) { + var self = this, + plugin = CKEDITOR.plugins.scayt; + + this.loadScaytLibrary(editor, function(_editor) { + var textContainer = _editor.window && _editor.window.getFrame() || _editor.editable(); + + // Do not create SCAYT if there is no text container for usage + if(!textContainer) { + plugin.state.scayt[_editor.name] = false; + return; + } + + var scaytInstanceOptions = { + lang : _editor.config.scayt_sLang, + container : textContainer.$, + customDictionary : _editor.config.scayt_customDictionaryIds, + userDictionaryName : _editor.config.scayt_userDictionaryName, + localization : _editor.langCode, + customer_id : _editor.config.scayt_customerId, + debug : _editor.config.scayt_debug, + data_attribute_name : self.options.data_attribute_name, + misspelled_word_class: self.options.misspelled_word_class, + problem_grammar_data_attribute: self.options.problem_grammar_data_attribute, + problem_grammar_class: self.options.problem_grammar_class, + 'options-to-restore': _editor.config.scayt_disableOptionsStorage, + focused : _editor.editable().hasFocus, // #30260 we need to set focused=true if CKEditor is focused before SCAYT initialization + ignoreElementsRegex : _editor.config.scayt_elementsToIgnore, + minWordLength : _editor.config.scayt_minWordLength, + multiLanguageMode : _editor.config.scayt_multiLanguageMode, + multiLanguageStyles : _editor.config.scayt_multiLanguageStyles, + graytAutoStartup : plugin.state.grayt[_editor.name] + }; + + if(_editor.config.scayt_serviceProtocol) { + scaytInstanceOptions['service_protocol'] = _editor.config.scayt_serviceProtocol; + } + + if(_editor.config.scayt_serviceHost) { + scaytInstanceOptions['service_host'] = _editor.config.scayt_serviceHost; + } + + if(_editor.config.scayt_servicePort) { + scaytInstanceOptions['service_port'] = _editor.config.scayt_servicePort; + } + + if(_editor.config.scayt_servicePath) { + scaytInstanceOptions['service_path'] = _editor.config.scayt_servicePath; + } + + //predefined options + if(typeof _editor.config.scayt_ignoreAllCapsWords === 'boolean') { + scaytInstanceOptions['ignore-all-caps-words'] = _editor.config.scayt_ignoreAllCapsWords; + } + + if(typeof _editor.config.scayt_ignoreDomainNames === 'boolean') { + scaytInstanceOptions['ignore-domain-names'] = _editor.config.scayt_ignoreDomainNames; + } + + if(typeof _editor.config.scayt_ignoreWordsWithMixedCases === 'boolean') { + scaytInstanceOptions['ignore-words-with-mixed-cases'] = _editor.config.scayt_ignoreWordsWithMixedCases; + } + + if(typeof _editor.config.scayt_ignoreWordsWithNumbers === 'boolean') { + scaytInstanceOptions['ignore-words-with-numbers'] = _editor.config.scayt_ignoreWordsWithNumbers; + } + + var scaytInstance = new SCAYT.CKSCAYT(scaytInstanceOptions, function() { + // success callback + }, function() { + // error callback + }), + wordsPrefix = 'word_'; + + scaytInstance.subscribe('suggestionListSend', function(data) { + // TODO: 1. Maybe store suggestions for specific editor + // TODO: 2. Fix issue with suggestion duplicates on on server + //CKEDITOR.plugins.scayt.suggestions = data.suggestionList; + var _wordsCollection = {}, + _suggestionList =[]; + + for (var i = 0; i < data.suggestionList.length; i++) { + if (!_wordsCollection[wordsPrefix + data.suggestionList[i]]) { + _wordsCollection[wordsPrefix + data.suggestionList[i]] = data.suggestionList[i]; + _suggestionList.push(data.suggestionList[i]); + } + } + + CKEDITOR.plugins.scayt.suggestions = _suggestionList; + }); + + // if selection has changed programmatically by SCAYT we need to react appropriately + scaytInstance.subscribe('selectionIsChanged', function(data) { + var selection = _editor.getSelection(); + + if(selection.isLocked) { + _editor.lockSelection(); + } + }); + + scaytInstance.subscribe('graytStateChanged', function(data) { + plugin.state.grayt[_editor.name] = data.state; + }); + + _editor.scayt = scaytInstance; + + _editor.fire('scaytButtonState', _editor.readOnly ? CKEDITOR.TRISTATE_DISABLED : CKEDITOR.TRISTATE_ON); + }); + }, + destroy: function(editor) { + if(editor.scayt) { + editor.scayt.destroy(); + } + + delete editor.scayt; + editor.fire('scaytButtonState', CKEDITOR.TRISTATE_OFF); + }, + loadScaytLibrary: function(editor, callback) { + var self = this, + date, + timestamp, + scaytUrl; + + // no need to process load requests from same editor as it can cause bugs with + // loading ckscayt app due to subsequent calls of some events + // need to be before 'if' statement, because of timing issue in CKEDITOR.scriptLoader + // when callback executing is delayed for a few milliseconds, and scayt can be created twise + // on one instance + if(this.loadingHelper[editor.name]) return; + + if(typeof window.SCAYT === 'undefined' || typeof window.SCAYT.CKSCAYT !== 'function') { + + // add onLoad callbacks for editors while SCAYT is loading + this.loadingHelper[editor.name] = callback; + this.loadingHelper.loadOrder.push(editor.name); + + //creating unique timestamp for SCAYT URL + date = new Date(); + timestamp = date.getTime(); + scaytUrl = editor.config.scayt_srcUrl; + + //if there already implemented timstamp for scayr_srcURL use it, if not use our timestamp + scaytUrl = scaytUrl + (scaytUrl.indexOf('?') >= 0 ? '' : '?' + timestamp); + + if (!this.loadingHelper.ckscaytLoading) { + CKEDITOR.scriptLoader.load(scaytUrl, function(success) { + var editorName; + + if ( success ) { + CKEDITOR.fireOnce('scaytReady'); + + for(var i = 0; i < self.loadingHelper.loadOrder.length; i++) { + editorName = self.loadingHelper.loadOrder[i]; + + if(typeof self.loadingHelper[editorName] === 'function') { + self.loadingHelper[editorName](CKEDITOR.instances[editorName]); + } + + delete self.loadingHelper[editorName]; + } + self.loadingHelper.loadOrder = []; + } + }); + this.loadingHelper.ckscaytLoading = true; + } + + + } else if(window.SCAYT && typeof window.SCAYT.CKSCAYT === 'function') { + CKEDITOR.fireOnce('scaytReady'); + + if(!editor.scayt) { + if(typeof callback === 'function') { + callback(editor); + } + } + } + } +}; + +CKEDITOR.on('dialogDefinition', function(dialogDefinitionEvent) { + var dialogName = dialogDefinitionEvent.data.name, + dialogDefinition = dialogDefinitionEvent.data.definition, + dialog = dialogDefinition.dialog; + + if (dialogName === 'scaytDialog') { + dialog.on('cancel', function(cancelEvent) { + return false; + }, this, null, -1); + } + + if ( dialogName === 'checkspell' ) { + dialog.on( 'cancel', function( cancelEvent ) { + var editor = cancelEvent.sender && cancelEvent.sender.getParentEditor(), + plugin = CKEDITOR.plugins.scayt, + scaytInstance = editor.scayt; + + if ( scaytInstance && plugin.state.scayt[ editor.name ] && scaytInstance.setMarkupPaused ) { + scaytInstance.setMarkupPaused( false ); + } + + editor.unlockSelection(); + }, this, null, -2 ); // we need to call cancel callback before WSC plugin + } + + if (dialogName === 'link') { + dialog.on('ok', function(okEvent) { + var editor = okEvent.sender && okEvent.sender.getParentEditor(); + + if(editor) { + setTimeout(function() { + editor.fire('reloadMarkupScayt', { + removeOptions: { + removeInside: true, + forceBookmark: true + }, + timeout: 0 + }); + }, 0); + } + }); + } +}); + +CKEDITOR.on('scaytReady', function() { + + // Override editor.checkDirty method avoid CK checkDirty functionality to fix SCAYT issues with incorrect checkDirty behavior. + if(CKEDITOR.config.scayt_handleCheckDirty === true) { + var editorCheckDirty = CKEDITOR.editor.prototype; + + editorCheckDirty.checkDirty = CKEDITOR.tools.override(editorCheckDirty.checkDirty, function(org) { + + return function() { + var retval = null, + pluginStatus = CKEDITOR.plugins.scayt && CKEDITOR.plugins.scayt.state.scayt[this.name] && this.scayt, + scaytInstance = this.scayt; + + if(!pluginStatus) { + retval = org.call(this); + } else { + retval = (this.status == 'ready'); + + if (retval) { + var currentData = scaytInstance.removeMarkupFromString(this.getSnapshot()), + prevData = scaytInstance.removeMarkupFromString(this._.previousValue); + + retval = (retval && (prevData !== currentData)) + } + } + + return retval; + }; + }); + + editorCheckDirty.resetDirty = CKEDITOR.tools.override(editorCheckDirty.resetDirty, function(org) { + return function() { + var pluginStatus = CKEDITOR.plugins.scayt && CKEDITOR.plugins.scayt.state.scayt[this.name] && this.scayt, + scaytInstance = this.scayt;//CKEDITOR.plugins.scayt.getScayt(this); + + if(!pluginStatus) { + org.call(this); + } else { + this._.previousValue = scaytInstance.removeMarkupFromString(this.getSnapshot()); + } + }; + }); + } + + if (CKEDITOR.config.scayt_handleUndoRedo === true) { + var undoImagePrototype = CKEDITOR.plugins.undo.Image.prototype; + + // add backword compatibility for CKEDITOR 4.2. method equals was repleced on other method + var equalsContentMethodName = (typeof undoImagePrototype.equalsContent == "function") ? 'equalsContent' : 'equals'; + + undoImagePrototype[equalsContentMethodName] = CKEDITOR.tools.override(undoImagePrototype[equalsContentMethodName], function(org) { + return function(otherImage) { + var pluginState = CKEDITOR.plugins.scayt && CKEDITOR.plugins.scayt.state.scayt[otherImage.editor.name] && otherImage.editor.scayt, + scaytInstance = otherImage.editor.scayt, + thisContents = this.contents, + otherContents = otherImage.contents, + retval = null; + + // Making the comparison based on content without SCAYT word markers. + if(pluginState) { + this.contents = scaytInstance.removeMarkupFromString(thisContents) || ''; + otherImage.contents = scaytInstance.removeMarkupFromString(otherContents) || ''; + } + + var retval = org.apply(this, arguments); + + this.contents = thisContents; + otherImage.contents = otherContents; + + return retval; + }; + }); + } +}); + +/** + * The parameter turns on/off SCAYT on the autostartup. If 'true', turns on SCAYT automatically after loading the editor. + * + * config.scayt_autoStartup = true; + * + * @cfg {Boolean} [scayt_autoStartup=false] + * @member CKEDITOR.config + */ + +/** + * The parameter turns on/off Grammar As You Type (GRAYT) on the SCAYT startup. If 'true', turns on GRAYT automatically after SCAYT started. + * + * config.grayt_autoStartup = true; + * + * @cfg {Boolean} [grayt_autoStartup=false] + * @member CKEDITOR.config + */ + +/** + * The parameter turns on/off SCAYT initiation when Inline CKEditor is not focused. SCAYT markup is taken place (SCAYT instance is not destroyed) + * in both Inline CKEditor's states, focused and unfocused. + * + * config.scayt_inlineModeImmediateMarkup = true; + * + * @cfg {Boolean} [scayt_inlineModeImmediateMarkup=false] + * @member CKEDITOR.config + */ + + +/** + * The parameter defines the number of SCAYT suggestions to show in the main context menu. + * Possible values are: + * + * * `0` (zero) – No suggestions are shown in the main context menu. All + * entries will be listed in the "More Suggestions" sub-menu. + * * Positive number – The maximum number of suggestions to show in the context + * menu. Other entries will be shown in the "More Suggestions" sub-menu. + * * Negative number – 5 suggestions are shown in the main context menu. All other + * entries will be listed in the "More Suggestions" sub-menu. + * + * Examples: + * + * // Display only three suggestions in the main context menu. + * config.scayt_maxSuggestions = 3; + * + * // Do not show the suggestions directly. + * config.scayt_maxSuggestions = 0; + * + * @cfg {Number} [scayt_maxSuggestions=5] + * @member CKEDITOR.config + */ + +/** + * The parameter defines minimum length of the words that will be collected from editor's text for spell checking. + * Possible value is any positive number. + * + * Examples: + * + * // Set minimum length of the words that will be collected from text. + * config.scayt_minWordLength = 5; + * + * @cfg {Number} [scayt_minWordLength=4] + * @member CKEDITOR.config + */ + +/** + * The parameter sets the customer ID for SCAYT. Used for hosted users only. Required for migration from free + * to trial or paid versions. + * + * // Load SCAYT using my customer ID. + * config.scayt_customerId = 'your-encrypted-customer-id'; + * + * @cfg {String} [scayt_customerId='1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2'] + * @member CKEDITOR.config + */ + +/** + * The parameter enables/disables the "More Suggestions" sub-menu in the context menu. + * Possible values are `'on'` and `'off'`. + * + * // Disables the "More Suggestions" sub-menu. + * config.scayt_moreSuggestions = 'off'; + * + * @cfg {String} [scayt_moreSuggestions='on'] + * @member CKEDITOR.config + */ + +/** + * The parameter customizes the display of SCAYT context menu commands ("Add Word", "Ignore", + * "Ignore All", "Options", "Languages", "Dictionaries" and "About"). + * This must be a string with one or more of the following + * words separated by a pipe character (`'|'`): + * + * * `off` – disables all options. + * * `all` – enables all options. + * * `ignore` – enables the "Ignore" option. + * * `ignoreall` – enables the "Ignore All" option. + * * `add` – enables the "Add Word" option. + * * `option` – enables "Options" menu item. + * * `language` – enables "Languages" menu item. + * * `dictionary` – enables "Dictionaries" menu item. + * * `about` – enables "About" menu item. + * + * Note, that availability of 'Options', 'Languages' and 'Dictionaries' items + * depends on scayt_uiTabs option also. + * Example: + * + * // Show only "Add Word" and "Ignore All" in the context menu. + * config.scayt_contextCommands = 'add|ignoreall'; + * + * @cfg {String} [scayt_contextCommands='ignore|ignoreall|add'] + * @member CKEDITOR.config + */ + +/** + * The parameter sets the default spell checking language for SCAYT. Possible values are: + * `'en_US'`, `'en_GB'`, `'pt_BR'`, `'da_DK'`, + * `'nl_NL'`, `'en_CA'`, `'fi_FI'`, `'fr_FR'`, + * `'fr_CA'`, `'de_DE'`, `'el_GR'`, `'it_IT'`, + * `'nb_NO'`, `'pt_PT'`, `'es_ES'`, `'sv_SE'`. + * + * // Sets SCAYT to German. + * config.scayt_sLang = 'de_DE'; + * + * @cfg {String} [scayt_sLang='en_US'] + * @member CKEDITOR.config + */ + +/** + * The parameter customizes the SCAYT dialog and SCAYT toolbar menu to show particular tabs/items. + * This setting must contain a `1` (enabled) or `0` + * (disabled) value for each of the following entries, in this precise order, + * separated by a comma (`','`): `'Options'`, `'Languages'`, and `'Dictionary'`. + * + * // Hides the "Languages" tab. + * config.scayt_uiTabs = '1,0,1'; + * + * @cfg {String} [scayt_uiTabs='1,1,1'] + * @member CKEDITOR.config + */ + +/** + * The parameter allows to specify protocol for WSC service (ssrv.cgi) full path. + * + * // Defines protocol for WSC service (ssrv.cgi) full path. + * config.scayt_serviceProtocol = 'https'; + * + * @cfg {String} [scayt_serviceProtocol='http'] + * @member CKEDITOR.config + */ + +/** + * The parameter allows to specify host for WSC service (ssrv.cgi) full path. + * + * // Defines host for WSC service (ssrv.cgi) full path. + * config.scayt_serviceHost = 'my-host'; + * + * @cfg {String} [scayt_serviceHost='svc.webspellchecker.net'] + * @member CKEDITOR.config + */ + +/** + * The parameter allows to specify port for WSC service (ssrv.cgi) full path. + * + * // Defines port for WSC service (ssrv.cgi) full path. + * config.scayt_servicePort = '2330'; + * + * @cfg {String} [scayt_servicePort='80'] + * @member CKEDITOR.config + */ + +/** + * The parameter allows to specify path for WSC service (ssrv.cgi) full path. + * + * // Defines host for WSC service (ssrv.cgi) full path. + * config.scayt_servicePath = 'my-path/ssrv.cgi'; + * + * @cfg {String} [scayt_servicePath='spellcheck31/script/ssrv.cgi'] + * @member CKEDITOR.config + */ + +/** + * The parameter sets the URL to SCAYT core. Required to switch to the licensed version of SCAYT application. + * + * Further details available at [http://wiki.webspellchecker.net/doku.php?id=migration:hosredfreetolicensedck](http://wiki.webspellchecker.net/doku.php?id=migration:hosredfreetolicensedck) + * + * config.scayt_srcUrl = "http://my-host/spellcheck/lf/scayt/scayt.js"; + * + * @cfg {String} [scayt_srcUrl='//svc.webspellchecker.net/spellcheck31/lf/scayt3/ckscayt/ckscayt.js'] + * @member CKEDITOR.config + */ + +/** + * The parameter links SCAYT to custom dictionaries. This is a string containing dictionary IDs + * separated by commas (`','`). Available only for the licensed version. + * + * Further details at [http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:customdictionaries:licensed](http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:customdictionaries:licensed) + * + * config.scayt_customDictionaryIds = '3021,3456,3478'; + * + * @cfg {String} [scayt_customDictionaryIds=''] + * @member CKEDITOR.config + */ + +/** + * The parameter activates a User Dictionary in SCAYT. The user + * dictionary name must be used. Available only for the licensed version. + * + * config.scayt_userDictionaryName = 'MyDictionary'; + * + * @cfg {String} [scayt_userDictionaryName=''] + * @member CKEDITOR.config + */ + +/** + * The parameter defines the order SCAYT context menu items by groups. + * This must be a string with one or more of the following + * words separated by a pipe character (`'|'`): + * + * * `suggest` – main suggestion word list, + * * `moresuggest` – more suggestions word list, + * * `control` – SCAYT commands, such as "Ignore" and "Add Word". + * + * Example: + * + * config.scayt_contextMenuItemsOrder = 'moresuggest|control|suggest'; + * + * @cfg {String} [scayt_contextMenuItemsOrder='suggest|moresuggest|control'] + * @member CKEDITOR.config + */ + +/** + * If set to `true` – overrides checkDirty functionality of CK + * to fix SCAYT issues with incorrect checkDirty behavior. If set to `false`, + * provides better performance on big preloaded text. + * + * config.scayt_handleCheckDirty = 'false'; + * + * @cfg {String} [scayt_handleCheckDirty='true'] + * @member CKEDITOR.config + */ + +/** + * If set to `true` – overrides undo\redo functionality of CK + * to fix SCAYT issues with incorrect undo\redo behavior. If set to `false`, + * provides better performance on undo\redo text. + * + * config.scayt_handleUndoRedo = 'false'; + * + * @cfg {String} [scayt_handleUndoRedo='true'] + * @member CKEDITOR.config + */ + +/** + * The parameter that turns off\on 'ignore-all-caps-words' option by default + * It may be needed to disableOptionStorage for this parameter, because optionStorage has higher priority. + * + * config.scayt_ignoreAllCapsWords = false; + * + * @cfg {Boolean} [scayt_ignoreAllCapsWords=false] + * @member CKEDITOR.config + */ + +/** + * The parameter that turns off\on 'ignore-domain-names' option by default + * It may be needed to disableOptionStorage for this parameter, because optionStorage has higher priority. + * + * config.scayt_ignoreDomainNames = false; + * + * @cfg {Boolean} [scayt_ignoreDomainNames=false] + * @member CKEDITOR.config + */ + +/** + * The parameter that turns off\on 'ignore-words-with-mixed-cases' option by default + * It may be needed to disableOptionStorage for this parameter, because optionStorage has higher priority. + * + * config.scayt_ignoreWordsWithMixedCases = false; + * + * @cfg {Boolean} [scayt_ignoreWordsWithMixedCases=false] + * @member CKEDITOR.config + */ + +/** + * The parameter that turns off\on 'ignore-words-with-numbers' option by default + * It may be needed to disableOptionStorage for this parameter, because optionStorage has higher priority. + * + * config.scayt_ignoreWordsWithNumbers = false; + * + * @cfg {Boolean} [scayt_ignoreWordsWithNumbers=false] + * @member CKEDITOR.config + */ + +/** + * Disabling of SCAYT Options storing during several sessions. Options storing will be turned off after page refresh. + * + * * `'options'` - disables all SCAYT Ignore options + * * `'ignore-all-caps-words'` - disables 'Ignore All-Caps Words' option + * * `'ignore-domain-names'` - disables 'Ignore Domain Names' option + * * `'ignore-words-with-mixed-cases'` - disables 'Ignore Words with Mixed Case' option + * * `'ignore-words-with-numbers'` - disables 'Ignore Words with Numbers' option + * * `'lang'` - disables SCAYT spell check language storing + * * `'all'` - disables all SCAYT options storing + * + * Example: + * + * // One options disabling. + * config.scayt_disableOptionsStorage = 'all'; + * + * // Several options disabling. + * config.scayt_disableOptionsStorage = ['lang', 'ignore-domain-names', 'ignore-words-with-numbers']; + * + * + * @cfg {String|Array} [scayt_disableOptionsStorage = ''] + * @member CKEDITOR.config + */ + + /** + * Specifies the names of tags that will be skipped while spell checking. This is a string containing tag names + * separated by commas (`','`). Please note that `'style'` tag would be added to specified tags list. + * + * config.scayt_elementsToIgnore = 'del,pre'; + * + * @cfg {String} [scayt_elementsToIgnore='style'] + * @member CKEDITOR.config + */ + + /** + * The parameter turns on/off multi language support in SCAYT. If 'true', turns on SCAYT multi language support after loading the editor. + * + * config.scayt_multiLanguageMode = true; + * + * @cfg {Boolean} [scayt_multiLanguageMode=false] + * @member CKEDITOR.config + */ + + /** + * Defines additional styles for misspellings for specified languages. Styles will be applied only if 'scayt_multiLanguageMode' parameter is set to 'true' + * and 'language' plugin included and loaded into editor. All misspellings still will be underlined with red waveline by default. + * + * Example: + * + * // Display misspellings in French language with green color and underlined with red waveline + * config.scayt_multiLanguageStyles = { + * 'fr': 'color: green' + * }; + * + * // Display misspellings in Italian language with green color and underlined with red waveline and German misspellings with red color only + * config.scayt_multiLanguageStyles = { + * 'it': 'color: green', + * 'de': 'background-image: none; color: red' + * }; + * + * @cfg {Object} [scayt_multiLanguageStyles = {}] + * @member CKEDITOR.config + */ diff --git a/sources/plugins/selectall/icons/hidpi/selectall.png b/sources/plugins/selectall/icons/hidpi/selectall.png new file mode 100644 index 0000000000000000000000000000000000000000..c67f64ddebbb427841df12e95e00bddc3ed8affe GIT binary patch literal 1093 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzwj^(N7l!{JxM1({$v_d#0*}aI zppNSx%;=;syMlp%InL9?F(l&f+v#WXZo3H_um7!>>8UN$vOvBqR^f%O(Sz+Lv{_zc zKgs2JGVRHn)&6zOhuRvWN`t?ID3&$4^eIdhIeGW3qmb^YO)figFEGhAFr2*k^vs{< z_Qu|YH8nXun;x|)gm&G#I@N2cQ=R8yhPs!L+=?m<0!)f5UYbjEem|Xa*pj_r%BOjC zlP#Waxc2Dpl|2zR);~9Q;%HJ>a5XEjN3+M`xyPiIj}<%)n{Vp8TrJ^0spVpZi_Gx{ zf4@YPIcU1BzWV6H2Z3asDF4vPd6QK*#l^)d-dkE&%*ea4YZ7ziJm!M3vSTW~8#h0n z#O%beWQs(x!Lbe7x4Z9+V^{DEW@~126qummnYmdYsdnGq^vP2WO$b`Fby?hcaXuY4 zX;;C&b@L5)wtG2>xbn0gZgN+hJ$2tFelJeO=Q2RsmSuj_^S!LppD1zZZ5emSswD{% znF}W+Ob@v5xwUwkn&+Veg9Tx$87HJheykI1sh4KD7Ip0L$GtN8(;q&4`t(}rjy~q^ zS(!6;ettD$@+ZUI6+%p2nuiRQTz~B=>TRjF>qgriefHo^=Fk-B!~ISNqJFQiy07wo zuARa217@ZBJXaMwxZix>zf8pO#>&P!&UvliyVrTna)`*S~~fH)z6=Qt6xPa ziwn$<_nP}%f#saUC!NFErO$yeB**^Xolp7acXQ8e>RBJRC!+Jn`}}(=Ucb(+tN6Jo zXy3WMz6-r>Un2u<-*nU|Sa>yy(Lkz~Yj2*Jw(`?74pBaf=Mw$L=ggl!{n_5H^8%+C zzWUzzSi;_W-lZtUiubw)^w-BLOYzp(SY6UPEw@HOk!4fZVlftl)SHbKeV&)M{P1Kf zIN;)C73g9z^Nwr6>6smuMN)abs{4m+sy)elWKGQ1q)tx76Pwm-xyJ3d%=BD!$l`TuFp0*bFTNbs@MK~c{TOlyPL+h&d-m&{PM%w%gcoxyn5_Dou|FW&+p3B z<^D@VXNL*KUu``Xb;ymmsUhD=c9x??)FK#IZ0z|dINz)aW3AjHtn%D~*pz(m`?$jZRr+oNTkC>nC}Q!>*kacgMb zFZUIwK@wy`aDG}zd16s2LwR|*US?i)adKios$PCk`s{Z$Qb0uvp00i_>zopr074Mz A6#xJL literal 0 HcmV?d00001 diff --git a/sources/plugins/selectall/icons/selectall.png b/sources/plugins/selectall/icons/selectall.png new file mode 100644 index 0000000000000000000000000000000000000000..0d1e8160e422f8cc3615c2787a26fe0af53dcf06 GIT binary patch literal 665 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 literal 0 HcmV?d00001 diff --git a/sources/plugins/showblocks/icons/hidpi/showblocks.png b/sources/plugins/showblocks/icons/hidpi/showblocks.png new file mode 100644 index 0000000000000000000000000000000000000000..a776fcc139f14c017dff59998bf3d9b3d5ca9832 GIT binary patch literal 1895 zcmV-t2blPYP)?(V9Z#l78h+ift>%#lj+SFUqU)px#gs#^T(-FJ~f zpri!ASPOs@;-Rp%7He($n?eYP*B}JeTC_2kc%37KAmw?aQz-zpwzmQB6N!hyVXa0} zYy3oljPK)0i7_VHq?9y_A=uiY60dWll%$hMhF^a9GQflP-=78OfAPhK!W-|sH`_3V z{J;QWdU_<4&(9q{c5DXV#?70bR##U3YQOw)`QGX(<*h9otVK5(P^m-|*6R^n4~fy5 zjPE0+r$=6R>80zrbUI%S0sy9-fBtMK44)O#(pj5)v>%!LS;=%el z>uYOmyuP;ftN6kCdK;I60BJ3LK0lZ7{rp#pi?`msaN(P`FI@QMtHs4z8Q;(Q`TU$4 z>myQLhZ$?BwoV09wzsLodG3X)^?F-~09cFBn#U(6XI58M_;6vtDHIAv3x&eb4;L1k z)s+<YnL`H;J^-cx4jnxBx1d}mm&=W6W3Yg;lK~+m(sgm;vLr4q<+?qwR0<(w z7Xud1#-O8_H?F_+)*`^k*I$1_!xz$+c4|btnKzM zmoZwSjRDtXRdU0TF-qyNRWi-G@%#ViS>a8fCpMk5NAN+FcOcC3*~ zDRS8?LI^8_u(@m&rPRJ-_40R=LTimN1}S9}ObBG$l#JGh|0@H4?P$NPV69f%$&%Ds zQ|icJDG1P7?>o>={~!q3y}qkFW7|3J06*_=$KU%k(E}T;u|2-sI$UdBDy7Kga_t;u zbGhHFfnENNgN<*y7S)|8=$zkE0|KzW68x9g>P0_vXrskI`!49nVca5d9S0>PN=jVE z*@YdYU}ql)f~XI~L&PU&A)@*KWwsTl6l?Xa;X>*g(FW_KvlX8cKHcKV6F<4{vR|VEu z8Xb*iD4Xq~so(dzPPY>eW-`&kGq#4-(Zf^g?%=eD>u7R9;7FxN=W>`USI(%@r$CzcT{pk6u|ZHO(P%UvR(;E{+3^~3U6;XJZuGIkhtJj; zjc3*A(#Xx3D1L6YA)fr`5*7xxpnQ@H77qje3X6I%IfOv zQ>RWf#}6HP65pS5J@3zG9o=|B;3(Dp&Edq=(b=RVu_*E*BQxb7pja&KJ2*goc=%|s zSaixkK;giFna)!uJr5_7A(u{*OQ&%%8Iqodh|>{?5YWvg)oK-;N)ZIXcYZ4Mr|;+I zzpus@N-q;YN+~8@eRU!Tf;p}AAF9=ARF>8fhT%^`*=#|aIPsJ%78e1;)YMa_o_?CO z_4S`j{48^f)@)U)jE{}o)nPdL*yQA37z6|M>Qx%s+g;D6PE%6iCK3oC2GZH=;OOWm zW8>p@D`5!0K!5*Iy;dtcIx+F4c;bok0FO>gyjic+=qaf#juW#PC@#KC57+WD8E5LdE^M=m@U*EfT?~fg8N80O*K>-pWke{w{%_d8{n+Qk)w#K4l}w_N$zI>dZgy6sLx&s*wX>c?E001R)MObuXVRU6W zV{&C-bY%cCFflVNFg7hRFjO%yIxsgnFf=PLGCD9Y_Tr{V0000bbVXQnWMOn=I&E)c zX=Zr8FWQhbW?9;ba!ELWdL_~ hcP?peYja~^aAhuUa%Y?FJQ@H1002ovPDHLkV1iHuhaUg{ literal 0 HcmV?d00001 diff --git a/sources/plugins/showblocks/icons/showblocks-rtl.png b/sources/plugins/showblocks/icons/showblocks-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..cd87d3e258e38e656379acb146f4c8744906752c GIT binary patch literal 691 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|i;~7sE#}JFtwUd1FlpJ|l?Zd;p73!o^^d@qj>0&*t^W39=flq*M zLXJB35|4>D(mNL&=!#L$5_567%d$P)F`U~YO~-ccq*y)s-8%B}@?U<}PEuh!aOTGQ z?<=&@!hX9vX*%0ubN=D$*W3vldqO0_Iv+p&$YG$@^{8p}oI(!9=X=>_tP9hQT^q*b zvwGFE=ay+{yYIeh>RxnUl~!En%db`Y^YZfQn0eTm?HQDmZoi!-aL6U}=bt}w7~XvU z?YaE&!n=9i9E{6XZMmHr@^z!m>EmImMSpL*@!Is%rZu7##*Ygu9?WredE_%;vZB(Q z=r5k41xikl(@Gse^+k>>Defy|VE^jR5a25(I8nv(!@YXvrC|(zDnlPQInH}-@jRcHT_npOQqfI)}>5*>RZ_Ap`K3nDXm1oh>;x`}b-|V&j z`ex4R{cCRK9J4O8e#^dx;qc>+6+r>H$_$yajy*2f8@GC<==F&8*SUNqt61s=&03bP zRHUu6{oe2GKd$AN&1T-4edq4ovyCC4iY*5|fBww;foqSRST}p<)0Zz_%0>KJ-1@Y} zZa=@`fwavB&$y*+TVqgFUvK~YseM9b+TycmhvN<1`X{_fS-%(<*{UV35hW>!C8<`) zMX5lF!N|bSSl7T@*T5vi(A>(v7>KkDjI0a{e3$G7CIlo6x%nxXX_dG&*!*NZ0@NT0 uvLQG>t)x7$D3zhSyj(9cFS|H7u^?41zbJk7I~ysWA_h-aKbLh*2~7Z2s30u> literal 0 HcmV?d00001 diff --git a/sources/plugins/showblocks/icons/showblocks.png b/sources/plugins/showblocks/icons/showblocks.png new file mode 100644 index 0000000000000000000000000000000000000000..41b5f3466d295c381a785f9a68c65a1f2f45576a GIT binary patch literal 701 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|i<26qg#}JFtt&=zUJ$4XrJ>PR&Nb#WG#Q7)qb6g!gcg~+u<6y^N z$8hVeQjm&D)hUjNA)cP;6CAh9k zeJXqR?v?#mw%fJT%pg)nY+Hm5&x{rUj;$`=KYenVmYQt*`0w9Zo((s1j-{ukf2p!n z?>w0BA=yIaAIppHzxSWX33r&ZNyk~}ciNWsy-j)By+cFyt6qHl)nM~ojy&;46Zu%5Hr^S!37PAT*K!Ng07@>&L)w`GKe?oR4udT*=PvR}Y8aPWC6neNT3#!x7;oy&>C znm;S~(dyN!H81?{dj0yfroeSi|8qONpWjK9Iqsjf?f1-OmtXQ4{6Eg|`DRX8a@w8y z_wO_HA9#HC?%mvJsT-o!PAE~#)XV(M`)rclwbx%C?%TPf`)bxv`9Ohk3#limi-6It zTH+c}l9E`GYL#4+3Zxi}3=EBR4a{{7OhOFJtqhETNZY{3%D}*P$!=hhK+=$#pOTqY ziCcrsPv#>)4U!-mg7ec#$`gxH8OqDc^)mCai<1)zQuXqS(r3T3kpe1W@O1TaS?83{ F1OVJ@CKLbw literal 0 HcmV?d00001 diff --git a/sources/plugins/showblocks/images/block_address.png b/sources/plugins/showblocks/images/block_address.png new file mode 100644 index 0000000000000000000000000000000000000000..5abdae127953d052a36ca481023730baf8e10461 GIT binary patch literal 152 zcmeAS@N?(olHy`uVBq!ia0vp^IzY_N$P6Tx7VWq4ZMIndrud~5RU7~KlqvCB?4CNuN7<8ZM?GWcHwn9gFm;vTD`OGs4A4v z_>p{l_3!U?1~ulpOZhdv&pm(ZrckW485hHzLf=y^Oa(`QMlpE0`njxgN@xNAlu9>b literal 0 HcmV?d00001 diff --git a/sources/plugins/showblocks/images/block_blockquote.png b/sources/plugins/showblocks/images/block_blockquote.png new file mode 100644 index 0000000000000000000000000000000000000000..a8f497353cc5abb02cb78b7eba55772e1f5db540 GIT binary patch literal 154 zcmeAS@N?(olHy`uVBq!ia0vp^RzS?p$P6U=5BZe>DYgKg5Z8u=hX4QnKfl(y1}MT* z666>BpW*3t11})Y(bL5-gyVYh4}L~=2?I&_?;_8ie6x^G__3`z_sgwKzZH&EWg9$J zo>3^H!!)^R)z2HjbAs=bOXQrh-_iK(#@Yr$22;7jhW_~%%z%b5c)I$ztaD0e0sySo BH~atq literal 0 HcmV?d00001 diff --git a/sources/plugins/showblocks/images/block_div.png b/sources/plugins/showblocks/images/block_div.png new file mode 100644 index 0000000000000000000000000000000000000000..87b3c17146e79e8dcced15939f24a0f16ad50c61 GIT binary patch literal 127 zcmeAS@N?(olHy`uVBq!ia0vp^qCm{g$P6S6r-*3)DYgKg5Z8u=hX4QnKfl(y1}MT* z666>BpW*3t11}&?&C|s(gyVYhkN^MKnR)8>#2x&=+p)i$x$p|V!M`$YjXLp#Y@Eyt Y)8}f)Oi$*s1L|P#boFyt=akR{0Dd1P761SM literal 0 HcmV?d00001 diff --git a/sources/plugins/showblocks/images/block_h1.png b/sources/plugins/showblocks/images/block_h1.png new file mode 100644 index 0000000000000000000000000000000000000000..3933325c08f3f4eacec46c97600f7cba01ead54f GIT binary patch literal 120 zcmeAS@N?(olHy`uVBq!ia0vp^fbHRe*aCb)TpJo1{{R2~{95lCpa@e* zkYDhBhNs&NynsA;PZ!4!j_b)k{_k&OY}>z={n2NEUx%wTFVdQ&MBb@0O>s@^8f$< literal 0 HcmV?d00001 diff --git a/sources/plugins/showblocks/images/block_h2.png b/sources/plugins/showblocks/images/block_h2.png new file mode 100644 index 0000000000000000000000000000000000000000..c99894c2650ae1745e0e4156d775fe84d00efff0 GIT binary patch literal 127 zcmeAS@N?(olHy`uVBq!ia0vp^fbHRe*aCb)TpJo1{{R2~{95lCpa@e* zkYDhBhNs&NynsA4PZ!4!j_b)k{_k&OY}-GV{n1;8KYJS=G7HpK^B?)%xI=a!8z(b^ XbHRe*aCb)TpJo1{{R2~{95lCpa@e* zkYDhBhNs&Nyns9BpW*3t11}&?$FVdQ&MBb@02`Vnr2qf` literal 0 HcmV?d00001 diff --git a/sources/plugins/showblocks/images/block_h5.png b/sources/plugins/showblocks/images/block_h5.png new file mode 100644 index 0000000000000000000000000000000000000000..ce5bec16cfa84d461672f8b0721911d90a06e445 GIT binary patch literal 126 zcmeAS@N?(olHy`uVBq!ia0vp^fbHRe*aCb)TpJo1{{R2~{95lCpa@e* zkYDhBhNs&NynsAaPZ!4!j_b)k{_k&OY}>z;`D2~JyZnS78)QA|*^>lnbHRe*aCb)TpJo1{{R2~{95lCpa@e* zkYDhBhNs&Nyns9#|GfK-CPMu6{1-oD!M|04nb literal 0 HcmV?d00001 diff --git a/sources/plugins/showblocks/images/block_pre.png b/sources/plugins/showblocks/images/block_pre.png new file mode 100644 index 0000000000000000000000000000000000000000..955a8689a13a394a9e715673d23750a6847eb617 GIT binary patch literal 128 zcmeAS@N?(olHy`uVBq!ia0vp^VnEE#$P6TJEnce)q}T#{LR=df8vg(P|NL6-8lVVM zNswRge}<>q4ZMInbx#+^5RU7~KmPycXXdGYvoZ00=t{@C}8pCx}|qC*(_ aQHD7O)qh-UDHQ^0VeoYIb6Mw<&;$Unq%6+> literal 0 HcmV?d00001 diff --git a/sources/plugins/showblocks/lang/af.js b/sources/plugins/showblocks/lang/af.js new file mode 100644 index 00000000..9d73dbd5 --- /dev/null +++ b/sources/plugins/showblocks/lang/af.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'af', { + toolbar: 'Toon blokke' +} ); diff --git a/sources/plugins/showblocks/lang/ar.js b/sources/plugins/showblocks/lang/ar.js new file mode 100644 index 00000000..36420bea --- /dev/null +++ b/sources/plugins/showblocks/lang/ar.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'ar', { + toolbar: 'مخطط تفصيلي' +} ); diff --git a/sources/plugins/showblocks/lang/bg.js b/sources/plugins/showblocks/lang/bg.js new file mode 100644 index 00000000..7ca8b684 --- /dev/null +++ b/sources/plugins/showblocks/lang/bg.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'bg', { + toolbar: 'Показва блокове' +} ); diff --git a/sources/plugins/showblocks/lang/bn.js b/sources/plugins/showblocks/lang/bn.js new file mode 100644 index 00000000..d4e8aa21 --- /dev/null +++ b/sources/plugins/showblocks/lang/bn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'bn', { + toolbar: 'Show Blocks' // MISSING +} ); diff --git a/sources/plugins/showblocks/lang/bs.js b/sources/plugins/showblocks/lang/bs.js new file mode 100644 index 00000000..e48e5a25 --- /dev/null +++ b/sources/plugins/showblocks/lang/bs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'bs', { + toolbar: 'Show Blocks' // MISSING +} ); diff --git a/sources/plugins/showblocks/lang/ca.js b/sources/plugins/showblocks/lang/ca.js new file mode 100644 index 00000000..dfab8a1d --- /dev/null +++ b/sources/plugins/showblocks/lang/ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'ca', { + toolbar: 'Mostra els blocs' +} ); diff --git a/sources/plugins/showblocks/lang/cs.js b/sources/plugins/showblocks/lang/cs.js new file mode 100644 index 00000000..3ca977b0 --- /dev/null +++ b/sources/plugins/showblocks/lang/cs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'cs', { + toolbar: 'Ukázat bloky' +} ); diff --git a/sources/plugins/showblocks/lang/cy.js b/sources/plugins/showblocks/lang/cy.js new file mode 100644 index 00000000..945b7958 --- /dev/null +++ b/sources/plugins/showblocks/lang/cy.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'cy', { + toolbar: 'Dangos Blociau' +} ); diff --git a/sources/plugins/showblocks/lang/da.js b/sources/plugins/showblocks/lang/da.js new file mode 100644 index 00000000..96bbc5b9 --- /dev/null +++ b/sources/plugins/showblocks/lang/da.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'da', { + toolbar: 'Vis afsnitsmærker' +} ); diff --git a/sources/plugins/showblocks/lang/de.js b/sources/plugins/showblocks/lang/de.js new file mode 100644 index 00000000..7fb53592 --- /dev/null +++ b/sources/plugins/showblocks/lang/de.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'de', { + toolbar: 'Blöcke anzeigen' +} ); diff --git a/sources/plugins/showblocks/lang/el.js b/sources/plugins/showblocks/lang/el.js new file mode 100644 index 00000000..fd89a796 --- /dev/null +++ b/sources/plugins/showblocks/lang/el.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'el', { + toolbar: 'Προβολή Τμημάτων' +} ); diff --git a/sources/plugins/showblocks/lang/en-au.js b/sources/plugins/showblocks/lang/en-au.js new file mode 100644 index 00000000..22299b30 --- /dev/null +++ b/sources/plugins/showblocks/lang/en-au.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'en-au', { + toolbar: 'Show Blocks' +} ); diff --git a/sources/plugins/showblocks/lang/en-ca.js b/sources/plugins/showblocks/lang/en-ca.js new file mode 100644 index 00000000..c5dfa3ce --- /dev/null +++ b/sources/plugins/showblocks/lang/en-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'en-ca', { + toolbar: 'Show Blocks' +} ); diff --git a/sources/plugins/showblocks/lang/en-gb.js b/sources/plugins/showblocks/lang/en-gb.js new file mode 100644 index 00000000..0491dbfb --- /dev/null +++ b/sources/plugins/showblocks/lang/en-gb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'en-gb', { + toolbar: 'Show Blocks' +} ); diff --git a/sources/plugins/showblocks/lang/en.js b/sources/plugins/showblocks/lang/en.js new file mode 100644 index 00000000..dd121a20 --- /dev/null +++ b/sources/plugins/showblocks/lang/en.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'en', { + toolbar: 'Show Blocks' +} ); diff --git a/sources/plugins/showblocks/lang/eo.js b/sources/plugins/showblocks/lang/eo.js new file mode 100644 index 00000000..a44662f6 --- /dev/null +++ b/sources/plugins/showblocks/lang/eo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'eo', { + toolbar: 'Montri la blokojn' +} ); diff --git a/sources/plugins/showblocks/lang/es.js b/sources/plugins/showblocks/lang/es.js new file mode 100644 index 00000000..f9ea1cdf --- /dev/null +++ b/sources/plugins/showblocks/lang/es.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'es', { + toolbar: 'Mostrar bloques' +} ); diff --git a/sources/plugins/showblocks/lang/et.js b/sources/plugins/showblocks/lang/et.js new file mode 100644 index 00000000..883d4862 --- /dev/null +++ b/sources/plugins/showblocks/lang/et.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'et', { + toolbar: 'Blokkide näitamine' +} ); diff --git a/sources/plugins/showblocks/lang/eu.js b/sources/plugins/showblocks/lang/eu.js new file mode 100644 index 00000000..c0a75439 --- /dev/null +++ b/sources/plugins/showblocks/lang/eu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'eu', { + toolbar: 'Erakutsi blokeak' +} ); diff --git a/sources/plugins/showblocks/lang/fa.js b/sources/plugins/showblocks/lang/fa.js new file mode 100644 index 00000000..d9bccd24 --- /dev/null +++ b/sources/plugins/showblocks/lang/fa.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'fa', { + toolbar: 'نمایش بلوک‌ها' +} ); diff --git a/sources/plugins/showblocks/lang/fi.js b/sources/plugins/showblocks/lang/fi.js new file mode 100644 index 00000000..053fa69f --- /dev/null +++ b/sources/plugins/showblocks/lang/fi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'fi', { + toolbar: 'Näytä elementit' +} ); diff --git a/sources/plugins/showblocks/lang/fo.js b/sources/plugins/showblocks/lang/fo.js new file mode 100644 index 00000000..2cc79a51 --- /dev/null +++ b/sources/plugins/showblocks/lang/fo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'fo', { + toolbar: 'Vís blokkar' +} ); diff --git a/sources/plugins/showblocks/lang/fr-ca.js b/sources/plugins/showblocks/lang/fr-ca.js new file mode 100644 index 00000000..7b77e25e --- /dev/null +++ b/sources/plugins/showblocks/lang/fr-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'fr-ca', { + toolbar: 'Afficher les blocs' +} ); diff --git a/sources/plugins/showblocks/lang/fr.js b/sources/plugins/showblocks/lang/fr.js new file mode 100644 index 00000000..3f771b06 --- /dev/null +++ b/sources/plugins/showblocks/lang/fr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'fr', { + toolbar: 'Afficher les blocs' +} ); diff --git a/sources/plugins/showblocks/lang/gl.js b/sources/plugins/showblocks/lang/gl.js new file mode 100644 index 00000000..f107a5af --- /dev/null +++ b/sources/plugins/showblocks/lang/gl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'gl', { + toolbar: 'Amosar os bloques' +} ); diff --git a/sources/plugins/showblocks/lang/gu.js b/sources/plugins/showblocks/lang/gu.js new file mode 100644 index 00000000..4641901d --- /dev/null +++ b/sources/plugins/showblocks/lang/gu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'gu', { + toolbar: 'બ્લૉક બતાવવું' +} ); diff --git a/sources/plugins/showblocks/lang/he.js b/sources/plugins/showblocks/lang/he.js new file mode 100644 index 00000000..528d04eb --- /dev/null +++ b/sources/plugins/showblocks/lang/he.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'he', { + toolbar: 'הצגת בלוקים' +} ); diff --git a/sources/plugins/showblocks/lang/hi.js b/sources/plugins/showblocks/lang/hi.js new file mode 100644 index 00000000..4a4869eb --- /dev/null +++ b/sources/plugins/showblocks/lang/hi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'hi', { + toolbar: 'ब्लॉक दिखायें' +} ); diff --git a/sources/plugins/showblocks/lang/hr.js b/sources/plugins/showblocks/lang/hr.js new file mode 100644 index 00000000..ad60d878 --- /dev/null +++ b/sources/plugins/showblocks/lang/hr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'hr', { + toolbar: 'Prikaži blokove' +} ); diff --git a/sources/plugins/showblocks/lang/hu.js b/sources/plugins/showblocks/lang/hu.js new file mode 100644 index 00000000..6abc3205 --- /dev/null +++ b/sources/plugins/showblocks/lang/hu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'hu', { + toolbar: 'Blokkok megjelenítése' +} ); diff --git a/sources/plugins/showblocks/lang/id.js b/sources/plugins/showblocks/lang/id.js new file mode 100644 index 00000000..b075fa5f --- /dev/null +++ b/sources/plugins/showblocks/lang/id.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'id', { + toolbar: 'Perlihatkan Blok' +} ); diff --git a/sources/plugins/showblocks/lang/is.js b/sources/plugins/showblocks/lang/is.js new file mode 100644 index 00000000..4ef80ece --- /dev/null +++ b/sources/plugins/showblocks/lang/is.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'is', { + toolbar: 'Sýna blokkir' +} ); diff --git a/sources/plugins/showblocks/lang/it.js b/sources/plugins/showblocks/lang/it.js new file mode 100644 index 00000000..def22aa7 --- /dev/null +++ b/sources/plugins/showblocks/lang/it.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'it', { + toolbar: 'Visualizza Blocchi' +} ); diff --git a/sources/plugins/showblocks/lang/ja.js b/sources/plugins/showblocks/lang/ja.js new file mode 100644 index 00000000..e1424a87 --- /dev/null +++ b/sources/plugins/showblocks/lang/ja.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'ja', { + toolbar: 'ブロック表示' +} ); diff --git a/sources/plugins/showblocks/lang/ka.js b/sources/plugins/showblocks/lang/ka.js new file mode 100644 index 00000000..e312c057 --- /dev/null +++ b/sources/plugins/showblocks/lang/ka.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'ka', { + toolbar: 'არეების ჩვენება' +} ); diff --git a/sources/plugins/showblocks/lang/km.js b/sources/plugins/showblocks/lang/km.js new file mode 100644 index 00000000..5a8a1416 --- /dev/null +++ b/sources/plugins/showblocks/lang/km.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'km', { + toolbar: 'បង្ហាញ​ប្លក់' +} ); diff --git a/sources/plugins/showblocks/lang/ko.js b/sources/plugins/showblocks/lang/ko.js new file mode 100644 index 00000000..9d41596d --- /dev/null +++ b/sources/plugins/showblocks/lang/ko.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'ko', { + toolbar: '블록 보기' +} ); diff --git a/sources/plugins/showblocks/lang/ku.js b/sources/plugins/showblocks/lang/ku.js new file mode 100644 index 00000000..27224820 --- /dev/null +++ b/sources/plugins/showblocks/lang/ku.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'ku', { + toolbar: 'نیشاندانی بەربەستەکان' +} ); diff --git a/sources/plugins/showblocks/lang/lt.js b/sources/plugins/showblocks/lang/lt.js new file mode 100644 index 00000000..f711598e --- /dev/null +++ b/sources/plugins/showblocks/lang/lt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'lt', { + toolbar: 'Rodyti blokus' +} ); diff --git a/sources/plugins/showblocks/lang/lv.js b/sources/plugins/showblocks/lang/lv.js new file mode 100644 index 00000000..b6ee9ee9 --- /dev/null +++ b/sources/plugins/showblocks/lang/lv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'lv', { + toolbar: 'ParādÄ«t blokus' +} ); diff --git a/sources/plugins/showblocks/lang/mk.js b/sources/plugins/showblocks/lang/mk.js new file mode 100644 index 00000000..382be788 --- /dev/null +++ b/sources/plugins/showblocks/lang/mk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'mk', { + toolbar: 'Show Blocks' // MISSING +} ); diff --git a/sources/plugins/showblocks/lang/mn.js b/sources/plugins/showblocks/lang/mn.js new file mode 100644 index 00000000..42144677 --- /dev/null +++ b/sources/plugins/showblocks/lang/mn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'mn', { + toolbar: 'Хавтангуудыг харуулах' +} ); diff --git a/sources/plugins/showblocks/lang/ms.js b/sources/plugins/showblocks/lang/ms.js new file mode 100644 index 00000000..557e4950 --- /dev/null +++ b/sources/plugins/showblocks/lang/ms.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'ms', { + toolbar: 'Show Blocks' // MISSING +} ); diff --git a/sources/plugins/showblocks/lang/nb.js b/sources/plugins/showblocks/lang/nb.js new file mode 100644 index 00000000..3a5e146d --- /dev/null +++ b/sources/plugins/showblocks/lang/nb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'nb', { + toolbar: 'Vis blokker' +} ); diff --git a/sources/plugins/showblocks/lang/nl.js b/sources/plugins/showblocks/lang/nl.js new file mode 100644 index 00000000..2fbbef26 --- /dev/null +++ b/sources/plugins/showblocks/lang/nl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'nl', { + toolbar: 'Toon blokken' +} ); diff --git a/sources/plugins/showblocks/lang/no.js b/sources/plugins/showblocks/lang/no.js new file mode 100644 index 00000000..14d190fb --- /dev/null +++ b/sources/plugins/showblocks/lang/no.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'no', { + toolbar: 'Vis blokker' +} ); diff --git a/sources/plugins/showblocks/lang/pl.js b/sources/plugins/showblocks/lang/pl.js new file mode 100644 index 00000000..b33a3c0f --- /dev/null +++ b/sources/plugins/showblocks/lang/pl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'pl', { + toolbar: 'Pokaż bloki' +} ); diff --git a/sources/plugins/showblocks/lang/pt-br.js b/sources/plugins/showblocks/lang/pt-br.js new file mode 100644 index 00000000..4c7f172c --- /dev/null +++ b/sources/plugins/showblocks/lang/pt-br.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'pt-br', { + toolbar: 'Mostrar blocos de código' +} ); diff --git a/sources/plugins/showblocks/lang/pt.js b/sources/plugins/showblocks/lang/pt.js new file mode 100644 index 00000000..b27a7e72 --- /dev/null +++ b/sources/plugins/showblocks/lang/pt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'pt', { + toolbar: 'Exibir blocos' +} ); diff --git a/sources/plugins/showblocks/lang/ro.js b/sources/plugins/showblocks/lang/ro.js new file mode 100644 index 00000000..268c2fdb --- /dev/null +++ b/sources/plugins/showblocks/lang/ro.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'ro', { + toolbar: 'Arată blocurile' +} ); diff --git a/sources/plugins/showblocks/lang/ru.js b/sources/plugins/showblocks/lang/ru.js new file mode 100644 index 00000000..9b3f315d --- /dev/null +++ b/sources/plugins/showblocks/lang/ru.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'ru', { + toolbar: 'Отображать блоки' +} ); diff --git a/sources/plugins/showblocks/lang/si.js b/sources/plugins/showblocks/lang/si.js new file mode 100644 index 00000000..63722d12 --- /dev/null +++ b/sources/plugins/showblocks/lang/si.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'si', { + toolbar: 'කොටස පෙන්නන්න' +} ); diff --git a/sources/plugins/showblocks/lang/sk.js b/sources/plugins/showblocks/lang/sk.js new file mode 100644 index 00000000..bd4cdc38 --- /dev/null +++ b/sources/plugins/showblocks/lang/sk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'sk', { + toolbar: 'UkázaÅ¥ bloky' +} ); diff --git a/sources/plugins/showblocks/lang/sl.js b/sources/plugins/showblocks/lang/sl.js new file mode 100644 index 00000000..14ace414 --- /dev/null +++ b/sources/plugins/showblocks/lang/sl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'sl', { + toolbar: 'Prikaži ograde' +} ); diff --git a/sources/plugins/showblocks/lang/sq.js b/sources/plugins/showblocks/lang/sq.js new file mode 100644 index 00000000..8371edab --- /dev/null +++ b/sources/plugins/showblocks/lang/sq.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'sq', { + toolbar: 'Shfaq Blloqet' +} ); diff --git a/sources/plugins/showblocks/lang/sr-latn.js b/sources/plugins/showblocks/lang/sr-latn.js new file mode 100644 index 00000000..8dd9e3b7 --- /dev/null +++ b/sources/plugins/showblocks/lang/sr-latn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'sr-latn', { + toolbar: 'Show Blocks' // MISSING +} ); diff --git a/sources/plugins/showblocks/lang/sr.js b/sources/plugins/showblocks/lang/sr.js new file mode 100644 index 00000000..fa6e4173 --- /dev/null +++ b/sources/plugins/showblocks/lang/sr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'sr', { + toolbar: 'Show Blocks' // MISSING +} ); diff --git a/sources/plugins/showblocks/lang/sv.js b/sources/plugins/showblocks/lang/sv.js new file mode 100644 index 00000000..ec935fcc --- /dev/null +++ b/sources/plugins/showblocks/lang/sv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'sv', { + toolbar: 'Visa block' +} ); diff --git a/sources/plugins/showblocks/lang/th.js b/sources/plugins/showblocks/lang/th.js new file mode 100644 index 00000000..6e8fbe95 --- /dev/null +++ b/sources/plugins/showblocks/lang/th.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'th', { + toolbar: 'แสดงบล็อคข้อมูล' +} ); diff --git a/sources/plugins/showblocks/lang/tr.js b/sources/plugins/showblocks/lang/tr.js new file mode 100644 index 00000000..b9b430c0 --- /dev/null +++ b/sources/plugins/showblocks/lang/tr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'tr', { + toolbar: 'Blokları Göster' +} ); diff --git a/sources/plugins/showblocks/lang/tt.js b/sources/plugins/showblocks/lang/tt.js new file mode 100644 index 00000000..8de9fb1f --- /dev/null +++ b/sources/plugins/showblocks/lang/tt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'tt', { + toolbar: 'Блокларны күрсәтү' +} ); diff --git a/sources/plugins/showblocks/lang/ug.js b/sources/plugins/showblocks/lang/ug.js new file mode 100644 index 00000000..187102b9 --- /dev/null +++ b/sources/plugins/showblocks/lang/ug.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'ug', { + toolbar: 'بۆلەكنى كۆرسەت' +} ); diff --git a/sources/plugins/showblocks/lang/uk.js b/sources/plugins/showblocks/lang/uk.js new file mode 100644 index 00000000..3f9f0150 --- /dev/null +++ b/sources/plugins/showblocks/lang/uk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'uk', { + toolbar: 'Показувати блоки' +} ); diff --git a/sources/plugins/showblocks/lang/vi.js b/sources/plugins/showblocks/lang/vi.js new file mode 100644 index 00000000..af30a43c --- /dev/null +++ b/sources/plugins/showblocks/lang/vi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'vi', { + toolbar: 'Hiển thị các khối' +} ); diff --git a/sources/plugins/showblocks/lang/zh-cn.js b/sources/plugins/showblocks/lang/zh-cn.js new file mode 100644 index 00000000..104f8fb1 --- /dev/null +++ b/sources/plugins/showblocks/lang/zh-cn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'zh-cn', { + toolbar: '显示区块' +} ); diff --git a/sources/plugins/showblocks/lang/zh.js b/sources/plugins/showblocks/lang/zh.js new file mode 100644 index 00000000..5990ecfd --- /dev/null +++ b/sources/plugins/showblocks/lang/zh.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'showblocks', 'zh', { + toolbar: '顯示區塊' +} ); diff --git a/sources/plugins/showblocks/plugin.js b/sources/plugins/showblocks/plugin.js new file mode 100644 index 00000000..7bf11c23 --- /dev/null +++ b/sources/plugins/showblocks/plugin.js @@ -0,0 +1,153 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview The "showblocks" plugin. Enable it will make all block level + * elements being decorated with a border and the element name + * displayed on the left-right corner. + */ + +( function() { + 'use strict'; + + var commandDefinition = { + readOnly: 1, + preserveState: true, + editorFocus: false, + + exec: function( editor ) { + this.toggleState(); + this.refresh( editor ); + }, + + refresh: function( editor ) { + if ( editor.document ) { + // Show blocks turns inactive after editor loses focus when in inline. + var showBlocks = ( this.state == CKEDITOR.TRISTATE_ON && ( editor.elementMode != CKEDITOR.ELEMENT_MODE_INLINE || editor.focusManager.hasFocus ) ); + + var funcName = showBlocks ? 'attachClass' : 'removeClass'; + editor.editable()[ funcName ]( 'cke_show_blocks' ); + } + } + }; + + CKEDITOR.plugins.add( 'showblocks', { + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'showblocks,showblocks-rtl', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + onLoad: function() { + var tags = [ 'p', 'div', 'pre', 'address', 'blockquote', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ], + cssStd, cssImg, cssLtr, cssRtl, + path = CKEDITOR.getUrl( this.path ), + // #10884 don't apply showblocks styles to non-editable elements and chosen ones. + // IE8 does not support :not() pseudoclass, so we need to reset showblocks rather + // than 'prevent' its application. We do that by additional rules. + supportsNotPseudoclass = !( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ), + notDisabled = supportsNotPseudoclass ? ':not([contenteditable=false]):not(.cke_show_blocks_off)' : '', + tag, trailing; + + cssStd = cssImg = cssLtr = cssRtl = ''; + + while ( ( tag = tags.pop() ) ) { + trailing = tags.length ? ',' : ''; + + cssStd += '.cke_show_blocks ' + tag + notDisabled + trailing; + cssLtr += '.cke_show_blocks.cke_contents_ltr ' + tag + notDisabled + trailing; + cssRtl += '.cke_show_blocks.cke_contents_rtl ' + tag + notDisabled + trailing; + cssImg += '.cke_show_blocks ' + tag + notDisabled + '{' + + 'background-image:url(' + CKEDITOR.getUrl( path + 'images/block_' + tag + '.png' ) + ')' + + '}'; + } + + // .cke_show_blocks p { ... } + cssStd += '{' + + 'background-repeat:no-repeat;' + + 'border:1px dotted gray;' + + 'padding-top:8px' + + '}'; + + // .cke_show_blocks.cke_contents_ltr p { ... } + cssLtr += '{' + + 'background-position:top left;' + + 'padding-left:8px' + + '}'; + + // .cke_show_blocks.cke_contents_rtl p { ... } + cssRtl += '{' + + 'background-position:top right;' + + 'padding-right:8px' + + '}'; + + CKEDITOR.addCss( cssStd.concat( cssImg, cssLtr, cssRtl ) ); + + // [IE8] Reset showblocks styles for non-editables and chosen elements, because + // it could not be done using :not() pseudoclass (#10884). + if ( !supportsNotPseudoclass ) { + CKEDITOR.addCss( + '.cke_show_blocks [contenteditable=false],.cke_show_blocks .cke_show_blocks_off{' + + 'border:none;' + + 'padding-top:0;' + + 'background-image:none' + + '}' + + '.cke_show_blocks.cke_contents_rtl [contenteditable=false],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{' + + 'padding-right:0' + + '}' + + '.cke_show_blocks.cke_contents_ltr [contenteditable=false],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{' + + 'padding-left:0' + + '}' + ); + } + }, + init: function( editor ) { + if ( editor.blockless ) + return; + + var command = editor.addCommand( 'showblocks', commandDefinition ); + command.canUndo = false; + + if ( editor.config.startupOutlineBlocks ) + command.setState( CKEDITOR.TRISTATE_ON ); + + editor.ui.addButton && editor.ui.addButton( 'ShowBlocks', { + label: editor.lang.showblocks.toolbar, + command: 'showblocks', + toolbar: 'tools,20' + } ); + + // Refresh the command on setData. + editor.on( 'mode', function() { + if ( command.state != CKEDITOR.TRISTATE_DISABLED ) + command.refresh( editor ); + } ); + + // Refresh the command on focus/blur in inline. + if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE ) { + editor.on( 'focus', onFocusBlur ); + editor.on( 'blur', onFocusBlur ); + } + + // Refresh the command on setData. + editor.on( 'contentDom', function() { + if ( command.state != CKEDITOR.TRISTATE_DISABLED ) + command.refresh( editor ); + } ); + + function onFocusBlur() { + command.refresh( editor ); + } + } + } ); +} )(); + +/** + * Whether to automaticaly enable the show block" command when the editor loads. + * + * config.startupOutlineBlocks = true; + * + * @cfg {Boolean} [startupOutlineBlocks=false] + * @member CKEDITOR.config + */ diff --git a/sources/plugins/showborders/plugin.js b/sources/plugins/showborders/plugin.js new file mode 100644 index 00000000..0c569931 --- /dev/null +++ b/sources/plugins/showborders/plugin.js @@ -0,0 +1,174 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview The "show border" plugin. The command display visible outline + * border line around all table elements if table doesn't have a none-zero 'border' attribute specified. + */ + +( function() { + var commandDefinition = { + preserveState: true, + editorFocus: false, + readOnly: 1, + + exec: function( editor ) { + this.toggleState(); + this.refresh( editor ); + }, + + refresh: function( editor ) { + if ( editor.document ) { + var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'attachClass' : 'removeClass'; + editor.editable()[ funcName ]( 'cke_show_borders' ); + } + } + }; + + var showBorderClassName = 'cke_show_border'; + + CKEDITOR.plugins.add( 'showborders', { + modes: { 'wysiwyg': 1 }, + + onLoad: function() { + var cssStyleText, + cssTemplate = + // TODO: For IE6, we don't have child selector support, + // where nested table cells could be incorrect. + ( CKEDITOR.env.ie6Compat ? [ + '.%1 table.%2,', + '.%1 table.%2 td, .%1 table.%2 th', + '{', + 'border : #d3d3d3 1px dotted', + '}' + ] : [ + '.%1 table.%2,', + '.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,', + '.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,', + '.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,', + '.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th', + '{', + 'border : #d3d3d3 1px dotted', + '}' + ] ).join( '' ); + + cssStyleText = cssTemplate.replace( /%2/g, showBorderClassName ).replace( /%1/g, 'cke_show_borders ' ); + + CKEDITOR.addCss( cssStyleText ); + }, + + init: function( editor ) { + + var command = editor.addCommand( 'showborders', commandDefinition ); + command.canUndo = false; + + if ( editor.config.startupShowBorders !== false ) + command.setState( CKEDITOR.TRISTATE_ON ); + + // Refresh the command on setData. + editor.on( 'mode', function() { + if ( command.state != CKEDITOR.TRISTATE_DISABLED ) + command.refresh( editor ); + }, null, null, 100 ); + + // Refresh the command on wysiwyg frame reloads. + editor.on( 'contentDom', function() { + if ( command.state != CKEDITOR.TRISTATE_DISABLED ) + command.refresh( editor ); + } ); + + editor.on( 'removeFormatCleanup', function( evt ) { + var element = evt.data; + if ( editor.getCommand( 'showborders' ).state == CKEDITOR.TRISTATE_ON && element.is( 'table' ) && ( !element.hasAttribute( 'border' ) || parseInt( element.getAttribute( 'border' ), 10 ) <= 0 ) ) + element.addClass( showBorderClassName ); + } ); + }, + + afterInit: function( editor ) { + var dataProcessor = editor.dataProcessor, + dataFilter = dataProcessor && dataProcessor.dataFilter, + htmlFilter = dataProcessor && dataProcessor.htmlFilter; + + if ( dataFilter ) { + dataFilter.addRules( { + elements: { + 'table': function( element ) { + var attributes = element.attributes, + cssClass = attributes[ 'class' ], + border = parseInt( attributes.border, 10 ); + + if ( ( !border || border <= 0 ) && ( !cssClass || cssClass.indexOf( showBorderClassName ) == -1 ) ) + attributes[ 'class' ] = ( cssClass || '' ) + ' ' + showBorderClassName; + } + } + } ); + } + + if ( htmlFilter ) { + htmlFilter.addRules( { + elements: { + 'table': function( table ) { + var attributes = table.attributes, + cssClass = attributes[ 'class' ]; + + cssClass && ( attributes[ 'class' ] = cssClass.replace( showBorderClassName, '' ).replace( /\s{2}/, ' ' ).replace( /^\s+|\s+$/, '' ) ); + } + } + } ); + } + } + } ); + + // Table dialog must be aware of it. + CKEDITOR.on( 'dialogDefinition', function( ev ) { + var dialogName = ev.data.name; + + if ( dialogName == 'table' || dialogName == 'tableProperties' ) { + var dialogDefinition = ev.data.definition, + infoTab = dialogDefinition.getContents( 'info' ), + borderField = infoTab.get( 'txtBorder' ), + originalCommit = borderField.commit; + + borderField.commit = CKEDITOR.tools.override( originalCommit, function( org ) { + return function( data, selectedTable ) { + org.apply( this, arguments ); + var value = parseInt( this.getValue(), 10 ); + selectedTable[ ( !value || value <= 0 ) ? 'addClass' : 'removeClass' ]( showBorderClassName ); + }; + } ); + + var advTab = dialogDefinition.getContents( 'advanced' ), + classField = advTab && advTab.get( 'advCSSClasses' ); + + if ( classField ) { + classField.setup = CKEDITOR.tools.override( classField.setup, function( originalSetup ) { + return function() { + originalSetup.apply( this, arguments ); + this.setValue( this.getValue().replace( /cke_show_border/, '' ) ); + }; + } ); + + classField.commit = CKEDITOR.tools.override( classField.commit, function( originalCommit ) { + return function( data, element ) { + originalCommit.apply( this, arguments ); + + if ( !parseInt( element.getAttribute( 'border' ), 10 ) ) + element.addClass( 'cke_show_border' ); + }; + } ); + } + } + } ); + +} )(); + +/** + * Whether to automatically enable the "show borders" command when the editor loads. + * + * config.startupShowBorders = false; + * + * @cfg {Boolean} [startupShowBorders=true] + * @member CKEDITOR.config + */ diff --git a/sources/plugins/smiley/dialogs/smiley.js b/sources/plugins/smiley/dialogs/smiley.js new file mode 100644 index 00000000..4d9a2723 --- /dev/null +++ b/sources/plugins/smiley/dialogs/smiley.js @@ -0,0 +1,193 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.dialog.add( 'smiley', function( editor ) { + var config = editor.config, + lang = editor.lang.smiley, + images = config.smiley_images, + columns = config.smiley_columns || 8, + i; + + // Simulate "this" of a dialog for non-dialog events. + // @type {CKEDITOR.dialog} + var dialog; + var onClick = function( evt ) { + var target = evt.data.getTarget(), + targetName = target.getName(); + + if ( targetName == 'a' ) + target = target.getChild( 0 ); + else if ( targetName != 'img' ) + return; + + var src = target.getAttribute( 'cke_src' ), + title = target.getAttribute( 'title' ); + + var img = editor.document.createElement( 'img', { + attributes: { + src: src, + 'data-cke-saved-src': src, + title: title, + alt: title, + width: target.$.width, + height: target.$.height + } + } ); + + editor.insertElement( img ); + + dialog.hide(); + evt.data.preventDefault(); + }; + + var onKeydown = CKEDITOR.tools.addFunction( function( ev, element ) { + ev = new CKEDITOR.dom.event( ev ); + element = new CKEDITOR.dom.element( element ); + var relative, nodeToMove; + + var keystroke = ev.getKeystroke(), + rtl = editor.lang.dir == 'rtl'; + switch ( keystroke ) { + // UP-ARROW + case 38: + // relative is TR + if ( ( relative = element.getParent().getParent().getPrevious() ) ) { + nodeToMove = relative.getChild( [ element.getParent().getIndex(), 0 ] ); + nodeToMove.focus(); + } + ev.preventDefault(); + break; + // DOWN-ARROW + case 40: + // relative is TR + if ( ( relative = element.getParent().getParent().getNext() ) ) { + nodeToMove = relative.getChild( [ element.getParent().getIndex(), 0 ] ); + if ( nodeToMove ) + nodeToMove.focus(); + } + ev.preventDefault(); + break; + // ENTER + // SPACE + case 32: + onClick( { data: ev } ); + ev.preventDefault(); + break; + + // RIGHT-ARROW + case rtl ? 37 : 39: + // relative is TD + if ( ( relative = element.getParent().getNext() ) ) { + nodeToMove = relative.getChild( 0 ); + nodeToMove.focus(); + ev.preventDefault( true ); + } + // relative is TR + else if ( ( relative = element.getParent().getParent().getNext() ) ) { + nodeToMove = relative.getChild( [ 0, 0 ] ); + if ( nodeToMove ) + nodeToMove.focus(); + ev.preventDefault( true ); + } + break; + + // LEFT-ARROW + case rtl ? 39 : 37: + // relative is TD + if ( ( relative = element.getParent().getPrevious() ) ) { + nodeToMove = relative.getChild( 0 ); + nodeToMove.focus(); + ev.preventDefault( true ); + } + // relative is TR + else if ( ( relative = element.getParent().getParent().getPrevious() ) ) { + nodeToMove = relative.getLast().getChild( 0 ); + nodeToMove.focus(); + ev.preventDefault( true ); + } + break; + default: + // Do not stop not handled events. + return; + } + } ); + + // Build the HTML for the smiley images table. + var labelId = CKEDITOR.tools.getNextId() + '_smiley_emtions_label'; + var html = [ + '
    ' + + '' + lang.options + '', + '' + ]; + + var size = images.length; + for ( i = 0; i < size; i++ ) { + if ( i % columns === 0 ) + html.push( '' ); + + var smileyLabelId = 'cke_smile_label_' + i + '_' + CKEDITOR.tools.getNextNumber(); + html.push( + '' + ); + + if ( i % columns == columns - 1 ) + html.push( '' ); + } + + if ( i < columns - 1 ) { + for ( ; i < columns - 1; i++ ) + html.push( '' ); + html.push( '' ); + } + + html.push( '
    ' ); + + var smileySelector = { + type: 'html', + id: 'smileySelector', + html: html.join( '' ), + onLoad: function( event ) { + dialog = event.sender; + }, + focus: function() { + var self = this; + // IE need a while to move the focus (#6539). + setTimeout( function() { + var firstSmile = self.getElement().getElementsByTag( 'a' ).getItem( 0 ); + firstSmile.focus(); + }, 0 ); + }, + onClick: onClick, + style: 'width: 100%; border-collapse: separate;' + }; + + return { + title: editor.lang.smiley.title, + minWidth: 270, + minHeight: 120, + contents: [ { + id: 'tab1', + label: '', + title: '', + expand: true, + padding: 0, + elements: [ + smileySelector + ] + } ], + buttons: [ CKEDITOR.dialog.cancelButton ] + }; +} ); diff --git a/sources/plugins/smiley/icons/hidpi/smiley.png b/sources/plugins/smiley/icons/hidpi/smiley.png new file mode 100644 index 0000000000000000000000000000000000000000..bad62eed46816b7754cdf8aada26635a638438b3 GIT binary patch literal 3073 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 C>)n3< literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/icons/smiley.png b/sources/plugins/smiley/icons/smiley.png new file mode 100644 index 0000000000000000000000000000000000000000..9fafa28a81a520e1662cb1662f19af8b64ae1e82 GIT binary patch literal 916 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|i(^^j##}JFtwUhUE3unq4v(Gom6neg?C6g&r#ruZVqVfrQuOx-@2jU!fq7&#?hwqbGG`02cU46CdZCSU9PBPEVn7*Wq9l5t9 zlJ_y!G4(abU%DgxK(s(f^F-R_n3xy=S3$|soA&YEXLUQ9_W59e#Tt)Oo~L-*4|{FC zS;NrNV_2Shds&1|Ql!|K=fx_Fci5Jle)=iqQs)xuNnR`8d00j2O@DqsWQT6&&l$V@1fQO`1w(wgeEe9{Y` zdZ91iGvZyIp2AH+%M3HqYy-fAwB|EU`+pnyd7(@Kx;n9J3Oj)Yhn6X;;CPM32>1 zca_LIpQtiPg>lEG*ZRDy_x!WAr$12HkA3}1{$!X~F`o-Q!RvWmwbt`%%q89j5*G5kZt0Ug?R($+ywduF z@AcC31L+UUAJ_%>mD+!`+r7?ua>?cIwKnH}b4m0cw?3ik8MpgxUATtGJtppiKp?g4 z_S^DFHlEvS?x)+xJ+72fp=hipS|lF<72P?)t-HJ(#aHqV;}e* z7hmFz{Wn z8<^6OH00)|WTsW()?o9K`3O*hB*=!~{Irtt#G+J&^73-M%)IR4#>vg-WcpVe_qxHdcBkoV$~DTj}X$YrA=EDa>g& z&*{`%<>ta9P8XRelEYV&Qp))T8!O927}m5CoeM?2-_Nc;VZZPB{rTm&dom8C3zB6F zgn_sb2b2H6P=zl~MZ2{D;a2Jzo;_r2&>&;$%H}zL_%76gqX0@u--14#&){LIjEU~ z{`wM3?SSc*!4~Ve7Z3Mdf&1~x6Z=q8qI-&m&LnNkC4f}`c0OuIfq}PSP>kJr(`yuC z4|2V?3tiScn0tS9uFz{cwed$W*h;{12D6ody#O4iVet%1%fWIM?pA=c3g#|ge>QvP zFJkjQtvf0)XEiL;V#~Ger$2(@61Jq;c&70#x5Hl@n5z{W-LTN(eXIwk0hW3_t}f4N zH~P;Y_WYLDZARU9yc=e8;|{D?QO_*qv0xq>tlov^53sF=nAZ-QiLTo&>ABenv;5hD-eD`W%;^8#U8LFm)N%ET{bOMdwzM#Rc2N$sz)D(i+t+^<6; zMzWL^_O4tV(X1G)7I2TzCUkA-_`t9PaUGR&uqI7P;vKVQ(lo+Cy^?yp;xJp3%1n$U z5~|K8e@={%UP+o!?LTE=XwEvaqHG;_3p{Uif_K#{+dwiL(8l~ zQi51oVP#aZx~DQw6vvSTQk(O95Jb)nBOO1_nJea!Ig;SC)ZmJvV&TcAf_S9Ss z!Fu%FBF$Gt%=@kix^y$en7>OUl;g;`#W-JovP<#Nd&=P%VRcTYq98WTj;H4cPMQd^ qnmi+y@WBWnC*p*PN$AgJ8}WtsBW_ zEeI{UvbD07r3Ffnvgoy?Q1G%SU|8D=m;24nGxOaGTuK^WeE28d%$)O^Gv}OdCcrtf z6!3q^ZvelAur~NC?*7*-x8pPAnW)2>y@6Ub8xGnw+E#qTx6NAZ!{h22^MkwRD=oA8+NhhM zuc0Vjc^vQHnJvO{zK0rqSx&tl21P@!!uUzJJq*q~C{9w^N3D&oYKD8E#^VQ{y>j64 z%0Gp^<6*hFv2Hb?=JQdr0-DN(u{Yr6F#*bElb@qzen8!pgRb_k`)P(|`KM*c@zVU@ zQD!Sw%8iBf}F)U&F;Mw$j zD3y8G_*Cv&Tn&)eZqP> z73<)t7)fgyo{>{`z$Goui=pJaHFZNe%9brq6K$eInPA%+aI_GjQ1$!pTt1FrZAwcv zS3iKCA_bD{RT95`5y@y?tUuHjtrY*y+z19vhKXMkluM^I9>l792E*D^&_g(@;7o`O z@oK7OH-&HQpgt#*k=!U2%VJq9jbZfL2%2+3`0>pk#!Hh7n6d~wEk{r#a$?Qe)Qa*G ztxZw=gdM$(PD{FBZRk;YPbE=%BAnC50y+J9AT{rYapjvt+}E@0KuW?Q@t+gs!XVSI(L?MoyJ zaVTqyfltIloQp%fK%LWVpl5=`E>I+6?W28#ahGQfX$1nL>lU miK<1DUR8VN4sT7vR{aZh|2Vqsev4870000v5$^6lp{j(L@cWd@v)@&bbIe*!4{2R~Nk+whll|Kio{Rvd~AE5XvNcDG+ z>i=Ms|G{d%Lbd*fY5$AR{t>13KT_{~gu&-n_*H+!FG`#I74bCTuP zB&%;}cK;Kt{-#*|O11x=Vmmd`V`{YLg$%EY*?w0_qyDEmeam$Enc?_9!})Kn^WSWj z|Jm;Uvpv2P`g|?&{aWJxx5)p0ap1r5;6IhYe`>@3RY(7+kNR5^d#x(rMnn3E&cb_> z>%R77|L@5B*_;1$V*bCrqL;I4e@!g^Ke6=3^t#`(>wnE`_%W;D$Lz+xGaG-*YyGjH z{r94-zl(c+EbD)|YUZzHlm4%t{bI|~7u#0+*|PA@wncxpFa5i7`I`en7bZLUvj}rN5l-fsqRGU-@L~cBCwnJj z-5Z7}?);8k5-BGv91b-1YUkeLNorZz$j389s7h!`bAY^2{EmXc87!w3`TDacioDP~ z!=vQU$`aYte1w^Wm8Yjb(6w*ILQZSbOTui&x(%wON`o{$PZCzIQYd_6!Z~4@+Vl-# zDVtJ#r|HCO@_E?Fk~zVpYX;9(mS&Ghhl}rA33OKBm}Qms;Kc$(6``Jmy&8XBG#+M< zcAm;7btEL=sH8-1%DeCmfJ?>^>=`)j04$ zp-6|{OrvtH)Tk*=E1bO4-YjAKth(G;!?RCdLFZ=8R@J6{p9wp)pB@v^2$-Uv8N}?t zuQYR>jgnSd`=lSt9wDqk?g5Gy8LTfPuqlPtI!Oq)yL7aOdzy$H;dgSGxPaSErD&!@ z^&9~ge(|mY4vc&eAK8>=NhBTMip|(~++nW7!9#q~5sI@i+BGg57I1swCZZs^BjE|B sstbc7GndMS1FXUfMKXa?Bmx^*C2Kw~P7#uDJUJ!hEypqkMn(o}0F!L1cmMzZ literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/angry_smile.png b/sources/plugins/smiley/images/angry_smile.png new file mode 100644 index 0000000000000000000000000000000000000000..c05d2be3a7972ec4f2d9f5354a9c1dae719d1805 GIT binary patch literal 1220 zcmV;#1UvhQP)3$g6vq)-cAK&zV!#CqTMKRJ22-XBFbvCp1xi~f6p+QnASfX&h4R5DCScGI0!>sv zs_~1dwxE7MBPC)83Q80bAgxls*4UJ1JJXr>-p_O1Oq*6(gNZNs=e^u}&hMUk&w1ze z`mNFE)t!JCkw;W2sua~nR2do5xtN~(RXu@ySk~>(xi1O4`x-4T`nc;I<4C`COy|@_ zZSM;%hC@Wht-7li>(Xdhmrn3-8CK0n__G0;8nMowCUopgTDN35HfpOr>f0mS0o!(6 zpyDm=<_xz3hjw9}sm40K4}1T1cww1nDIC}VpOnL`TC6WV#F#(IRv-2K=K`JK#{(z! zW8_XGSn;-P9o_@a`=De#Y|ep=nXthH#p$pn1=h>^)CbUTlh#ccsIM~af$OC z8EXd*?6mDy3I*y3gSX6uO_R54o9nRjab3!1zemaQ76OGiBK>dR!xHylc4%2)~ORHLs{)rq;OBD zrWzwN7HhjN0&^1-;Dvk_O~tNo#O>hKi8QU6&IMmQ!4;EX`IEB9R3`_m8#7RrGTY&$ zf$}~0y<@{?svwDSjXRaNq-5enhrAL|Q8?m5o3=)^Cn?_ z`?;+wWp;(YTL5Cz#t0V_oD?<~va!NRPQmXcq(hRVJOQqp>_7v)$7!55hU=~&{E#$&Gt>I;-SlXhvWH3fMq;l|rET9< zl-2oIO8rN6nhqBZgHpT1n1(T zVBRpS=d$rXn@QkES(k)*LT5h1nBCvmGPx6IT|Az%64lQyujNj41+Bkcqr1mnUrWuj z-jFjC^QBx2X>7{sT#7N6q1%SkZ`-^P&NxQ^|`Nbig78EN4ijpZ37xfn*XJC+7l3^&sTaa~}) zBt>&^Mjx&wMiFxLvy9ZcAxkc& z%)#Iu2pRopOOK*if>9s!?Xl%X77!8@=Cz;X{1Pxyqwvc@!3;Sr_aNJzGr$hc>We?E z4@U9>j*Z%?kNV#4HMd+6)2Nx(($d=1pF^eJTDneEh>hC*r#rOMl_zZy?L<|gTM<=7 i#(dpfZTAKLKlC@^jn9nmDT4q20000*pUa&T;8X5PrcvW10Z2NTmi28K-> z99w~ihiA2bz$!t(wPIpxB_-F($*q@{-zzA%K}l(guI>(V^PM&}yX@_c@bO(>WxdSF zd7Y2%pn$+p0fFN}LWe{}kBEt#78gG&BXdzu@QR4YO+mriLPB@M#O{lWUz3);C@+6g zTKb-(R`4+WMcZ?SDJFJx)%0-Q4zhcpMB0Ivf^uI3nUmWaP29xRaTgr}OeI zR8?K9tGm?DaJjYhYFF3wzP{`I{kNu1zcXjf-TCwHFIn+|z>vkD12PE| zCl2iY8?u_3TUy(iGWo3SdV1~Tg89w+daU^}TQj}cW#`V5j?&nb-`Qx0y&dJ-O1)8hR;%({Z!f zSw-G0Ide8BcU)X-%~fNm^jIT^^PRzw7mi!m`&TpS^*ng^Sc`v^p;3a7@I%+$&FS$B z42|1zyE#NG1rs?ZEJ|<`mU<%=V)&rzSg#-790$iAEs2M@XZ=xaIo83*H$hQaqv_cq VDI+l!4S|Hlo~KE&(^;7qtO2)m5uX46 literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/broken_heart.png b/sources/plugins/smiley/images/broken_heart.png new file mode 100644 index 0000000000000000000000000000000000000000..a711c0d8d8505409f0285fd92257eda1ba3a42cd GIT binary patch literal 1139 zcmV-(1dRKMP)@G9Ar!Qd8U24;$Cpiyu=eyrI zbMEBYM#544uW&4UD9%?4f!)A6KoO7xt^!|Zy3w_OYXIxFS5&aMyZavCSAh3N zIy)<3eSOrdT$%A;lJPh|`IDg`3Ot^SVt}=!rI^>Q@#xH%Rlo-hplSHzNqj{`NGgRa zfM0St*<4*sZ+km{yR5B^YtbmCX<}EDj0LKSigi$t(YGh>D(CP-Qqv$t-s((7H6vrLmeA`zCgv;g$mL}ZmYHTCN^m6dM4 z-A=CCoz~4nEXMWGQOfi3D9_8wJdQc;w#~+yLqjo#s`?a7H|{xeaz3d$c8r1XaiXzU z`XM=;c-?MNsnnte8I8pVhQrhyKaN9HKh|_(c>aI-w5YYUr}pSk`p3qYiN{Hr<}+EM zsz@r8ww^Ri;)w+PV`J0=0=&FsOAqiFfC8ZD#w_qwSzB9Q#i2t4b)ER^>@%G$vD@+3 z?P(n+Op}3dnAHakP`+o+O<i&rnp1&?$q`0+}lASvZ zo88`~=|;yt?R}wquD}}LJ-`nP0LL}mxc{Pk|4RN}<8SCtmNuhtj6nbZ002ovPDHLk FV1m;NClUYv literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/confused_smile.gif b/sources/plugins/smiley/images/confused_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..0e420cba4af510c616dbfcad2b48acddc94da29f GIT binary patch literal 1202 zcmeH`{ZrEg0EfSuV{dG-$zU%q+QtG-5g|_*LB}>d*gWYlIj^$rT$8esy7S7e@XDDiyjSv78BwnbPCKBc7Y5TDa4v^_I9rBav}SEKb`+XKlS_r&)swPR2nNZ zB_=T;CgKFqeu!u{5#6uT`i{}Re2?#ai*d!0bk)iXG_xj8@#a6_{?y5z>JUwJrmu8z z=bWOY9_cSG9^4ynaRb~ebTRQc6K*yxa?rIAJ#6%F(94CFhk=w8PwHx)IQE4Ao=xbM zp(lgvm9O^8R=<|VeVgDDkOM*tr(z@(qiMJ-#$ZN#RDvrKjLE5fC3Q)OAqCl=58rlb zvq^44xDtV>+2#_WsK z;tPrI>TuhIi-t!u?s?58=-+9xNgr#lw4`)&Yw6pZ}_W za*aVFh!!IMk?_$IS~iFjPNru1L)|V$D!0bnaN?tuT!JVx=~ZlT!GUu{=4OS0C$CWt z|D`szZj@_|c)iZu&E*{auv5vZ66HSKk!O77u(4BDvZN3l$!k5SFj(^@gD*{T(}bCC z`h_`D(`V{KhowcTR@qZcq5$twcIBsKHujon)?Df6Njh$b+*H5P$Sjo>YGsXfxqKJ@ z6kC7c{fKIxi_M|07z159{`o-C-PMqsF5Q=}Ewm5}^#PY4vRrFBf97aG-Lk)9oSB@y z+2HUp`@*+}%nzP(H!(O{k3J0B*D4s&vRC~z9@WcsM`^ZgGw-x%ulQWa@f@XI9c zq6(?Up=WLL7cJ=JjITttEjEXRMpwsZtg=JSfVSzL-@2bAidlp;&qi#5Ebq=nezCvS qkdbCPP2badOmMdDHD1f|W5tGQU6Qv-VPzC2Oc(Slx$U5qDE$}COQpd8 literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/confused_smile.png b/sources/plugins/smiley/images/confused_smile.png new file mode 100644 index 0000000000000000000000000000000000000000..e0b8e5c6f11467dbe09785ebf3aafcdc9c581e1f GIT binary patch literal 1101 zcmV-T1hV^yP)4^ zUWYx{4*}Ue^73GgnR!>qSdt0#UH_41XsWqa81?H2(hEkxf@2Fg}a`DzSmDB z?ELd}@K_|YkKEPMoEa8p+tW12b)`%aL_9TSWe3JU`!47`4qpulyMIu$Zrs1r10^D@ zhW?rQ7$R-K9gS!w4aV_Ob`6<~<26wrlXb~t-RgN>Jh%ur3rPGVta}X77XEG!00yzg zp(zNiQ#Yq~b~h4T-{O6DHG)XZIS7l3UgSm~VkyBA%U0`4i)p;O2C-*0oku zU~#%Ga}8L82Vh}QFV*^X)HsHjRGG_va>=Xo*(!@d3O z^z^pV5^X^TG~@~}mxsA|C{@4+(iBBli`Hvk&u9`A*qE^Mx$637Cr)!_2-+GAT5G4X zoj^|n3JX540ELoYrln>IA{q&VjV{e<_WT0v{nhoaySOIaJIKYiA=GRLG-wQ9+-lux zr)J5z#^8!(+i~bWT6b~jn#nm#-;p?5jzO-XDHOq}tUfWuK*a&mpxOE^^c{%n4%KSdo|VdqI`-~2i7YQoOXt_rVlasY8o@b@EKzN|4Jx|!Ez$*zm|HZ!`tHFH-9l#^NHekTF0KWm_zCCyA({@|%|3m%(uJ36& TLW+k600000NkvXXu0mjf7P}Gl literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/cry_smile.gif b/sources/plugins/smiley/images/cry_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..b51334278289b1429515bdc44d559c768e7de4bd GIT binary patch literal 795 zcmV+$1LXWiNk%w1VHW@w0QLX?mtX*!WCEXR1fy*Pr*j9bdI`6B1-N|&v3?7-h!MSu z5XXrK$&3ohnikWb71gU8|D*)}sRsY03;wJM|FRDMsulmM8|Sqf{%2Grvors@HvhIc|GYl;#2){`8vn^3@4z7M&MW`SBLC7R{?#e} z+AjXYGXKgm|I0o7(Kr9qIQ`-^|GiEBzEJqdP5stH{@6kP&`tcoQ2*0i{@q;r&2IkM zWdG4<`Ok9w)^zdPbpPIT|JHo{;%xondKah59H+}0tIr#((I2+lA*swUvCl29&^Wc# zJ-XK=zU4!@)k3}5Cd2D7#_V0g+Tb|Kg(l>#Y9dwEyP1|LeGx(7~6|%B$4Jj@|H{b1|med z2tRLz~DRs6Vy)7@y5v>KTnio`Ed1U0RaXDAeb;ALI)3XmLT!NB#IUfSFg61 z!Ffgt3K1q)kRXT3WI1s7fPp{(L)z9D8b^o#0RpZ#SG0A35J9i(*|odm(pD!#ZQjQr Zgs3w-m6|RzCea|Grg@`9ix33@06R_ikOlw% literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/cry_smile.png b/sources/plugins/smiley/images/cry_smile.png new file mode 100644 index 0000000000000000000000000000000000000000..a1891a3428126f340fec3df988921ff98e60b36b GIT binary patch literal 1214 zcmV;v1VQ_WP)svZ)kglo^9&wutlMWAZX#D_n7@0qo}S+myKGf~0N z<*5Hl|2PRGN=u|n$tU$j#cfpec2r+bwmoCBvH zf#!#yaXOrO2u`HI@hOtNd$+>1ZtZX(*4HwIz}+18pMji2GZ4ry=FBsK&Xj||EdncVY;^Avcw#O_mY=li{oT9 z9V8{Ej!F3qY-*~dqg<&u^{5Iv(<@%p1h=5qTW8ZzkD)3=KAV!LPw3u z67x=Y)p+OIhAO7}dsug-M`>B;70p6z;cR{nC3`#E@1=tBB!X?SMEtv#1 z6X+-xe7@IO7Ix5+vws}NzlOR%8yp)iHxAUmJ(BN6@|ZxnK$t2v;p9zvURS_cYLb zWuU-yH1ODk>tdT|nkYe(|^8?m>*+gHWm%Z%qnzJ&8amO{!&`*36p;4JRi1SQl@6w?K*DH+k93eL8lh%ou~8WNmq1B zfmvSEc_T2n@i>L44m%U54qal#kr2u1I17)j?EAfNW9Oxw%VE<%%LdpPt3^gR6eoH) z^=bP)J@;uLJ614K(T>o`sh?=qFl+CS6@%-ma&GIn+MU_h7aV%z8s{9%pXqFqbDo^{ zBt&u=KNOl1C%b4#-`2iLhn-nBo6m3_BkcFx+!_P<=vqup~J>`7E2osXy_GPdmQ ctL=9E0q?RJ6Dta$D*ylh07*qoM6N<$g2RVY9smFU literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/devil_smile.gif b/sources/plugins/smiley/images/devil_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..9b2a10055beadd67b13405cafb86829f57fffb2a GIT binary patch literal 1239 zcma*m`%hB`7{>7fltL|qLuo0r6uDI^K~PYv!&{ZmO~v3Ak*P$`Y372{4cTyWA|Qhq z7lb*@s7@{7L<=%*BDKiHsR-5rm(L%TN~c_1XWiT^QfZf$u-nV?A0MAFxqM0{qh+#}At7VI!4`$$ zY#ebmp1Ab6^`(8*m-pLTIl#J+!qcVL-AQ3r9I>xF%9-2}h`n+g4wzP{#13|2(fLPtcSnY-W1SwduU;;|rnzHP?Kei!(yxilMPazBM#9$hScO zQ#%x}aK#pXFxa?ii>quDGVE~84*B*d;Glpzp>@JFdt7I5=)yVBa!|ySiy|(H=b)I2 z8w>}OFnIWrhf+tBF`Q8DG@v1ewW85t(L@o6YhwDk7}q6Kk#w|FJX$V!TH!HzQ;G@_ zmCm@y;G@a~w_H%o5I`ryZ6Wlos1f0g2$hm)og41BK`*6Cy;0>wl?I?Jgf0t3`4U>U z7`jkYet_zglzugCub!@#PT%!JtsCkX?x<&o(ICcM3Dw{M#$O(|FU5UNJn%&0-0272 z)B`W7(HjrF(8TaYvp4m~7ms{k@I|8xkNohMF%L#Rw8+rPn1?pTe3<5=U5*aM0(AJJ z)Bjyh5PBA(I|#i&=nJA+md!p{1d{^o3Jio`FoddBLLUkJCe%dH_tsM#;dGbMQWu4` zSh{bA`KPe*qK zOg~xrFVOwJV>lZ_c^FZnBOgN=%d0}XD8^73hAS*1l^CtY%PQ2?!el~wJG#0s-iC1# zUUy@v4{!TnHdEtfOqntB6z`sao&{|IO#vYO-+9lltO#O~2zWn#{}Y5gO^h_ERV5ee z(rs-Gzno1NP^QkA8@l6a+>ZJKhOZC5PHXC3mN`+s(oLRCu#zSWZwJ>UY!CZ(Kx6eH zaZ|s7?f79JX^dl?jPE%`<;ph1EIrh{D@#ER*ff%a^}%D`Xxj@vxws@Yt^Bz-j3n5n z4pwQ2w7A>FY1?!{zHfL>`|Ku&spv74v1%bcuUm|C!JzaNLs z;+!CrhI65Zj8-qAOFngv+!pk6ssr0$Bp|V?WO20CU3s{wCnj(I^VSUR8Na@0Q$(bD ztm$CRo3yMPS;UvIxA@H`wu}ewd6hgFd?d;z;-p{!e?=8f^0#rQVq<;{xz&9vD{yBt zZ`JzKD{GItB)IM|#JR-uB-=p~E|8~meY{cG`|9FO$?lkAb)4 zYfM~46vqjaS1GU*S&)}YUt*)8t*MQPX*9+*O|&&pn;1=eB#j!4ADSkmo-{nDf# zGy$;|gqF8FTcInDR!d7;3cDH_ukI1l7oz!7zONVbEH*s`*Yx@y+B!tlKe}bjEN0x%{gD9r3E*(Y!Obk z1;0L?mInX!?SR)S0|WT8A82?CXxaw!z7PDy$SshwcpaE#1p5g;vqRa4EiekV8*>{s zVtVUVX}4SOUvFe)VsPzR=p4jHF9KgBz~6fS{@+WWjeQ7x=w`rH6!G-C$_GJp*6A7G!AtTsr34(w5szgtkylF6>ML{u%}vABVvr(}HKC>r-Yv zj^3GDH#K>Ruvdc&P1dDgvL<=CU75(Tq|PJ&KgL7vJ;dFz{DnoP1+RwlS>=JmGeFwq z^{C2;Hl$t1fY$Cg~1}zf={3{S(2mSe7Z`ONdC`ryF;v) zYgsCJt&H)&14;p4)Z2K0IN+aX&*&AS9LDkXFn;wS$BF~1f0>YAwtDgWr ztWjmvtYBA;uE9uw?N+GeEtBufkAmw+1m{KbUS*{@cR*|8`4Cn>LU&=T7B~^6Af~43 zQ&IfhDm3MUV>mw=vlTYXmd9cwFAB{$Vfg;t5R8{68emjJ!QZ+UdKq^ttbkICf$p0^ z-6P6-@lM2Q@C`nM&SQyaI24KFZw2G{o5866I0Bb=h!zL3lp|%4&}&#pH9SDV5SDd_ zmaf=y;W$dVmlPg#AB-4R1#=0aNI2k7P8VdMM$Xqf4ADlpV954S- zxW1qXCzpnsK#A#XpeI6U7fi7&b7U?Vw}qPvuoO^?85c{8AtHSA(DUTlQFTO?VTR%|9Z*ej6?%+6V*|Z irs~YTJuAboQvU$jo*OjDtdS-F0000k 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 LNkvXXu0mjfxmX{o literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/envelope.gif b/sources/plugins/smiley/images/envelope.gif new file mode 100644 index 0000000000000000000000000000000000000000..5294ec488dbe44117f3ae6836b932fd3b6a27b52 GIT binary patch literal 506 zcmZ?wbhEHb6lV};_{zYre8tk$>z1uszh>j64O_Qu*|u}z_8nVy?%cj>@3vjLcI@7> zbI<-A2M+8zcKqn^lZTI=ICkRHkyB@mpFMZx-1)QTFPy!0{qogoSMJ`ubMOA0hmY<* ze)90ilgCe9ZG4U%q<&^7YHtZ(hB9`}*DcH}BuSegFR5`w#CvetiGw)2Gj0 zK79e9&)>d%{r>&i&!69a{QU9z_wPS{fauTv|Nj|?0E$0Z7#SE$7<52tL4I;z`|mKT zz(Yr>ee>xC(`>8x`qR2icbv&EcF5r_niBEApqoW7H@QK(@L0teuLXS1jk9%9j=l*C zakTxfDVmlMF3v5fs;aE2(%aXsBFQc8Zlcf5FmooC{!}MpAx^^pEj0xdLr&qW2qp!e z`i*{?3QWFH=^CsYI{Ny-9IP7YEme9_N*d~?G|ryUP?XVY@z`{2&D2fvT=iGgi*Op; zF6Hsn*HBTAQz+%VF<*>Df0MqZinczBSeCIgQ{DABKb#a34zCqgu{y*3V-Yi_WagI~ zL&k&7EesNdZZ8-P9+}y(V_QN*Lz8RwWZeKCCAOk&E=R4TO&XHHt{q%j+gxlIm|8o; eg&mr?cz+2WY1B5-lelnX%Stt7@ejaYvIYP(9Oujc literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/envelope.png b/sources/plugins/smiley/images/envelope.png new file mode 100644 index 0000000000000000000000000000000000000000..44398ad137f1d9591692ef073059d709bac99762 GIT binary patch literal 760 zcmbu+>rYZ)90%}|sHtfs)0IYVDqC(=uKA*+wKS|OBd=S%NS)@IT29m1T$$Q(D)Z7T zEnbwh%*#~NMDPHnP=GPO6olp!Cs(;03qM%wc`lE`TjcV7|6Jt% zTI6&10-jJL5G@Ip{s<+~l~t)^Rkk9Pi8nUZr=K7XmQ>ofgsgx?ULZw!!H7bo( zt=U#udnclx4YJ<}iC9hqo?{7gljfL_J5iE1FkCjux|?)+F#xxO5Oa=8EYgscZUTb5h&- z1;LV4O!#1Uj-a?wJ8N z1O-n?Nu80Fz9}epTS(}(sOWuh@$1skcO)e4NlM<9m3=HNeMM36mV&}vRn`0I>dzDu zUa6`+)YN>Uqw`Kv^Odgd2YvlddV22+489r}eKs@uYHt41-28{7S1y*DOJx;b^~ z?U^(0E?jtj$&v>vS3X+1_R;$FFZS(wd*;lCYuCQNeEH+`>!0u6|Nivp&$n-XfByXc z?;itQfZ|UUMh1pB1|5)Xpg3`0|KAYT)ZEhA))dQPWZKi)*WY6(5ZfB-#4a^cdbSk1 z>y)W>a@I?hm~q>4n=iGomUUbZ7sRNhvu*p1?JCS6?JY6B;{F@=#l`wL2#UFdO^FS4 z5oWdZ-5BejZDnnB=kDDl_qCm4V?AUHUc7wu`URiYHBTm`&tH_(KPxhMA8Cscxab`2807v|h#c9;71X`w=M^maDEh84CgtxOFp3|c9U86FD{IxtuR08VrG Am;e9( literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/heart.png b/sources/plugins/smiley/images/heart.png new file mode 100644 index 0000000000000000000000000000000000000000..df409e62f55f9915efc6b88d3543786ada9c2897 GIT binary patch literal 999 zcmVy=EE0+jENy_ca@j?ofHzuh@e-|#F+P|WlD;$zCVk-#;IW1m6Vq6W z5q+R(qBeCC64H7>h>&Olkt!=1O9|{r5IHP#_qgDm<^1{rhRcdX(r@y6n3?Z8-MF*NcLMkd*b8I=eZW27CrvkkZ-9ZRFoCHs zBC<;?>-qE6R=IohsQi|lEuCd$@}RL%W}iF}5&2O>wu{Km)BXL@*U%uoyga$;a>?zw zI(c^fyohCui^#qu<`TGOZgSG>I&?^WPfeAvf&vLwR*GI)DnmIra^2~akt=FANKKVH2M);m%a<_``64hCMiG%j;IFQO2lHKiKV`YO zD2lS;>_U+U-F`nQH8s5I>7mBs!I_k_!XqN|kBkthsG!>Cdjgc$fbYhxUCW>A>x&Bp zNKHqDcO%o%*tZy>Q#Vh2T(lw=n<~;bYijC1}@n8N=Zs$=HWvCuLDRmLm_P2wh=SU zO~Vxt%uoox=>UdY9#7Tm#02SEw{99fV;H1)JOGbvz+h%o730AmG1J_1jR%8dR#yWI zDkAc6bar;AW5+Ei8!>+2$nr>*e#n6`Q?@{?FYR&X2^h`g%{E z%nJE@}i00BlK5i%MY*nRnO0NAJLMqs&T4SX@6(27Ry-92(7J=WcgJ0W3>XDk{e z`S4+?Z`=qfc6*hk8^fzTap8*ryJF#R*X{cHWc$DXnRfe|v5AERY literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/kiss.gif b/sources/plugins/smiley/images/kiss.gif new file mode 100644 index 0000000000000000000000000000000000000000..ffb23db05a76e7e530ce7a26d658152a37028ef1 GIT binary patch literal 683 zcmZ?wbhEHb6lV};_{PAnjFE92GxKUTwsq|6E4jGVaB!^R=ikiEzMYkIFFX4N4vtMc zJllbYmv;vT$39NZwc_IIq@_0~DeW*f-(_cah?DauKmSQCt~1=+S9y642n!z)6+I&$ za6(M%l$h87Ny(#fa;K%G&&kMK6coHIB643|{(+?ABRRPz^75yZm2c_kJylS6tgik{ zP3@(!@=G9y? zCQZ6Ib?WWev;WSV`FHm0e{<*FU%K?+nl=9xF8sHA`QwcnpKRLnY{!m&yLZ1iefr(` z^B=BW{dn`{*T;{)J$?G)&6_{pzWx3A^Z)<<47h>fPZmZ7hH?fSkP=XwII#b3C~sDsNi*seQi3)VEpJ;D4#m?5=hS?>)tgWmlAxM~&MIify)8%EMTozuQmWs?umd@UeQX(ZS+044;#%6}n+)NBi z+|v5S@Aa9}ww0Hz zPfS!-6obZaqZ~!60w9*;zw}97x7lvs~?8Fe6H4k|81Hjj*c>Hr~ zYRV~875Cx8e*>MskHAO3r!U6GOKi)+<@b{v2n+$uhH3r0D?H%U4*`9~-Ma?|o0`xp zi&Q!d#l^hd*vNs?rVoEeqM( z%RpZr+L<#{x3z_UZ-I6prTiw;+WN)p{rfCDc)-bEknHMeWGsf9oP=~5q}(js=5EUw zfSpRw`|KIHb#)Y@41M=QwutYCljX!t+Z6ym~h9@V6^hs>9c=QR(-i2(jKz0!7mhstT%# zOeT@GO*)ZS3u_wbl@+F=QDWugob2oSN2uyC!?ga|+KN7;9C*~&SZZ~35%hRaoKA$x z1**DMS1CbJQ1bF{`2EOuoYj#LOv_?AD~pexK25obias<<>nGSU{)TDI1-yFwySHxj zKZd+tJ31(HyKxJFT3U+3=R?WQN6~ds^Yhr#)2xh*5st-(78deBcQ>x0qOUf<+lFXE z0k8fx@ZBG`Z&wVRKhM79WpY%NY(*hkQILR@N@1l^M3YI}b#>Hsbl6$@_kU@aR_j*Q zOYn6A4QPqa%ru9)yOqfBFpDE2L`O#f@Kjadt*N1~wwB`hdP6uIpBbh#kjdE*zQrU6 zybl}&jv{5blu{9jG6+0cUk?q_THY!DmGB+R1Rye>-`%w9d%lwl(~@Ki?W^?v{pR)* Z{vUNCpEyW^ic0_h002ovPDHLkV1jyk-jo0U literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/lightbulb.gif b/sources/plugins/smiley/images/lightbulb.gif new file mode 100644 index 0000000000000000000000000000000000000000..ceb6e2d9ea3a6496e3df43e6f815567f0d840bb8 GIT binary patch literal 660 zcmZ?wbhEHb6lV};_{P96J%M3XD#yGmftA%dYn#lkbuixUW4_bNc%z^1_C)@h69jKh z6}dZI`uQ~G7c*GDEMWb=lKsOXj*m;Z|F7lxznTC47XCM@1io(-`LkKz|8~JY+lBw{ z6#lHM-|*f7r zmHB@{{@X#N|ECoGpI82WR_*^O-T#-={$JMme?|ZQ3A6v#?RQKL+%+|H-|YBj8=N1n z3p~6y=g89h6RXNkuBm#qHSyVwwC6iB{@-x?f79*%Eua5)!hc=L_;V}c%caWykBa|4 zsXxE9^YWg_HxAE#eXQlpiO#pD`@dXmd3SEw_d7HGKArUc<>Y@)XZ(IL_x6cpA1*KW zbaU;a%R3)m-TmeMu0OB0JimSP<=vCto*euB;@rEZSAV{}`S0tse_wBZdh_7x`)9vC zJ^uIO@&BJszkPc3|Nnmm(t+Yn7Dfh!d%H`LbF z(b3b>*VB^E>*{Q8&q$dyyCsz;&CO`V3NsJR)J3hOotEe~}YXBE>LOcKf literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/lightbulb.png b/sources/plugins/smiley/images/lightbulb.png new file mode 100644 index 0000000000000000000000000000000000000000..0c4a92400d0bb454a1f32a54b0ae0bf6a782a960 GIT binary patch literal 919 zcmV;I18Dq-P)WvN&!5cw07D#C~!Zp0GtE9mSpvpW?G>UJQfM~fDiQb`4{q6KSIy`ikVO14h`ZF zA0#yVBA&jHkAYVtS=HNy$0C6+RDP0wem7CP_8HM5Z_q71g3#&1DbAy3XUP8e3A;vK zC35i1-$59YWL2r%8Ojna!2&G<*xOk_00BU_J+9bv2Rbm6C4ixJ;F(Up7`Jm*>2kWk(RVcBZ2#~1-)oaVFum2EQdJf87FfA}`u&Q6v0?WRYSJzd1{f7W%+ks!`9X-KDGKo>h zgI%sd?JD&4SkITpWy^!5Do{ zonh1U0E;P;#gxHf%4CE4h&(ohxBnnO!)LeIlj{ajKy+umQYoV3Cy6g^-9cSy2o z)MM1UL;y&#YQ`b~CB5)%^!nm=6xLU`v6ke<#-BKr&gkU(grWzoGy*q;SK}W;%iUYt zTqPtX7#Ne+RmP3CWNT%b66*oEFTT z71E&>)uk8bp$zAw5C5VA|Dyx{r33$_1^=lB|Dy>1r3?S34*#kM|Emc9tPB6I3;(kY z|FaMOv=8R37yqde|Ee1Qs~i2T9pDoE)W;EJ9cX%GthW2Hooqdi*mz?dS%i4q&4+UQb6 zD9k!#s)Ptpr3@Xb3Ww^!aU;x}K7H<-p@KsX*r7O>WI-ZjNs^pI@*Yt_;qZP^f5n!a;xl4We#HxkUsWm}n?W(4ZlO5+x-j zNO&N@%-gWIa~HH@#!3hgR?OJBT~N&jFmlLnfda*gn>}$rsJX4j!j~utgg8m!kjRrE z45sjr0ilOroeWKk95G@LEImB&;Wr15?sLK0}s%E2XP7=bP#R<0RTHW+Mxab literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/omg_smile.png b/sources/plugins/smiley/images/omg_smile.png new file mode 100644 index 0000000000000000000000000000000000000000..abc4e2d0fd657fdb681356a836a798f6b97255c8 GIT binary patch literal 1122 zcmV-o1fBbdP)&{j}T+buSenpo44P)$uX$!0s7P4<#xcW2J=VP-a)CRM=$-wgk`{LVMu zoQs&bo92G4A?T|Hx`9rh!x4b)Xc&k@jZA8*_r?9-4ME>=l>C&~_aTg7Foq#9Y~KuY zLeNp@XbhqCM~%$Tzrq`WzFOcTQj;gSavHoQG&}`?F4*xn2m#BZus8xU-$A|rJ)c4K zBZI(eQ6rPw5^jUlD7QY`!;SOGI&fOBvkS30hR9DN)^39WDq5hb75vXZ;tE`SQ_=di zVBhQ0AP%`5+zbDln;)E1Qy*jPKcg1s#>B$p&&2*p(b5)RcViV;5;JG=!^IdiwUvbS zpCH_Mma<>Y!0zYa(KiO8M&{H8ctg;4oYcfueAA`Owii+P3Gv&tTZA8~!5{YFHP;Yp z1&|V?!m6zyZLBc&#}a;jE1@F;@O6jcnI8q!d;6kBW=PE3P1~bFSrdGFIHY#uQGP#~ zH3QW?Fipr6AfE?I7U5_bRF*?!1te2Y{|;CcFn$4!U5+8j_G(Td-OODIv3diw-HVo+ z2FrrvGNiKT5d&RM6~X#g7X5k}l4+QYLwW@!&%@3q!0Uy%OCg}!)Pbwga$hrx&DJ zuY(@Qt%0RLN<``=R#QloC3H~=x0~z2ZAzh87Ja9hZMU;=P>Q~n9<-ylGjBU~or?nG z7K*RCvFHTaVI`-PMp9HX4$+16`p!H|&6h-COL^c!9{TS$o_bs3hbsvpZ1Ajzod-)S@k3gMDWK zhF#|o!o4xJAArp27EUc9W2?jyCh>$x3uX zfUE@tQ*MgJTk`MAy&%``DJf6|Q)=lc=otXv>5m$jlz}r{7f|K}W-kUwj8GKVL(NsV*Fbn)i5i(N?`7Ndy$hvS~s0{{R307*qoM6N<$f*}_dBLDyZ literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/regular_smile.gif b/sources/plugins/smiley/images/regular_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..fdcf5c33e3973c6fd0bf87b615ba4bbdc3b7e38b GIT binary patch literal 1209 zcmeH`{ZrF*0LMT3GPk)0SsSu7wzZuPkcY8=Y@XxXkYJc`vj^-hEJ-UX(mJTq4h7@} zjUQyoJ9$VW2By-gAwv-k-DKK8PKQ$-N{I24m7O=PYbE=B-<|(NKlSN zvYC?tv{5(}hc+%wb8u!EI=DC`!08o>u6T6t;1a+sM5hQ{@$ke?JH>M@8O}=3Aw!1( z-z3rBsuny+3l~(l@ECfe=uJR>BF-m8`{cMRN56_Wr)4}^`dliyGT_N%`kqGL26XGu zn??6;j$Tnk{c3pS7*N2UL=Px&Rf&KagHJ>QS~{S?kOntaVQ>v@u0?P)LTeF9#%K!0 z);;_&4R_Npna23j>5*q~M~`p@-D^UB0WMjXYg_5j9A?}U^H~tu$xIf-hDz|$?xl&h zVq>KkJAlw3X6!IMQ$o*vieM#1st~HhgcY}KxN{Vv^|7fIX6nnOa5d)YG24v!FEHJT zS!eA2S^V}LX1g%g9h*OogZQd7@HIva4&>uUZTg?QT8tZfND3d6gQisHn52 zRCf2+0^cUtaqIrYo$ePt(|s~r)|5W~ywdn_uID2C3ngE_tuZBk#%;D=Dxz%1|K6gj z=R9e)uYO#j@vcz)@!Fnp7VihOv#^jIdEIZWqMj2+evWq(M`~WNir@^!_%t qkE1T}vTO=}p^q(bnUvZ?!^Fpy?lJmG#KS@EM|@S8cpr;JHvJ1$jidMg literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/regular_smile.png b/sources/plugins/smiley/images/regular_smile.png new file mode 100644 index 0000000000000000000000000000000000000000..0f2649b78af3e4e11df8026e70531a9e0c81b117 GIT binary patch literal 1084 zcmV-C1jGA@P)5R@j)5J6RLpzX z+6!S{k^OTh{cgg}o%>ICG#qLMzG8l&k4r}(;6U^RXx#;kyFn?qHv)HuVfq(XEWxwi zLBo@0fc}J?ORoy|z%s($UvA<0fVf>p6>Ymv`D>`fII3_H1gP(TU?;S^45>>n^pVi{ zvEr!@;-H=>2UrO|&5bYmWb$j=r{58+ZY!Pt6Wk)W0>*%AmOXV4Jq|4gVDNQ#v4pa20YmH~mD9U(9V>*{?#=xMKC4!Z4AaO+|0B)l{@ zhpO4G{fg{i=0b%0b!2@2U5qbfR#+%u4c@`JbcaITp^$g6hLTuAHif(k#^24v0JJ>^ zfdI^0hyZ)a@Lp0DtgAyiDKL(=W!I2SJKiA*q%$t*jJy1t6%Q@~&H@rY1)KIk$^z)E z_2E6(!%!ap*QsjFjT`ESY+djDZmR>4ist|ni(ckNAZ;O$BdE!<06oj_lm(k=4X)8B z|6c*^x*UG%aWC81BpBiF8;^PK<8xI9t>$mwZjDGy%2JhZ&y0WiWfSrIOw#WdzXa2_ zmup?=RSAl>mzI}nZqeEe3q@V7^#jRNO9C6f9#*t=16bAYVyR-W%hhXHrl#_1f~RK| z8J#G2WpNFn8&H`sR>EVnc0+y+3) zFMYT))z(k@u{d1=FkjN-i%a!ivs+3Im>SKF&!GKS9Oy5@R=X@(fN#i*zQ*9&kQsp* z?OhTY@iSEze@D$bVDBkt>iiyfKVj$Yt_iOQas+Wsa_i?XsbQ7`UN@Ar`9&L5`(DD% z{jid;CfpCu3_K6)1iF0>@E0)b`-_!V+XKV@ul)-&_G~mzY8N8_0000M9sjoy|GE?Vx)%St75~2%|F#?V zyBPn!82`N;;I|>-x+4CxA^ox}|FbjxyD|T}HvhFa|F$~)y+8lFKlj2N_rxCm!y5m@ z8~wu^|HdBw$RGE}A^*%F|IH%*$tC~KCi2ZH|Ij4=)hPemFaE?b{n0o7)HwgWP5-`7 z{>DoE)mLV{?~r};%xondjHUX|IvZ} z(uM!oh5yuv|J9EF){p$&pZ?yS`{9HCPuv|Ns5~0000000000A^8LW004aeEC2ui z02crk06+)-fPI34gM5a3go%P+CqzU;L?!?LB_)#}E-ETqTVI5B6&#H~9Hkr?7%M;* zBo=jvd}K0cT}nwwNRL59Yk4+hh=P1hCq2eJE-ou8Dkvu>9;G!_PQkEnU``?;PGE3* zim-P$Hd=3bdURqsICs{CH%n1SxD5@D3=GCDYHT;bd_?pBLXe;mCB_amJJErK91+3b zOwgp_0|5jNjvRS_V1NTuQ$)al6{Z3OR2VQ^puiG>gfQ>I$(#vmPM9YnMmz~KCnl^i zA+osfQl&|gD{1hw5dlom9Sc~b+`^S>2*Dmy@`$)YD9!~YMvx#85+DGN9c5cEdx1ws z9AQptRsvER`34MbOOqmYJCFs@Zkf9(E6o9{bJJSIi`ZF^v4{5+CinJ9hZAm~>q6?G-5JO^AG~!AVgVCUIWsDfN#-9Xt zlGwz=xPX|Tm>8lK8|_puP@sf}PKPpW-*l$aY3J{~dtAKN&J;^z;Z07?yLriX{?ApT zlQS%J+G61bU^~zY^!Nf0_hk_HC28k#O9BA36ud1K-iw&eNc~`84}v`i=|S&jv=?H& zSdXVr`sJjZKk=XNwph3s_?X<41DrVsK?m9%gXmUh+y+X)^f{Osg3<4xT!Du^hlcz5 zfI~?;pIH*_f#n>RK3dE9BjRp4sA$=WD*S;eCs4(!AV8=CmUlvA52Vk)z?(wn+lq~^ zB|tq`YoHeX1s6X&AlE*@ec&b0YFz2U&)}B86)*-|Q`OW%+glLX1^v&$olimg>wQT( z|NJ6&TP(bn+{kfGZWU+C)6~gTrA!J$JTYcz1I9qpA%1oi5PI4}Rio?Q12+W2N8!o-6sm4R($42J zu${3}7KQW3${@OwSn#YkS0Ua%LHx`F#ezez;1VC0BtBqMEVy9&Xs#TAmWLr2gt1eW z-@<61mvkIf)T5m=7{?3QHDof5S44qK)+Lj5tM?i4;3DA6A&FzKdMBjg__IL(=)oR> zP!L>aQJ=1At;bro()(_y2a%e45K1M_b0d(6Bi4S@wd3FqoCiKui2>YJ9%ln^5Eh@CiUBq2yNnJXwYT@27e)Z>%h^NOU{f_ZdFgjk%b*)wv zD2*?QTmx~U-7r_u^SQn)F^ffltzZu+qTS%_9s)jm4}YD8Wua@I|qny7GkV1^cJIrsOpvSV!n z2-t~f{v6Ko)u}u?yF#pqYR{KIGkWSb*!Tu`8*_e$oDoiLvv4lMa?ks-SIR`z$5?ky z7_u`kTlCVgVi`28WHeb|dSskV%OD{O;SRK32D=ARsKAD#ozGRrKRbM!lfBSbZ_rv} zMZK+OXZk?Br%BuqDB{|G`oL=rjCX2*8oX7e}bltJ~qD#)3ch2W4Jy6 z6PcPKx?o&Sy9UOm;O`qKr)>1>m}c`k(A3dayW4e5=NzK_aDq)oAXm{8N>$LUx~1ZP zsnc}55ABB&z@ge!y!o++0H2b*@C^MgLiQZgY44HH2qNGbh4JU0xeIn2gQm_efmf4u ze(IL+8YBA==P1{|i;*5;K>(uNRax_djS9SywDVv83vw&CZ=e}?1lR&}`x@YPV93`$ h-TbuO7X1G>{{Vo&VsT>6tr7qL002ovPDHLkV1nEx7S8|x literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/shades_smile.gif b/sources/plugins/smiley/images/shades_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..7d93474c32aa7d066bde566fdd746483f5dd0aea GIT binary patch literal 1231 zcmd^;{ZrBh9Du*Rqo#-COCgz}9k}mLE)5)f;Ya`Ll)G~LSHB&!Zf5)C5p5LDzp2OUDlq&K;e2`ZN zauAKC(kU^FC~6EE!$9ebkLXO4!J;zbqFL-{_MxbxqvWJxlsGoZj;FEMA0{6o%TK*u zm=T&Oj?5C$awXx4%*YG!=<_+~`CNJmpLvoWo01ZDQos^^&K3&eMW;DwX&iC-QIR-7 zB2AEHCKY6H#8STW+;K&ryhDa)FF95gMwBTcM~j^Xl)=+C+*cZKOW)!_Wd|*G(E6X9 zpv?i)j?jXER@aSAH|W4Xw=4YM3cYUgE!fp|EVSdG0}r=-x4ZViPdK=<8?;_9;=Q0f zuyV(LM-#BqAF!75=;lfTp0Wjx;+-NHbYsPiCUkbtj|*5&j>K1 zU^xg@3OtFfE=pBaoKRNqm0t=PYSS8T3LEQ1b@h^_`qOQV8O`5hshZEIROzag4DIc7 zZP!_?CR24QZ+j>fMiOC^XX=rd`ZJ6JXN`k0(~!(Kn!TmxJ)Qbw=TWN3kZ-z|Z@OP# zG!||>5W~Z?t(iQSQEbo4wyhUnsu-p#VXhp^Rq$Ii{C@4t<5F0-28;DzRc)=d!*VxR z`(R-Jo(#dtAgq~TeHJzz!K-=LT!Ni9u(O5yKM458-UdPXkdU{zZ=Yad07-WyaC(~b z#qGozwb_Z+iral^Sj{Z?wJ}D?<1s1WUn}=>stHduaphdE(Ban>y`joe;2YW?J5+{IC3Z}B%e=xIb zn$z5+PB6(`ygN^Pw<}q?==*{CfQsBq?YpsSZ>WSb(%E5arg+*0ZmfEUnB2cewoEl6 z+2YJk#MpYMSd~0~#Ac6Bx4-m7FekuXPMqZVT%5#^z9Qpn9aB literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/shades_smile.png b/sources/plugins/smiley/images/shades_smile.png new file mode 100644 index 0000000000000000000000000000000000000000..fdaa28b786cef4fdbd48a3f1fbf7c7aafc456d97 GIT binary patch literal 1204 zcmV;l1WWsgP)O_$|bO}9oX#bzD? z1cc;fz$uc@1Tu?2Nt-RX2#Mxgo0W3jPrv7V&(VX*W^MiP-QM?kzrWA(Jip)b{9c!? z{y$v)FAezt@DN3dvPI>h9=pozW9pm7zlKXtESjyC^L6m!TTs6QO1urJXEmn2DUW#X z3NFU6qCBpghC}nf8UP)caG?zT7S6Rk=&ym(0{dr44kf zXW(KHwyw=+XIH{WGqj6-PJ(XnTs;e27AT&m=`kwymI<8Ud7RvVRyBp|=ibz8ooTYd zS#W9wv`vTB$Kk{@I6eiM9~H@aPcHn~DLb5xidBr;;Cha){6zmAFKtssG?7vBh=??i zneIzp8|eFZlBO8WH84(vHqhHwXeKzs zOk(mPcI{4KS8fW)s}~X!96-1A2?PA?Wcq5SiZ6h~Rng*0*1gGV;s^?PmhOB>o3I?G z$VER=-PLS(VJ0bS7SYs{MZw-wT}@4ytVxe0J=vG)4`xuEGo5uQvkl*|%$vS%#P{+t zG7_Y~!ct5JJe$_7goc~2SXN`LNN2~EmAb4IX;|`7nQJx?800T2_9H0NjAh?TSWDO5 z^p&i}^67f!hX$fpis^ut^W|c~Bh7r0yNagzSJ?A@k}mbUH#d>MU^9O;Ji@iZ-h_#7 z??(wV)ui3@Rj*~=?hHaA1THMabijKkp2X%2CK3{&Xtt))d~B1Ux-^oKqIvCA$z|gt zXn4@@y%A)bbzhb) z_9r&RpKY1GT<-9PqYue;C&;ZFuTOGC#O#z)fOZ9wbphuU%QxtB3f$4uz7`%XTEtuYu|T^Kscsi4txRYIYg z0ddGWp0*D?xLD+AKx+hgNIFEdCsz-Qp)=3ZSWuZel)5v}umr6{QleN+M^P@(^6{BK@YPt3aq-qp!xeY3PB~VsW;A#}R$W3Fvt498CW85;#@F=f}k=VQa z%`KC{^y`&ZM@yYubvcyOvl>(1lt;Y()e5EkM=kneMl8{Y(*&Xdix=zRUZP!^Sxr3T8vcT~$o+Co#{RP(N>%i&Mj0vv6D zzg?k22N}A^(2c@X3Utz-I{>cI-Mw`9F$nsC;ASwWLhM}(M;~kLItD$V(943}NVv}N z{S@s`aU4HK|31KWXRpGkJ@jXu;0vH9{3P$ zXE`*V5_hG1OXz8?n^7V=IT{dRS?3o34Si9qb)mR}Vbx1N#6h4|-SB z8`j(4(7@`@=HoGsa~jr+TdQ-h_5jxBVci0oOW?7?_LH5>r(Vw=zU{w&*a0Ar|MwpX z;M=Glf;1xh=Z@!}NTC5D2#6B)E61cLGw_Sfyi8>k4?$u@;yh}E;Ka2|d!@A_kW{T^KUlDD1Pa@!w+o={LShVfi25`t;l60a!f>7T)VDC{ZanZ zXW7mpEJmDWBpw~+T@E=#^t1CPr0h59yrs?_#RW=IPOG8t8J3xg=f#xeq-9~135Of^ z)FsC;^dU8g8+VJAQw`I6fkK~gi<^RQ(_A6BGh0EeJ&i~>%0TH1IabnLBqCF3hEo5R z7Z?_CD^&QdYk}EQ1!0BQM nSLqg&lireGWl>tn5RD#+GA6>_JupT>h1}y^V*X?}hP?g{8;sL8 literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/teeth_smile.png b/sources/plugins/smiley/images/teeth_smile.png new file mode 100644 index 0000000000000000000000000000000000000000..5e63785e42152e16329c5156f444b06f411f1c00 GIT binary patch literal 1183 zcmV;Q1YrA#P)=u{*lMB(f;3ChP1fr1n8RxV@-_5S4w{Ll{JnkVH?VP|!=1 zfr1Y$WJJ(|m81p{)~-S`n-iPLs*)SxXPued|9t%a_xA9g{g@c7hYlRhy&09{xD8fGE`J)643(KE^ zo;Q!D_2Tn&@JP_Jll<5TzTc$G*wZwrYeL8jC}pdZjU7k{OSeJy`|w@AV*6QvZ}qOZ z8VIG74`q#UYHL`vRZxCEnwbItC`iPoK|%ip4@gPk!VIA3?{P0U?LG*W8!jG!Cx$YJ zrqyY^nAd>KOq>a0jH0|wv~p@bveImo#LyiQ!*?hdCMClnaek7-d7YABfvjb7N~vg4E?M}4E;O#b2LUM+y_FCIXOT`N>pb|i zdz(R3P>y!Asb68uey}Gd8gP!TfehaDP&B}jw0DP?x^VQqV5KakMh?>+^`V>{h`ZMi zEz6;6AOoBO(9(J_k8tc`%OK2HP&K7L;HEHkj9l{AJ;66mzKFw_qP1E!`k7pQq2@0do6@+C$yMqN#FyQ7S z+?j&5Uf4PaOV@n~yq4CBQ;Vps6ng#d`7^&Hx|M|83C;0y%e*?UTJd8_R+}i*E002ovPDHLkV1fcuF z@pzT*({({l*N42=81Z6L?8_}NH&!Lw-&Oy5d%~OTiEno%z1@}i=}`Wc!^K~Y08z=8 zqa|ODReU{ByL`pcRVx;(TCs4=+EtGZbUr@Z_w7`}x6{p^PqltK)AIdX`}gx*KQ8n< zIXd~-$yv`&&;4;};?K*Ie_oyb>-y|p*XRDaG5^Jx1+Oo!{e5%c@7v4%++F$S{@S-U zwqL(>`R1K#_wV2PaPQ#V2e&^yIQHq$sn1W(J$iEg>&t78A3uEd{K@kdPhY=z_3qu9 zUteDR{{H^Qk01a4|7V~*Q2fcl$iNWKpaZfB6ekYs{~O|)np;}in&R}M!Xu*ewI*om znp!((urkhM4eE%SH{X?0V}i6~TzhAfk5Au(by|A5I$CmE(akHPcJ*uN=vml1dpNJt zl#y88-ekui#9?EY@jo8!z9vd!5dd zgO=-sOyc8=Vr@!06Bjslc?h#qFe@BjXw^E!;_3N->%fi<3FW$9Px2QZcly8P#U>_Y z$5uX7x07BUA07~PS~<(aF?~H72g6Jz7msOOT%xmdYM$Qsc#4Hl@1IEKNv18XeezCG zd#VytR<5g>5Ow2*;FA-*bMEO?1a*~8;!|*$q!Cys(8?+}Ph(l=ZZTFyP7h6mFCQu{ hP7vo6<(n69!F;hen_@^yLcom=B67h}^_(mW)&Q&yJ3RmZ literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/thumbs_down.png b/sources/plugins/smiley/images/thumbs_down.png new file mode 100644 index 0000000000000000000000000000000000000000..1823481f2f05404a08fcc9357ec930911ff28ca8 GIT binary patch literal 985 zcmV;~119{5P)&g8FSwa4`@0CXJpO@c*)LSW(_eh~ zxvyh;2fD5UkV>Vv-1j}3MvhXu{tooodc3{>9=!%BRfN=VoIDgA?CIYb=|4~Fp|1%v zJ@}?+*(Vm@67c16IdokoVNH^-Ced}B0vfHm4iRqIL10}IRsJASs^u&dAyg1x)NP<~ z>!S>QdXQY|<{Oca@z4TXUD}3}$}LPuK}eOEKgYR#x!ZMg<-^@d+mYDmNXUqqmYs0H zRaFCAGg;1-DoB-@a0}6WuPpkVVu7K)GfZ51tG;2^v6H}lxinEzRW!A78C+LAh=h!F?#dMnA;cP0YbDK9AH_nBUoW1dkk2f}NJV4L8o?iF zZ*;*unrC%U%2h91qImt>z57L1$nXzm$t1_|N7@@)vPdaWq|3GRw7emuO%Xyts`|1h zk1xP{avY#RU3R*H38|FiC=XOfm3+}*;9M6t?tY8D2$9ZLZyk=*TwtVzwR zziwP(ChG-Qzmf(OV5MAnS#P11HpW}yt~j4%K9xlA=m3riq%}>euC6xldQ0zCCX+!S z&o39=r*Z3J1a5Dln4N{}ECs+E>?JW8TPBC%F)+gS(7gAU19S_=aZbhKV~3YLTy5J3 zia)q|Y9GxVPvY~}Ekfc07YN>ag!=8zSN1ps3_o1@&>`7DZ3`oOG-tE35X*E6TjnwI_4N@|MLeio6C;Rj+vpB-*i?CXSEc9djG z&v5O>^W69P#FS~-p_TGi9jIy9v%qs3?th8t$>Bx6x4MSx>?A9@DbZ{|Ub2k|@v#^qQ94zgGM|?gu;u literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/thumbs_up.gif b/sources/plugins/smiley/images/thumbs_up.gif new file mode 100644 index 0000000000000000000000000000000000000000..9cc37029a9dc201ab9e0bd3a7cba4083cf56b874 GIT binary patch literal 714 zcmZ?wbhEHb6lV};_{P9+u!8w;CG){bmP6GXN9%Zw)bSr};6L6dc%nu0c&p6mcFB{S z$|pNjPWNhG=u^HjMfdDP!)wzGZ_GBoFvI@VT+7?@ZLciwySgOw+VZIDE8`w4_jtU@ z_vzZ87aJp9Y>IukCFaJeg!{YdUvE!%vpwKd`*OJW%aP(Q$I8AQuljnT z=G)2oJi*oo@birsezD*6(NAzn|;;e!lDbh3+30 zdY>Gf{Oshc=cniXxHR$Sm8n0kPXBd%_OBcBUz}O+`tsV}Hy8fCz3k83m4EK9eS2g3 z^;?&3-nn-F{=E*IrCpB|n1{Pf(TC-=X;y!QCkrMWMO1rh-c6NSp|v{2loFB@lDMwt!>RA!mJEE3`|1m z8k1yL^kd`VVh!Tr;|#gfG}YBjO|>RY($J0a_m9$@(-z0Dk|VIa*+_7uhMBX2g^uRR z)ltVbw8VMwF!eI?iYW&A8tCd8_-<^oV;5w%+wm|?LTZv4hs%stGvb7a@XARFl0qu&8#;doRc(B5UYKO)& i+9x_2`2^c%N*rutViFJS3B4&2{A`z>(S8;t25SHSpFQOO literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/thumbs_up.png b/sources/plugins/smiley/images/thumbs_up.png new file mode 100644 index 0000000000000000000000000000000000000000..d4e8b22a3cc95d0d6e7e2de697e9e7fe910ce9ff GIT binary patch literal 959 zcmV;w13>(VP){U?kWlzfV zL6}8_flmtBt?C|RR2^u$tg zC4YQ!u($L2xo+lu@8$ZrZYBqNp90?4jB>4#Ev6Cr6L+K^CQgt)z8$>=PkfzrV;8jjgV~`Aysczw;3Uur z)Za;uB)Z7`b{1pT9ss;vABpzEjP|`vjq$+IoZ89I)j?d>1;FR?)poQWI3ABTdNiff zA!qu}zR|BwYSzRx3QKD$Ow))aIxt(yEuNhkBQ^X3<82@F{E=h${eA%Q`8<6WzTw5A zFF88UlfHaL3;HFAXI{gjZ(9Kb?tdJlK)Mb}I7rts@DBH^y~?A>7teuS5Pg4i&Bb!KTrlw)fi1k%}ZNX z5B}i2Ws{UxfRfirio3#Hu~d3ng?lntYg!LP`Wm|5;nvmub)HJGh+3`^?%thD|=u6{?gEg?cUvO z2MOta*LZ)HP9K zG!u;NqyE9e%!qo1l0$bkE;`x|5RW&W-w3V&?*p#_=9-@jut)pI&@VyM6!w002ovPDHLkV1lw`)rbH9 literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/tongue_smile.gif b/sources/plugins/smiley/images/tongue_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..81e05b0f6adccdc330a951fbc4f7f109da3d2ebc GIT binary patch literal 1210 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 literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/whatchutalkingabout_smile.png b/sources/plugins/smiley/images/whatchutalkingabout_smile.png new file mode 100644 index 0000000000000000000000000000000000000000..f9714d1b3ba5e9324a1a1663549ba28b45af9638 GIT binary patch literal 1039 zcmV+q1n~QbP)4=F;lf`~OS)ZA#arZuHf*sO8W+|6z`n`}0F?;IcQ-DJ0{X&*drm^%#jcjlb` zoEbH{utX(miPY8s2Y_Cn$9DkB_X*&qxSh>Z1OTcMyd_e56fvKY_%4b)0rmtWC%na` zUWoV}J(NJ{m*RHz%uV4fk=h2}BQlqdGj;-k4zxT9O?^h2u^2I6)$RT1uiWr|B5-pPeQard53H20x$zoFJ*sMRYVK&TyRI-v0hNRGky8$!oh ziaoE!K;2&&pcMW&7e6>IS3kzR??usSUg_MA;O4;JU*I0RkgsxYD?h@P%_N1bz8@#)x1fDOH{OsNwygnCj4WjE%>1j&g z0bqirZn(4tweEUK-=9lkFBaI$BH=0?>DmGU5@ z{=8==Y^~W8&eAgc{udI8BHV`7Tj0oe0u^YD+u6)U`=_Ue8R>=kYJ=8#UC`ncAZ&;# zMKJ{tjRcyEUR~52IS=9X_4d~QaXWj4aQhJZ-hu1Onu24>>+0)Z+;TmPK{;ziFVAWA zy$#{^q0+lumn1nr+sPPv2O(3?YY_+KrDzBk&37Kb~gv z1xQapmG&M9jUWQ9Q5e5m4V`fCG=w|80A7jP*~R~amjpS6IH&mgn+VBC)*ZZ~R`i{Z z*{HzFaXb5ECA}-c{QwQXLqHeM?T-Mz0F(ZB?#8F>mf-(~{R;@jTLnf*B0a2 literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/wink_smile.gif b/sources/plugins/smiley/images/wink_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..6d3d64bd126a56382452a47faa20e3e0e8185a01 GIT binary patch literal 1202 zcmeH`drwmb07q|2ffgD%3r#Ptv=s!@suUKf%GMUUQ4Mni_oAx}+P+B#W9t zc`384uRy9(c??$YRj7s02u08!1_wiIJA=Vix``y#Y!e&W`&;}H`)lV5oa7{@c-Onq zZ5lqoCsqierJVS&lGb*B-mYa_Js8{b9n*0r)_#aN(#-L+ut&{nMo;tZT9W)0=1i{u z9dxuup(6_2F|fvjPqd%W= zO5ogz>ryzjW9Y4wo9P%!!L2mh5d>~;h)f7^SA;1M?ySSFS(wfY&The64%}jR#Q1#^ zyj!U8yvR(!>ciYu^ZAkaT+B)FI4?4!z>Pf^R#UfkM;<6Ck0Ly(#_VU*{HNhbEgn{^ zdMm^3D!8jLdzf+`iTJb;|M!^IW2Oeb)x%ql`$sWn!~;|K(FN+!`PIh;JTbvZ2Jw6r&+p@f2QTNb;zQ^UP^$n%{Lg<|Konxo2%?@4 zzt+BfLe2yc&q|Y;&59yMVw|$7wrMO{VU|{x(g}TnMdb>`1%8$FIrV-+gD(uoXDH;IDdB|9~>2iP04OUyz2P0L_K z)idKS*;BkVYp-;A4LiO#%h4>iKFzC~Y?11h>b~3?Hbv)ttP6b0tg~@8*T`L_wAR?M z#EfE95~(LtoaW7zd&GDKr*z|n1~#qlRMQDTkx=d8OpIwfjrot4!hSyC|6!7HG{yai$rao}e-0@~E!k<%WdMdG-dz-lMHG mG1sQDXpDj5@2CU?g~HL3TxHM|Rq%J|xf8L;ou9~w9sdH=NT%Qb literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/images/wink_smile.png b/sources/plugins/smiley/images/wink_smile.png new file mode 100644 index 0000000000000000000000000000000000000000..7c99c3fc54c753dcfe19ff73e225733a2ad7261e GIT binary patch literal 1114 zcmV-g1f~0lP)kxuNha}UkKykNhbfsO}d(O{?d$--fh(36dZ+^M==6-(X zoZt6%jv5`CWUi4)G)IB8Krhha3n1-l0Qf2E6bo|#05umpm1y3I*bm4ZPvQ)KGXVJk z?_<0d626ifb13~n)+v7eukci&xgB_y!ucJX+zDY9QV&CXHMFh)rQq6WxH<@<-$1nn z>pp_$y@!BZS*JKYC)@+eX?}a>9?tF+vtp-W{%TbD462$zOg@Vw<4vDY)}- z=zQf+)+s(y2TvuMw^A5B%#qdNu6lw7xuBHIfruw-=T2ZPv~7f?`{2tSVbcjkblJA) z8YmHoB4(Jc*C(a5io{}QHv=Z(Y_q2VOiEG z7BsMyOUIIw&mt{hbR`4UGWzFrK0TD-;D;l8|LqvIW|%4)(*0wk`yHmrW;W^hy)gel z2#4X)v7~QdG|)>v4f7h&ZXT=)#xn9(mG#>ev*r0NVvE|CELp}UjK3NfpY&HG0&WS( z9Ds!nK|YP&8-#!!oI!|$!MHOv+OVz_Y#FA?tXL9;N|ly*jU+o-0Jvj*7%CNiy9CD5 zNOC)Bsbr|tEUnQ{z%hOty%H#JAgUTvuGDp?2GYd4p;XZr&thZOgs+a~sg@1X?{1Q< zmxLF9GpLAngLn1>;Fa3Uj~!hJQj1$Seqx-;TnTLOS-@CCM^O_)+z1~a-VNm{7~|>k z7;7KvU|w5pC7-Y2x&lBf)=1A1MJler3KB^o+>X|_!RG!PDzq%?6brNMKQVNe zBfZetXwh0D9*9^J+N03aNX1ozG3a6$MlM3tMMNW^xYbivHJg8iwyxRsuRFMg-rB*L z*P*$|qLrR$|7j_}we{{X)?!4nY9Dm%sXMrIz&X3<+?`>?UMSQw<%(Z}K=Ep(zNj@9 zY=dUyo6xyC1MCV~@y5#{2E5P2uTRqVEKHn+2JKxE8u4eUu>OkLSHk)O(6;#j!}ROrR5Q~c~E$gSXhf_7j7unOq*Bfu$O(2qad gc(wf}`2R8f0lW)%aFGbSlmGw#07*qoM6N<$f??$muK)l5 literal 0 HcmV?d00001 diff --git a/sources/plugins/smiley/lang/af.js b/sources/plugins/smiley/lang/af.js new file mode 100644 index 00000000..65726fc9 --- /dev/null +++ b/sources/plugins/smiley/lang/af.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'af', { + options: 'Lagbekkie opsies', + title: 'Voeg lagbekkie by', + toolbar: 'Lagbekkie' +} ); diff --git a/sources/plugins/smiley/lang/ar.js b/sources/plugins/smiley/lang/ar.js new file mode 100644 index 00000000..9cc79641 --- /dev/null +++ b/sources/plugins/smiley/lang/ar.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'ar', { + options: 'خصائص الإبتسامات', + title: 'إدراج ابتسامات', + toolbar: 'ابتسامات' +} ); diff --git a/sources/plugins/smiley/lang/bg.js b/sources/plugins/smiley/lang/bg.js new file mode 100644 index 00000000..5362eff7 --- /dev/null +++ b/sources/plugins/smiley/lang/bg.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'bg', { + options: 'Опции за усмивката', + title: 'Вмъкване на усмивка', + toolbar: 'Усмивка' +} ); diff --git a/sources/plugins/smiley/lang/bn.js b/sources/plugins/smiley/lang/bn.js new file mode 100644 index 00000000..2ef2c3b8 --- /dev/null +++ b/sources/plugins/smiley/lang/bn.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'bn', { + options: 'Smiley Options', // MISSING + title: 'স্মাইলী যুক্ত কর', + toolbar: 'স্মাইলী' +} ); diff --git a/sources/plugins/smiley/lang/bs.js b/sources/plugins/smiley/lang/bs.js new file mode 100644 index 00000000..3c3d3a56 --- /dev/null +++ b/sources/plugins/smiley/lang/bs.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'bs', { + options: 'Smiley Options', // MISSING + title: 'Ubaci smješka', + toolbar: 'Smješko' +} ); diff --git a/sources/plugins/smiley/lang/ca.js b/sources/plugins/smiley/lang/ca.js new file mode 100644 index 00000000..de8dac03 --- /dev/null +++ b/sources/plugins/smiley/lang/ca.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'ca', { + options: 'Opcions d\'emoticones', + title: 'Insereix una icona', + toolbar: 'Icona' +} ); diff --git a/sources/plugins/smiley/lang/cs.js b/sources/plugins/smiley/lang/cs.js new file mode 100644 index 00000000..535e363c --- /dev/null +++ b/sources/plugins/smiley/lang/cs.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'cs', { + options: 'Nastavení smajlíků', + title: 'Vkládání smajlíků', + toolbar: 'Smajlíci' +} ); diff --git a/sources/plugins/smiley/lang/cy.js b/sources/plugins/smiley/lang/cy.js new file mode 100644 index 00000000..4c93cfa0 --- /dev/null +++ b/sources/plugins/smiley/lang/cy.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'cy', { + options: 'Opsiynau Gwenogluniau', + title: 'Mewnosod Gwenoglun', + toolbar: 'Gwenoglun' +} ); diff --git a/sources/plugins/smiley/lang/da.js b/sources/plugins/smiley/lang/da.js new file mode 100644 index 00000000..c9e6450f --- /dev/null +++ b/sources/plugins/smiley/lang/da.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'da', { + options: 'Smileymuligheder', + title: 'Vælg smiley', + toolbar: 'Smiley' +} ); diff --git a/sources/plugins/smiley/lang/de.js b/sources/plugins/smiley/lang/de.js new file mode 100644 index 00000000..af95a657 --- /dev/null +++ b/sources/plugins/smiley/lang/de.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'de', { + options: 'Smiley-Optionen', + title: 'Smiley auswählen', + toolbar: 'Smiley' +} ); diff --git a/sources/plugins/smiley/lang/el.js b/sources/plugins/smiley/lang/el.js new file mode 100644 index 00000000..0a90ba92 --- /dev/null +++ b/sources/plugins/smiley/lang/el.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'el', { + options: 'Επιλογές Φατσούλων', + title: 'Εισάγετε μια Φατσούλα', + toolbar: 'Φατσούλα' +} ); diff --git a/sources/plugins/smiley/lang/en-au.js b/sources/plugins/smiley/lang/en-au.js new file mode 100644 index 00000000..52ee1971 --- /dev/null +++ b/sources/plugins/smiley/lang/en-au.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'en-au', { + options: 'Smiley Options', // MISSING + title: 'Insert a Smiley', + toolbar: 'Smiley' +} ); diff --git a/sources/plugins/smiley/lang/en-ca.js b/sources/plugins/smiley/lang/en-ca.js new file mode 100644 index 00000000..fd5a73e5 --- /dev/null +++ b/sources/plugins/smiley/lang/en-ca.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'en-ca', { + options: 'Smiley Options', // MISSING + title: 'Insert a Smiley', + toolbar: 'Smiley' +} ); diff --git a/sources/plugins/smiley/lang/en-gb.js b/sources/plugins/smiley/lang/en-gb.js new file mode 100644 index 00000000..3c5c7b17 --- /dev/null +++ b/sources/plugins/smiley/lang/en-gb.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'en-gb', { + options: 'Smiley Options', + title: 'Insert a Smiley', + toolbar: 'Smiley' +} ); diff --git a/sources/plugins/smiley/lang/en.js b/sources/plugins/smiley/lang/en.js new file mode 100644 index 00000000..71f399e4 --- /dev/null +++ b/sources/plugins/smiley/lang/en.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'en', { + options: 'Smiley Options', + title: 'Insert a Smiley', + toolbar: 'Smiley' +} ); diff --git a/sources/plugins/smiley/lang/eo.js b/sources/plugins/smiley/lang/eo.js new file mode 100644 index 00000000..c6552b38 --- /dev/null +++ b/sources/plugins/smiley/lang/eo.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'eo', { + options: 'Opcioj pri mienvinjetoj', + title: 'Enmeti Mienvinjeton', + toolbar: 'Mienvinjeto' +} ); diff --git a/sources/plugins/smiley/lang/es.js b/sources/plugins/smiley/lang/es.js new file mode 100644 index 00000000..23bad5dd --- /dev/null +++ b/sources/plugins/smiley/lang/es.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'es', { + options: 'Opciones de emoticonos', + title: 'Insertar un Emoticon', + toolbar: 'Emoticonos' +} ); diff --git a/sources/plugins/smiley/lang/et.js b/sources/plugins/smiley/lang/et.js new file mode 100644 index 00000000..56701506 --- /dev/null +++ b/sources/plugins/smiley/lang/et.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'et', { + options: 'Emotikonide valikud', + title: 'Sisesta emotikon', + toolbar: 'Emotikon' +} ); diff --git a/sources/plugins/smiley/lang/eu.js b/sources/plugins/smiley/lang/eu.js new file mode 100644 index 00000000..a297f0a2 --- /dev/null +++ b/sources/plugins/smiley/lang/eu.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'eu', { + options: 'Aurpegiera Aukerak', + title: 'Aurpegiera Sartu', + toolbar: 'Aurpegierak' +} ); diff --git a/sources/plugins/smiley/lang/fa.js b/sources/plugins/smiley/lang/fa.js new file mode 100644 index 00000000..14bfa13f --- /dev/null +++ b/sources/plugins/smiley/lang/fa.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'fa', { + options: 'گزینه​های خندانک', + title: 'گنجاندن خندانک', + toolbar: 'خندانک' +} ); diff --git a/sources/plugins/smiley/lang/fi.js b/sources/plugins/smiley/lang/fi.js new file mode 100644 index 00000000..df4b1385 --- /dev/null +++ b/sources/plugins/smiley/lang/fi.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'fi', { + options: 'Hymiön ominaisuudet', + title: 'Lisää hymiö', + toolbar: 'Hymiö' +} ); diff --git a/sources/plugins/smiley/lang/fo.js b/sources/plugins/smiley/lang/fo.js new file mode 100644 index 00000000..5a833126 --- /dev/null +++ b/sources/plugins/smiley/lang/fo.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'fo', { + options: 'Møguleikar fyri Smiley', + title: 'Vel Smiley', + toolbar: 'Smiley' +} ); diff --git a/sources/plugins/smiley/lang/fr-ca.js b/sources/plugins/smiley/lang/fr-ca.js new file mode 100644 index 00000000..5686a1d4 --- /dev/null +++ b/sources/plugins/smiley/lang/fr-ca.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'fr-ca', { + options: 'Options d\'émoticônes', + title: 'Insérer un émoticône', + toolbar: 'Émoticône' +} ); diff --git a/sources/plugins/smiley/lang/fr.js b/sources/plugins/smiley/lang/fr.js new file mode 100644 index 00000000..9ee67ff8 --- /dev/null +++ b/sources/plugins/smiley/lang/fr.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'fr', { + options: 'Options des émoticones', + title: 'Insérer un émoticone', + toolbar: 'Émoticones' +} ); diff --git a/sources/plugins/smiley/lang/gl.js b/sources/plugins/smiley/lang/gl.js new file mode 100644 index 00000000..8f1c67d1 --- /dev/null +++ b/sources/plugins/smiley/lang/gl.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'gl', { + options: 'Opcións de emoticonas', + title: 'Inserir unha emoticona', + toolbar: 'Emoticona' +} ); diff --git a/sources/plugins/smiley/lang/gu.js b/sources/plugins/smiley/lang/gu.js new file mode 100644 index 00000000..255a138f --- /dev/null +++ b/sources/plugins/smiley/lang/gu.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'gu', { + options: 'સમ્ય્લી વિકલ્પો', + title: 'સ્માઇલી પસંદ કરો', + toolbar: 'સ્માઇલી' +} ); diff --git a/sources/plugins/smiley/lang/he.js b/sources/plugins/smiley/lang/he.js new file mode 100644 index 00000000..b69f4aa1 --- /dev/null +++ b/sources/plugins/smiley/lang/he.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'he', { + options: 'אפשרויות סמיילים', + title: 'הוספת סמיילי', + toolbar: 'סמיילי' +} ); diff --git a/sources/plugins/smiley/lang/hi.js b/sources/plugins/smiley/lang/hi.js new file mode 100644 index 00000000..f0168740 --- /dev/null +++ b/sources/plugins/smiley/lang/hi.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'hi', { + options: 'Smiley Options', // MISSING + title: 'स्माइली इन्सर्ट करें', + toolbar: 'स्माइली' +} ); diff --git a/sources/plugins/smiley/lang/hr.js b/sources/plugins/smiley/lang/hr.js new file mode 100644 index 00000000..77763eb5 --- /dev/null +++ b/sources/plugins/smiley/lang/hr.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'hr', { + options: 'Opcije smješka', + title: 'Ubaci smješka', + toolbar: 'Smješko' +} ); diff --git a/sources/plugins/smiley/lang/hu.js b/sources/plugins/smiley/lang/hu.js new file mode 100644 index 00000000..9b8a7513 --- /dev/null +++ b/sources/plugins/smiley/lang/hu.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'hu', { + options: 'Hangulatjel opciók', + title: 'Hangulatjel beszúrása', + toolbar: 'Hangulatjelek' +} ); diff --git a/sources/plugins/smiley/lang/id.js b/sources/plugins/smiley/lang/id.js new file mode 100644 index 00000000..3c805ef5 --- /dev/null +++ b/sources/plugins/smiley/lang/id.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'id', { + options: 'Opsi Smiley', + title: 'Sisip sebuah Smiley', + toolbar: 'Smiley' +} ); diff --git a/sources/plugins/smiley/lang/is.js b/sources/plugins/smiley/lang/is.js new file mode 100644 index 00000000..8bdeb247 --- /dev/null +++ b/sources/plugins/smiley/lang/is.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'is', { + options: 'Smiley Options', // MISSING + title: 'Velja svip', + toolbar: 'Svipur' +} ); diff --git a/sources/plugins/smiley/lang/it.js b/sources/plugins/smiley/lang/it.js new file mode 100644 index 00000000..29bb91f3 --- /dev/null +++ b/sources/plugins/smiley/lang/it.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'it', { + options: 'Opzioni Smiley', + title: 'Inserisci emoticon', + toolbar: 'Emoticon' +} ); diff --git a/sources/plugins/smiley/lang/ja.js b/sources/plugins/smiley/lang/ja.js new file mode 100644 index 00000000..856b49cc --- /dev/null +++ b/sources/plugins/smiley/lang/ja.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'ja', { + options: '絵文字オプション', + title: '顔文字挿入', + toolbar: '絵文字' +} ); diff --git a/sources/plugins/smiley/lang/ka.js b/sources/plugins/smiley/lang/ka.js new file mode 100644 index 00000000..b419f04e --- /dev/null +++ b/sources/plugins/smiley/lang/ka.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'ka', { + options: 'სიცილაკის პარამეტრები', + title: 'სიცილაკის ჩასმა', + toolbar: 'სიცილაკები' +} ); diff --git a/sources/plugins/smiley/lang/km.js b/sources/plugins/smiley/lang/km.js new file mode 100644 index 00000000..777c44c9 --- /dev/null +++ b/sources/plugins/smiley/lang/km.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'km', { + options: 'ជម្រើស​រូប​សញ្ញា​អារម្មណ៍', + title: 'បញ្ចូល​រូប​សញ្ញា​អារម្មណ៍', + toolbar: 'រូប​សញ្ញ​អារម្មណ៍' +} ); diff --git a/sources/plugins/smiley/lang/ko.js b/sources/plugins/smiley/lang/ko.js new file mode 100644 index 00000000..50969a67 --- /dev/null +++ b/sources/plugins/smiley/lang/ko.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'ko', { + options: '이모티콘 옵션', + title: '이모티콘 삽입', + toolbar: '이모티콘' +} ); diff --git a/sources/plugins/smiley/lang/ku.js b/sources/plugins/smiley/lang/ku.js new file mode 100644 index 00000000..95f1133f --- /dev/null +++ b/sources/plugins/smiley/lang/ku.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'ku', { + options: 'هەڵبژاردەی زەردەخەنه', + title: 'دانانی زەردەخەنەیەك', + toolbar: 'زەردەخەنه' +} ); diff --git a/sources/plugins/smiley/lang/lt.js b/sources/plugins/smiley/lang/lt.js new file mode 100644 index 00000000..518a8d36 --- /dev/null +++ b/sources/plugins/smiley/lang/lt.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'lt', { + options: 'Šypsenėlių nustatymai', + title: 'Įterpti veidelį', + toolbar: 'Veideliai' +} ); diff --git a/sources/plugins/smiley/lang/lv.js b/sources/plugins/smiley/lang/lv.js new file mode 100644 index 00000000..e55c3bc6 --- /dev/null +++ b/sources/plugins/smiley/lang/lv.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'lv', { + options: 'Smaidiņu uzstādījumi', + title: 'Ievietot smaidiņu', + toolbar: 'Smaidiņi' +} ); diff --git a/sources/plugins/smiley/lang/mk.js b/sources/plugins/smiley/lang/mk.js new file mode 100644 index 00000000..5e8d7035 --- /dev/null +++ b/sources/plugins/smiley/lang/mk.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'mk', { + options: 'Smiley Options', // MISSING + title: 'Insert a Smiley', // MISSING + toolbar: 'Smiley' // MISSING +} ); diff --git a/sources/plugins/smiley/lang/mn.js b/sources/plugins/smiley/lang/mn.js new file mode 100644 index 00000000..6dc3e1f4 --- /dev/null +++ b/sources/plugins/smiley/lang/mn.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'mn', { + options: 'Smiley Options', // MISSING + title: 'Тодорхойлолт оруулах', + toolbar: 'Тодорхойлолт' +} ); diff --git a/sources/plugins/smiley/lang/ms.js b/sources/plugins/smiley/lang/ms.js new file mode 100644 index 00000000..ae773110 --- /dev/null +++ b/sources/plugins/smiley/lang/ms.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'ms', { + options: 'Smiley Options', // MISSING + title: 'Masukkan Smiley', + toolbar: 'Smiley' +} ); diff --git a/sources/plugins/smiley/lang/nb.js b/sources/plugins/smiley/lang/nb.js new file mode 100644 index 00000000..be0f612c --- /dev/null +++ b/sources/plugins/smiley/lang/nb.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'nb', { + options: 'Alternativer for smil', + title: 'Sett inn smil', + toolbar: 'Smil' +} ); diff --git a/sources/plugins/smiley/lang/nl.js b/sources/plugins/smiley/lang/nl.js new file mode 100644 index 00000000..4db8d51f --- /dev/null +++ b/sources/plugins/smiley/lang/nl.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'nl', { + options: 'Smiley opties', + title: 'Smiley invoegen', + toolbar: 'Smiley' +} ); diff --git a/sources/plugins/smiley/lang/no.js b/sources/plugins/smiley/lang/no.js new file mode 100644 index 00000000..21da21c0 --- /dev/null +++ b/sources/plugins/smiley/lang/no.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'no', { + options: 'Alternativer for smil', + title: 'Sett inn smil', + toolbar: 'Smil' +} ); diff --git a/sources/plugins/smiley/lang/pl.js b/sources/plugins/smiley/lang/pl.js new file mode 100644 index 00000000..62d244c9 --- /dev/null +++ b/sources/plugins/smiley/lang/pl.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'pl', { + options: 'Opcje emotikonów', + title: 'Wstaw emotikona', + toolbar: 'Emotikony' +} ); diff --git a/sources/plugins/smiley/lang/pt-br.js b/sources/plugins/smiley/lang/pt-br.js new file mode 100644 index 00000000..96498a49 --- /dev/null +++ b/sources/plugins/smiley/lang/pt-br.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'pt-br', { + options: 'Opções de Emoticons', + title: 'Inserir Emoticon', + toolbar: 'Emoticon' +} ); diff --git a/sources/plugins/smiley/lang/pt.js b/sources/plugins/smiley/lang/pt.js new file mode 100644 index 00000000..945f171c --- /dev/null +++ b/sources/plugins/smiley/lang/pt.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'pt', { + options: 'Opções de Emoticons', + title: 'Inserir um Emoticon', + toolbar: 'Emoticons' +} ); diff --git a/sources/plugins/smiley/lang/ro.js b/sources/plugins/smiley/lang/ro.js new file mode 100644 index 00000000..9c4bc5e8 --- /dev/null +++ b/sources/plugins/smiley/lang/ro.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'ro', { + options: 'Opțiuni figuri expresive', + title: 'Inserează o figură expresivă (Emoticon)', + toolbar: 'Figură expresivă (Emoticon)' +} ); diff --git a/sources/plugins/smiley/lang/ru.js b/sources/plugins/smiley/lang/ru.js new file mode 100644 index 00000000..37cee41f --- /dev/null +++ b/sources/plugins/smiley/lang/ru.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'ru', { + options: 'Выбор смайла', + title: 'Вставить смайл', + toolbar: 'Смайлы' +} ); diff --git a/sources/plugins/smiley/lang/si.js b/sources/plugins/smiley/lang/si.js new file mode 100644 index 00000000..62e4b931 --- /dev/null +++ b/sources/plugins/smiley/lang/si.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'si', { + options: 'හාස්‍ය විකල්ප', + title: 'හාස්‍යන් ඇතුලත් කිරීම', + toolbar: 'හාස්‍යන්' +} ); diff --git a/sources/plugins/smiley/lang/sk.js b/sources/plugins/smiley/lang/sk.js new file mode 100644 index 00000000..cca096e5 --- /dev/null +++ b/sources/plugins/smiley/lang/sk.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'sk', { + options: 'Možnosti smajlíkov', + title: 'Vložiť smajlíka', + toolbar: 'Smajlíky' +} ); diff --git a/sources/plugins/smiley/lang/sl.js b/sources/plugins/smiley/lang/sl.js new file mode 100644 index 00000000..703c7481 --- /dev/null +++ b/sources/plugins/smiley/lang/sl.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'sl', { + options: 'Možnosti Smeška', + title: 'Vstavi smeška', + toolbar: 'Smeško' +} ); diff --git a/sources/plugins/smiley/lang/sq.js b/sources/plugins/smiley/lang/sq.js new file mode 100644 index 00000000..78dfa437 --- /dev/null +++ b/sources/plugins/smiley/lang/sq.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'sq', { + options: 'Opsionet e Ikonave', + title: 'Vendos Ikonë', + toolbar: 'Ikona' +} ); diff --git a/sources/plugins/smiley/lang/sr-latn.js b/sources/plugins/smiley/lang/sr-latn.js new file mode 100644 index 00000000..2b0b149b --- /dev/null +++ b/sources/plugins/smiley/lang/sr-latn.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'sr-latn', { + options: 'Smiley Options', // MISSING + title: 'Unesi smajlija', + toolbar: 'Smajli' +} ); diff --git a/sources/plugins/smiley/lang/sr.js b/sources/plugins/smiley/lang/sr.js new file mode 100644 index 00000000..d0c38c8b --- /dev/null +++ b/sources/plugins/smiley/lang/sr.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'sr', { + options: 'Smiley Options', // MISSING + title: 'Унеси смајлија', + toolbar: 'Смајли' +} ); diff --git a/sources/plugins/smiley/lang/sv.js b/sources/plugins/smiley/lang/sv.js new file mode 100644 index 00000000..7d54b6d3 --- /dev/null +++ b/sources/plugins/smiley/lang/sv.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'sv', { + options: 'Smileyinställningar', + title: 'Infoga smiley', + toolbar: 'Smiley' +} ); diff --git a/sources/plugins/smiley/lang/th.js b/sources/plugins/smiley/lang/th.js new file mode 100644 index 00000000..27db0098 --- /dev/null +++ b/sources/plugins/smiley/lang/th.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'th', { + options: 'ตัวเลือกไอคอนแสดงอารมณ์', + title: 'แทรกสัญลักษณ์สื่ออารมณ์', + toolbar: 'รูปสื่ออารมณ์' +} ); diff --git a/sources/plugins/smiley/lang/tr.js b/sources/plugins/smiley/lang/tr.js new file mode 100644 index 00000000..e7c46633 --- /dev/null +++ b/sources/plugins/smiley/lang/tr.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'tr', { + options: 'İfade Seçenekleri', + title: 'İfade Ekle', + toolbar: 'İfade' +} ); diff --git a/sources/plugins/smiley/lang/tt.js b/sources/plugins/smiley/lang/tt.js new file mode 100644 index 00000000..8fad9914 --- /dev/null +++ b/sources/plugins/smiley/lang/tt.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'tt', { + options: 'Смайл көйләүләре', + title: 'Смайл өстәү', + toolbar: 'Смайл' +} ); diff --git a/sources/plugins/smiley/lang/ug.js b/sources/plugins/smiley/lang/ug.js new file mode 100644 index 00000000..e3a922ba --- /dev/null +++ b/sources/plugins/smiley/lang/ug.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'ug', { + options: 'چىراي ئىپادە سىنبەلگە تاللانمىسى', + title: 'چىراي ئىپادە سىنبەلگە قىستۇر', + toolbar: 'چىراي ئىپادە' +} ); diff --git a/sources/plugins/smiley/lang/uk.js b/sources/plugins/smiley/lang/uk.js new file mode 100644 index 00000000..677bc913 --- /dev/null +++ b/sources/plugins/smiley/lang/uk.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'uk', { + options: 'Опції смайликів', + title: 'Вставити смайлик', + toolbar: 'Смайлик' +} ); diff --git a/sources/plugins/smiley/lang/vi.js b/sources/plugins/smiley/lang/vi.js new file mode 100644 index 00000000..921175fd --- /dev/null +++ b/sources/plugins/smiley/lang/vi.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'vi', { + options: 'Tùy chọn hình biểu lộ cảm xúc', + title: 'Chèn hình biểu lộ cảm xúc (mặt cười)', + toolbar: 'Hình biểu lộ cảm xúc (mặt cười)' +} ); diff --git a/sources/plugins/smiley/lang/zh-cn.js b/sources/plugins/smiley/lang/zh-cn.js new file mode 100644 index 00000000..98d09389 --- /dev/null +++ b/sources/plugins/smiley/lang/zh-cn.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'zh-cn', { + options: '表情图标选项', + title: '插入表情图标', + toolbar: '表情符' +} ); diff --git a/sources/plugins/smiley/lang/zh.js b/sources/plugins/smiley/lang/zh.js new file mode 100644 index 00000000..477d30e6 --- /dev/null +++ b/sources/plugins/smiley/lang/zh.js @@ -0,0 +1,9 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'smiley', 'zh', { + options: '表情符號選項', + title: '插入表情符號', + toolbar: '表情符號' +} ); diff --git a/sources/plugins/smiley/plugin.js b/sources/plugins/smiley/plugin.js new file mode 100644 index 00000000..be8b20db --- /dev/null +++ b/sources/plugins/smiley/plugin.js @@ -0,0 +1,98 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.add( 'smiley', { + requires: 'dialog', + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'smiley', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + init: function( editor ) { + editor.config.smiley_path = editor.config.smiley_path || ( this.path + 'images/' ); + editor.addCommand( 'smiley', new CKEDITOR.dialogCommand( 'smiley', { + allowedContent: 'img[alt,height,!src,title,width]', + requiredContent: 'img' + } ) ); + editor.ui.addButton && editor.ui.addButton( 'Smiley', { + label: editor.lang.smiley.toolbar, + command: 'smiley', + toolbar: 'insert,50' + } ); + CKEDITOR.dialog.add( 'smiley', this.path + 'dialogs/smiley.js' ); + } +} ); + +/** + * The base path used to build the URL for the smiley images. It must end with a slash. + * + * config.smiley_path = 'http://www.example.com/images/smileys/'; + * + * config.smiley_path = '/images/smileys/'; + * + * @cfg {String} [smiley_path=CKEDITOR.basePath + 'plugins/smiley/images/'] + * @member CKEDITOR.config + */ + +/** + * The file names for the smileys to be displayed. These files must be + * contained inside the URL path defined with the {@link #smiley_path} setting. + * + * // This is actually the default value. + * config.smiley_images = [ + * 'regular_smile.png','sad_smile.png','wink_smile.png','teeth_smile.png','confused_smile.png','tongue_smile.png', + * 'embarrassed_smile.png','omg_smile.png','whatchutalkingabout_smile.png','angry_smile.png','angel_smile.png','shades_smile.png', + * 'devil_smile.png','cry_smile.png','lightbulb.png','thumbs_down.png','thumbs_up.png','heart.png', + * 'broken_heart.png','kiss.png','envelope.png' + * ]; + * + * @cfg + * @member CKEDITOR.config + */ +CKEDITOR.config.smiley_images = [ + 'regular_smile.png', 'sad_smile.png', 'wink_smile.png', 'teeth_smile.png', 'confused_smile.png', 'tongue_smile.png', + 'embarrassed_smile.png', 'omg_smile.png', 'whatchutalkingabout_smile.png', 'angry_smile.png', 'angel_smile.png', 'shades_smile.png', + 'devil_smile.png', 'cry_smile.png', 'lightbulb.png', 'thumbs_down.png', 'thumbs_up.png', 'heart.png', + 'broken_heart.png', 'kiss.png', 'envelope.png' +]; + +/** + * The description to be used for each of the smileys defined in the + * {@link CKEDITOR.config#smiley_images} setting. Each entry in this array list + * must match its relative pair in the {@link CKEDITOR.config#smiley_images} + * setting. + * + * // Default settings. + * config.smiley_descriptions = [ + * 'smiley', 'sad', 'wink', 'laugh', 'frown', 'cheeky', 'blush', 'surprise', + * 'indecision', 'angry', 'angel', 'cool', 'devil', 'crying', 'enlightened', 'no', + * 'yes', 'heart', 'broken heart', 'kiss', 'mail' + * ]; + * + * // Use textual emoticons as description. + * config.smiley_descriptions = [ + * ':)', ':(', ';)', ':D', ':/', ':P', ':*)', ':-o', + * ':|', '>:(', 'o:)', '8-)', '>:-)', ';(', '', '', '', + * '', '', ':-*', '' + * ]; + * + * @cfg + * @member CKEDITOR.config + */ +CKEDITOR.config.smiley_descriptions = [ + 'smiley', 'sad', 'wink', 'laugh', 'frown', 'cheeky', 'blush', 'surprise', + 'indecision', 'angry', 'angel', 'cool', 'devil', 'crying', 'enlightened', 'no', + 'yes', 'heart', 'broken heart', 'kiss', 'mail' +]; + +/** + * The number of columns to be generated by the smilies matrix. + * + * config.smiley_columns = 6; + * + * @since 3.3.2 + * @cfg {Number} [smiley_columns=8] + * @member CKEDITOR.config + */ diff --git a/sources/plugins/sourcearea/icons/hidpi/source-rtl.png b/sources/plugins/sourcearea/icons/hidpi/source-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..adf4af3c984eb6549af7e35b4abcbe40275e9d1e GIT binary patch literal 1968 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 literal 0 HcmV?d00001 diff --git a/sources/plugins/sourcearea/icons/source-rtl.png b/sources/plugins/sourcearea/icons/source-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..27d1ba8819842924df2d3e40fd5484ac1e9e8c41 GIT binary patch literal 762 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|ildz|YV~EA+-pOaPL>xt0_eWp7a>UdBdyA)&f+GKfsVxQqGr|oN zUYu&}&~trsXzR^a#w++2D6M0;Zr2#CnCMg`wrEFcs#?z*YMbe6~`VMx&{^$7B=qW^}9S}>QvD+Tiulwb>FgF?l~!; zXQn_5ySisnhs@U7Z=FL^1K+=S0~CC~&|`R{(1v|^X4Q=6KLvKwS5@5#4`rBByk^}x zBN;x^76yaBgtberW+^JUuMK;>L8D9Yg0;2v>+>Q^Edl|d#~y#Y)9>LTAh>2LL;mSa zG7Pp0_HW&KG{Z!x<-pUYs->~Qu7dY|TfV$=WY@ZzH*O@bi3u7W+Y=uZl~h^zGj{jg zWtU$jteyM5zWIQJ^WuvPFY@#A-4853d-m*ghPi&vdpl|b1i3Hdm~FhKq-4&yOzoaD z58M5!z4tC}(wXmjb?=?~_v_!y`K_eXYti>ya_7V;D=qzZ-F?@bw)yApKY#uhI|Pcz zUpD!>dH3$$0v0>+l+@MLQzG3s8oz!m4GrxvT>tIcx2y-pzi{p^-+lL%#Am0_$mr-A_jxwwcfS6t^UCJ@$9tdo zgBz4y7fUq11*RF*64!{5l*E!$tK_0oAjM#0U}&ssV6JOm5@Kj>Wnc_M+6G2e1_r)M zb_3HBl7`&;l+3hB+!}0tG9LkIkObKfoS#-wo>-L1P+nfHmzkGcoSayYs+V7sKKq@G Q6i^X^r>mdKI;Vst0J0`XJOBUy literal 0 HcmV?d00001 diff --git a/sources/plugins/sourcearea/icons/source.png b/sources/plugins/sourcearea/icons/source.png new file mode 100644 index 0000000000000000000000000000000000000000..e44db37985a9161f30484ad1df82dc3b3245ca3a GIT binary patch literal 764 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|ilc=YQV~EA+-pL!YLL5cf_8S))n^#YsyEoC3gGK1|6h$4DZCgVG zwrmo(7^EV0EpPSt1$GUL8->UyLwwUqrt;#=M|aJ%KCZMoa?+Yd{Oy|OX7<lfj#)(ZmHs>QFA`<2$^~{++-&lr^Q*ptn>$b@~2dn#w{ajP>BD1TtwY9fI=}uB{ zbV*|nJScJa+c&dSR@*<>+!voX@B2SKm6=g8eC<8QlP#^SlWpXf6_j#vbMI=O{*=Mw z7+PH#8yqTH8k@W`fNr&KR>Po))G8zXVZ$~U8>He31`1O)7T;4q~Iwe z)ysA*YEH34vd3kS1q{1FLuETpSZC+@y9i9wX1^@6X6u&Qxu0y(Gc#ZQee_7_*bM%n z)a4AjUcY{QrL@-AC0jRgn(x|Z!Jjwsw%=#U$;sKnXqTUtr{*wmndY$>k_koAb@cU> zl~xwNOUTcE?;3l3J;SP1RrlVO&7V7OUY+Q~w(tM+5~P$q6r`s=4_tlqm#GAg9b-&P zOwGwnZ_<}vu4J&8d*Me9mQoL#7HlOIa8~zB;(9@?`rS z`nBNRonD?i@6dXmYtH``svJ9!Vd4}jDEQRgM5?#LaM7w60!*oq|Gp}pUA;+%Q<32V z`>`s`C%^Jj9e}AuwZt`|BqgyV)hf9t6-Y4{85kPt8kp-En1mRbTNxMwk+y-6m4Sip zlHI@*g`^=jKP5A*61N7MpUg*q8YDqB1m~xflqVLYGL)B>>t*I;7bhncr0V4trO$q6 RBL!5%;OXk;vd$@?2>=OlH)j9< literal 0 HcmV?d00001 diff --git a/sources/plugins/sourcearea/lang/af.js b/sources/plugins/sourcearea/lang/af.js new file mode 100644 index 00000000..b21d7e61 --- /dev/null +++ b/sources/plugins/sourcearea/lang/af.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'af', { + toolbar: 'Bron' +} ); diff --git a/sources/plugins/sourcearea/lang/ar.js b/sources/plugins/sourcearea/lang/ar.js new file mode 100644 index 00000000..71a3a6b1 --- /dev/null +++ b/sources/plugins/sourcearea/lang/ar.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'ar', { + toolbar: 'المصدر' +} ); diff --git a/sources/plugins/sourcearea/lang/bg.js b/sources/plugins/sourcearea/lang/bg.js new file mode 100644 index 00000000..0e9ff33d --- /dev/null +++ b/sources/plugins/sourcearea/lang/bg.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'bg', { + toolbar: 'Изходен код' +} ); diff --git a/sources/plugins/sourcearea/lang/bn.js b/sources/plugins/sourcearea/lang/bn.js new file mode 100644 index 00000000..266a5c0a --- /dev/null +++ b/sources/plugins/sourcearea/lang/bn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'bn', { + toolbar: 'সোর্স' +} ); diff --git a/sources/plugins/sourcearea/lang/bs.js b/sources/plugins/sourcearea/lang/bs.js new file mode 100644 index 00000000..2b0fa706 --- /dev/null +++ b/sources/plugins/sourcearea/lang/bs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'bs', { + toolbar: 'HTML kôd' +} ); diff --git a/sources/plugins/sourcearea/lang/ca.js b/sources/plugins/sourcearea/lang/ca.js new file mode 100644 index 00000000..137d2352 --- /dev/null +++ b/sources/plugins/sourcearea/lang/ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'ca', { + toolbar: 'Codi font' +} ); diff --git a/sources/plugins/sourcearea/lang/cs.js b/sources/plugins/sourcearea/lang/cs.js new file mode 100644 index 00000000..0612de26 --- /dev/null +++ b/sources/plugins/sourcearea/lang/cs.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'cs', { + toolbar: 'Zdroj' +} ); diff --git a/sources/plugins/sourcearea/lang/cy.js b/sources/plugins/sourcearea/lang/cy.js new file mode 100644 index 00000000..fb59ec60 --- /dev/null +++ b/sources/plugins/sourcearea/lang/cy.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'cy', { + toolbar: 'HTML' +} ); diff --git a/sources/plugins/sourcearea/lang/da.js b/sources/plugins/sourcearea/lang/da.js new file mode 100644 index 00000000..775a23e4 --- /dev/null +++ b/sources/plugins/sourcearea/lang/da.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'da', { + toolbar: 'Kilde' +} ); diff --git a/sources/plugins/sourcearea/lang/de.js b/sources/plugins/sourcearea/lang/de.js new file mode 100644 index 00000000..09c496dd --- /dev/null +++ b/sources/plugins/sourcearea/lang/de.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'de', { + toolbar: 'Quellcode' +} ); diff --git a/sources/plugins/sourcearea/lang/el.js b/sources/plugins/sourcearea/lang/el.js new file mode 100644 index 00000000..b04b2569 --- /dev/null +++ b/sources/plugins/sourcearea/lang/el.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'el', { + toolbar: 'Κώδικας' +} ); diff --git a/sources/plugins/sourcearea/lang/en-au.js b/sources/plugins/sourcearea/lang/en-au.js new file mode 100644 index 00000000..cb327bbc --- /dev/null +++ b/sources/plugins/sourcearea/lang/en-au.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'en-au', { + toolbar: 'Source' +} ); diff --git a/sources/plugins/sourcearea/lang/en-ca.js b/sources/plugins/sourcearea/lang/en-ca.js new file mode 100644 index 00000000..0ded9408 --- /dev/null +++ b/sources/plugins/sourcearea/lang/en-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'en-ca', { + toolbar: 'Source' +} ); diff --git a/sources/plugins/sourcearea/lang/en-gb.js b/sources/plugins/sourcearea/lang/en-gb.js new file mode 100644 index 00000000..4351d839 --- /dev/null +++ b/sources/plugins/sourcearea/lang/en-gb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'en-gb', { + toolbar: 'Source' +} ); diff --git a/sources/plugins/sourcearea/lang/en.js b/sources/plugins/sourcearea/lang/en.js new file mode 100644 index 00000000..686ea0ce --- /dev/null +++ b/sources/plugins/sourcearea/lang/en.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'en', { + toolbar: 'Source' +} ); diff --git a/sources/plugins/sourcearea/lang/eo.js b/sources/plugins/sourcearea/lang/eo.js new file mode 100644 index 00000000..cc7a4a71 --- /dev/null +++ b/sources/plugins/sourcearea/lang/eo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'eo', { + toolbar: 'Fonto' +} ); diff --git a/sources/plugins/sourcearea/lang/es.js b/sources/plugins/sourcearea/lang/es.js new file mode 100644 index 00000000..df7c9940 --- /dev/null +++ b/sources/plugins/sourcearea/lang/es.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'es', { + toolbar: 'Fuente HTML' +} ); diff --git a/sources/plugins/sourcearea/lang/et.js b/sources/plugins/sourcearea/lang/et.js new file mode 100644 index 00000000..90e6400e --- /dev/null +++ b/sources/plugins/sourcearea/lang/et.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'et', { + toolbar: 'Lähtekood' +} ); diff --git a/sources/plugins/sourcearea/lang/eu.js b/sources/plugins/sourcearea/lang/eu.js new file mode 100644 index 00000000..1e375adb --- /dev/null +++ b/sources/plugins/sourcearea/lang/eu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'eu', { + toolbar: 'Iturburua' +} ); diff --git a/sources/plugins/sourcearea/lang/fa.js b/sources/plugins/sourcearea/lang/fa.js new file mode 100644 index 00000000..ed612ca9 --- /dev/null +++ b/sources/plugins/sourcearea/lang/fa.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'fa', { + toolbar: 'منبع' +} ); diff --git a/sources/plugins/sourcearea/lang/fi.js b/sources/plugins/sourcearea/lang/fi.js new file mode 100644 index 00000000..a62ae9a5 --- /dev/null +++ b/sources/plugins/sourcearea/lang/fi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'fi', { + toolbar: 'Koodi' +} ); diff --git a/sources/plugins/sourcearea/lang/fo.js b/sources/plugins/sourcearea/lang/fo.js new file mode 100644 index 00000000..69dbb4cf --- /dev/null +++ b/sources/plugins/sourcearea/lang/fo.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'fo', { + toolbar: 'Kelda' +} ); diff --git a/sources/plugins/sourcearea/lang/fr-ca.js b/sources/plugins/sourcearea/lang/fr-ca.js new file mode 100644 index 00000000..7a522328 --- /dev/null +++ b/sources/plugins/sourcearea/lang/fr-ca.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'fr-ca', { + toolbar: 'Source' +} ); diff --git a/sources/plugins/sourcearea/lang/fr.js b/sources/plugins/sourcearea/lang/fr.js new file mode 100644 index 00000000..0b530686 --- /dev/null +++ b/sources/plugins/sourcearea/lang/fr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'fr', { + toolbar: 'Source' +} ); diff --git a/sources/plugins/sourcearea/lang/gl.js b/sources/plugins/sourcearea/lang/gl.js new file mode 100644 index 00000000..ddcfbf9d --- /dev/null +++ b/sources/plugins/sourcearea/lang/gl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'gl', { + toolbar: 'Orixe' +} ); diff --git a/sources/plugins/sourcearea/lang/gu.js b/sources/plugins/sourcearea/lang/gu.js new file mode 100644 index 00000000..cb4f5f3c --- /dev/null +++ b/sources/plugins/sourcearea/lang/gu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'gu', { + toolbar: 'મૂળ કે પ્રાથમિક દસ્તાવેજ' +} ); diff --git a/sources/plugins/sourcearea/lang/he.js b/sources/plugins/sourcearea/lang/he.js new file mode 100644 index 00000000..ddf6d849 --- /dev/null +++ b/sources/plugins/sourcearea/lang/he.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'he', { + toolbar: 'מקור' +} ); diff --git a/sources/plugins/sourcearea/lang/hi.js b/sources/plugins/sourcearea/lang/hi.js new file mode 100644 index 00000000..e5d484c4 --- /dev/null +++ b/sources/plugins/sourcearea/lang/hi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'hi', { + toolbar: 'सोर्स' +} ); diff --git a/sources/plugins/sourcearea/lang/hr.js b/sources/plugins/sourcearea/lang/hr.js new file mode 100644 index 00000000..d20e6385 --- /dev/null +++ b/sources/plugins/sourcearea/lang/hr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'hr', { + toolbar: 'Kôd' +} ); diff --git a/sources/plugins/sourcearea/lang/hu.js b/sources/plugins/sourcearea/lang/hu.js new file mode 100644 index 00000000..bd2eec9e --- /dev/null +++ b/sources/plugins/sourcearea/lang/hu.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'hu', { + toolbar: 'Forráskód' +} ); diff --git a/sources/plugins/sourcearea/lang/id.js b/sources/plugins/sourcearea/lang/id.js new file mode 100644 index 00000000..6e8a5ce4 --- /dev/null +++ b/sources/plugins/sourcearea/lang/id.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'id', { + toolbar: 'Sumber' +} ); diff --git a/sources/plugins/sourcearea/lang/is.js b/sources/plugins/sourcearea/lang/is.js new file mode 100644 index 00000000..9551c15c --- /dev/null +++ b/sources/plugins/sourcearea/lang/is.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'is', { + toolbar: 'Kóði' +} ); diff --git a/sources/plugins/sourcearea/lang/it.js b/sources/plugins/sourcearea/lang/it.js new file mode 100644 index 00000000..b4d23dd6 --- /dev/null +++ b/sources/plugins/sourcearea/lang/it.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'it', { + toolbar: 'Sorgente' +} ); diff --git a/sources/plugins/sourcearea/lang/ja.js b/sources/plugins/sourcearea/lang/ja.js new file mode 100644 index 00000000..bd767231 --- /dev/null +++ b/sources/plugins/sourcearea/lang/ja.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'ja', { + toolbar: 'ソース' +} ); diff --git a/sources/plugins/sourcearea/lang/ka.js b/sources/plugins/sourcearea/lang/ka.js new file mode 100644 index 00000000..e2d4834b --- /dev/null +++ b/sources/plugins/sourcearea/lang/ka.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'ka', { + toolbar: 'კოდები' +} ); diff --git a/sources/plugins/sourcearea/lang/km.js b/sources/plugins/sourcearea/lang/km.js new file mode 100644 index 00000000..f7bc88c3 --- /dev/null +++ b/sources/plugins/sourcearea/lang/km.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'km', { + toolbar: 'អក្សរ​កូដ' +} ); diff --git a/sources/plugins/sourcearea/lang/ko.js b/sources/plugins/sourcearea/lang/ko.js new file mode 100644 index 00000000..a3375e7e --- /dev/null +++ b/sources/plugins/sourcearea/lang/ko.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'ko', { + toolbar: '소스' +} ); diff --git a/sources/plugins/sourcearea/lang/ku.js b/sources/plugins/sourcearea/lang/ku.js new file mode 100644 index 00000000..346395df --- /dev/null +++ b/sources/plugins/sourcearea/lang/ku.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'ku', { + toolbar: 'سەرچاوە' +} ); diff --git a/sources/plugins/sourcearea/lang/lt.js b/sources/plugins/sourcearea/lang/lt.js new file mode 100644 index 00000000..13cdcb3a --- /dev/null +++ b/sources/plugins/sourcearea/lang/lt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'lt', { + toolbar: 'Šaltinis' +} ); diff --git a/sources/plugins/sourcearea/lang/lv.js b/sources/plugins/sourcearea/lang/lv.js new file mode 100644 index 00000000..4c5873ce --- /dev/null +++ b/sources/plugins/sourcearea/lang/lv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'lv', { + toolbar: 'HTML kods' +} ); diff --git a/sources/plugins/sourcearea/lang/mk.js b/sources/plugins/sourcearea/lang/mk.js new file mode 100644 index 00000000..5b6fda09 --- /dev/null +++ b/sources/plugins/sourcearea/lang/mk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'mk', { + toolbar: 'Source' // MISSING +} ); diff --git a/sources/plugins/sourcearea/lang/mn.js b/sources/plugins/sourcearea/lang/mn.js new file mode 100644 index 00000000..e6b822fd --- /dev/null +++ b/sources/plugins/sourcearea/lang/mn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'mn', { + toolbar: 'Код' +} ); diff --git a/sources/plugins/sourcearea/lang/ms.js b/sources/plugins/sourcearea/lang/ms.js new file mode 100644 index 00000000..ad5f9026 --- /dev/null +++ b/sources/plugins/sourcearea/lang/ms.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'ms', { + toolbar: 'Sumber' +} ); diff --git a/sources/plugins/sourcearea/lang/nb.js b/sources/plugins/sourcearea/lang/nb.js new file mode 100644 index 00000000..3a9ae66f --- /dev/null +++ b/sources/plugins/sourcearea/lang/nb.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'nb', { + toolbar: 'Kilde' +} ); diff --git a/sources/plugins/sourcearea/lang/nl.js b/sources/plugins/sourcearea/lang/nl.js new file mode 100644 index 00000000..bb3628ec --- /dev/null +++ b/sources/plugins/sourcearea/lang/nl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'nl', { + toolbar: 'Broncode' +} ); diff --git a/sources/plugins/sourcearea/lang/no.js b/sources/plugins/sourcearea/lang/no.js new file mode 100644 index 00000000..d42d9c17 --- /dev/null +++ b/sources/plugins/sourcearea/lang/no.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'no', { + toolbar: 'Kilde' +} ); diff --git a/sources/plugins/sourcearea/lang/pl.js b/sources/plugins/sourcearea/lang/pl.js new file mode 100644 index 00000000..44dbb570 --- /dev/null +++ b/sources/plugins/sourcearea/lang/pl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'pl', { + toolbar: 'Źródło dokumentu' +} ); diff --git a/sources/plugins/sourcearea/lang/pt-br.js b/sources/plugins/sourcearea/lang/pt-br.js new file mode 100644 index 00000000..bb239b8c --- /dev/null +++ b/sources/plugins/sourcearea/lang/pt-br.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'pt-br', { + toolbar: 'Código-Fonte' +} ); diff --git a/sources/plugins/sourcearea/lang/pt.js b/sources/plugins/sourcearea/lang/pt.js new file mode 100644 index 00000000..5bd68059 --- /dev/null +++ b/sources/plugins/sourcearea/lang/pt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'pt', { + toolbar: 'Fonte' +} ); diff --git a/sources/plugins/sourcearea/lang/ro.js b/sources/plugins/sourcearea/lang/ro.js new file mode 100644 index 00000000..2b8e59bd --- /dev/null +++ b/sources/plugins/sourcearea/lang/ro.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'ro', { + toolbar: 'Sursa' +} ); diff --git a/sources/plugins/sourcearea/lang/ru.js b/sources/plugins/sourcearea/lang/ru.js new file mode 100644 index 00000000..02007aa4 --- /dev/null +++ b/sources/plugins/sourcearea/lang/ru.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'ru', { + toolbar: 'Источник' +} ); diff --git a/sources/plugins/sourcearea/lang/si.js b/sources/plugins/sourcearea/lang/si.js new file mode 100644 index 00000000..0ee21295 --- /dev/null +++ b/sources/plugins/sourcearea/lang/si.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'si', { + toolbar: 'මුලාශ්‍රය' +} ); diff --git a/sources/plugins/sourcearea/lang/sk.js b/sources/plugins/sourcearea/lang/sk.js new file mode 100644 index 00000000..17c3209e --- /dev/null +++ b/sources/plugins/sourcearea/lang/sk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'sk', { + toolbar: 'Zdroj' +} ); diff --git a/sources/plugins/sourcearea/lang/sl.js b/sources/plugins/sourcearea/lang/sl.js new file mode 100644 index 00000000..8b5c0445 --- /dev/null +++ b/sources/plugins/sourcearea/lang/sl.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'sl', { + toolbar: 'Izvorna koda' +} ); diff --git a/sources/plugins/sourcearea/lang/sq.js b/sources/plugins/sourcearea/lang/sq.js new file mode 100644 index 00000000..918873a2 --- /dev/null +++ b/sources/plugins/sourcearea/lang/sq.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'sq', { + toolbar: 'Burimi' +} ); diff --git a/sources/plugins/sourcearea/lang/sr-latn.js b/sources/plugins/sourcearea/lang/sr-latn.js new file mode 100644 index 00000000..b1190c82 --- /dev/null +++ b/sources/plugins/sourcearea/lang/sr-latn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'sr-latn', { + toolbar: 'Kôd' +} ); diff --git a/sources/plugins/sourcearea/lang/sr.js b/sources/plugins/sourcearea/lang/sr.js new file mode 100644 index 00000000..738a8af4 --- /dev/null +++ b/sources/plugins/sourcearea/lang/sr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'sr', { + toolbar: 'Kôд' +} ); diff --git a/sources/plugins/sourcearea/lang/sv.js b/sources/plugins/sourcearea/lang/sv.js new file mode 100644 index 00000000..ea2c2adb --- /dev/null +++ b/sources/plugins/sourcearea/lang/sv.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'sv', { + toolbar: 'Källa' +} ); diff --git a/sources/plugins/sourcearea/lang/th.js b/sources/plugins/sourcearea/lang/th.js new file mode 100644 index 00000000..41a2b74b --- /dev/null +++ b/sources/plugins/sourcearea/lang/th.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'th', { + toolbar: 'ดูรหัส HTML' +} ); diff --git a/sources/plugins/sourcearea/lang/tr.js b/sources/plugins/sourcearea/lang/tr.js new file mode 100644 index 00000000..ea86c3dc --- /dev/null +++ b/sources/plugins/sourcearea/lang/tr.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'tr', { + toolbar: 'Kaynak' +} ); diff --git a/sources/plugins/sourcearea/lang/tt.js b/sources/plugins/sourcearea/lang/tt.js new file mode 100644 index 00000000..aa4fdfb5 --- /dev/null +++ b/sources/plugins/sourcearea/lang/tt.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'tt', { + toolbar: 'Чыганак' +} ); diff --git a/sources/plugins/sourcearea/lang/ug.js b/sources/plugins/sourcearea/lang/ug.js new file mode 100644 index 00000000..c087cf1f --- /dev/null +++ b/sources/plugins/sourcearea/lang/ug.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'ug', { + toolbar: 'مەنبە' +} ); diff --git a/sources/plugins/sourcearea/lang/uk.js b/sources/plugins/sourcearea/lang/uk.js new file mode 100644 index 00000000..0cc25f82 --- /dev/null +++ b/sources/plugins/sourcearea/lang/uk.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'uk', { + toolbar: 'Джерело' +} ); diff --git a/sources/plugins/sourcearea/lang/vi.js b/sources/plugins/sourcearea/lang/vi.js new file mode 100644 index 00000000..70401f82 --- /dev/null +++ b/sources/plugins/sourcearea/lang/vi.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'vi', { + toolbar: 'Mã HTML' +} ); diff --git a/sources/plugins/sourcearea/lang/zh-cn.js b/sources/plugins/sourcearea/lang/zh-cn.js new file mode 100644 index 00000000..d831a2ee --- /dev/null +++ b/sources/plugins/sourcearea/lang/zh-cn.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'zh-cn', { + toolbar: '源码' +} ); diff --git a/sources/plugins/sourcearea/lang/zh.js b/sources/plugins/sourcearea/lang/zh.js new file mode 100644 index 00000000..1bc7caea --- /dev/null +++ b/sources/plugins/sourcearea/lang/zh.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'sourcearea', 'zh', { + toolbar: '原始碼' +} ); diff --git a/sources/plugins/sourcearea/plugin.js b/sources/plugins/sourcearea/plugin.js new file mode 100644 index 00000000..d8fb4620 --- /dev/null +++ b/sources/plugins/sourcearea/plugin.js @@ -0,0 +1,168 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview The Source Editing Area plugin. It registers the "source" editing + * mode, which displays raw HTML data being edited in the editor. + */ + +( function() { + CKEDITOR.plugins.add( 'sourcearea', { + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'source,source-rtl', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + init: function( editor ) { + // Source mode in inline editors is only available through the "sourcedialog" plugin. + if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE ) + return; + + var sourcearea = CKEDITOR.plugins.sourcearea; + + editor.addMode( 'source', function( callback ) { + var contentsSpace = editor.ui.space( 'contents' ), + textarea = contentsSpace.getDocument().createElement( 'textarea' ); + + textarea.setStyles( + CKEDITOR.tools.extend( { + // IE7 has overflow the +
    
    +	
+ +
+

Full toolbar configuration

+

Below you can see editor with full toolbar, generated automatically by the editor.

+

+ Note: To create editor instance with full toolbar you don't have to set anything. + Just leave toolbar and toolbarGroups with the default, null values. +

+ +

+	
+ + + + + + diff --git a/sources/plugins/undo/dev/snapshot.html b/sources/plugins/undo/dev/snapshot.html new file mode 100644 index 00000000..c3a61c67 --- /dev/null +++ b/sources/plugins/undo/dev/snapshot.html @@ -0,0 +1,86 @@ + + + + + + Replace Textarea by Code — CKEditor Sample + + + + +

+ CKEditor Samples » Replace Textarea Elements Using JavaScript Code +

+
+
+

+ This editor is using an <iframe> element-based editing area, provided by the Wysiwygarea plugin. +

+
+CKEDITOR.replace( 'textarea_id' )
+
+
+ +

+ +

+
+ +
+
Snapshots: 0
+
Typing: false
+
+
+ < Undo + Redo > +
+ + + + diff --git a/sources/plugins/undo/icons/hidpi/redo-rtl.png b/sources/plugins/undo/icons/hidpi/redo-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..206d38ab9d2679a168ac833226265184a1b0f564 GIT binary patch literal 1869 zcmV-T2eSByP)SRoeboN~KnQ^@C6Q1FtDym3DYBE36iOvL z-+wHChbqBTU^5UP5sfl0l_I)kjn&xGb08KD*R%0o$$$_7LrS9IFmqxtWGseQvZNb0 zuw=!Gwt$pB5<(#0vC1$jz*O*9B*L6j3Xx7rV0%+4_10_a*2$dX;CmiQJ+1;C05B!A zfMH-YG|)76E+U<7BM>;yy>exDy0eo)sYJ0@#8(PYHG;!eN?X zF=RZBSiHC!DG&7Y^t3(G+DfHdt~#u>n*gj(2+`TO7Py>v_StLWpL|lGSOm|b=s4tT zn?k9CTd6z{M4w7|VvFUQDG@ z`PQ!Q{iKxWhJln4<@-$9Hj}o^=-3#87cThD#Ka$fpQuc9qiFllHt(Iz*8VVumtKL1Dh9)IK2!?Om;Pd|e$+B&4Q(u1hyRngx z`yh0s6cxt-;5!{1c$EtId>&2H>W&}wyB8$Y+{_O)Y>4!qKK+hZwk)R3oY~1enb0eh z3b)6{QA$bRUkev4y4E~rPG@6dBf(&BRuHAsT~XeXiF#*A$xF+Zqf7Zq(bbhvUwrYd zH!?!bw(*og^OeFb76E)9s#Wo}wzdV9Wf2Gj>bq369?xVl^!D}+^q)HA{bO*Dv9U2Dm&=8P5YI;< z5j`9ZW11$0VW1lZzEb@0rMeS|1ffs}SreG!I1CRDGdMUn(@~iH^{!p#f7{m=HVmVqsi{eeL?Q%DlW(qF zbI*VE)m;1d@%)Y3x2pgE%JcACmvXU4d2*7MdwaWU*=XChfB)w{-?5`}{`~pTXf%qh z>$tAV<)I<2T)g-O&@ye!2fBe^4d(jOPd|Mt9*?J!$s|TF$frk-Zu0v3k6gKV^DY2@ zs*PCBad7f^R&L#D0q+2tfT5O_mTYr#b4M%|15IOibd<9@cgm|bZ{oOa)z)=+xwqE> zz7PBmSPSTHZQuTv!ykOm)tpM111C=&_D`PNe0gN#+W<9b*BzCMMJl$ zym|A96DLlriYJqDyinj`U!NSleH*7-u69MajORFbu1lptr>1aLLj6>27?4G3p0^mVE67rKpGf0c<|twKY#Yw;6E>1xIUiA z;Q2m6N;F+Z>N>h<5~$gQnwl8cz56=w8t{`uJl?kd{rAt~`*R9~0=`lYzLJUBMAJ=^ zU@XSKo;_EA)xa+nEnL`MvhBDoWq*ER;_j#xqHZU39m6y+<8l7l*QZYH+VvY?)$8ll zb^N%u_ewUG!}GiuN-)#FnMI&~fA2k^OcNe(FPyHc^27w+-Lhpp@b0;N`{rp44G(!K zomP@iGReT6Jtu1=IpkC-v!3_UGig{Br{8}2PrweZHc1~U1NRBECNzXV4+ha{L+U@8 z`#yfTjPH49x{hWTkN7Z|5~!vj4Ws(+5e_Y(X=s4}no?C?LOlA*sLCNg%EvLS+D-$0 z;%~!$1G8x*a3fLZssI20C3HntbYx+4WjbSWWnpw>05UK!Gc7PSEiy1vF)=zYH##sh zD=;!TFfjJwrbz$*03~!qSaf7zbY(hiZ)9m^c>ppnF*7YNHZ3wRR539+FgH3dG%GMN zIxsMYzaI4f000?uMObuGZ)S9NVRB^vcXxL#X>MzCV_|S*E^l&Yo9;Xs00000NkvXX Hu0mjfvTADb literal 0 HcmV?d00001 diff --git a/sources/plugins/undo/icons/hidpi/redo.png b/sources/plugins/undo/icons/hidpi/redo.png new file mode 100644 index 0000000000000000000000000000000000000000..a7883643adb31119dfb9a287ea07de4ae5291c98 GIT binary patch literal 1783 zcmVNny8AJNI{K5ghW-fG*X{}`huE7B6+Y;0SWc7ia<2! zTVEPgLUmAr?9fC;+#-~q;2?vI@pU}+bN1PNm>F)yjzMa9>5`6gUiPeS{p(+ApAi>7 z`Gm(A^08+BKLB7o>OlcWDN(XigAM`$V=%`2Zvdo}tO$omM59O{NM*C6b2)si9}41; zTcD&Q;kv|k>^NSveS2(GQxi2+RfHV}ODTj9|2+T!2qAEkqUG6Vdx5i}qvQFywQFf^ zY$P6yVlNZokrgn;5NOSY_3L?a_wIFdO--jnOUoavt}fNMY88oPLOdFP5C|YJhFmU( zr4+Bf`l{;Mw(VWvIH$zct?TL=8>ue0L`k_Q$g%;15C|bqQes;cA=}2WEC>R;Vv$0j zK(eikov*$2e7LIWtVkw%>(;DcO?^Fa*Im>X){iBXLZFmF34xT7kZlulUED|nR;(cG zIG8eo_I;w!D7`y(#ybgW-7a=8DYkbc`YyDt@Rn)L7zPWsv;dAE(bw2-=86F~XJ+{H z^mNID3o37K|3mYpO&@kW^9&LwKTMeNxN6@gxn&E(Uw@5XC}4~!0Z1XJibQB= zXh3vy{CdOY%^!9qlW5PQc-L;fzw(OAi_N$(h9C$i6bj7E&2j72tqWJKT(JT5-H8+U zN?{2huq}()SPb#>(~V8d&3)}{ZKbg)ORlwE@UFE+DMcg_!Eu}g5XKmM-zS^Ra`Wa* z-Pzgs#n8~u3qTeKGPxX<>tabEaKmAoL;|3%GntHe#Uj4v;dvhUe4b1uLpq)IjWOTG z8No>Tq({XeOxsX>(&O+}qzu}CVFVq|1w^o!G{XEtrzxC0mj-u(BG zBO{?i0!pn{#9SBg)Kjt6Wb$+@3aD2?w5K0{{2BL z7DFj@TcKPo$Mp0x2r)Q5KHdhb2Hpb>oH=}0hvIRRZI`?!g&^!W057j@Y;@*RDW;~T zn3dLUWORRBH%t^?zhC-3{mwAT2(kMH};&(CxH`t|wu-hcnXulDTe21bCF zhWh&l?P!#6B7t%ogi=6x6^oLgem<8zbOtvW|IL<7G0;&dxG1F>!Hxd^`bk11EsrojH6s6{)R7g+d4^5%SIzWKlK? zQZ|oVy_)&v(xuUw>gsObB(P_&uW!@}hf$70q^=HGmM&!5*wH9n5HL44$Mn>c?&;|{ zef-$57k~_~>&t@&Pgt&dr)nwTKC@bZF=Vq@2!i^*eDu+!n(FGU!0&;hXAT`Qk-ECu zhbxN(ArMNTgMg{&X(mTUM=zc~Kf7_mhV2!jojG)9BwSPTz^d;7&{{J)H^<(6`>wwH z;)~rt_m>9`4qL8ExVm~#@*oIE&Cg>gH8h{eEHqjofmKe<5+5a&)|yl{%b)xDwgSKW z>d2Ad<&gWn&ulu){P_5`veACFn9-IB%NRrXDtY&-qeuT?$70JOH^xx(eU@Xir9xcz z_+tXkBk+BsQYDiu8FWQhbW?9;ba!ELWdL_~cP?peYja~^ ZaAhuUa%Y?FJQ@H1002ovPDHLkV1k+@MqdB` literal 0 HcmV?d00001 diff --git a/sources/plugins/undo/icons/hidpi/undo-rtl.png b/sources/plugins/undo/icons/hidpi/undo-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..a7883643adb31119dfb9a287ea07de4ae5291c98 GIT binary patch literal 1783 zcmVNny8AJNI{K5ghW-fG*X{}`huE7B6+Y;0SWc7ia<2! zTVEPgLUmAr?9fC;+#-~q;2?vI@pU}+bN1PNm>F)yjzMa9>5`6gUiPeS{p(+ApAi>7 z`Gm(A^08+BKLB7o>OlcWDN(XigAM`$V=%`2Zvdo}tO$omM59O{NM*C6b2)si9}41; zTcD&Q;kv|k>^NSveS2(GQxi2+RfHV}ODTj9|2+T!2qAEkqUG6Vdx5i}qvQFywQFf^ zY$P6yVlNZokrgn;5NOSY_3L?a_wIFdO--jnOUoavt}fNMY88oPLOdFP5C|YJhFmU( zr4+Bf`l{;Mw(VWvIH$zct?TL=8>ue0L`k_Q$g%;15C|bqQes;cA=}2WEC>R;Vv$0j zK(eikov*$2e7LIWtVkw%>(;DcO?^Fa*Im>X){iBXLZFmF34xT7kZlulUED|nR;(cG zIG8eo_I;w!D7`y(#ybgW-7a=8DYkbc`YyDt@Rn)L7zPWsv;dAE(bw2-=86F~XJ+{H z^mNID3o37K|3mYpO&@kW^9&LwKTMeNxN6@gxn&E(Uw@5XC}4~!0Z1XJibQB= zXh3vy{CdOY%^!9qlW5PQc-L;fzw(OAi_N$(h9C$i6bj7E&2j72tqWJKT(JT5-H8+U zN?{2huq}()SPb#>(~V8d&3)}{ZKbg)ORlwE@UFE+DMcg_!Eu}g5XKmM-zS^Ra`Wa* z-Pzgs#n8~u3qTeKGPxX<>tabEaKmAoL;|3%GntHe#Uj4v;dvhUe4b1uLpq)IjWOTG z8No>Tq({XeOxsX>(&O+}qzu}CVFVq|1w^o!G{XEtrzxC0mj-u(BG zBO{?i0!pn{#9SBg)Kjt6Wb$+@3aD2?w5K0{{2BL z7DFj@TcKPo$Mp0x2r)Q5KHdhb2Hpb>oH=}0hvIRRZI`?!g&^!W057j@Y;@*RDW;~T zn3dLUWORRBH%t^?zhC-3{mwAT2(kMH};&(CxH`t|wu-hcnXulDTe21bCF zhWh&l?P!#6B7t%ogi=6x6^oLgem<8zbOtvW|IL<7G0;&dxG1F>!Hxd^`bk11EsrojH6s6{)R7g+d4^5%SIzWKlK? zQZ|oVy_)&v(xuUw>gsObB(P_&uW!@}hf$70q^=HGmM&!5*wH9n5HL44$Mn>c?&;|{ zef-$57k~_~>&t@&Pgt&dr)nwTKC@bZF=Vq@2!i^*eDu+!n(FGU!0&;hXAT`Qk-ECu zhbxN(ArMNTgMg{&X(mTUM=zc~Kf7_mhV2!jojG)9BwSPTz^d;7&{{J)H^<(6`>wwH z;)~rt_m>9`4qL8ExVm~#@*oIE&Cg>gH8h{eEHqjofmKe<5+5a&)|yl{%b)xDwgSKW z>d2Ad<&gWn&ulu){P_5`veACFn9-IB%NRrXDtY&-qeuT?$70JOH^xx(eU@Xir9xcz z_+tXkBk+BsQYDiu8FWQhbW?9;ba!ELWdL_~cP?peYja~^ ZaAhuUa%Y?FJQ@H1002ovPDHLkV1k+@MqdB` literal 0 HcmV?d00001 diff --git a/sources/plugins/undo/icons/hidpi/undo.png b/sources/plugins/undo/icons/hidpi/undo.png new file mode 100644 index 0000000000000000000000000000000000000000..206d38ab9d2679a168ac833226265184a1b0f564 GIT binary patch literal 1869 zcmV-T2eSByP)SRoeboN~KnQ^@C6Q1FtDym3DYBE36iOvL z-+wHChbqBTU^5UP5sfl0l_I)kjn&xGb08KD*R%0o$$$_7LrS9IFmqxtWGseQvZNb0 zuw=!Gwt$pB5<(#0vC1$jz*O*9B*L6j3Xx7rV0%+4_10_a*2$dX;CmiQJ+1;C05B!A zfMH-YG|)76E+U<7BM>;yy>exDy0eo)sYJ0@#8(PYHG;!eN?X zF=RZBSiHC!DG&7Y^t3(G+DfHdt~#u>n*gj(2+`TO7Py>v_StLWpL|lGSOm|b=s4tT zn?k9CTd6z{M4w7|VvFUQDG@ z`PQ!Q{iKxWhJln4<@-$9Hj}o^=-3#87cThD#Ka$fpQuc9qiFllHt(Iz*8VVumtKL1Dh9)IK2!?Om;Pd|e$+B&4Q(u1hyRngx z`yh0s6cxt-;5!{1c$EtId>&2H>W&}wyB8$Y+{_O)Y>4!qKK+hZwk)R3oY~1enb0eh z3b)6{QA$bRUkev4y4E~rPG@6dBf(&BRuHAsT~XeXiF#*A$xF+Zqf7Zq(bbhvUwrYd zH!?!bw(*og^OeFb76E)9s#Wo}wzdV9Wf2Gj>bq369?xVl^!D}+^q)HA{bO*Dv9U2Dm&=8P5YI;< z5j`9ZW11$0VW1lZzEb@0rMeS|1ffs}SreG!I1CRDGdMUn(@~iH^{!p#f7{m=HVmVqsi{eeL?Q%DlW(qF zbI*VE)m;1d@%)Y3x2pgE%JcACmvXU4d2*7MdwaWU*=XChfB)w{-?5`}{`~pTXf%qh z>$tAV<)I<2T)g-O&@ye!2fBe^4d(jOPd|Mt9*?J!$s|TF$frk-Zu0v3k6gKV^DY2@ zs*PCBad7f^R&L#D0q+2tfT5O_mTYr#b4M%|15IOibd<9@cgm|bZ{oOa)z)=+xwqE> zz7PBmSPSTHZQuTv!ykOm)tpM111C=&_D`PNe0gN#+W<9b*BzCMMJl$ zym|A96DLlriYJqDyinj`U!NSleH*7-u69MajORFbu1lptr>1aLLj6>27?4G3p0^mVE67rKpGf0c<|twKY#Yw;6E>1xIUiA z;Q2m6N;F+Z>N>h<5~$gQnwl8cz56=w8t{`uJl?kd{rAt~`*R9~0=`lYzLJUBMAJ=^ zU@XSKo;_EA)xa+nEnL`MvhBDoWq*ER;_j#xqHZU39m6y+<8l7l*QZYH+VvY?)$8ll zb^N%u_ewUG!}GiuN-)#FnMI&~fA2k^OcNe(FPyHc^27w+-Lhpp@b0;N`{rp44G(!K zomP@iGReT6Jtu1=IpkC-v!3_UGig{Br{8}2PrweZHc1~U1NRBECNzXV4+ha{L+U@8 z`#yfTjPH49x{hWTkN7Z|5~!vj4Ws(+5e_Y(X=s4}no?C?LOlA*sLCNg%EvLS+D-$0 z;%~!$1G8x*a3fLZssI20C3HntbYx+4WjbSWWnpw>05UK!Gc7PSEiy1vF)=zYH##sh zD=;!TFfjJwrbz$*03~!qSaf7zbY(hiZ)9m^c>ppnF*7YNHZ3wRR539+FgH3dG%GMN zIxsMYzaI4f000?uMObuGZ)S9NVRB^vcXxL#X>MzCV_|S*E^l&Yo9;Xs00000NkvXX Hu0mjfvTADb literal 0 HcmV?d00001 diff --git a/sources/plugins/undo/icons/redo-rtl.png b/sources/plugins/undo/icons/redo-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..dd12c68202fde335e3384680ed04ffe84463c72a GIT binary patch literal 849 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|iQg4yVcL_XlzGJVPfMAbd#XRJkN(;hZ*pH`V)*IPr?-oXiLtRNePZfph)wVgy(;0n{Ia5N@RIxQjcsiH z2vls`wk<5zL~2Q<*SzNv$rd&?Pd$L7}?oB$`bLY+b$8<+RR#uj?sUd9jR29!6?@;GO8cJPCA*E5F+pk~0 zzJ1o&v~63qEGaH7UbQNE)vnd6(r@3sz4qtNpWnN?ySZ$_LoF;U6nLD!eft)0RWbB$ zaee)N=cPeEBUXl7v2@>k*DbU?^y|D;dAWIc`&j>#pR4`HoXk@>Pq;1dRpq_+XVX6W zt-tP$x-Hj#NjJfu1qf5{dapz`r=i5TO7)5<0Axrnn~~9a{sjWKlM$=t!$pn5iJ5H zMb#45h?11Vl2ohYqEsNoU}RuutZQJdYhV&$Xl`X-3`E)nMpgy}zDsrklPQvh-29Zx zv`X9>Y<@By0cwy0*$|wcR#Ki=l*&+EUaps!mtCBkSdglhUz9%kosASw5re0zpUXO@ GgeCwy-F1lo literal 0 HcmV?d00001 diff --git a/sources/plugins/undo/icons/redo.png b/sources/plugins/undo/icons/redo.png new file mode 100644 index 0000000000000000000000000000000000000000..75a187200082419966e5190718cb36043febc40e GIT binary patch literal 842 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|iQ?jRvV~EA+rIYu2%VbI%w?Du8z0Nrc<1-N_lsdZE95)?2BtPdT z^Ced2TO!wG-L({5xn@sT;*l=Suq5*=4dQIjIep@@Oz2-b=4773hYueq z>@jSMTYvoINzUibpNIRL*{;^jaV_eR#j&X0*Cd490*{QM<8lq)rYx|eshr3H&^*r~bL5f{UGRJo&aNQ`BIb@*1b6DGc)zz#sXU~S3o15Er zoG^Z{b5+_giAgF4MG8b*TM|2BUi5X?2u+;+v`F%JVMJVk?;>dVk zURL&Ra$TL={qLTar`Vjgw6=D32?+J`_Xl#L)~Y2ZC!4c3Gn#cNxujTeG?{PSyt!m| ztW>WX)1T;-A$@DN+V5QFJ!{#QD%-xkKD&4C-%Bs3t*EG&+01@5%hbZcV#WIP>tA2G zbcxrYaq`TWl1&N&&(3YzzQu)_hkjkRYTEa2-%f1e zIsf^}=RJO#Z?0MWiaWGas+TP~I(kc#Zq6i?HS5-;X=`imFSVL`{coLo=+Q!%zW#pC z%U|Bt?YC#L$=iPW{brrrJv%!TcJJQpuq5*=4dQIjIep@@Oz2-b=4773hYueq z>@jSMTYvoINzUibpNIRL*{;^jaV_eR#j&X0*Cd490*{QM<8lq)rYx|eshr3H&^*r~bL5f{UGRJo&aNQ`BIb@*1b6DGc)zz#sXU~S3o15Er zoG^Z{b5+_giAgF4MG8b*TM|2BUi5X?2u+;+v`F%JVMJVk?;>dVk zURL&Ra$TL={qLTar`Vjgw6=D32?+J`_Xl#L)~Y2ZC!4c3Gn#cNxujTeG?{PSyt!m| ztW>WX)1T;-A$@DN+V5QFJ!{#QD%-xkKD&4C-%Bs3t*EG&+01@5%hbZcV#WIP>tA2G zbcxrYaq`TWl1&N&&(3YzzQu)_hkjkRYTEa2-%f1e zIsf^}=RJO#Z?0MWiaWGas+TP~I(kc#Zq6i?HS5-;X=`imFSVL`{coLo=+Q!%zW#pC z%U|Bt?YC#L$=iPW{brrrJv%!TcJJQp9fw7FK8F9O5^HvC4~ZgtMzm1JjBH{ncO(v#ZNUT<4;W|H|L099#^JJ*bppIA{6E#y#|Zbwh`NnOWQW-z<&}^PV3m zJd!1DWD#$_2>t_A5$UwQrYl`PX9!_e%v^M!?lBeDerU7pP6=vsRgR4(M%Ix+<$@;q})OmuVWw@JY(c z*YoU&iH=@vCdGTnMD=`ekD-j5Tv27E=Oh)Ez%AT+0C{jee-6I;KcS-zpPFhJ^Art#>|;B=Qs4;ym_;x zs_Ivn082#n&K)}xPH#H*^5skZ1HC6tp6pcMcu`^nw5dGARHaL4k%m*~^U%`j+S&+{uI|cJc`IM7TQx5?Kfiq1^y&87qjXv80z)k~a zglSE+Q}t{r?la(NSNgOsL~HN;8#jLZeDmf_oy>6$$7PQUKiRM+)Ya|d`%_p_@5EtOZE+~KjgJugX(zpZ>;Gx`fA%wMw6wBrd=#`5m=;w_ zTq8~}U&Kt&9mu6{1-oD!M< D_?mV9 literal 0 HcmV?d00001 diff --git a/sources/plugins/undo/lang/af.js b/sources/plugins/undo/lang/af.js new file mode 100644 index 00000000..186256bc --- /dev/null +++ b/sources/plugins/undo/lang/af.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'af', { + redo: 'Oordoen', + undo: 'Ontdoen' +} ); diff --git a/sources/plugins/undo/lang/ar.js b/sources/plugins/undo/lang/ar.js new file mode 100644 index 00000000..c5ead34c --- /dev/null +++ b/sources/plugins/undo/lang/ar.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'ar', { + redo: 'إعادة', + undo: 'تراجع' +} ); diff --git a/sources/plugins/undo/lang/bg.js b/sources/plugins/undo/lang/bg.js new file mode 100644 index 00000000..61e1d2ae --- /dev/null +++ b/sources/plugins/undo/lang/bg.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'bg', { + redo: 'Връщане на предишен статус', + undo: 'Възтанови' +} ); diff --git a/sources/plugins/undo/lang/bn.js b/sources/plugins/undo/lang/bn.js new file mode 100644 index 00000000..edf4d93e --- /dev/null +++ b/sources/plugins/undo/lang/bn.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'bn', { + redo: 'রি-ডু', + undo: 'আনডু' +} ); diff --git a/sources/plugins/undo/lang/bs.js b/sources/plugins/undo/lang/bs.js new file mode 100644 index 00000000..88cd77db --- /dev/null +++ b/sources/plugins/undo/lang/bs.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'bs', { + redo: 'Ponovi', + undo: 'Vrati' +} ); diff --git a/sources/plugins/undo/lang/ca.js b/sources/plugins/undo/lang/ca.js new file mode 100644 index 00000000..0a44406a --- /dev/null +++ b/sources/plugins/undo/lang/ca.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'ca', { + redo: 'Refés', + undo: 'Desfés' +} ); diff --git a/sources/plugins/undo/lang/cs.js b/sources/plugins/undo/lang/cs.js new file mode 100644 index 00000000..51f8979a --- /dev/null +++ b/sources/plugins/undo/lang/cs.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'cs', { + redo: 'Znovu', + undo: 'Zpět' +} ); diff --git a/sources/plugins/undo/lang/cy.js b/sources/plugins/undo/lang/cy.js new file mode 100644 index 00000000..1e5a30d3 --- /dev/null +++ b/sources/plugins/undo/lang/cy.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'cy', { + redo: 'Ailwneud', + undo: 'Dadwneud' +} ); diff --git a/sources/plugins/undo/lang/da.js b/sources/plugins/undo/lang/da.js new file mode 100644 index 00000000..8c1563ed --- /dev/null +++ b/sources/plugins/undo/lang/da.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'da', { + redo: 'Annullér fortryd', + undo: 'Fortryd' +} ); diff --git a/sources/plugins/undo/lang/de.js b/sources/plugins/undo/lang/de.js new file mode 100644 index 00000000..93d55862 --- /dev/null +++ b/sources/plugins/undo/lang/de.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'de', { + redo: 'Wiederherstellen', + undo: 'Rückgängig' +} ); diff --git a/sources/plugins/undo/lang/el.js b/sources/plugins/undo/lang/el.js new file mode 100644 index 00000000..4961355f --- /dev/null +++ b/sources/plugins/undo/lang/el.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'el', { + redo: 'Επανάληψη', + undo: 'Αναίρεση' +} ); diff --git a/sources/plugins/undo/lang/en-au.js b/sources/plugins/undo/lang/en-au.js new file mode 100644 index 00000000..9d748e05 --- /dev/null +++ b/sources/plugins/undo/lang/en-au.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'en-au', { + redo: 'Redo', + undo: 'Undo' +} ); diff --git a/sources/plugins/undo/lang/en-ca.js b/sources/plugins/undo/lang/en-ca.js new file mode 100644 index 00000000..facd173e --- /dev/null +++ b/sources/plugins/undo/lang/en-ca.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'en-ca', { + redo: 'Redo', + undo: 'Undo' +} ); diff --git a/sources/plugins/undo/lang/en-gb.js b/sources/plugins/undo/lang/en-gb.js new file mode 100644 index 00000000..5b52e0d4 --- /dev/null +++ b/sources/plugins/undo/lang/en-gb.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'en-gb', { + redo: 'Redo', + undo: 'Undo' +} ); diff --git a/sources/plugins/undo/lang/en.js b/sources/plugins/undo/lang/en.js new file mode 100644 index 00000000..875bfe87 --- /dev/null +++ b/sources/plugins/undo/lang/en.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'en', { + redo: 'Redo', + undo: 'Undo' +} ); diff --git a/sources/plugins/undo/lang/eo.js b/sources/plugins/undo/lang/eo.js new file mode 100644 index 00000000..9298e2b3 --- /dev/null +++ b/sources/plugins/undo/lang/eo.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'eo', { + redo: 'Refari', + undo: 'Malfari' +} ); diff --git a/sources/plugins/undo/lang/es.js b/sources/plugins/undo/lang/es.js new file mode 100644 index 00000000..e518bce2 --- /dev/null +++ b/sources/plugins/undo/lang/es.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'es', { + redo: 'Rehacer', + undo: 'Deshacer' +} ); diff --git a/sources/plugins/undo/lang/et.js b/sources/plugins/undo/lang/et.js new file mode 100644 index 00000000..3ad8f16d --- /dev/null +++ b/sources/plugins/undo/lang/et.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'et', { + redo: 'Toimingu kordamine', + undo: 'Tagasivõtmine' +} ); diff --git a/sources/plugins/undo/lang/eu.js b/sources/plugins/undo/lang/eu.js new file mode 100644 index 00000000..a9d000ce --- /dev/null +++ b/sources/plugins/undo/lang/eu.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'eu', { + redo: 'Berregin', + undo: 'Desegin' +} ); diff --git a/sources/plugins/undo/lang/fa.js b/sources/plugins/undo/lang/fa.js new file mode 100644 index 00000000..a6fa2206 --- /dev/null +++ b/sources/plugins/undo/lang/fa.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'fa', { + redo: 'بازچیدن', + undo: 'واچیدن' +} ); diff --git a/sources/plugins/undo/lang/fi.js b/sources/plugins/undo/lang/fi.js new file mode 100644 index 00000000..2df2f2e1 --- /dev/null +++ b/sources/plugins/undo/lang/fi.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'fi', { + redo: 'Toista', + undo: 'Kumoa' +} ); diff --git a/sources/plugins/undo/lang/fo.js b/sources/plugins/undo/lang/fo.js new file mode 100644 index 00000000..bd64e096 --- /dev/null +++ b/sources/plugins/undo/lang/fo.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'fo', { + redo: 'Vend aftur', + undo: 'Angra' +} ); diff --git a/sources/plugins/undo/lang/fr-ca.js b/sources/plugins/undo/lang/fr-ca.js new file mode 100644 index 00000000..57c8e1f3 --- /dev/null +++ b/sources/plugins/undo/lang/fr-ca.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'fr-ca', { + redo: 'Refaire', + undo: 'Annuler' +} ); diff --git a/sources/plugins/undo/lang/fr.js b/sources/plugins/undo/lang/fr.js new file mode 100644 index 00000000..6e799791 --- /dev/null +++ b/sources/plugins/undo/lang/fr.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'fr', { + redo: 'Rétablir', + undo: 'Annuler' +} ); diff --git a/sources/plugins/undo/lang/gl.js b/sources/plugins/undo/lang/gl.js new file mode 100644 index 00000000..2569d825 --- /dev/null +++ b/sources/plugins/undo/lang/gl.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'gl', { + redo: 'Refacer', + undo: 'Desfacer' +} ); diff --git a/sources/plugins/undo/lang/gu.js b/sources/plugins/undo/lang/gu.js new file mode 100644 index 00000000..5fd239ba --- /dev/null +++ b/sources/plugins/undo/lang/gu.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'gu', { + redo: 'રિડૂ; પછી હતી એવી સ્થિતિ પાછી લાવવી', + undo: 'રદ કરવું; પહેલાં હતી એવી સ્થિતિ પાછી લાવવી' +} ); diff --git a/sources/plugins/undo/lang/he.js b/sources/plugins/undo/lang/he.js new file mode 100644 index 00000000..e03d5206 --- /dev/null +++ b/sources/plugins/undo/lang/he.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'he', { + redo: 'חזרה על צעד אחרון', + undo: 'ביטול צעד אחרון' +} ); diff --git a/sources/plugins/undo/lang/hi.js b/sources/plugins/undo/lang/hi.js new file mode 100644 index 00000000..6306757a --- /dev/null +++ b/sources/plugins/undo/lang/hi.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'hi', { + redo: 'रीडू', + undo: 'अन्डू' +} ); diff --git a/sources/plugins/undo/lang/hr.js b/sources/plugins/undo/lang/hr.js new file mode 100644 index 00000000..5fbf931f --- /dev/null +++ b/sources/plugins/undo/lang/hr.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'hr', { + redo: 'Ponovi', + undo: 'PoniÅ¡ti' +} ); diff --git a/sources/plugins/undo/lang/hu.js b/sources/plugins/undo/lang/hu.js new file mode 100644 index 00000000..fc1e4a7a --- /dev/null +++ b/sources/plugins/undo/lang/hu.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'hu', { + redo: 'Ismétlés', + undo: 'Visszavonás' +} ); diff --git a/sources/plugins/undo/lang/id.js b/sources/plugins/undo/lang/id.js new file mode 100644 index 00000000..828ad66d --- /dev/null +++ b/sources/plugins/undo/lang/id.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'id', { + redo: 'Kembali lakukan', + undo: 'Batalkan perlakuan' +} ); diff --git a/sources/plugins/undo/lang/is.js b/sources/plugins/undo/lang/is.js new file mode 100644 index 00000000..850178bc --- /dev/null +++ b/sources/plugins/undo/lang/is.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'is', { + redo: 'Hætta við afturköllun', + undo: 'Afturkalla' +} ); diff --git a/sources/plugins/undo/lang/it.js b/sources/plugins/undo/lang/it.js new file mode 100644 index 00000000..0dd1a1d9 --- /dev/null +++ b/sources/plugins/undo/lang/it.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'it', { + redo: 'Ripristina', + undo: 'Annulla' +} ); diff --git a/sources/plugins/undo/lang/ja.js b/sources/plugins/undo/lang/ja.js new file mode 100644 index 00000000..c2136f5c --- /dev/null +++ b/sources/plugins/undo/lang/ja.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'ja', { + redo: 'やり直す', + undo: '元に戻す' +} ); diff --git a/sources/plugins/undo/lang/ka.js b/sources/plugins/undo/lang/ka.js new file mode 100644 index 00000000..6a618af1 --- /dev/null +++ b/sources/plugins/undo/lang/ka.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'ka', { + redo: 'გამეორება', + undo: 'გაუქმება' +} ); diff --git a/sources/plugins/undo/lang/km.js b/sources/plugins/undo/lang/km.js new file mode 100644 index 00000000..51e443c8 --- /dev/null +++ b/sources/plugins/undo/lang/km.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'km', { + redo: 'ធ្វើ​ឡើង​វិញ', + undo: 'មិន​ធ្វើ​វិញ' +} ); diff --git a/sources/plugins/undo/lang/ko.js b/sources/plugins/undo/lang/ko.js new file mode 100644 index 00000000..a1c54b2a --- /dev/null +++ b/sources/plugins/undo/lang/ko.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'ko', { + redo: '다시 실행', + undo: '실행 취소' +} ); diff --git a/sources/plugins/undo/lang/ku.js b/sources/plugins/undo/lang/ku.js new file mode 100644 index 00000000..38ae12b1 --- /dev/null +++ b/sources/plugins/undo/lang/ku.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'ku', { + redo: 'هەڵگەڕاندنەوە', + undo: 'پووچکردنەوە' +} ); diff --git a/sources/plugins/undo/lang/lt.js b/sources/plugins/undo/lang/lt.js new file mode 100644 index 00000000..4712429a --- /dev/null +++ b/sources/plugins/undo/lang/lt.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'lt', { + redo: 'Atstatyti', + undo: 'AtÅ¡aukti' +} ); diff --git a/sources/plugins/undo/lang/lv.js b/sources/plugins/undo/lang/lv.js new file mode 100644 index 00000000..134f19c7 --- /dev/null +++ b/sources/plugins/undo/lang/lv.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'lv', { + redo: 'Atkārtot', + undo: 'Atcelt' +} ); diff --git a/sources/plugins/undo/lang/mk.js b/sources/plugins/undo/lang/mk.js new file mode 100644 index 00000000..56b5a85f --- /dev/null +++ b/sources/plugins/undo/lang/mk.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'mk', { + redo: 'Redo', // MISSING + undo: 'Undo' +} ); diff --git a/sources/plugins/undo/lang/mn.js b/sources/plugins/undo/lang/mn.js new file mode 100644 index 00000000..d1a919dd --- /dev/null +++ b/sources/plugins/undo/lang/mn.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'mn', { + redo: 'Өмнөх үйлдлээ сэргээх', + undo: 'Хүчингүй болгох' +} ); diff --git a/sources/plugins/undo/lang/ms.js b/sources/plugins/undo/lang/ms.js new file mode 100644 index 00000000..e9fc94d3 --- /dev/null +++ b/sources/plugins/undo/lang/ms.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'ms', { + redo: 'Ulangkan', + undo: 'Batalkan' +} ); diff --git a/sources/plugins/undo/lang/nb.js b/sources/plugins/undo/lang/nb.js new file mode 100644 index 00000000..ca295927 --- /dev/null +++ b/sources/plugins/undo/lang/nb.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'nb', { + redo: 'Gjør om', + undo: 'Angre' +} ); diff --git a/sources/plugins/undo/lang/nl.js b/sources/plugins/undo/lang/nl.js new file mode 100644 index 00000000..c5b48096 --- /dev/null +++ b/sources/plugins/undo/lang/nl.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'nl', { + redo: 'Opnieuw uitvoeren', + undo: 'Ongedaan maken' +} ); diff --git a/sources/plugins/undo/lang/no.js b/sources/plugins/undo/lang/no.js new file mode 100644 index 00000000..e56f3271 --- /dev/null +++ b/sources/plugins/undo/lang/no.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'no', { + redo: 'Gjør om', + undo: 'Angre' +} ); diff --git a/sources/plugins/undo/lang/pl.js b/sources/plugins/undo/lang/pl.js new file mode 100644 index 00000000..76ccd5f7 --- /dev/null +++ b/sources/plugins/undo/lang/pl.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'pl', { + redo: 'Ponów', + undo: 'Cofnij' +} ); diff --git a/sources/plugins/undo/lang/pt-br.js b/sources/plugins/undo/lang/pt-br.js new file mode 100644 index 00000000..72a5df9a --- /dev/null +++ b/sources/plugins/undo/lang/pt-br.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'pt-br', { + redo: 'Refazer', + undo: 'Desfazer' +} ); diff --git a/sources/plugins/undo/lang/pt.js b/sources/plugins/undo/lang/pt.js new file mode 100644 index 00000000..29ee5267 --- /dev/null +++ b/sources/plugins/undo/lang/pt.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'pt', { + redo: 'Refazer', + undo: 'Anular' +} ); diff --git a/sources/plugins/undo/lang/ro.js b/sources/plugins/undo/lang/ro.js new file mode 100644 index 00000000..bfc197c3 --- /dev/null +++ b/sources/plugins/undo/lang/ro.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'ro', { + redo: 'Starea ulterioară (redo)', + undo: 'Starea anterioară (undo)' +} ); diff --git a/sources/plugins/undo/lang/ru.js b/sources/plugins/undo/lang/ru.js new file mode 100644 index 00000000..acf8ce4d --- /dev/null +++ b/sources/plugins/undo/lang/ru.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'ru', { + redo: 'Повторить', + undo: 'Отменить' +} ); diff --git a/sources/plugins/undo/lang/si.js b/sources/plugins/undo/lang/si.js new file mode 100644 index 00000000..96c9bc90 --- /dev/null +++ b/sources/plugins/undo/lang/si.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'si', { + redo: 'නැවත කිරීම', + undo: 'වෙනස් කිරීම' +} ); diff --git a/sources/plugins/undo/lang/sk.js b/sources/plugins/undo/lang/sk.js new file mode 100644 index 00000000..28cf9375 --- /dev/null +++ b/sources/plugins/undo/lang/sk.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'sk', { + redo: 'Znovu', + undo: 'Späť' +} ); diff --git a/sources/plugins/undo/lang/sl.js b/sources/plugins/undo/lang/sl.js new file mode 100644 index 00000000..f649d441 --- /dev/null +++ b/sources/plugins/undo/lang/sl.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'sl', { + redo: 'Ponovi', + undo: 'Razveljavi' +} ); diff --git a/sources/plugins/undo/lang/sq.js b/sources/plugins/undo/lang/sq.js new file mode 100644 index 00000000..37e17f95 --- /dev/null +++ b/sources/plugins/undo/lang/sq.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'sq', { + redo: 'Ribëje', + undo: 'Rizhbëje' +} ); diff --git a/sources/plugins/undo/lang/sr-latn.js b/sources/plugins/undo/lang/sr-latn.js new file mode 100644 index 00000000..b2527a7f --- /dev/null +++ b/sources/plugins/undo/lang/sr-latn.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'sr-latn', { + redo: 'Ponovi akciju', + undo: 'Poni�ti akciju' +} ); diff --git a/sources/plugins/undo/lang/sr.js b/sources/plugins/undo/lang/sr.js new file mode 100644 index 00000000..0b7f9f23 --- /dev/null +++ b/sources/plugins/undo/lang/sr.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'sr', { + redo: 'Понови акцију', + undo: 'Поништи акцију' +} ); diff --git a/sources/plugins/undo/lang/sv.js b/sources/plugins/undo/lang/sv.js new file mode 100644 index 00000000..5537b5ad --- /dev/null +++ b/sources/plugins/undo/lang/sv.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'sv', { + redo: 'Gör om', + undo: 'Ångra' +} ); diff --git a/sources/plugins/undo/lang/th.js b/sources/plugins/undo/lang/th.js new file mode 100644 index 00000000..29671829 --- /dev/null +++ b/sources/plugins/undo/lang/th.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'th', { + redo: 'ทำซ้ำคำสั่ง', + undo: 'ยกเลิกคำสั่ง' +} ); diff --git a/sources/plugins/undo/lang/tr.js b/sources/plugins/undo/lang/tr.js new file mode 100644 index 00000000..3c757f77 --- /dev/null +++ b/sources/plugins/undo/lang/tr.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'tr', { + redo: 'Tekrarla', + undo: 'Geri Al' +} ); diff --git a/sources/plugins/undo/lang/tt.js b/sources/plugins/undo/lang/tt.js new file mode 100644 index 00000000..d4335572 --- /dev/null +++ b/sources/plugins/undo/lang/tt.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'tt', { + redo: 'Кабатлау', + undo: 'Кайтару' +} ); diff --git a/sources/plugins/undo/lang/ug.js b/sources/plugins/undo/lang/ug.js new file mode 100644 index 00000000..73348fc3 --- /dev/null +++ b/sources/plugins/undo/lang/ug.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'ug', { + redo: 'قايتىلا ', + undo: 'يېنىۋال' +} ); diff --git a/sources/plugins/undo/lang/uk.js b/sources/plugins/undo/lang/uk.js new file mode 100644 index 00000000..23e308a2 --- /dev/null +++ b/sources/plugins/undo/lang/uk.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'uk', { + redo: 'Повторити', + undo: 'Повернути' +} ); diff --git a/sources/plugins/undo/lang/vi.js b/sources/plugins/undo/lang/vi.js new file mode 100644 index 00000000..8b11bfd2 --- /dev/null +++ b/sources/plugins/undo/lang/vi.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'vi', { + redo: 'Làm lại thao tác', + undo: 'Khôi phục thao tác' +} ); diff --git a/sources/plugins/undo/lang/zh-cn.js b/sources/plugins/undo/lang/zh-cn.js new file mode 100644 index 00000000..48116a7e --- /dev/null +++ b/sources/plugins/undo/lang/zh-cn.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'zh-cn', { + redo: '重做', + undo: '撤消' +} ); diff --git a/sources/plugins/undo/lang/zh.js b/sources/plugins/undo/lang/zh.js new file mode 100644 index 00000000..b6a1c4dc --- /dev/null +++ b/sources/plugins/undo/lang/zh.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'undo', 'zh', { + redo: '取消復原', + undo: '復原' +} ); diff --git a/sources/plugins/undo/plugin.js b/sources/plugins/undo/plugin.js new file mode 100644 index 00000000..d5479936 --- /dev/null +++ b/sources/plugins/undo/plugin.js @@ -0,0 +1,1328 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview Undo/Redo system for saving a shapshot for document modification + * and other recordable changes. + */ + +'use strict'; + +( function() { + var keystrokes = [ + CKEDITOR.CTRL + 90 /*Z*/, + CKEDITOR.CTRL + 89 /*Y*/, + CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/ + ], + backspaceOrDelete = { 8: 1, 46: 1 }; + + CKEDITOR.plugins.add( 'undo', { + // jscs:disable maximumLineLength + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + // jscs:enable maximumLineLength + icons: 'redo,redo-rtl,undo,undo-rtl', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + init: function( editor ) { + var undoManager = editor.undoManager = new UndoManager( editor ), + editingHandler = undoManager.editingHandler = new NativeEditingHandler( undoManager ); + + var undoCommand = editor.addCommand( 'undo', { + exec: function() { + if ( undoManager.undo() ) { + editor.selectionChange(); + this.fire( 'afterUndo' ); + } + }, + startDisabled: true, + canUndo: false + } ); + + var redoCommand = editor.addCommand( 'redo', { + exec: function() { + if ( undoManager.redo() ) { + editor.selectionChange(); + this.fire( 'afterRedo' ); + } + }, + startDisabled: true, + canUndo: false + } ); + + editor.setKeystroke( [ + [ keystrokes[ 0 ], 'undo' ], + [ keystrokes[ 1 ], 'redo' ], + [ keystrokes[ 2 ], 'redo' ] + ] ); + + undoManager.onChange = function() { + undoCommand.setState( undoManager.undoable() ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); + redoCommand.setState( undoManager.redoable() ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); + }; + + function recordCommand( event ) { + // If the command hasn't been marked to not support undo. + if ( undoManager.enabled && event.data.command.canUndo !== false ) + undoManager.save(); + } + + // We'll save snapshots before and after executing a command. + editor.on( 'beforeCommandExec', recordCommand ); + editor.on( 'afterCommandExec', recordCommand ); + + // Save snapshots before doing custom changes. + editor.on( 'saveSnapshot', function( evt ) { + undoManager.save( evt.data && evt.data.contentOnly ); + } ); + + // Event manager listeners should be attached on contentDom. + editor.on( 'contentDom', editingHandler.attachListeners, editingHandler ); + + editor.on( 'instanceReady', function() { + // Saves initial snapshot. + editor.fire( 'saveSnapshot' ); + } ); + + // Always save an undo snapshot - the previous mode might have + // changed editor contents. + editor.on( 'beforeModeUnload', function() { + editor.mode == 'wysiwyg' && undoManager.save( true ); + } ); + + function toggleUndoManager() { + undoManager.enabled = editor.readOnly ? false : editor.mode == 'wysiwyg'; + undoManager.onChange(); + } + + // Make the undo manager available only in wysiwyg mode. + editor.on( 'mode', toggleUndoManager ); + + // Disable undo manager when in read-only mode. + editor.on( 'readOnly', toggleUndoManager ); + + if ( editor.ui.addButton ) { + editor.ui.addButton( 'Undo', { + label: editor.lang.undo.undo, + command: 'undo', + toolbar: 'undo,10' + } ); + + editor.ui.addButton( 'Redo', { + label: editor.lang.undo.redo, + command: 'redo', + toolbar: 'undo,20' + } ); + } + + /** + * Resets the undo stack. + * + * @member CKEDITOR.editor + */ + editor.resetUndo = function() { + // Reset the undo stack. + undoManager.reset(); + + // Create the first image. + editor.fire( 'saveSnapshot' ); + }; + + /** + * Amends the top of the undo stack (last undo image) with the current DOM changes. + * + * function() { + * editor.fire( 'saveSnapshot' ); + * editor.document.body.append(...); + * // Makes new changes following the last undo snapshot a part of it. + * editor.fire( 'updateSnapshot' ); + * .. + * } + * + * @event updateSnapshot + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + */ + editor.on( 'updateSnapshot', function() { + if ( undoManager.currentImage ) + undoManager.update(); + } ); + + /** + * Locks the undo manager to prevent any save/update operations. + * + * It is convenient to lock the undo manager before performing DOM operations + * that should not be recored (e.g. auto paragraphing). + * + * See {@link CKEDITOR.plugins.undo.UndoManager#lock} for more details. + * + * **Note:** In order to unlock the undo manager, {@link #unlockSnapshot} has to be fired + * the same number of times that `lockSnapshot` has been fired. + * + * @since 4.0 + * @event lockSnapshot + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {Boolean} [data.dontUpdate] When set to `true`, the last snapshot will not be updated + * with the current content and selection. Read more in the {@link CKEDITOR.plugins.undo.UndoManager#lock} method. + * @param {Boolean} [data.forceUpdate] When set to `true`, the last snapshot will always be updated + * with the current content and selection. Read more in the {@link CKEDITOR.plugins.undo.UndoManager#lock} method. + */ + editor.on( 'lockSnapshot', function( evt ) { + var data = evt.data; + undoManager.lock( data && data.dontUpdate, data && data.forceUpdate ); + } ); + + /** + * Unlocks the undo manager and updates the latest snapshot. + * + * @since 4.0 + * @event unlockSnapshot + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + */ + editor.on( 'unlockSnapshot', undoManager.unlock, undoManager ); + } + } ); + + CKEDITOR.plugins.undo = {}; + + /** + * Main logic for the Redo/Undo feature. + * + * @private + * @class CKEDITOR.plugins.undo.UndoManager + * @constructor Creates an UndoManager class instance. + * @param {CKEDITOR.editor} editor + */ + var UndoManager = CKEDITOR.plugins.undo.UndoManager = function( editor ) { + /** + * An array storing the number of key presses, count in a row. Use {@link #keyGroups} members as index. + * + * **Note:** The keystroke count will be reset after reaching the limit of characters per snapshot. + * + * @since 4.4.4 + */ + this.strokesRecorded = [ 0, 0 ]; + + /** + * When the `locked` property is not `null`, the undo manager is locked, so + * operations like `save` or `update` are forbidden. + * + * The manager can be locked and unlocked by the {@link #lock} and {@link #unlock} + * methods, respectively. + * + * @readonly + * @property {Object} [locked=null] + */ + this.locked = null; + + /** + * Contains the previously processed key group, based on {@link #keyGroups}. + * `-1` means an unknown group. + * + * @since 4.4.4 + * @readonly + * @property {Number} [previousKeyGroup=-1] + */ + this.previousKeyGroup = -1; + + /** + * The maximum number of snapshots in the stack. Configurable via {@link CKEDITOR.config#undoStackSize}. + * + * @readonly + * @property {Number} [limit] + */ + this.limit = editor.config.undoStackSize || 20; + + /** + * The maximum number of characters typed/deleted in one undo step. + * + * @since 4.4.5 + * @readonly + */ + this.strokesLimit = 25; + + this.editor = editor; + + // Reset the undo stack. + this.reset(); + }; + + UndoManager.prototype = { + /** + * Handles keystroke support for the undo manager. It is called on `keyup` event for + * keystrokes that can change the editor content. + * + * @param {Number} keyCode The key code. + * @param {Boolean} [strokesPerSnapshotExceeded] When set to `true`, the method will + * behave as if the strokes limit was exceeded regardless of the {@link #strokesRecorded} value. + */ + type: function( keyCode, strokesPerSnapshotExceeded ) { + var keyGroup = UndoManager.getKeyGroup( keyCode ), + // Count of keystrokes in current a row. + // Note if strokesPerSnapshotExceeded will be exceeded, it'll be restarted. + strokesRecorded = this.strokesRecorded[ keyGroup ] + 1; + + strokesPerSnapshotExceeded = + ( strokesPerSnapshotExceeded || strokesRecorded >= this.strokesLimit ); + + if ( !this.typing ) + onTypingStart( this ); + + if ( strokesPerSnapshotExceeded ) { + // Reset the count of strokes, so it'll be later assigned to this.strokesRecorded. + strokesRecorded = 0; + + this.editor.fire( 'saveSnapshot' ); + } else { + // Fire change event. + this.editor.fire( 'change' ); + } + + // Store recorded strokes count. + this.strokesRecorded[ keyGroup ] = strokesRecorded; + // This prop will tell in next itaration what kind of group was processed previously. + this.previousKeyGroup = keyGroup; + }, + + /** + * Whether the new `keyCode` belongs to a different group than the previous one ({@link #previousKeyGroup}). + * + * @since 4.4.5 + * @param {Number} keyCode + * @returns {Boolean} + */ + keyGroupChanged: function( keyCode ) { + return UndoManager.getKeyGroup( keyCode ) != this.previousKeyGroup; + }, + + /** + * Resets the undo stack. + */ + reset: function() { + // Stack for all the undo and redo snapshots, they're always created/removed + // in consistency. + this.snapshots = []; + + // Current snapshot history index. + this.index = -1; + + this.currentImage = null; + + this.hasUndo = false; + this.hasRedo = false; + this.locked = null; + + this.resetType(); + }, + + /** + * Resets all typing variables. + * + * @see #type + */ + resetType: function() { + this.strokesRecorded = [ 0, 0 ]; + this.typing = false; + this.previousKeyGroup = -1; + }, + + /** + * Refreshes the state of the {@link CKEDITOR.plugins.undo.UndoManager undo manager} + * as well as the state of the `undo` and `redo` commands. + */ + refreshState: function() { + // These lines can be handled within onChange() too. + this.hasUndo = !!this.getNextImage( true ); + this.hasRedo = !!this.getNextImage( false ); + // Reset typing + this.resetType(); + this.onChange(); + }, + + /** + * Saves a snapshot of the document image for later retrieval. + * + * @param {Boolean} onContentOnly If set to `true`, the snapshot will be saved only if the content has changed. + * @param {CKEDITOR.plugins.undo.Image} image An optional image to save. If skipped, current editor will be used. + * @param {Boolean} [autoFireChange=true] If set to `false`, will not trigger the {@link CKEDITOR.editor#change} event to editor. + */ + save: function( onContentOnly, image, autoFireChange ) { + var editor = this.editor; + // Do not change snapshots stack when locked, editor is not ready, + // editable is not ready or when editor is in mode difference than 'wysiwyg'. + if ( this.locked || editor.status != 'ready' || editor.mode != 'wysiwyg' ) + return false; + + var editable = editor.editable(); + if ( !editable || editable.status != 'ready' ) + return false; + + var snapshots = this.snapshots; + + // Get a content image. + if ( !image ) + image = new Image( editor ); + + // Do nothing if it was not possible to retrieve an image. + if ( image.contents === false ) + return false; + + // Check if this is a duplicate. In such case, do nothing. + if ( this.currentImage ) { + if ( image.equalsContent( this.currentImage ) ) { + if ( onContentOnly ) + return false; + + if ( image.equalsSelection( this.currentImage ) ) + return false; + } else if ( autoFireChange !== false ) { + editor.fire( 'change' ); + } + } + + // Drop future snapshots. + snapshots.splice( this.index + 1, snapshots.length - this.index - 1 ); + + // If we have reached the limit, remove the oldest one. + if ( snapshots.length == this.limit ) + snapshots.shift(); + + // Add the new image, updating the current index. + this.index = snapshots.push( image ) - 1; + + this.currentImage = image; + + if ( autoFireChange !== false ) + this.refreshState(); + return true; + }, + + /** + * Sets editor content/selection to the one stored in `image`. + * + * @param {CKEDITOR.plugins.undo.Image} image + */ + restoreImage: function( image ) { + // Bring editor focused to restore selection. + var editor = this.editor, + sel; + + if ( image.bookmarks ) { + editor.focus(); + // Retrieve the selection beforehand. (#8324) + sel = editor.getSelection(); + } + + // Start transaction - do not allow any mutations to the + // snapshots stack done when selecting bookmarks (much probably + // by selectionChange listener). + this.locked = { level: 999 }; + + this.editor.loadSnapshot( image.contents ); + + if ( image.bookmarks ) + sel.selectBookmarks( image.bookmarks ); + else if ( CKEDITOR.env.ie ) { + // IE BUG: If I don't set the selection to *somewhere* after setting + // document contents, then IE would create an empty paragraph at the bottom + // the next time the document is modified. + var $range = this.editor.document.getBody().$.createTextRange(); + $range.collapse( true ); + $range.select(); + } + + this.locked = null; + + this.index = image.index; + this.currentImage = this.snapshots[ this.index ]; + + // Update current image with the actual editor + // content, since actualy content may differ from + // the original snapshot due to dom change. (#4622) + this.update(); + this.refreshState(); + + editor.fire( 'change' ); + }, + + /** + * Gets the closest available image. + * + * @param {Boolean} isUndo If `true`, it will return the previous image. + * @returns {CKEDITOR.plugins.undo.Image} Next image or `null`. + */ + getNextImage: function( isUndo ) { + var snapshots = this.snapshots, + currentImage = this.currentImage, + image, i; + + if ( currentImage ) { + if ( isUndo ) { + for ( i = this.index - 1; i >= 0; i-- ) { + image = snapshots[ i ]; + if ( !currentImage.equalsContent( image ) ) { + image.index = i; + return image; + } + } + } else { + for ( i = this.index + 1; i < snapshots.length; i++ ) { + image = snapshots[ i ]; + if ( !currentImage.equalsContent( image ) ) { + image.index = i; + return image; + } + } + } + } + + return null; + }, + + /** + * Checks the current redo state. + * + * @returns {Boolean} Whether the document has a previous state to retrieve. + */ + redoable: function() { + return this.enabled && this.hasRedo; + }, + + /** + * Checks the current undo state. + * + * @returns {Boolean} Whether the document has a future state to restore. + */ + undoable: function() { + return this.enabled && this.hasUndo; + }, + + /** + * Performs an undo operation on current index. + */ + undo: function() { + if ( this.undoable() ) { + this.save( true ); + + var image = this.getNextImage( true ); + if ( image ) + return this.restoreImage( image ), true; + } + + return false; + }, + + /** + * Performs a redo operation on current index. + */ + redo: function() { + if ( this.redoable() ) { + // Try to save. If no changes have been made, the redo stack + // will not change, so it will still be redoable. + this.save( true ); + + // If instead we had changes, we can't redo anymore. + if ( this.redoable() ) { + var image = this.getNextImage( false ); + if ( image ) + return this.restoreImage( image ), true; + } + } + + return false; + }, + + /** + * Updates the last snapshot of the undo stack with the current editor content. + * + * @param {CKEDITOR.plugins.undo.Image} [newImage] The image which will replace the current one. + * If it is not set, it defaults to the image taken from the editor. + */ + update: function( newImage ) { + // Do not change snapshots stack is locked. + if ( this.locked ) + return; + + if ( !newImage ) + newImage = new Image( this.editor ); + + var i = this.index, + snapshots = this.snapshots; + + // Find all previous snapshots made for the same content (which differ + // only by selection) and replace all of them with the current image. + while ( i > 0 && this.currentImage.equalsContent( snapshots[ i - 1 ] ) ) + i -= 1; + + snapshots.splice( i, this.index - i + 1, newImage ); + this.index = i; + this.currentImage = newImage; + }, + + /** + * Amends the last snapshot and changes its selection (only in case when content + * is equal between these two). + * + * @since 4.4.4 + * @param {CKEDITOR.plugins.undo.Image} newSnapshot New snapshot with new selection. + * @returns {Boolean} Returns `true` if selection was amended. + */ + updateSelection: function( newSnapshot ) { + if ( !this.snapshots.length ) + return false; + + var snapshots = this.snapshots, + lastImage = snapshots[ snapshots.length - 1 ]; + + if ( lastImage.equalsContent( newSnapshot ) ) { + if ( !lastImage.equalsSelection( newSnapshot ) ) { + snapshots[ snapshots.length - 1 ] = newSnapshot; + this.currentImage = newSnapshot; + return true; + } + } + + return false; + }, + + /** + * Locks the snapshot stack to prevent any save/update operations and when necessary, + * updates the tip of the snapshot stack with the DOM changes introduced during the + * locked period, after the {@link #unlock} method is called. + * + * It is mainly used to ensure any DOM operations that should not be recorded + * (e.g. auto paragraphing) are not added to the stack. + * + * **Note:** For every `lock` call you must call {@link #unlock} once to unlock the undo manager. + * + * @since 4.0 + * @param {Boolean} [dontUpdate] When set to `true`, the last snapshot will not be updated + * with current content and selection. By default, if undo manager was up to date when the lock started, + * the last snapshot will be updated to the current state when unlocking. This means that all changes + * done during the lock will be merged into the previous snapshot or the next one. Use this option to gain + * more control over this behavior. For example, it is possible to group changes done during the lock into + * a separate snapshot. + * @param {Boolean} [forceUpdate] When set to `true`, the last snapshot will always be updated with the + * current content and selection regardless of the current state of the undo manager. + * When not set, the last snapshot will be updated only if the undo manager was up to date when locking. + * Additionally, this option makes it possible to lock the snapshot when the editor is not in the `wysiwyg` mode, + * because when it is passed, the snapshots will not need to be compared. + */ + lock: function( dontUpdate, forceUpdate ) { + if ( !this.locked ) { + if ( dontUpdate ) + this.locked = { level: 1 }; + else { + var update = null; + + if ( forceUpdate ) + update = true; + else { + // Make a contents image. Don't include bookmarks, because: + // * we don't compare them, + // * there's a chance that DOM has been changed since + // locked (e.g. fake) selection was made, so createBookmark2 could fail. + // http://dev.ckeditor.com/ticket/11027#comment:3 + var imageBefore = new Image( this.editor, true ); + + // If current editor content matches the tip of snapshot stack, + // the stack tip must be updated by unlock, to include any changes made + // during this period. + if ( this.currentImage && this.currentImage.equalsContent( imageBefore ) ) + update = imageBefore; + } + + this.locked = { update: update, level: 1 }; + } + + // Increase the level of lock. + } else { + this.locked.level++; + } + }, + + /** + * Unlocks the snapshot stack and checks to amend the last snapshot. + * + * See {@link #lock} for more details. + * + * @since 4.0 + */ + unlock: function() { + if ( this.locked ) { + // Decrease level of lock and check if equals 0, what means that undoM is completely unlocked. + if ( !--this.locked.level ) { + var update = this.locked.update; + + this.locked = null; + + // forceUpdate was passed to lock(). + if ( update === true ) + this.update(); + // update is instance of Image. + else if ( update ) { + var newImage = new Image( this.editor, true ); + + if ( !update.equalsContent( newImage ) ) + this.update(); + } + } + } + } + }; + + /** + * Codes for navigation keys like *Arrows*, *Page Up/Down*, etc. + * Used by the {@link #isNavigationKey} method. + * + * @since 4.4.5 + * @readonly + * @static + */ + UndoManager.navigationKeyCodes = { + 37: 1, 38: 1, 39: 1, 40: 1, // Arrows. + 36: 1, 35: 1, // Home, End. + 33: 1, 34: 1 // PgUp, PgDn. + }; + + /** + * Key groups identifier mapping. Used for accessing members in + * {@link #strokesRecorded}. + * + * * `FUNCTIONAL` – identifier for the *Backspace* / *Delete* key. + * * `PRINTABLE` – identifier for printable keys. + * + * Example usage: + * + * undoManager.strokesRecorded[ undoManager.keyGroups.FUNCTIONAL ]; + * + * @since 4.4.5 + * @readonly + * @static + */ + UndoManager.keyGroups = { + PRINTABLE: 0, + FUNCTIONAL: 1 + }; + + /** + * Checks whether a key is one of navigation keys (*Arrows*, *Page Up/Down*, etc.). + * See also the {@link #navigationKeyCodes} property. + * + * @since 4.4.5 + * @static + * @param {Number} keyCode + * @returns {Boolean} + */ + UndoManager.isNavigationKey = function( keyCode ) { + return !!UndoManager.navigationKeyCodes[ keyCode ]; + }; + + /** + * Returns the group to which the passed `keyCode` belongs. + * + * @since 4.4.5 + * @static + * @param {Number} keyCode + * @returns {Number} + */ + UndoManager.getKeyGroup = function( keyCode ) { + var keyGroups = UndoManager.keyGroups; + + return backspaceOrDelete[ keyCode ] ? keyGroups.FUNCTIONAL : keyGroups.PRINTABLE; + }; + + /** + * @since 4.4.5 + * @static + * @param {Number} keyGroup + * @returns {Number} + */ + UndoManager.getOppositeKeyGroup = function( keyGroup ) { + var keyGroups = UndoManager.keyGroups; + return ( keyGroup == keyGroups.FUNCTIONAL ? keyGroups.PRINTABLE : keyGroups.FUNCTIONAL ); + }; + + /** + * Whether we need to use a workaround for functional (*Backspace*, *Delete*) keys not firing + * the `keypress` event in Internet Explorer in this environment and for the specified `keyCode`. + * + * @since 4.4.5 + * @static + * @param {Number} keyCode + * @returns {Boolean} + */ + UndoManager.ieFunctionalKeysBug = function( keyCode ) { + return CKEDITOR.env.ie && UndoManager.getKeyGroup( keyCode ) == UndoManager.keyGroups.FUNCTIONAL; + }; + + // Helper method called when undoManager.typing val was changed to true. + function onTypingStart( undoManager ) { + // It's safe to now indicate typing state. + undoManager.typing = true; + + // Manually mark snapshot as available. + undoManager.hasUndo = true; + undoManager.hasRedo = false; + + undoManager.onChange(); + } + + /** + * Contains a snapshot of the editor content and selection at a given point in time. + * + * @private + * @class CKEDITOR.plugins.undo.Image + * @constructor Creates an Image class instance. + * @param {CKEDITOR.editor} editor The editor instance on which the image is created. + * @param {Boolean} [contentsOnly] If set to `true`, the image will only contain content without the selection. + */ + var Image = CKEDITOR.plugins.undo.Image = function( editor, contentsOnly ) { + this.editor = editor; + + editor.fire( 'beforeUndoImage' ); + + var contents = editor.getSnapshot(); + + // In IE, we need to remove the expando attributes. + if ( CKEDITOR.env.ie && contents ) + contents = contents.replace( /\s+data-cke-expando=".*?"/g, '' ); + + this.contents = contents; + + if ( !contentsOnly ) { + var selection = contents && editor.getSelection(); + this.bookmarks = selection && selection.createBookmarks2( true ); + } + + editor.fire( 'afterUndoImage' ); + }; + + // Attributes that browser may changing them when setting via innerHTML. + var protectedAttrs = /\b(?:href|src|name)="[^"]*?"/gi; + + Image.prototype = { + /** + * @param {CKEDITOR.plugins.undo.Image} otherImage Image to compare to. + * @returns {Boolean} Returns `true` if content in `otherImage` is the same. + */ + equalsContent: function( otherImage ) { + var thisContents = this.contents, + otherContents = otherImage.contents; + + // For IE7 and IE QM: Comparing only the protected attribute values but not the original ones.(#4522) + if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.quirks ) ) { + thisContents = thisContents.replace( protectedAttrs, '' ); + otherContents = otherContents.replace( protectedAttrs, '' ); + } + + if ( thisContents != otherContents ) + return false; + + return true; + }, + + /** + * @param {CKEDITOR.plugins.undo.Image} otherImage Image to compare to. + * @returns {Boolean} Returns `true` if selection in `otherImage` is the same. + */ + equalsSelection: function( otherImage ) { + var bookmarksA = this.bookmarks, + bookmarksB = otherImage.bookmarks; + + if ( bookmarksA || bookmarksB ) { + if ( !bookmarksA || !bookmarksB || bookmarksA.length != bookmarksB.length ) + return false; + + for ( var i = 0; i < bookmarksA.length; i++ ) { + var bookmarkA = bookmarksA[ i ], + bookmarkB = bookmarksB[ i ]; + + if ( bookmarkA.startOffset != bookmarkB.startOffset || bookmarkA.endOffset != bookmarkB.endOffset || + !CKEDITOR.tools.arrayCompare( bookmarkA.start, bookmarkB.start ) || + !CKEDITOR.tools.arrayCompare( bookmarkA.end, bookmarkB.end ) ) { + return false; + } + } + } + + return true; + } + + /** + * Editor content. + * + * @readonly + * @property {String} contents + */ + + /** + * Bookmarks representing the selection in an image. + * + * @readonly + * @property {Object[]} bookmarks Array of bookmark2 objects, see {@link CKEDITOR.dom.range#createBookmark2} for definition. + */ + }; + + /** + * A class encapsulating all native event listeners which have to be used in + * order to handle undo manager integration for native editing actions (excluding drag and drop and paste support + * handled by the Clipboard plugin). + * + * @since 4.4.4 + * @private + * @class CKEDITOR.plugins.undo.NativeEditingHandler + * @member CKEDITOR.plugins.undo Undo manager owning the handler. + * @constructor + * @param {CKEDITOR.plugins.undo.UndoManager} undoManager + */ + var NativeEditingHandler = CKEDITOR.plugins.undo.NativeEditingHandler = function( undoManager ) { + // We'll use keyboard + input events to determine if snapshot should be created. + // Since `input` event is fired before `keyup`. We can tell in `keyup` event if input occured. + // That will tell us if any printable data was inserted. + // On `input` event we'll increase input fired counter for proper key code. + // Eventually it might be canceled by paste/drop using `ignoreInputEvent` flag. + // Order of events can be found in http://www.w3.org/TR/DOM-Level-3-Events/ + + /** + * An undo manager instance owning the editing handler. + * + * @property {CKEDITOR.plugins.undo.UndoManager} undoManager + */ + this.undoManager = undoManager; + + /** + * See {@link #ignoreInputEventListener}. + * + * @since 4.4.5 + * @private + */ + this.ignoreInputEvent = false; + + /** + * A stack of pressed keys. + * + * @since 4.4.5 + * @property {CKEDITOR.plugins.undo.KeyEventsStack} keyEventsStack + */ + this.keyEventsStack = new KeyEventsStack(); + + /** + * An image of the editor during the `keydown` event (therefore without DOM modification). + * + * @property {CKEDITOR.plugins.undo.Image} lastKeydownImage + */ + this.lastKeydownImage = null; + }; + + NativeEditingHandler.prototype = { + /** + * The `keydown` event listener. + * + * @param {CKEDITOR.dom.event} evt + */ + onKeydown: function( evt ) { + var keyCode = evt.data.getKey(); + + // The composition is in progress - ignore the key. (#12597) + if ( keyCode === 229 ) { + return; + } + + // Block undo/redo keystrokes when at the bottom/top of the undo stack (#11126 and #11677). + if ( CKEDITOR.tools.indexOf( keystrokes, evt.data.getKeystroke() ) > -1 ) { + evt.data.preventDefault(); + return; + } + + // Cleaning tab functional keys. + this.keyEventsStack.cleanUp( evt ); + + var undoManager = this.undoManager; + + // Gets last record for provided keyCode. If not found will create one. + var last = this.keyEventsStack.getLast( keyCode ); + if ( !last ) { + this.keyEventsStack.push( keyCode ); + } + + // We need to store an image which will be used in case of key group + // change. + this.lastKeydownImage = new Image( undoManager.editor ); + + if ( UndoManager.isNavigationKey( keyCode ) || this.undoManager.keyGroupChanged( keyCode ) ) { + if ( undoManager.strokesRecorded[ 0 ] || undoManager.strokesRecorded[ 1 ] ) { + // We already have image, so we'd like to reuse it. + + // #12300 + undoManager.save( false, this.lastKeydownImage, false ); + undoManager.resetType(); + } + } + }, + + /** + * The `input` event listener. + */ + onInput: function() { + // Input event is ignored if paste/drop event were fired before. + if ( this.ignoreInputEvent ) { + // Reset flag - ignore only once. + this.ignoreInputEvent = false; + return; + } + + var lastInput = this.keyEventsStack.getLast(); + // Nothing in key events stack, but input event called. Interesting... + // That's because on Android order of events is buggy and also keyCode is set to 0. + if ( !lastInput ) { + lastInput = this.keyEventsStack.push( 0 ); + } + + // Increment inputs counter for provided key code. + this.keyEventsStack.increment( lastInput.keyCode ); + + // Exceeded limit. + if ( this.keyEventsStack.getTotalInputs() >= this.undoManager.strokesLimit ) { + this.undoManager.type( lastInput.keyCode, true ); + this.keyEventsStack.resetInputs(); + } + }, + + /** + * The `keyup` event listener. + * + * @param {CKEDITOR.dom.event} evt + */ + onKeyup: function( evt ) { + var undoManager = this.undoManager, + keyCode = evt.data.getKey(), + totalInputs = this.keyEventsStack.getTotalInputs(); + + // Remove record from stack for provided key code. + this.keyEventsStack.remove( keyCode ); + + // Second part of the workaround for IEs functional keys bug. We need to check whether something has really + // changed because we blindly mocked the keypress event. + // Also we need to be aware that lastKeydownImage might not be available (#12327). + if ( UndoManager.ieFunctionalKeysBug( keyCode ) && this.lastKeydownImage && + this.lastKeydownImage.equalsContent( new Image( undoManager.editor, true ) ) ) { + return; + } + + if ( totalInputs > 0 ) { + undoManager.type( keyCode ); + } else if ( UndoManager.isNavigationKey( keyCode ) ) { + // Note content snapshot has been checked in keydown. + this.onNavigationKey( true ); + } + }, + + /** + * Method called for navigation change. At first it will check if current content does not differ + * from the last saved snapshot. + * + * * If the content is different, the method creates a standard, extra snapshot. + * * If the content is not different, the method will compare the selection, and will + * amend the last snapshot selection if it changed. + * + * @param {Boolean} skipContentCompare If set to `true`, it will not compare content, and only do a selection check. + */ + onNavigationKey: function( skipContentCompare ) { + var undoManager = this.undoManager; + + // We attempt to save content snapshot, if content didn't change, we'll + // only amend selection. + if ( skipContentCompare || !undoManager.save( true, null, false ) ) + undoManager.updateSelection( new Image( undoManager.editor ) ); + + undoManager.resetType(); + }, + + /** + * Makes the next `input` event to be ignored. + */ + ignoreInputEventListener: function() { + this.ignoreInputEvent = true; + }, + + /** + * Attaches editable listeners required to provide the undo functionality. + */ + attachListeners: function() { + var editor = this.undoManager.editor, + editable = editor.editable(), + that = this; + + // We'll create a snapshot here (before DOM modification), because we'll + // need unmodified content when we got keygroup toggled in keyup. + editable.attachListener( editable, 'keydown', function( evt ) { + that.onKeydown( evt ); + + // On IE keypress isn't fired for functional (backspace/delete) keys. + // Let's pretend that something's changed. + if ( UndoManager.ieFunctionalKeysBug( evt.data.getKey() ) ) { + that.onInput(); + } + }, null, null, 999 ); + + // Only IE can't use input event, because it's not fired in contenteditable. + editable.attachListener( editable, ( CKEDITOR.env.ie ? 'keypress' : 'input' ), that.onInput, that, null, 999 ); + + // Keyup executes main snapshot logic. + editable.attachListener( editable, 'keyup', that.onKeyup, that, null, 999 ); + + // On paste and drop we need to ignore input event. + // It would result with calling undoManager.type() on any following key. + editable.attachListener( editable, 'paste', that.ignoreInputEventListener, that, null, 999 ); + editable.attachListener( editable, 'drop', that.ignoreInputEventListener, that, null, 999 ); + + // Click should create a snapshot if needed, but shouldn't cause change event. + // Don't pass onNavigationKey directly as a listener because it accepts one argument which + // will conflict with evt passed to listener. + // #12324 comment:4 + editable.attachListener( editable.isInline() ? editable : editor.document.getDocumentElement(), 'click', function() { + that.onNavigationKey(); + }, null, null, 999 ); + + // When pressing `Tab` key while editable is focused, `keyup` event is not fired. + // Which means that record for `tab` key stays in key events stack. + // We assume that when editor is blurred `tab` key is already up. + editable.attachListener( this.undoManager.editor, 'blur', function() { + that.keyEventsStack.remove( 9 /*Tab*/ ); + }, null, null, 999 ); + } + }; + + /** + * This class represents a stack of pressed keys and stores information + * about how many `input` events each key press has caused. + * + * @since 4.4.5 + * @private + * @class CKEDITOR.plugins.undo.KeyEventsStack + * @constructor + */ + var KeyEventsStack = CKEDITOR.plugins.undo.KeyEventsStack = function() { + /** + * @readonly + */ + this.stack = []; + }; + + KeyEventsStack.prototype = { + /** + * Pushes a literal object with two keys: `keyCode` and `inputs` (whose initial value is set to `0`) to stack. + * It is intended to be called on the `keydown` event. + * + * @param {Number} keyCode + */ + push: function( keyCode ) { + var length = this.stack.push( { keyCode: keyCode, inputs: 0 } ); + return this.stack[ length - 1 ]; + }, + + /** + * Returns the index of the last registered `keyCode` in the stack. + * If no `keyCode` is provided, then the function will return the index of the last item. + * If an item is not found, it will return `-1`. + * + * @param {Number} [keyCode] + * @returns {Number} + */ + getLastIndex: function( keyCode ) { + if ( typeof keyCode != 'number' ) { + return this.stack.length - 1; // Last index or -1. + } else { + var i = this.stack.length; + while ( i-- ) { + if ( this.stack[ i ].keyCode == keyCode ) { + return i; + } + } + return -1; + } + }, + + /** + * Returns the last key recorded in the stack. If `keyCode` is provided, then it will return + * the last record for this `keyCode`. + * + * @param {Number} [keyCode] + * @returns {Object} Last matching record or `null`. + */ + getLast: function( keyCode ) { + var index = this.getLastIndex( keyCode ); + if ( index != -1 ) { + return this.stack[ index ]; + } else { + return null; + } + }, + + /** + * Increments registered input events for stack record for a given `keyCode`. + * + * @param {Number} keyCode + */ + increment: function( keyCode ) { + var found = this.getLast( keyCode ); + if ( !found ) { // %REMOVE_LINE% + throw new Error( 'Trying to increment, but could not found by keyCode: ' + keyCode + '.' ); // %REMOVE_LINE% + } // %REMOVE_LINE% + + found.inputs++; + }, + + /** + * Removes the last record from the stack for the provided `keyCode`. + * + * @param {Number} keyCode + */ + remove: function( keyCode ) { + var index = this.getLastIndex( keyCode ); + + if ( index != -1 ) { + this.stack.splice( index, 1 ); + } + }, + + /** + * Resets the `inputs` value to `0` for a given `keyCode` or in entire stack if a + * `keyCode` is not specified. + * + * @param {Number} [keyCode] + */ + resetInputs: function( keyCode ) { + if ( typeof keyCode == 'number' ) { + var last = this.getLast( keyCode ); + + if ( !last ) { // %REMOVE_LINE% + throw new Error( 'Trying to reset inputs count, but could not found by keyCode: ' + keyCode + '.' ); // %REMOVE_LINE% + } // %REMOVE_LINE% + + last.inputs = 0; + } else { + var i = this.stack.length; + while ( i-- ) { + this.stack[ i ].inputs = 0; + } + } + }, + + /** + * Sums up inputs number for each key code and returns it. + * + * @returns {Number} + */ + getTotalInputs: function() { + var i = this.stack.length, + total = 0; + + while ( i-- ) { + total += this.stack[ i ].inputs; + } + return total; + }, + + /** + * Cleans the stack based on a provided `keydown` event object. The rationale behind this method + * is that some keystrokes cause the `keydown` event to be fired in the editor, but not the `keyup` event. + * For instance, *Alt+Tab* will fire `keydown`, but since the editor is blurred by it, then there is + * no `keyup`, so the keystroke is not removed from the stack. + * + * @param {CKEDITOR.dom.event} event + */ + cleanUp: function( event ) { + var nativeEvent = event.data.$; + + if ( !( nativeEvent.ctrlKey || nativeEvent.metaKey ) ) { + this.remove( 17 ); + } + if ( !nativeEvent.shiftKey ) { + this.remove( 16 ); + } + if ( !nativeEvent.altKey ) { + this.remove( 18 ); + } + } + }; +} )(); + +/** + * The number of undo steps to be saved. The higher value is set, the more + * memory is used for it. + * + * config.undoStackSize = 50; + * + * @cfg {Number} [undoStackSize=20] + * @member CKEDITOR.config + */ + +/** + * Fired when the editor is about to save an undo snapshot. This event can be + * fired by plugins and customizations to make the editor save undo snapshots. + * + * @event saveSnapshot + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + */ + +/** + * Fired before an undo image is to be created. An *undo image* represents the + * editor state at some point. It is saved into the undo store, so the editor is + * able to recover the editor state on undo and redo operations. + * + * @since 3.5.3 + * @event beforeUndoImage + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @see CKEDITOR.editor#afterUndoImage + */ + +/** + * Fired after an undo image is created. An *undo image* represents the + * editor state at some point. It is saved into the undo store, so the editor is + * able to recover the editor state on undo and redo operations. + * + * @since 3.5.3 + * @event afterUndoImage + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @see CKEDITOR.editor#beforeUndoImage + */ + +/** + * Fired when the content of the editor is changed. + * + * Due to performance reasons, it is not verified if the content really changed. + * The editor instead watches several editing actions that usually result in + * changes. This event may thus in some cases be fired when no changes happen + * or may even get fired twice. + * + * If it is important not to get the `change` event fired too often, you should compare the + * previous and the current editor content inside the event listener. It is + * not recommended to do that on every `change` event. + * + * Please note that the `change` event is only fired in the {@link #property-mode wysiwyg mode}. + * In order to implement similar functionality in the source mode, you can listen for example to the {@link #key} + * event or the native [`input`](https://developer.mozilla.org/en-US/docs/Web/Reference/Events/input) + * event (not supported by Internet Explorer 8). + * + * editor.on( 'mode', function() { + * if ( this.mode == 'source' ) { + * var editable = editor.editable(); + * editable.attachListener( editable, 'input', function() { + * // Handle changes made in the source mode. + * } ); + * } + * } ); + * + * @since 4.2 + * @event change + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + */ diff --git a/sources/plugins/wsc/LICENSE.md b/sources/plugins/wsc/LICENSE.md new file mode 100644 index 00000000..6096de23 --- /dev/null +++ b/sources/plugins/wsc/LICENSE.md @@ -0,0 +1,28 @@ +Software License Agreement +========================== + +**CKEditor WSC Plugin** +Copyright © 2012, [CKSource](http://cksource.com) - Frederico Knabben. All rights reserved. + +Licensed under the terms of any of the following licenses at your choice: + +* GNU General Public License Version 2 or later (the "GPL"): + http://www.gnu.org/licenses/gpl.html + +* GNU Lesser General Public License Version 2.1 or later (the "LGPL"): + http://www.gnu.org/licenses/lgpl.html + +* Mozilla Public License Version 1.1 or later (the "MPL"): + http://www.mozilla.org/MPL/MPL-1.1.html + +You are not required to, but if you want to explicitly declare the license you have chosen to be bound to when using, reproducing, modifying and distributing this software, just include a text file titled "legal.txt" in your version of this software, indicating your license choice. + +Sources of Intellectual Property Included in this plugin +-------------------------------------------------------- + +Where not otherwise indicated, all plugin content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, the plugin will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/sources/plugins/wsc/README.md b/sources/plugins/wsc/README.md new file mode 100644 index 00000000..346e2ab1 --- /dev/null +++ b/sources/plugins/wsc/README.md @@ -0,0 +1,25 @@ +CKEditor WebSpellChecker Plugin +=============================== + +This plugin brings Web Spell Checker (WSC) into CKEditor. + +WSC is "installation-less", using the web-services of [WebSpellChecker.net](http://www.webspellchecker.net/). It's an out of the box solution. + +Installation +------------ + +1. Clone/copy this repository contents in a new "plugins/wsc" folder in your CKEditor installation. +2. Enable the "wsc" plugin in the CKEditor configuration file (config.js): + + config.extraPlugins = 'wsc'; + +That's all. WSC will appear on the editor toolbar and will be ready to use. + +License +------- + +Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html). + +See LICENSE.md for more information. + +Developed in cooperation with [WebSpellChecker.net](http://www.webspellchecker.net/). diff --git a/sources/plugins/wsc/dialogs/ciframe.html b/sources/plugins/wsc/dialogs/ciframe.html new file mode 100644 index 00000000..8e4e6bc9 --- /dev/null +++ b/sources/plugins/wsc/dialogs/ciframe.html @@ -0,0 +1,66 @@ + + + + + + + + +

+ diff --git a/sources/plugins/wsc/dialogs/tmpFrameset.html b/sources/plugins/wsc/dialogs/tmpFrameset.html new file mode 100644 index 00000000..19c7c9cc --- /dev/null +++ b/sources/plugins/wsc/dialogs/tmpFrameset.html @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + diff --git a/sources/plugins/wsc/dialogs/wsc.css b/sources/plugins/wsc/dialogs/wsc.css new file mode 100644 index 00000000..2a622f22 --- /dev/null +++ b/sources/plugins/wsc/dialogs/wsc.css @@ -0,0 +1,82 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +html, body +{ + background-color: transparent; + margin: 0px; + padding: 0px; +} + +body +{ + padding: 10px; +} + +body, td, input, select, textarea +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; +} + +.midtext +{ + padding:0px; + margin:10px; +} + +.midtext p +{ + padding:0px; + margin:10px; +} + +.Button +{ + border: #737357 1px solid; + color: #3b3b1f; + background-color: #c7c78f; +} + +.PopupTabArea +{ + color: #737357; + background-color: #e3e3c7; +} + +.PopupTitleBorder +{ + border-bottom: #d5d59d 1px solid; +} +.PopupTabEmptyArea +{ + padding-left: 10px; + border-bottom: #d5d59d 1px solid; +} + +.PopupTab, .PopupTabSelected +{ + border-right: #d5d59d 1px solid; + border-top: #d5d59d 1px solid; + border-left: #d5d59d 1px solid; + padding: 3px 5px 3px 5px; + color: #737357; +} + +.PopupTab +{ + margin-top: 1px; + border-bottom: #d5d59d 1px solid; + cursor: pointer; +} + +.PopupTabSelected +{ + font-weight: bold; + cursor: default; + padding-top: 4px; + border-bottom: #f1f1e3 1px solid; + background-color: #f1f1e3; +} diff --git a/sources/plugins/wsc/dialogs/wsc.js b/sources/plugins/wsc/dialogs/wsc.js new file mode 100644 index 00000000..eb96af8a --- /dev/null +++ b/sources/plugins/wsc/dialogs/wsc.js @@ -0,0 +1,3152 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.html or http://ckeditor.com/license + */ + (function() { + // Create support tools + var appTools = (function(){ + var inited = {}; + + var _init = function(handler) { + if (window.addEventListener) { + window.addEventListener('message', handler, false); + } else { + window.attachEvent("onmessage", handler); + } + }; + + var unbindHandler = function(handler) { + if (window.removeEventListener) { + window.removeEventListener('message', handler, false); + } else { + window.detachEvent('onmessage', handler); + } + }; + + var _sendCmd = function(o) { + var str, + type = Object.prototype.toString, + objObject = "[object Object]", + fn = o.fn || null, + id = o.id || '', + target = o.target || window, + message = o.message || { + 'id': id + }; + + if (o.message && type.call(o.message) == objObject) { + (o.message.id) ? o.message.id : o.message.id = id; + message = o.message; + } + + str = window.JSON.stringify(message, fn); + target.postMessage(str, '*'); + }; + + var _hashCreate = function(o, fn) { + fn = fn || null; + var str = window.JSON.stringify(o, fn); + return str; + }; + + var _hashParse = function(str, fn) { + fn = fn || null; + return window.JSON.parse(str, fn); + }; + + var setCookie = function(name, value, options) { + options = options || {}; + + var expires = options.expires; + + if (typeof expires == "number" && expires) { + var d = new Date(); + d.setTime(d.getTime() + expires*1000); + expires = options.expires = d; + } + if (expires && expires.toUTCString) { + options.expires = expires.toUTCString(); + } + + value = encodeURIComponent(value); + var updatedCookie = name + "=" + value; + + for(var propName in options) { + var propValue = options[propName]; + updatedCookie += "; " + propName; + if (propValue !== true) { + updatedCookie += "=" + propValue; + } + } + document.cookie = updatedCookie; + }; + + var getCookie = function(name) { + var matches = document.cookie.match(new RegExp( + "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" + )); + return matches ? decodeURIComponent(matches[1]) : undefined; + }; + + var deleteCookie = function(name) { + setCookie(name, "", { expires: -1 }); + }; + + var findFocusable = function(ckEl) { + var result = null, + focusableSelectors = 'a[href], area[href], input, select, textarea, button, *[tabindex], *[contenteditable]'; + + if(ckEl) { + result = ckEl.find(focusableSelectors); + } + + return result; + }; + + var getStyle = function(el, prop) { + if(document.defaultView && document.defaultView.getComputedStyle) { + return document.defaultView.getComputedStyle(el, null)[prop]; + } else if(el.currentStyle) { + return el.currentStyle[prop]; + } else { + return el.style[prop]; + } + }; + + var isHidden = function(el) { + return el.offsetWidth === 0 || el.offsetHeight == 0 || getStyle(el, 'display') === 'none'; + }; + + var isVisible = function(el) { + return !isHidden(el); + }; + + var hasClass = function (obj, cname) { + return !!(obj.className ? obj.className.match(new RegExp('(\\s|^)'+cname+'(\\s|$)')) : false); + }; + + return { + postMessage: { + init: _init, + send: _sendCmd, + unbindHandler: unbindHandler + }, + hash: { + create: function() { + + }, + + parse: function() { + + } + }, + cookie: { + set: setCookie, + get: getCookie, + remove: deleteCookie + }, + misc: { + findFocusable: findFocusable, + isVisible: isVisible, + hasClass: hasClass + } + }; + })(); + + var NS = NS || {}; + NS.TextAreaNumber = null; + NS.load = true; + NS.cmd = { + "SpellTab": 'spell', + "Thesaurus": 'thes', + "GrammTab": 'grammar' + }; + NS.dialog = null; + NS.optionNode = null; + NS.selectNode = null; + NS.grammerSuggest = null; + NS.textNode = {}; + NS.iframeMain = null; + NS.dataTemp = ''; + NS.div_overlay = null; + NS.textNodeInfo = {}; + NS.selectNode = {}; + NS.selectNodeResponce = {}; + NS.langList = null; + NS.langSelectbox = null; + NS.banner = ''; + NS.show_grammar = null; + NS.div_overlay_no_check = null; + NS.targetFromFrame = {}; + NS.onLoadOverlay = null; + NS.LocalizationComing = {}; + NS.OverlayPlace = null; + NS.sessionid = ''; + NS.LocalizationButton = { + 'ChangeTo_button': { + 'instance' : null, + 'text' : 'Change to', + 'localizationID': 'ChangeTo' + }, + + 'ChangeAll': { + 'instance' : null, + 'text' : 'Change All' + }, + + 'IgnoreWord': { + 'instance' : null, + 'text' : 'Ignore word' + }, + + 'IgnoreAllWords': { + 'instance' : null, + 'text' : 'Ignore all words' + }, + + 'Options': { + 'instance' : null, + 'text' : 'Options', + 'optionsDialog': { + 'instance' : null + } + }, + + 'AddWord': { + 'instance' : null, + 'text' : 'Add word' + }, + + 'FinishChecking_button': { + 'instance' : null, + 'text' : 'Finish Checking', + 'localizationID': 'FinishChecking' + }, + + 'FinishChecking_button_block': { + 'instance' : null, + 'text' : 'Finish Checking', + 'localizationID': 'FinishChecking' + } + }; + + NS.LocalizationLabel = { + 'ChangeTo_label': { + 'instance' : null, + 'text' : 'Change to', + 'localizationID': 'ChangeTo' + }, + + 'Suggestions': { + 'instance' : null, + 'text' : 'Suggestions' + }, + + 'Categories': { + 'instance' : null, + 'text' : 'Categories' + }, + + 'Synonyms': { + 'instance' : null, + 'text' : 'Synonyms' + } + }; + + var SetLocalizationButton = function(obj) { + var el, localizationID; + + for(var i in obj) { + el = NS.dialog.getContentElement(NS.dialog._.currentTabId, i); + + if(el) { + el = el.getElement(); + } else { + el = obj[i].instance.getElement().getFirst() || obj[i].instance.getElement(); + } + + localizationID = obj[i].localizationID || i; + el.setText(NS.LocalizationComing[localizationID]); + } + }; + + var SetLocalizationLabel = function(obj) { + var el, localizationID; + + for(var i in obj) { + el = NS.dialog.getContentElement(NS.dialog._.currentTabId, i); + + if(!el) { + el = obj[i].instance; + } + + if(el.setLabel) { + localizationID = obj[i].localizationID || i; + el.setLabel(NS.LocalizationComing[localizationID] + ':'); + } + } + }; + var OptionsConfirm = function(state) { + if (state) { + nameNode.setValue(''); + } + }; + + var iframeOnload = false; + var nameNode, selectNode, frameId; + + NS.framesetHtml = function(tab) { + var str = ''; + return str; + }; + + NS.setIframe = function(that, nameTab) { + var iframe, + str = NS.framesetHtml(nameTab), + iframeId = NS.iframeNumber + '_' + nameTab, + // tmp.html from wsc/dialogs + iframeInnerHtml = + '' + + '' + + '' + + '' + + 'iframe' + + + '' + + '' + + '' + + '
' + + '' + + '' + + '' + + '' + + '' + + '' + + ''; + + that.getElement().setHtml(str); + iframe = document.getElementById(iframeId); + iframe = (iframe.contentWindow) ? iframe.contentWindow : (iframe.contentDocument.document) ? iframe.contentDocument.document : iframe.contentDocument; + iframe.document.open(); + iframe.document.write(iframeInnerHtml); + iframe.document.close(); + }; + + NS.setCurrentIframe = function(currentTab) { + var that = NS.dialog._.contents[currentTab].Content, + tabID, iframe; + + NS.setIframe(that, currentTab); + + }; + + NS.setHeightBannerFrame = function() { + var height = "90px", + bannerPlaceSpellTab = NS.dialog.getContentElement('SpellTab', 'banner').getElement(), + bannerPlaceGrammTab = NS.dialog.getContentElement('GrammTab', 'banner').getElement(), + bannerPlaceThesaurus = NS.dialog.getContentElement('Thesaurus', 'banner').getElement(); + + bannerPlaceSpellTab.setStyle('height', height); + bannerPlaceGrammTab.setStyle('height', height); + bannerPlaceThesaurus.setStyle('height', height); + }; + + NS.setHeightFrame = function() { + var currentTab = NS.dialog._.currentTabId, + tabID = NS.iframeNumber + '_' + currentTab, + iframe = document.getElementById(tabID); + + iframe.style.height = '240px'; + }; + + NS.sendData = function(scope) { + var currentTab = scope._.currentTabId, + that = scope._.contents[currentTab].Content, + tabID, iframe; + + NS.previousTab = currentTab; + NS.setIframe(that, currentTab); + + var loadNewTab = function(event) { + currentTab = scope._.currentTabId; + event = event || window.event; + + if (!event.data.getTarget().is('a')) { + return; + } + + if(currentTab === NS.previousTab) return; + NS.previousTab = currentTab; + + that = scope._.contents[currentTab].Content; + tabID = NS.iframeNumber + '_' + currentTab; + NS.div_overlay.setEnable(); + + if (!that.getElement().getChildCount()) { + NS.setIframe(that, currentTab); + iframe = document.getElementById(tabID); + NS.targetFromFrame[tabID] = iframe.contentWindow; + } else { + sendData(NS.targetFromFrame[tabID], NS.cmd[currentTab]); + } + }; + + scope.parts.tabs.removeListener('click', loadNewTab); + scope.parts.tabs.on('click', loadNewTab); + }; + + NS.buildSelectLang = function(aId) { + var divContainer = new CKEDITOR.dom.element('div'), + selectContainer = new CKEDITOR.dom.element('select'), + id = "wscLang" + aId; + + divContainer.addClass("cke_dialog_ui_input_select"); + divContainer.setAttribute("role", "presentation"); + divContainer.setStyles({ + 'height': 'auto', + 'position': 'absolute', + 'right': '0', + 'top': '-1px', + 'width': '160px', + 'white-space': 'normal' + }); + + selectContainer.setAttribute('id', id); + selectContainer.addClass("cke_dialog_ui_input_select"); + selectContainer.setStyles({ + 'width': '160px' + }); + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + divContainer.append(selectContainer); + + return divContainer; + + }; + + NS.buildOptionLang = function(key, aId) { + var id = "wscLang" + aId; + var select = document.getElementById(id), + fragment = document.createDocumentFragment(), + create_option, txt_option, + sort = []; + + if(select.options.length === 0) { + for (var lang in key) { + sort.push([lang, key[lang]]); + } + sort.sort(); + + for (var i = 0; i < sort.length; i++) { + create_option=document.createElement("option"); + create_option.setAttribute("value", sort[i][1]); + txt_option = document.createTextNode(sort[i][0]); + create_option.appendChild(txt_option); + + fragment.appendChild(create_option); + } + select.appendChild(fragment); + } + + // make appropriate option selected according to current selected language + for (var j = 0; j < select.options.length; j++) { + if (select.options[j].value == NS.selectingLang) { + select.options[j].selected = "selected"; + } + } + }; + + NS.buildOptionSynonyms = function(key) { + var syn = NS.selectNodeResponce[key]; + + var select = getSelect( NS.selectNode['Synonyms'] ); + + NS.selectNode['Synonyms'].clear(); + + for (var i = 0; i < syn.length; i++) { + var option = document.createElement('option'); + option.text = syn[i]; + option.value = syn[i]; + + select.$.add(option, i); + } + + NS.selectNode['Synonyms'].getInputElement().$.firstChild.selected = true; + NS.textNode['Thesaurus'].setValue(NS.selectNode['Synonyms'].getInputElement().getValue()); + }; + + var setBannerInPlace = function(htmlBanner) { + var findBannerPlace = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'banner').getElement(); + findBannerPlace.setHtml(htmlBanner); + + }; + + var overlayBlock = function overlayBlock(opt) { + var progress = opt.progress || "", + doc = document, + target = opt.target || doc.body, + overlayId = opt.id || "overlayBlock", + opacity = opt.opacity || "0.9", + background = opt.background || "#f1f1f1", + getOverlay = doc.getElementById(overlayId), + thisOverlay = getOverlay || doc.createElement("div"); + + thisOverlay.style.cssText = "position: absolute;" + + "top:30px;" + + "bottom:41px;" + + "left:1px;" + + "right:1px;" + + "z-index: 10020;" + + "padding:0;" + + "margin:0;" + + "background:" + background + ";" + + "opacity: " + opacity + ";" + + "filter: alpha(opacity=" + opacity * 100 + ");" + + "display: none;"; + thisOverlay.id = overlayId; + + if (!getOverlay) { + target.appendChild(thisOverlay); + } + + return { + setDisable: function() { + thisOverlay.style.display = "none"; + }, + setEnable: function() { + thisOverlay.style.display = "block"; + } + }; + }; + + var buildRadioInputs = function(key, value, check) { + var divContainer = new CKEDITOR.dom.element('div'), + radioButton = new CKEDITOR.dom.element('input'), + radioLabel = new CKEDITOR.dom.element('label'), + id = "wscGrammerSuggest" + key + "_" + value; + + divContainer.addClass("cke_dialog_ui_input_radio"); + divContainer.setAttribute("role", "presentation"); + divContainer.setStyles({ + width: "97%", + padding: "5px", + 'white-space': 'normal' + }); + + radioButton.setAttributes({ + type: "radio", + value: value, + name: 'wscGrammerSuggest', + id: id + }); + radioButton.setStyles({ + "float":"left" + }); + + radioButton.on("click", function(data) { + NS.textNode['GrammTab'].setValue(data.sender.getValue()); + }); + + (check) ? radioButton.setAttribute("checked", true) : false; + + radioButton.addClass("cke_dialog_ui_radio_input"); + + radioLabel.appendText(key); + radioLabel.setAttribute("for", id); + radioLabel.setStyles({ + 'display': "block", + 'line-height': '16px', + 'margin-left': '18px', + 'white-space': 'normal' + }); + + divContainer.append(radioButton); + divContainer.append(radioLabel); + + return divContainer; + }; + + var statusGrammarTab = function(aState) { //#19221 + aState = aState || 'true'; + if(aState !== null && aState == 'false'){ + hideGrammTab(); + } + }; + + var langConstructor = function(lang) { + var langSelectBox = new __constructLangSelectbox(lang), + selectId = "wscLang" + NS.dialog.getParentEditor().name, + selectContainer = document.getElementById(selectId), + currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + NS.buildOptionLang(langSelectBox.setLangList, NS.dialog.getParentEditor().name); + tabView[langSelectBox.getCurrentLangGroup(NS.selectingLang)].onShow(); + statusGrammarTab(NS.show_grammar); + + selectContainer.onchange = function(e) { + var langGroup = langSelectBox.getCurrentLangGroup(this.value), + currentTabId = NS.dialog._.currentTabId, + cmd; + + e = e || window.event; + + tabView[langGroup].onShow(); + statusGrammarTab(NS.show_grammar); + NS.div_overlay.setEnable(); + NS.selectingLang = this.value; + + // get command for current opened tan + cmd = NS.cmd[currentTabId]; + // check whether current tab can be opened after language switching + if(!langGroup || !tabView[langGroup] || !tabView[langGroup].allowedTabCommands[cmd]) { + // if not so - set default tab to open after reload + cmd = tabView[langGroup].defaultTabCommand; + } + + for(var key in NS.cmd) { + if(NS.cmd[key] == cmd) { + NS.previousTab = key; + break; + } + } + + appTools.postMessage.send({ + 'message': { + 'changeLang': NS.selectingLang, + 'text': NS.dataTemp, + 'cmd': cmd + }, + 'target': NS.targetFromFrame[frameId], + 'id': 'selectionLang_outer__page' + }); + }; + + }; + + var disableButtonSuggest = function(word) { + var changeToButton, changeAllButton, + styleDisable = function(instanceButton) { + var button = NS.dialog.getContentElement(NS.dialog._.currentTabId, instanceButton) || NS.LocalizationButton[instanceButton].instance; + button.getElement().hasClass('cke_disabled') ? button.getElement().setStyle('color', '#a0a0a0') : button.disable(); + }, + styleEnable = function(instanceButton) { + var button = NS.dialog.getContentElement(NS.dialog._.currentTabId, instanceButton) || NS.LocalizationButton[instanceButton].instance; + button.enable(); + button.getElement().setStyle('color', '#333'); + }; + + if (word == 'no_any_suggestions') { + word = 'No suggestions'; + + changeToButton = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'ChangeTo_button') || NS.LocalizationButton['ChangeTo_button'].instance; + changeToButton.disable(); + changeAllButton = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'ChangeAll') || NS.LocalizationButton['ChangeAll'].instance; + changeAllButton.disable(); + + styleDisable('ChangeTo_button'); + styleDisable('ChangeAll'); + + return word; + } else { + styleEnable('ChangeTo_button'); + styleEnable('ChangeAll'); + + return word; + } + }; + + function getSelect( obj ) { + if ( obj && obj.domId && obj.getInputElement().$ ) + return obj.getInputElement(); + else if ( obj && obj.$ ) + return obj; + return false; + } + + var handlerId = { + iframeOnload: function(response) { + NS.div_overlay.setEnable(); + iframeOnload = true; + var currentTab = NS.dialog._.currentTabId, + tabId = NS.iframeNumber + '_' + currentTab; + sendData(NS.targetFromFrame[tabId], NS.cmd[currentTab]); + }, + + suggestlist: function(response) { + delete response.id; + NS.div_overlay_no_check.setDisable(); + hideCurrentFinishChecking(); + langConstructor(NS.langList); + + var word = disableButtonSuggest(response.word), + suggestionsList = ''; + + if (word instanceof Array) { + word = response.word[0]; + } + + word = word.split(','); + suggestionsList = word; + + NS.textNode['SpellTab'].setValue(suggestionsList[0]); + + var select = getSelect( selectNode ); + + selectNode.clear(); + + for (var i = 0; i < suggestionsList.length; i++) { + var option = document.createElement('option'); + option.text = suggestionsList[i]; + option.value = suggestionsList[i]; + + select.$.add(option, i); + } + + showCurrentTabs(); + NS.div_overlay.setDisable(); + + }, + + grammerSuggest: function(response) { + delete response.id; + delete response.mocklangs; + + hideCurrentFinishChecking(); + langConstructor(NS.langList); // Show select language for this command CKEDITOR.config.wsc_cmd + var firstSuggestValue = response.grammSuggest[0];// ? firstSuggestValue = response.grammSuggest[0] : firstSuggestValue = 'No suggestion for this words'; + NS.grammerSuggest.getElement().setHtml(''); + + NS.textNode['GrammTab'].reset(); + NS.textNode['GrammTab'].setValue(firstSuggestValue); + + NS.textNodeInfo['GrammTab'].getElement().setHtml(''); + NS.textNodeInfo['GrammTab'].getElement().setText(response.info); + + var arr = response.grammSuggest, + len = arr.length, + check = true; + + for (var i = 0; i < len; i++) { + NS.grammerSuggest.getElement().append(buildRadioInputs(arr[i], arr[i], check)); + check = false; + } + + showCurrentTabs(); + NS.div_overlay.setDisable(); + }, + + thesaurusSuggest: function(response) { + delete response.id; + delete response.mocklangs; + + hideCurrentFinishChecking(); + langConstructor(NS.langList); // Show select language for this command CKEDITOR.config.wsc_cmd + NS.selectNodeResponce = response; + + NS.textNode['Thesaurus'].reset(); + + var select = getSelect( NS.selectNode['Categories'] ), + count = 0; + + NS.selectNode['Categories'].clear(); + + for (var i in response) { + + var option = document.createElement('option'); + option.text = i; + option.value = i; + + select.$.add(option, count); + count++ + } + + var synKey = NS.selectNode['Categories'].getInputElement().getChildren().$[0].value; + NS.selectNode['Categories'].getInputElement().getChildren().$[0].selected = true; + NS.buildOptionSynonyms(synKey); + + showCurrentTabs(); + NS.div_overlay.setDisable(); + count = 0; + }, + finish: function(response) { + delete response.id; + + hideCurrentTabs(); + showCurrentFinishChecking(); + NS.div_overlay.setDisable(); + }, + settext: function(response) { + delete response.id; + + var command = NS.dialog.getParentEditor().getCommand( 'checkspell' ), + editor = NS.dialog.getParentEditor(); + + //set local storage for synchronization before scayt reinit + if (editor.scayt && editor.wsc.isSsrvSame) { + var wscUDN = editor.wsc.udn; + + if (!wscUDN) { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', ''); + } else { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', wscUDN); + } + } + + + try { + editor.focus(); + } catch(e) {} + + editor.setData(response.text, function(){ + NS.dataTemp = ''; + editor.unlockSelection(); + editor.fire('saveSnapshot'); + NS.dialog.hide(); + }); + + }, + ReplaceText: function(response) { + + delete response.id; + NS.div_overlay.setEnable(); + + NS.dataTemp = response.text; + NS.selectingLang = response.currentLang; + + if (response.cmd = 'spell' && response.len !== '0' && response.len) { + NS.div_overlay.setDisable(); + } else { + window.setTimeout(function() { + try { + NS.div_overlay.setDisable(); + } catch(e) {} + }, 500); + } + + SetLocalizationButton(NS.LocalizationButton); + SetLocalizationLabel(NS.LocalizationLabel); + + }, + options_checkbox_send: function(response) { + delete response.id; + + var obj = { + 'osp': appTools.cookie.get('osp'), + 'udn': appTools.cookie.get('udn'), + 'cust_dic_ids': NS.cust_dic_ids + }; + + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + appTools.postMessage.send({ + 'message': obj, + 'target': NS.targetFromFrame[frameId], + 'id': 'options_outer__page' + }); + }, + + getOptions: function(response) { + var udn = response.DefOptions.udn; + NS.LocalizationComing = response.DefOptions.localizationButtonsAndText; + NS.show_grammar = response.show_grammar; + NS.langList = response.lang; + NS.bnr = response.bannerId; + NS.sessionid = response.sessionid; + if (response.bannerId) { + NS.setHeightBannerFrame(); + setBannerInPlace(response.banner); + } else { + NS.setHeightFrame(); + } + + if (udn == 'undefined') { + if (NS.userDictionaryName) { + udn = NS.userDictionaryName; + + var obj = { + 'osp': appTools.cookie.get('osp'), + 'udn': NS.userDictionaryName, + 'cust_dic_ids': NS.cust_dic_ids, + 'id': 'options_dic_send', + 'udnCmd': 'create' + }; + + appTools.postMessage.send({ + 'message': obj, + 'target': NS.targetFromFrame[frameId] + }); + + } else{ + udn = ''; + } + } + + appTools.cookie.set('osp', response.DefOptions.osp); + appTools.cookie.set('udn', udn); + appTools.cookie.set('cust_dic_ids', response.DefOptions.cust_dic_ids); + + appTools.postMessage.send({ + 'id': 'giveOptions' + }); + }, + + options_dic_send: function(response) { + + var obj = { + 'osp': appTools.cookie.get('osp'), + 'udn': appTools.cookie.get('udn'), + 'cust_dic_ids': NS.cust_dic_ids, + 'id': 'options_dic_send', + 'udnCmd': appTools.cookie.get('udnCmd') + }; + + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + appTools.postMessage.send({ + 'message': obj, + 'target': NS.targetFromFrame[frameId] + }); + }, + data: function(response) { + delete response.id; + }, + + giveOptions: function() { + + }, + + setOptionsConfirmF:function() { + OptionsConfirm(false); + }, + + setOptionsConfirmT:function() { + OptionsConfirm(true); + }, + + clickBusy: function() { + NS.div_overlay.setEnable(); + }, + + suggestAllCame: function() { + NS.div_overlay.setDisable(); + NS.div_overlay_no_check.setDisable(); + }, + + TextCorrect: function() { + langConstructor(NS.langList); + } + + }; + + var handlerIncomingData = function(event) { + event = event || window.event; + var response = window.JSON.parse(event.data); + + if(response && response.id) { + handlerId[response.id](response); + } + }; + + var handlerButtonOptions = function(event) { + event = event || window.event; + + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + appTools.postMessage.send({ + 'message': { + 'cmd': 'Options' + }, + 'target': NS.targetFromFrame[frameId], + 'id': 'cmd' + }); + + }; + + var sendData = function(frameTarget, cmd, sendText, reset_suggest) { + cmd = cmd || CKEDITOR.config.wsc_cmd; + reset_suggest = reset_suggest || false; + sendText = sendText || NS.dataTemp; + + appTools.postMessage.send({ + 'message': { + 'customerId': NS.wsc_customerId, + 'text': sendText, + 'txt_ctrl': NS.TextAreaNumber, + 'cmd': cmd, + 'cust_dic_ids': NS.cust_dic_ids, + 'udn': NS.userDictionaryName, + 'slang': NS.selectingLang, + 'reset_suggest': reset_suggest, + 'sessionid': NS.sessionid + }, + 'target': frameTarget, + 'id': 'data_outer__page' + }); + + NS.div_overlay.setEnable(); + }; + + var tabView = { + "superset": { + onShow: function() { + showThesaurusTab(); + showGrammTab(); + showSpellTab(); + }, + allowedTabCommands: { + "spell": true, + "grammar": true, + "thes": true + }, + defaultTabCommand: "spell" + }, + "usual": { + onShow: function() { + hideThesaurusTab(); + hideGrammTab(); + showSpellTab(); + }, + allowedTabCommands: { + "spell": true + }, + defaultTabCommand: "spell" + }, + "rtl": { + onShow: function() { + hideThesaurusTab(); + hideGrammTab(); + showSpellTab(); + }, + allowedTabCommands: { + "spell": true + }, + defaultTabCommand: "spell" + }, + "spellgrammar": { + onShow: function() { + hideThesaurusTab(); + showGrammTab(); + showSpellTab(); + }, + allowedTabCommands: { + "spell": true, + "grammar": true + }, + defaultTabCommand: "spell" + }, + "spellthes": { + onShow: function() { + showThesaurusTab(); + hideGrammTab(); + showSpellTab(); + }, + allowedTabCommands: { + "spell": true, + "thes": true + }, + defaultTabCommand: "spell" + } + }; + + var showFirstTab = function(scope) { + var cmdManger = function(cmdView) { + var obj = {}; + var _getCmd = function(cmd) { + for (var tabId in cmdView) { + obj[cmdView[tabId]] = tabId; + } + return obj[cmd]; + }; + return { + getCmdByTab: _getCmd + }; + }; + + var cmdM = new cmdManger(NS.cmd), + tabToOpen = cmdM.getCmdByTab(CKEDITOR.config.wsc_cmd); + + scope.selectPage(tabToOpen); + NS.sendData(scope); + }; + + var showThesaurusTab = function() { + NS.dialog.showPage('Thesaurus'); + }; + + var hideThesaurusTab = function() { + NS.dialog.hidePage('Thesaurus'); + }; + + var showGrammTab = function() { + NS.dialog.showPage('GrammTab'); + }; + + var hideGrammTab = function() { + NS.dialog.hidePage('GrammTab'); + }; + + var showSpellTab = function() { + NS.dialog.showPage('SpellTab'); + }; + + var hideSpellTab = function() { + NS.dialog.hidePage('SpellTab'); + }; + + var showCurrentTabs = function() { + var target = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'bottomGroup').getElement(); + + target.removeStyle('display'); + target.removeStyle('position'); + target.removeStyle('left'); + + target.show(); + }; + + var hideCurrentTabs = function() { + var target = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'bottomGroup').getElement(), + activeElement = document.activeElement, + focusableElements; + + target.setStyles({ + display: 'block', + position: 'absolute', + left: '-9999px' + }); + + setTimeout(function() { + target.removeStyle('display'); + target.removeStyle('position'); + target.removeStyle('left'); + + target.hide(); + + NS.dialog._.editor.focusManager.currentActive.focusNext(); + + focusableElements = appTools.misc.findFocusable(NS.dialog.parts.contents); + if(!appTools.misc.hasClass(activeElement, 'cke_dialog_tab') && !appTools.misc.hasClass(activeElement, 'cke_dialog_contents_body') && appTools.misc.isVisible(activeElement)) { + try { + activeElement.focus(); + } catch(e) {} + } else { + for(var i = 0, tmpCkEl; i < focusableElements.count(); i++) { + tmpCkEl = focusableElements.getItem(i); + if(appTools.misc.isVisible(tmpCkEl.$)) { + try { + tmpCkEl.$.focus(); + } catch(e) {} + + break; + } + } + } + }, 0); + }; + + var showCurrentFinishChecking = function() { + var target = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'BlockFinishChecking').getElement(); + + target.removeStyle('display'); + target.removeStyle('position'); + target.removeStyle('left'); + + target.show(); + }; + + var hideCurrentFinishChecking = function() { + var target = NS.dialog.getContentElement(NS.dialog._.currentTabId, 'BlockFinishChecking').getElement(), + activeElement = document.activeElement, + focusableElements; + + target.setStyles({ + display: 'block', + position: 'absolute', + left: '-9999px' + }); + + setTimeout(function() { + target.removeStyle('display'); + target.removeStyle('position'); + target.removeStyle('left'); + + target.hide(); + + NS.dialog._.editor.focusManager.currentActive.focusNext(); + + focusableElements = appTools.misc.findFocusable(NS.dialog.parts.contents); + if(!appTools.misc.hasClass(activeElement, 'cke_dialog_tab') && !appTools.misc.hasClass(activeElement, 'cke_dialog_contents_body') && appTools.misc.isVisible(activeElement)) { + try { + activeElement.focus(); + } catch(e) {} + } else { + for(var i = 0, tmpCkEl; i < focusableElements.count(); i++) { + tmpCkEl = focusableElements.getItem(i); + if(appTools.misc.isVisible(tmpCkEl.$)) { + try { + tmpCkEl.$.focus(); + } catch(e) {} + + break; + } + } + } + }, 0); + }; + + + +function __constructLangSelectbox(languageGroup) { + if( !languageGroup ) { throw "Languages-by-groups list are required for construct selectbox"; } + + var that = this, + o_arr = [], + priorLang ="en_US", + priorLangTitle = "", + currLang = NS.selectingLang; + + for ( var group in languageGroup){ + for ( var langCode in languageGroup[group]){ + var langName = languageGroup[group][langCode]; + if ( langName == priorLang ) { + priorLangTitle = langName; + } else { + o_arr.push( langName ); + } + } + } + + o_arr.sort(); + if(priorLangTitle) { + o_arr.unshift( priorLangTitle ); + } + + var searchGroup = function ( code ){ + for ( var group in languageGroup){ + for ( var langCode in languageGroup[group]){ + if ( langCode.toUpperCase() === code.toUpperCase() ) { + return group; + } + } + } + return ""; + }; + + var _setLangList = function() { + var langList = {}, + langArray = []; + for (var group in languageGroup) { + for ( var langCode in languageGroup[group]){ + langList[languageGroup[group][langCode]] = langCode; + } + } + return langList; + }; + + var _return = { + getCurrentLangGroup: function(code) { + return searchGroup(code); + }, + setLangList: _setLangList() + }; + + return _return; +} + +CKEDITOR.dialog.add('checkspell', function(editor) { + var handlerButtons = function(event) { + event = event || window.event; + + // because in chrome and safary document.activeElement returns tag. We need to signal that clicked element is active + this.getElement().focus(); + + NS.div_overlay.setEnable(); + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId, + new_word = NS.textNode[currentTabId].getValue(), + cmd = this.getElement().getAttribute("title-cmd"); + + appTools.postMessage.send({ + 'message': { + 'cmd': cmd, + 'tabId': currentTabId, + 'new_word': new_word + }, + 'target': NS.targetFromFrame[frameId], + 'id': 'cmd_outer__page' + }); + + if (cmd == 'ChangeTo' || cmd == 'ChangeAll') { + editor.fire('saveSnapshot'); + } + + if (cmd == 'FinishChecking') { + editor.config.wsc_onFinish.call(CKEDITOR.document.getWindow().getFrame()); + } + + }, + constraints = { + minWidth: 560, + minHeight: 444 + }; + + function initView(dialog) { + var newViewSettings = { + left: parseInt(editor.config.wsc_left, 10), + top: parseInt(editor.config.wsc_top, 10), + width: parseInt(editor.config.wsc_width, 10), + height: parseInt(editor.config.wsc_height, 10) + }, + viewSize = CKEDITOR.document.getWindow().getViewPaneSize(), + currentPosition = dialog.getPosition(), + currentSize = dialog.getSize(), + savePosition = 0; + + if(!dialog._.resized) { + var wrapperHeight = currentSize.height - dialog.parts.contents.getSize('height', !(CKEDITOR.env.gecko || CKEDITOR.env.opera || CKEDITOR.env.ie && CKEDITOR.env.quirks)), + wrapperWidth = currentSize.width - dialog.parts.contents.getSize('width', 1); + + if(newViewSettings.width < constraints.minWidth || isNaN(newViewSettings.width)) { + newViewSettings.width = constraints.minWidth; + } + if(newViewSettings.width > viewSize.width - wrapperWidth) { + newViewSettings.width = viewSize.width - wrapperWidth; + } + + if(newViewSettings.height < constraints.minHeight || isNaN(newViewSettings.height)) { + newViewSettings.height = constraints.minHeight; + } + if(newViewSettings.height > viewSize.height - wrapperHeight) { + newViewSettings.height = viewSize.height - wrapperHeight; + } + + currentSize.width = newViewSettings.width + wrapperWidth; + currentSize.height = newViewSettings.height + wrapperHeight; + + dialog._.fromResizeEvent = false; + dialog.resize(newViewSettings.width, newViewSettings.height); + setTimeout(function() { + dialog._.fromResizeEvent = false; + CKEDITOR.dialog.fire('resize', { + dialog: dialog, + width: newViewSettings.width, + height: newViewSettings.height + }, editor); + }, 300); + } + + if(!dialog._.moved) { + savePosition = isNaN(newViewSettings.left) && isNaN(newViewSettings.top) ? 0 : 1; + + if(isNaN(newViewSettings.left)) { + newViewSettings.left = (viewSize.width - currentSize.width) / 2; + } + if(newViewSettings.left < 0) { + newViewSettings.left = 0; + } + if(newViewSettings.left > viewSize.width - currentSize.width) { + newViewSettings.left = viewSize.width - currentSize.width; + } + + if(isNaN(newViewSettings.top)) { + newViewSettings.top = (viewSize.height - currentSize.height) / 2; + } + if(newViewSettings.top < 0) { + newViewSettings.top = 0; + } + if(newViewSettings.top > viewSize.height - currentSize.height) { + newViewSettings.top = viewSize.height - currentSize.height; + } + + dialog.move(newViewSettings.left, newViewSettings.top, savePosition); + } + } + + function createWscObjectForUdAndUdnSyncrhonization() { + editor.wsc = {}; + + //DataStorage object for cookies and localStorage manipulation + (function( object ) { + 'use strict'; + + var DataTypeManager = { + separator: '<$>', + getDataType: function(value) { + var type; + + if(typeof value === 'undefined') { + type = 'undefined'; + } else if(value === null) { + type = 'null'; + } else { + type = Object.prototype.toString.call(value).slice(8, -1); + } + return type; + }, + convertDataToString: function(value) { + var str, + type = this.getDataType(value).toLowerCase(); + + str = type + this.separator + value; + return str; + }, + // get value type and convert value due to type, since all stored values are String + restoreDataFromString: function(str) { + var value = str, + type, + separatorStartIndex; + + // @TODO: remove this line much later. Support of old format for options + str = this.backCompatibility(str); + + if(typeof str === 'string') { + separatorStartIndex = str.indexOf(this.separator); + type = str.substring(0, separatorStartIndex); + value = str.substring(separatorStartIndex + this.separator.length); + + switch(type) { + case 'boolean': + value = value === 'true'; + break; + case 'number': + value = parseFloat(value); + break; + // we assume that we will store string values only, due to performance + case 'array': + value = value === '' ? [] : value.split(','); + break; + case 'null': + value = null; + break; + case 'undefined': + value = undefined; + break; + } + } + return value; + }, + // old data type support + // here we trying to convert data from old format into new + // @TODO: remove this function much later + backCompatibility: function(str) { + var convertedStr = str, + value, + separatorStartIndex; + + if(typeof str === 'string') { + separatorStartIndex = str.indexOf(this.separator); + // is it old format? + if(separatorStartIndex < 0) { + // try to get number from string + value = parseFloat(str); + // is it not a number? + if(isNaN(value)) { + // yes, this is not a number. Lets check is this is an array "[comma,separated,values]" + if((str[0] === '[') && (str[str.length - 1] === ']')) { + // this is an array. Lets remove brackets symbols and extract the words + str = str.replace('[', ''); + str = str.replace(']', ''); + if(str === '') { + value = []; + } else { + value = str.split(','); + } + // value = str === '[]' ? [] : str.split(','); + } else if(str === 'true' || str === 'false') { + // this is boolean value + value = str === 'true'; + } else { + // this is string + value = str; + } + } + + convertedStr = this.convertDataToString(value); + } + } + + return convertedStr; + } + }; + + var LocalStorage = { + + get: function( key ) { + var value = DataTypeManager.restoreDataFromString( window.localStorage.getItem(key) ); + return value; + }, + + set: function( key, value ) { + var _value = DataTypeManager.convertDataToString( value ); + window.localStorage.setItem( key, _value ); + }, + + del: function( key ) { + window.localStorage.removeItem( key ); + }, + + clear: function() { + window.localStorage.clear(); + } + }; + + var CookiesStorage = { + + expiration: (function() { + return 60 * 60 * 24 * 366; + }()), + + get: function(key) { + var value = DataTypeManager.restoreDataFromString(this.getCookie(key)); + return value; + }, + + set: function(key, value) { + var _value = DataTypeManager.convertDataToString(value); + this.setCookie(key, _value, {expires: this.expiration}); + }, + + del: function(key) { + this.deleteCookie(key); + }, + + getCookie: function(name) { + var matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)")); + return matches ? decodeURIComponent(matches[1]) : undefined; + }, + + setCookie: function(name, value, props) { + props = props || {}; + var exp = props.expires; + + if (typeof exp === "number" && exp) { + var d = new Date(); + + d.setTime(d.getTime() + exp * 1000); + exp = props.expires = d; + } + + if(exp && exp.toUTCString) { + props.expires = exp.toUTCString(); + } + + value = encodeURIComponent(value); + var updatedCookie = name + "=" + value; + + for(var propName in props) { + var propValue = props[propName]; + + updatedCookie += "; " + propName; + + if(propValue !== true) { + updatedCookie += "=" + propValue; + } + } + + document.cookie = updatedCookie; + }, + + deleteCookie: function(name) { + this.setCookie(name, null, {expires: -1}); + }, + + // delete all cookies + clear: function() { + var cookies = document.cookie.split(";"); + + for (var i = 0; i < cookies.length; i++) { + var cookie = cookies[i]; + var eqPos = cookie.indexOf("="); + var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; + + this.deleteCookie(name); + } + } + }; + + var strategy = window.localStorage ? LocalStorage : CookiesStorage; + + var DataStorage = { + // Get data within storage for key + getData: function( key ) { + return strategy.get( key ); + }, + + // Set data within storage + setData: function( key, value ) { + strategy.set( key, value ); + }, + + // Delete data within storage for key + deleteData: function( key ) { + strategy.del( key ); + }, + + // Clear storage + clear: function() { + strategy.clear(); + } + }; + + // Static Module of Storage Data in the localStorage. + object.DataStorage = DataStorage; + }( editor.wsc )); + + editor.wsc.operationWithUDN = function(command, UDName) { + var obj = { + 'udn': UDName, + 'id': 'operationWithUDN', + 'udnCmd': command + }; + var currentTabId = NS.dialog._.currentTabId, + frameId = NS.iframeNumber + '_' + currentTabId; + + appTools.postMessage.send({ + 'message': obj, + 'target': NS.targetFromFrame[frameId] + }); + }; + editor.wsc.getLocalStorageUDN = function() { + var udn = editor.wsc.DataStorage.getData('scayt_user_dictionary_name'); + + if (!udn) { + return; + } + + return udn; + }; + editor.wsc.getLocalStorageUD = function() { + var ud = editor.wsc.DataStorage.getData('scayt_user_dictionary'); + + if (!ud) { + return; + } + + return ud; + }; + editor.wsc.addWords = function(words, callback) { + var url = editor.config.wsc.DefaultParams.serviceHost + editor.config.wsc.DefaultParams.ssrvHost + + '?cmd=dictionary&format=json&' + + 'customerid=1%3AncttD3-fIoSf2-huzwE4-Y5muI2-mD0Tt-kG9Wz-UEDFC-tYu243-1Uq474-d9Z2l3&' + + 'action=addword&word='+ words + '&callback=toString&synchronization=true', + script = document.createElement('script'); + + script['type'] = 'text/javascript'; + script['src'] = url; + document.getElementsByTagName("head")[0].appendChild(script); + + //chrome, firefox, safari + script.onload = callback; + + //IE + script.onreadystatechange = function() { + if (this.readyState === 'loaded') { + callback(); + } + }; + }; + editor.wsc.cgiOrigin = function() { + var wscServiceHostString = editor.config.wsc.DefaultParams.serviceHost, + wscServiceHostArray = wscServiceHostString.split('/'), + cgiOrigin = wscServiceHostArray[0] + '//' + wscServiceHostArray[2]; + + return cgiOrigin; + }; + editor.wsc.isSsrvSame = false; + } + + return { + title: editor.config.wsc_dialogTitle || editor.lang.wsc.title, + minWidth: constraints.minWidth, + minHeight: constraints.minHeight, + buttons: [CKEDITOR.dialog.cancelButton], + onLoad: function() { + NS.dialog = this; + hideThesaurusTab(); + hideGrammTab(); + showSpellTab(); + + //creating wsc object for UD synchronization between wsc and scayt + if (editor.plugins.scayt) { + createWscObjectForUdAndUdnSyncrhonization(); + } + }, + onShow: function() { + NS.dialog = this; + + editor.lockSelection(editor.getSelection()); + + NS.TextAreaNumber = 'cke_textarea_' + editor.name; + appTools.postMessage.init(handlerIncomingData); + NS.dataTemp = editor.getData(); + //NS.div_overlay.setDisable(); + NS.OverlayPlace = NS.dialog.parts.tabs.getParent().$; + if(CKEDITOR && CKEDITOR.config){ + NS.wsc_customerId = editor.config.wsc_customerId; + NS.cust_dic_ids = editor.config.wsc_customDictionaryIds; + NS.userDictionaryName = editor.config.wsc_userDictionaryName; + NS.defaultLanguage = CKEDITOR.config.defaultLanguage; + var protocol = document.location.protocol == "file:" ? "http:" : document.location.protocol; + var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol + '//loader.webspellchecker.net/sproxy_fck/sproxy.php?plugin=fck2&customerid=' + NS.wsc_customerId + '&cmd=script&doc=wsc&schema=22'); + } else { + NS.dialog.hide(); + return; + } + + initView(this); + + CKEDITOR.scriptLoader.load(wscCoreUrl, function(success) { + if(CKEDITOR.config && CKEDITOR.config.wsc && CKEDITOR.config.wsc.DefaultParams){ + NS.serverLocationHash = CKEDITOR.config.wsc.DefaultParams.serviceHost; + NS.logotype = CKEDITOR.config.wsc.DefaultParams.logoPath; + NS.loadIcon = CKEDITOR.config.wsc.DefaultParams.iconPath; + NS.loadIconEmptyEditor = CKEDITOR.config.wsc.DefaultParams.iconPathEmptyEditor; + NS.LangComparer = new CKEDITOR.config.wsc.DefaultParams._SP_FCK_LangCompare(); + }else{ + NS.serverLocationHash = DefaultParams.serviceHost; + NS.logotype = DefaultParams.logoPath; + NS.loadIcon = DefaultParams.iconPath; + NS.loadIconEmptyEditor = DefaultParams.iconPathEmptyEditor; + NS.LangComparer = new _SP_FCK_LangCompare(); + } + + NS.pluginPath = CKEDITOR.getUrl(editor.plugins.wsc.path); + NS.iframeNumber = NS.TextAreaNumber; + NS.templatePath = NS.pluginPath + 'dialogs/tmp.html'; + NS.LangComparer.setDefaulLangCode( NS.defaultLanguage ); + NS.currentLang = editor.config.wsc_lang || NS.LangComparer.getSPLangCode( editor.langCode ) || 'en_US'; + NS.selectingLang = NS.currentLang; + NS.div_overlay = new overlayBlock({ + opacity: "1", + background: "#fff url(" + NS.loadIcon + ") no-repeat 50% 50%", + target: NS.OverlayPlace + + }); + + var number_ck = NS.dialog.parts.tabs.getId(), + dialogPartsTab = CKEDITOR.document.getById(number_ck); + + dialogPartsTab.setStyle('width', '97%'); + if (!dialogPartsTab.getElementsByTag('DIV').count()){ + dialogPartsTab.append(NS.buildSelectLang(NS.dialog.getParentEditor().name)); + } + + NS.div_overlay_no_check = new overlayBlock({ + opacity: "1", + id: 'no_check_over', + background: "#fff url(" + NS.loadIconEmptyEditor + ") no-repeat 50% 50%", + target: NS.OverlayPlace + }); + + if (success) { + showFirstTab(NS.dialog); + NS.dialog.setupContent(NS.dialog); + } + + if (editor.plugins.scayt) { + //is ssrv.cgi path for WSC and scayt same + editor.wsc.isSsrvSame = (function() { + var wscSsrvWholePath, + wscServiceHost = CKEDITOR.config.wsc.DefaultParams.serviceHost.replace('lf/22/js/../../../', '').split('//')[1], + wscSsrvHost = CKEDITOR.config.wsc.DefaultParams.ssrvHost, + scaytSsrvWholePath, + scaytSsrvProtocol, + scaytSsrvHost, + scaytSsrvPath, + + scaytSrcUrl = editor.config.scayt_srcUrl, + scaytSsrvSrcUrlSsrvProtocol, + scaytSsrvSrcUrlSsrvHost, + scaytSsrvSrcUrlSsrvPath, + + scaytBasePath, + scaytBasePathSsrvProtocol, + scaytBasePathSsrvHost, + scaytBasePathSsrvPath; + + if (window.SCAYT && window.SCAYT.CKSCAYT) { + scaytBasePath = SCAYT.CKSCAYT.prototype.basePath; + scaytBasePathSsrvProtocol = scaytBasePath.split('//')[0]; + scaytBasePathSsrvHost = scaytBasePath.split('//')[1].split('/')[0]; + scaytBasePathSsrvPath = scaytBasePath.split(scaytBasePathSsrvHost + '/')[1].replace('/lf/scayt3/ckscayt/', '') + '/script/ssrv.cgi'; + } + + if (scaytSrcUrl && !scaytBasePath && !editor.config.scayt_servicePath) { + scaytSsrvSrcUrlSsrvProtocol = scaytSrcUrl.split('//')[0]; + scaytSsrvSrcUrlSsrvHost = scaytSrcUrl.split('//')[1].split('/')[0]; + scaytSsrvSrcUrlSsrvPath = scaytSrcUrl.split(scaytSsrvSrcUrlSsrvHost + '/')[1].replace('/lf/scayt3/ckscayt/ckscayt.js', '') + '/script/ssrv.cgi'; + } + + scaytSsrvProtocol = editor.config.scayt_serviceProtocol || scaytBasePathSsrvProtocol || scaytSsrvSrcUrlSsrvProtocol; + scaytSsrvHost = editor.config.scayt_serviceHost || scaytBasePathSsrvHost || scaytSsrvSrcUrlSsrvHost; + scaytSsrvPath = editor.config.scayt_servicePath || scaytBasePathSsrvPath || scaytSsrvSrcUrlSsrvPath; + + wscSsrvWholePath = '//' + wscServiceHost + wscSsrvHost; + scaytSsrvWholePath = '//' + scaytSsrvHost + '/' + scaytSsrvPath; + + return wscSsrvWholePath === scaytSsrvWholePath; + })(); + } + + //wsc on scayt UserDictionary and UserDictionaryName synchronization + if (window.SCAYT && editor.wsc && editor.wsc.isSsrvSame) { + var cgiOrigin = editor.wsc.cgiOrigin(); + editor.wsc.syncIsDone = false; + + var getUdOrUdn = function (e) { + if (e.origin === cgiOrigin) { + var data = JSON.parse(e.data); + + if (data.ud && data.ud !== 'undefined') { + editor.wsc.ud = data.ud; + } else if (data.ud === 'undefined') { + editor.wsc.ud = undefined; + } + + if (data.udn && data.udn !== 'undefined') { + editor.wsc.udn = data.udn; + } else if (data.udn === 'undefined') { + editor.wsc.udn = undefined; + } + + if (!editor.wsc.syncIsDone) { + udSynchronization(editor.wsc.ud); + editor.wsc.syncIsDone = true; + } + } + }; + + var udSynchronization = function(cookieUd) { + var localStorageUdArray = editor.wsc.getLocalStorageUD(), + newUd; + + if (localStorageUdArray instanceof Array) { + newUd = localStorageUdArray.toString(); + } + + if (newUd !== undefined && newUd !== '') { + setTimeout(function() { + editor.wsc.addWords(newUd, function() { + showFirstTab(NS.dialog); + NS.dialog.setupContent(NS.dialog); + }); + }, 400); + } + }; + + if (window.addEventListener){ + addEventListener("message", getUdOrUdn, false); + } else { + window.attachEvent("onmessage", getUdOrUdn); + } + + //wsc on scayt UserDictionaryName synchronization + setTimeout( + function() { + var udn = editor.wsc.getLocalStorageUDN(); + + if (udn !== undefined) { + editor.wsc.operationWithUDN('restore', udn); + } + + }, + 500); //need to wait spell.js file to load + + } + }); + + }, + onHide: function() { + var scaytPlugin = CKEDITOR.plugins.scayt, + scaytInstance = editor.scayt; + + editor.unlockSelection(); + + if(scaytPlugin && scaytInstance && scaytPlugin.state[editor.name]) { + scaytInstance.setMarkupPaused(false); + } + + NS.dataTemp = ''; + NS.sessionid = ''; + appTools.postMessage.unbindHandler(handlerIncomingData); + + //scayt on wsc UserDictionary and UserDictionaryName synchronization + if (editor.plugins.scayt && editor.wsc && editor.wsc.isSsrvSame) { + var wscUDN = editor.wsc.udn, + wscUD = editor.wsc.ud, + wscUDarray, + i; + + if (editor.scayt) { // if SCAYT active + if (!wscUDN) { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', ''); + editor.scayt.removeUserDictionary(); + } else { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', wscUDN); + editor.scayt.restoreUserDictionary(wscUDN); + } + + if (wscUD) { + setTimeout(function() { + wscUDarray = wscUD.split(','); + for (i = 0; i < wscUDarray.length; i += 1) { + editor.scayt.addWordToUserDictionary(wscUDarray[i]); + } + }, 200); //wait for 'removeUserDictionary' command response + } + + if (!wscUD) { + editor.wsc.DataStorage.setData('scayt_user_dictionary', []); + } + + } else { //if SCAYT not active + + if (!wscUDN) { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', ''); + } else { + editor.wsc.DataStorage.setData('scayt_user_dictionary_name', wscUDN); + } + + if (wscUD) { + wscUDarray = wscUD.split(','); + editor.wsc.DataStorage.setData('scayt_user_dictionary', wscUDarray); + } + } + } + }, + contents: [ + { + id: 'SpellTab', + label: 'SpellChecker', + accessKey: 'S', + elements: [ + { + type: 'html', + id: 'banner', + label: 'banner', + style: '', //TODO + html: '
' + }, + { + type: 'html', + id: 'Content', + label: 'spellContent', + html: '', + setup: function(dialog) { + var tabId = NS.iframeNumber + '_' + dialog._.currentTabId; + var iframe = document.getElementById(tabId); + NS.targetFromFrame[tabId] = iframe.contentWindow; + } + }, + { + type: 'hbox', + id: 'bottomGroup', + style: 'width:560px; margin: 0 auto;', + widths: ['50%', '50%'], + children: [ + { + type: 'hbox', + id: 'leftCol', + align: 'left', + width: '50%', + children: [ + { + type: 'vbox', + id: 'rightCol1', + widths: ['50%', '50%'], + children: [ + { + type: 'text', + id: 'ChangeTo_label', + label: NS.LocalizationLabel['ChangeTo_label'].text + ':', + labelLayout: 'horizontal', + labelStyle: 'font: 12px/25px arial, sans-serif;', + width: '140px', + 'default': '', + onShow: function() { + NS.textNode['SpellTab'] = this; + NS.LocalizationLabel['ChangeTo_label'].instance = this; + }, + onHide: function() { + this.reset(); + } + }, + { + type: 'hbox', + id: 'rightCol', + align: 'right', + width: '30%', + children: [ + { + type: 'vbox', + id: 'rightCol_col__left', + children: [ + { + type: 'text', + id: 'labelSuggestions', + label: NS.LocalizationLabel['Suggestions'].text + ':', + onShow: function() { + NS.LocalizationLabel['Suggestions'].instance = this; + this.getInputElement().setStyles({ + display: 'none' + }); + } + }, + { + type: 'html', + id: 'logo', + html: 'WebSpellChecker.net', + setup: function(dialog) { + this.getElement().$.src = NS.logotype; + this.getElement().getParent().setStyles({ + "text-align": "left" + }); + } + } + ] + }, + { + type: 'select', + id: 'list_of_suggestions', + labelStyle: 'font: 12px/25px arial, sans-serif;', + size: '6', + inputStyle: 'width: 140px; height: auto;', + items: [['loading...']], + onShow: function() { + selectNode = this; + }, + onChange: function() { + NS.textNode['SpellTab'].setValue(this.getValue()); + } + } + ] + } + ] + } + ] + }, + { + type: 'hbox', + id: 'rightCol', + align: 'right', + width: '50%', + children: [ + { + type: 'vbox', + id: 'rightCol_col__left', + widths: ['50%', '50%', '50%', '50%'], + children: [ + { + type: 'button', + id: 'ChangeTo_button', + label: NS.LocalizationButton['ChangeTo_button'].text, + title: 'Change to', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'ChangeTo'); + NS.LocalizationButton['ChangeTo_button'].instance = this; + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'ChangeAll', + label: NS.LocalizationButton['ChangeAll'].text, + title: 'Change All', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + NS.LocalizationButton['ChangeAll'].instance = this; + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'AddWord', + label: NS.LocalizationButton['AddWord'].text, + title: 'Add word', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + NS.LocalizationButton['AddWord'].instance = this; + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'FinishChecking_button', + label: NS.LocalizationButton['FinishChecking_button'].text, + title: 'Finish Checking', + style: 'width: 100%;margin-top: 9px;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + NS.LocalizationButton['FinishChecking_button'].instance = this; + }, + onClick: handlerButtons + } + ] + }, + { + type: 'vbox', + id: 'rightCol_col__right', + widths: ['50%', '50%', '50%'], + children: [ + { + type: 'button', + id: 'IgnoreWord', + label: NS.LocalizationButton['IgnoreWord'].text, + title: 'Ignore word', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + NS.LocalizationButton['IgnoreWord'].instance = this; + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'IgnoreAllWords', + label: NS.LocalizationButton['IgnoreAllWords'].text, + title: 'Ignore all words', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + NS.LocalizationButton['IgnoreAllWords'].instance = this; + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'Options', + label: NS.LocalizationButton['Options'].text, + title: 'Option', + style: 'width: 100%;', + onLoad: function() { + NS.LocalizationButton['Options'].instance = this; + if (document.location.protocol == "file:") { + this.disable(); + } + }, + onClick: function() { + // because in chrome and safary document.activeElement returns tag. We need to signal that clicked element is active + this.getElement().focus(); + + if (document.location.protocol == "file:") { + alert('WSC: Options functionality is disabled when runing from file system'); + } else { + activeElement = document.activeElement; + editor.openDialog('options'); + } + } + } + ] + } + ] + } + ] + }, + { + type: 'hbox', + id: 'BlockFinishChecking', + style: 'width:560px; margin: 0 auto;', + widths: ['70%', '30%'], + onShow: function() { + this.getElement().setStyles({ + display: 'block', + position: 'absolute', + left: '-9999px' + }); + }, + onHide: showCurrentTabs, + children: [ + { + type: 'hbox', + id: 'leftCol', + align: 'left', + width: '70%', + children: [ + { + type: 'vbox', + id: 'rightCol1', + setup: function() { + this.getChild()[0].getElement().$.src = NS.logotype; + this.getChild()[0].getElement().getParent().setStyles({ + "text-align": "center" + }); + }, + children: [ + { + type: 'html', + id: 'logo', + html: 'WebSpellChecker.net' + } + ] + } + ] + }, + { + type: 'hbox', + id: 'rightCol', + align: 'right', + width: '30%', + children: [ + { + type: 'vbox', + id: 'rightCol_col__left', + children: [ + { + type: 'button', + id: 'Option_button', + label: NS.LocalizationButton['Options'].text, + title: 'Option', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + if (document.location.protocol == "file:") { + this.disable(); + } + }, + onClick: function() { + // because in chrome and safary document.activeElement returns tag. We need to signal that clicked element is active + this.getElement().focus(); + + if (document.location.protocol == "file:") { + alert('WSC: Options functionality is disabled when runing from file system'); + } else { + activeElement = document.activeElement; + editor.openDialog('options'); + } + } + }, + { + type: 'button', + id: 'FinishChecking_button_block', + label: NS.LocalizationButton['FinishChecking_button_block'].text, + title: 'Finish Checking', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + }, + onClick: handlerButtons + } + ] + } + ] + } + ] + } + ] + }, + { + id: 'GrammTab', + label: 'Grammar', + accessKey: 'G', + elements: [ + { + type: 'html', + id: 'banner', + label: 'banner', + style: '', //TODO + html: '
' + }, + { + type: 'html', + id: 'Content', + label: 'GrammarContent', + html: '', + setup: function() { + var tabId = NS.iframeNumber + '_' + NS.dialog._.currentTabId; + var iframe = document.getElementById(tabId); + NS.targetFromFrame[tabId] = iframe.contentWindow; + } + }, + { + type: 'vbox', + id: 'bottomGroup', + style: 'width:560px; margin: 0 auto;', + children: [ + { + type: 'hbox', + id: 'leftCol', + widths: ['66%', '34%'], + children: [ + { + type: 'vbox', + children: [ + { + type: 'text', + id: 'text', + label: "Change to:", + labelLayout: 'horizontal', + labelStyle: 'font: 12px/25px arial, sans-serif;', + inputStyle: 'float: right; width: 200px;', + 'default': '', + onShow: function() { + NS.textNode['GrammTab'] = this; + }, + onHide: function() { + this.reset(); + } + }, + { + type: 'html', + id: 'html_text', + html: "
", + onShow: function(e) { + NS.textNodeInfo['GrammTab'] = this; + } + }, + { + type: 'html', + id: 'radio', + html: "", + onShow: function() { + NS.grammerSuggest = this; + } + } + ] + }, + { + type: 'vbox', + children: [ + { + type: 'button', + id: 'ChangeTo_button', + label: 'Change to', + title: 'Change to', + style: 'width: 133px; float: right;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'ChangeTo'); + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'IgnoreWord', + label: 'Ignore word', + title: 'Ignore word', + style: 'width: 133px; float: right;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'IgnoreAllWords', + label: 'Ignore Problem', + title: 'Ignore Problem', + style: 'width: 133px; float: right;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onClick: handlerButtons + }, + { + type: 'button', + id: 'FinishChecking_button', + label: NS.LocalizationButton['FinishChecking_button'].text, + title: 'Finish Checking', + style: 'width: 133px; float: right; margin-top: 9px;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + }, + onClick: handlerButtons + } + ] + } + ] + } + ] + }, + { + type: 'hbox', + id: 'BlockFinishChecking', + style: 'width:560px; margin: 0 auto;', + widths: ['70%', '30%'], + onShow: function() { + this.getElement().setStyles({ + display: 'block', + position: 'absolute', + left: '-9999px' + }); + }, + onHide: showCurrentTabs, + children: [ + { + type: 'hbox', + id: 'leftCol', + align: 'left', + width: '70%', + children: [ + { + type: 'vbox', + id: 'rightCol1', + children: [ + { + type: 'html', + id: 'logo', + html: 'WebSpellChecker.net', + setup: function() { + this.getElement().$.src = NS.logotype; + this.getElement().getParent().setStyles({ + "text-align": "center" + }); + } + } + ] + } + ] + }, + { + type: 'hbox', + id: 'rightCol', + align: 'right', + width: '30%', + children: [ + { + type: 'vbox', + id: 'rightCol_col__left', + children: [ + { + type: 'button', + id: 'FinishChecking_button_block', + label: NS.LocalizationButton['FinishChecking_button_block'].text, + title: 'Finish Checking', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + }, + onClick: handlerButtons + } + ] + } + ] + } + ] + } + ] + }, + { + id: 'Thesaurus', + label: 'Thesaurus', + accessKey: 'T', + elements: [ + { + type: 'html', + id: 'banner', + label: 'banner', + style: '', //TODO + html: '
' + }, + { + type: 'html', + id: 'Content', + label: 'spellContent', + html: '', + setup: function() { + var tabId = NS.iframeNumber + '_' + NS.dialog._.currentTabId; + var iframe = document.getElementById(tabId); + NS.targetFromFrame[tabId] = iframe.contentWindow; + } + }, + { + type: 'vbox', + id: 'bottomGroup', + style: 'width:560px; margin: -10px auto; overflow: hidden;', + children: [ + { + type: 'hbox', + widths: ['75%', '25%'], + children: [ + { + type: 'vbox', + children: [ + { + type: 'hbox', + widths: ['65%', '35%'], + children: [ + { + type: 'text', + id: 'ChangeTo_label', + label: NS.LocalizationLabel['ChangeTo_label'].text + ':', + labelLayout: 'horizontal', + inputStyle: 'width: 160px;', + labelStyle: 'font: 12px/25px arial, sans-serif;', + 'default': '', + onShow: function(e) { + NS.textNode['Thesaurus'] = this; + NS.LocalizationLabel['ChangeTo_label'].instance = this; + }, + onHide: function() { + this.reset(); + } + }, + { + type: 'button', + id: 'ChangeTo_button', + label: NS.LocalizationButton['ChangeTo_button'].text, + title: 'Change to', + style: 'width: 121px; margin-top: 1px;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'ChangeTo'); + NS.LocalizationButton['ChangeTo_button'].instance = this; + }, + onClick: handlerButtons + } + ] + }, + { + type: 'hbox', + children: [ + { + type: 'select', + id: 'Categories', + label: NS.LocalizationLabel['Categories'].text + ':', + labelStyle: 'font: 12px/25px arial, sans-serif;', + size: '5', + inputStyle: 'width: 180px; height: auto;', + items: [], + onShow: function() { + NS.selectNode['Categories'] = this; + NS.LocalizationLabel['Categories'].instance = this; + }, + onChange: function() { + NS.buildOptionSynonyms(this.getValue()); + } + }, + { + type: 'select', + id: 'Synonyms', + label: NS.LocalizationLabel['Synonyms'].text + ':', + labelStyle: 'font: 12px/25px arial, sans-serif;', + size: '5', + inputStyle: 'width: 180px; height: auto;', + items: [], + onShow: function() { + NS.selectNode['Synonyms'] = this; + NS.textNode['Thesaurus'].setValue(this.getValue()); + NS.LocalizationLabel['Synonyms'].instance = this; + }, + onChange: function(e) { + NS.textNode['Thesaurus'].setValue(this.getValue()); + } + } + ] + } + ] + }, + { + type: 'vbox', + width: '120px', + style: "margin-top:46px;", + children: [ + { + type: 'html', + id: 'logotype', + label: 'WebSpellChecker.net', + html: 'WebSpellChecker.net', + setup: function() { + this.getElement().$.src = NS.logotype; + this.getElement().getParent().setStyles({ + "text-align": "center" + }); + } + }, + { + type: 'button', + id: 'FinishChecking_button', + label: NS.LocalizationButton['FinishChecking_button'].text, + title: 'Finish Checking', + style: 'width: 100%; float: right; margin-top: 9px;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + }, + onClick: handlerButtons + } + ] + } + ] + } + ] + }, + { + type: 'hbox', + id: 'BlockFinishChecking', + style: 'width:560px; margin: 0 auto;', + widths: ['70%', '30%'], + onShow: function() { + this.getElement().setStyles({ + display: 'block', + position: 'absolute', + left: '-9999px' + }); + }, + children: [ + { + type: 'hbox', + id: 'leftCol', + align: 'left', + width: '70%', + children: [ + { + type: 'vbox', + id: 'rightCol1', + children: [ + { + type: 'html', + id: 'logo', + html: 'WebSpellChecker.net', + setup: function() { + this.getElement().$.src = NS.logotype; + this.getElement().getParent().setStyles({ + "text-align": "center" + }); + } + } + ] + } + ] + }, + { + type: 'hbox', + id: 'rightCol', + align: 'right', + width: '30%', + children: [ + { + type: 'vbox', + id: 'rightCol_col__left', + children: [ + { + type: 'button', + id: 'FinishChecking_button_block', + label: NS.LocalizationButton['FinishChecking_button_block'].text, + title: 'Finish Checking', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", 'FinishChecking'); + }, + onClick: handlerButtons + } + ] + } + ] + } + ] + } + ] + } + ] + }; +}); + +var activeElement = null; + +// Options dialog +CKEDITOR.dialog.add('options', function(editor) { + var dialog = null; + var linkOnCheckbox = {}; + var checkboxState = {}; + var ospString = null; + var OptionsTextError = null; + var cmd = null; + + var set_osp = []; + var dictionaryState = { + 'udn': appTools.cookie.get('udn'), + 'osp': appTools.cookie.get('osp') + }; + + var setHandlerOptions = function() { + var osp = appTools.cookie.get('osp'), + strToArr = osp.split(""); + + checkboxState['IgnoreAllCapsWords'] = strToArr[0]; + checkboxState['IgnoreWordsNumbers'] = strToArr[1]; + checkboxState['IgnoreMixedCaseWords'] = strToArr[2]; + checkboxState['IgnoreDomainNames'] = strToArr[3]; + }; + + var sendDicOptions = function(event) { + event = event || window.event; + cmd = this.getElement().getAttribute("title-cmd"); + var osp = []; + + osp[0] = checkboxState['IgnoreAllCapsWords']; + osp[1] = checkboxState['IgnoreWordsNumbers']; + osp[2] = checkboxState['IgnoreMixedCaseWords']; + osp[3] = checkboxState['IgnoreDomainNames']; + + osp = osp.toString().replace(/,/g, ""); + + + appTools.cookie.set('osp', osp); + appTools.cookie.set('udnCmd', cmd ? cmd : 'ignore'); + if (cmd == "delete") { + + appTools.postMessage.send({ + 'id': 'options_dic_send' + }); + } else { + var udn = ''; + if(nameNode.getValue() !== ''){ + udn = nameNode.getValue(); + } + appTools.cookie.set('udn', udn); + appTools.postMessage.send({ + 'id': 'options_dic_send' + }); + } + + }; + + + var sendAllOptions = function() { + var osp = []; + + osp[0] = checkboxState['IgnoreAllCapsWords']; + osp[1] = checkboxState['IgnoreWordsNumbers']; + osp[2] = checkboxState['IgnoreMixedCaseWords']; + osp[3] = checkboxState['IgnoreDomainNames']; + + osp = osp.toString().replace(/,/g, ""); + + appTools.cookie.set('osp', osp); + + appTools.postMessage.send({ + 'id': 'options_checkbox_send' + }); + + + }; + + var cameOptions = function() { + OptionsTextError.getElement().setHtml(NS.LocalizationComing['error']); + OptionsTextError.getElement().show(); + }; + + return { + title: NS.LocalizationComing['Options'], + minWidth: 430, + minHeight: 130, + resizable: CKEDITOR.DIALOG_RESIZE_NONE, + contents: [ + { + id: 'OptionsTab', + label: 'Options', + accessKey: 'O', + elements: [ + { + type: 'hbox', + id: 'options_error', + children: [ + { + type: 'html', + style: "display: block;text-align: center;white-space: normal!important; font-size: 12px;color:red", + html: '
', + onShow: function() { + OptionsTextError = this; + } + } + ] + }, + { + type: 'vbox', + id: 'Options_content', + children: [ + { + type: 'hbox', + id: 'Options_manager', + widths: ['52%', '48%'], + children: [ + { + type: 'fieldset', + label: 'Spell Checking Options', + style: 'border: none;margin-top: 13px;padding: 10px 0 10px 10px', + onShow: function() { + this.getInputElement().$.children[0].innerHTML = NS.LocalizationComing['SpellCheckingOptions']; + }, + children: [ + { + type: 'vbox', + id: 'Options_checkbox', + children: [ + { + type: 'checkbox', + id: 'IgnoreAllCapsWords', + label: 'Ignore All-Caps Words', + labelStyle: 'margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;', + style: "float:left; min-height: 16px;", + 'default': '', + onClick: function() { + checkboxState[this.id] = (!this.getValue()) ? 0 : 1; + } + }, + { + type: 'checkbox', + id: 'IgnoreWordsNumbers', + label: 'Ignore Words with Numbers', + labelStyle: 'margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;', + style: "float:left; min-height: 16px;", + 'default': '', + onClick: function() { + checkboxState[this.id] = (!this.getValue()) ? 0 : 1; + } + }, + { + type: 'checkbox', + id: 'IgnoreMixedCaseWords', + label: 'Ignore Mixed-Case Words', + labelStyle: 'margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;', + style: "float:left; min-height: 16px;", + 'default': '', + onClick: function() { + checkboxState[this.id] = (!this.getValue()) ? 0 : 1; + } + }, + { + type: 'checkbox', + id: 'IgnoreDomainNames', + label: 'Ignore Domain Names', + labelStyle: 'margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;', + style: "float:left; min-height: 16px;", + 'default': '', + onClick: function() { + checkboxState[this.id] = (!this.getValue()) ? 0 : 1; + } + } + ] + } + ] + }, + { + type: 'vbox', + id: 'Options_DictionaryName', + children: [ + { + type: 'text', + id: 'DictionaryName', + style: 'margin-bottom: 10px', + label: 'Dictionary Name:', + labelLayout: 'vertical', + labelStyle: 'font: 12px/25px arial, sans-serif;', + 'default': '', + onLoad: function() { + nameNode = this; + var udn = NS.userDictionaryName ? NS.userDictionaryName : appTools.cookie.get('udn') && undefined ? ' ' : this.getValue(); + this.setValue(udn); + }, + onShow: function() { + nameNode = this; + var udn = !appTools.cookie.get('udn') ? this.getValue() : appTools.cookie.get('udn'); + this.setValue(udn); + this.setLabel(NS.LocalizationComing['DictionaryName']); + }, + onHide: function() { + this.reset(); + } + }, + { + type: 'hbox', + id: 'Options_buttons', + children: [ + { + type: 'vbox', + id: 'Options_leftCol_col', + widths: ['50%', '50%'], + children: [ + { + type: 'button', + id: 'create', + label: 'Create', + title: 'Create', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onShow: function() { + var el = this.getElement().getFirst() || this.getElement(); + + el.setText(NS.LocalizationComing['Create']); + }, + onClick: sendDicOptions + }, + { + type: 'button', + id: 'restore', + label: 'Restore', + title: 'Restore', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onShow: function() { + var el = this.getElement().getFirst() || this.getElement(); + + el.setText(NS.LocalizationComing['Restore']); + }, + onClick: sendDicOptions + } + ] + }, + { + type: 'vbox', + id: 'Options_rightCol_col', + widths: ['50%', '50%'], + children: [ + { + type: 'button', + id: 'rename', + label: 'Rename', + title: 'Rename', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onShow: function() { + var el = this.getElement().getFirst() || this.getElement(); + + el.setText(NS.LocalizationComing['Rename']); + }, + onClick: sendDicOptions + }, + { + type: 'button', + id: 'delete', + label: 'Remove', + title: 'Remove', + style: 'width: 100%;', + onLoad: function() { + this.getElement().setAttribute("title-cmd", this.id); + }, + onShow: function() { + var el = this.getElement().getFirst() || this.getElement(); + + el.setText(NS.LocalizationComing['Remove']); + }, + onClick: sendDicOptions + } + ] + } + ] + } + ] + } + ] + }, + { + type: 'hbox', + id: 'Options_text', + children: [ + { + type: 'html', + style: "text-align: justify;margin-top: 15px;white-space: normal!important; font-size: 12px;color:#777;", + html: "
" + NS.LocalizationComing['OptionsTextIntro'] + "
", + onShow: function() { + this.getElement().setText(NS.LocalizationComing['OptionsTextIntro']); + } + } + ] + } + ] + } + ] +} +], + buttons: [CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton], + onOk: function() { + sendAllOptions(); + OptionsTextError.getElement().hide(); + OptionsTextError.getElement().setHtml(' '); + }, + onLoad: function() { + dialog = this; + // appTools.postMessage.init(cameOptions); + + linkOnCheckbox['IgnoreAllCapsWords'] = dialog.getContentElement('OptionsTab', 'IgnoreAllCapsWords'); + linkOnCheckbox['IgnoreWordsNumbers'] = dialog.getContentElement('OptionsTab', 'IgnoreWordsNumbers'); + linkOnCheckbox['IgnoreMixedCaseWords'] = dialog.getContentElement('OptionsTab', 'IgnoreMixedCaseWords'); + linkOnCheckbox['IgnoreDomainNames'] = dialog.getContentElement('OptionsTab', 'IgnoreDomainNames'); + + }, + onShow: function() { + appTools.postMessage.init(cameOptions); + setHandlerOptions(); + + (!parseInt(checkboxState['IgnoreAllCapsWords'], 10)) ? linkOnCheckbox['IgnoreAllCapsWords'].setValue('', false) : linkOnCheckbox['IgnoreAllCapsWords'].setValue('checked', false); + (!parseInt(checkboxState['IgnoreWordsNumbers'], 10)) ? linkOnCheckbox['IgnoreWordsNumbers'].setValue('', false) : linkOnCheckbox['IgnoreWordsNumbers'].setValue('checked', false); + (!parseInt(checkboxState['IgnoreMixedCaseWords'], 10)) ? linkOnCheckbox['IgnoreMixedCaseWords'].setValue('', false) : linkOnCheckbox['IgnoreMixedCaseWords'].setValue('checked', false); + (!parseInt(checkboxState['IgnoreDomainNames'], 10)) ? linkOnCheckbox['IgnoreDomainNames'].setValue('', false) : linkOnCheckbox['IgnoreDomainNames'].setValue('checked', false); + + checkboxState['IgnoreAllCapsWords'] = (!linkOnCheckbox['IgnoreAllCapsWords'].getValue()) ? 0 : 1; + checkboxState['IgnoreWordsNumbers'] = (!linkOnCheckbox['IgnoreWordsNumbers'].getValue()) ? 0 : 1; + checkboxState['IgnoreMixedCaseWords'] = (!linkOnCheckbox['IgnoreMixedCaseWords'].getValue()) ? 0 : 1; + checkboxState['IgnoreDomainNames'] = (!linkOnCheckbox['IgnoreDomainNames'].getValue()) ? 0 : 1; + + linkOnCheckbox['IgnoreAllCapsWords'].getElement().$.lastChild.innerHTML = NS.LocalizationComing['IgnoreAllCapsWords']; + linkOnCheckbox['IgnoreWordsNumbers'].getElement().$.lastChild.innerHTML = NS.LocalizationComing['IgnoreWordsWithNumbers']; + linkOnCheckbox['IgnoreMixedCaseWords'].getElement().$.lastChild.innerHTML = NS.LocalizationComing['IgnoreMixedCaseWords']; + linkOnCheckbox['IgnoreDomainNames'].getElement().$.lastChild.innerHTML = NS.LocalizationComing['IgnoreDomainNames']; + }, + onHide: function() { + appTools.postMessage.unbindHandler(cameOptions); + if(activeElement) { + try { + activeElement.focus(); + } catch(e) {} + } + } + }; +}); + +// Expand the spell-check frame when dialog resized. (#6829) +CKEDITOR.dialog.on( 'resize', function( evt ) { + var data = evt.data, + dialog = data.dialog, + currentTabId = dialog._.currentTabId, + tabID = NS.iframeNumber + '_' + currentTabId, + iframe = CKEDITOR.document.getById(tabID); + + if ( dialog._.name == 'checkspell' ) { + if (NS.bnr) { + iframe && iframe.setSize( 'height', data.height - '310' ); + } else { + iframe && iframe.setSize( 'height', data.height - '220' ); + } + + // add flag that indicate whether dialog has been resized by user + if(dialog._.fromResizeEvent && !dialog._.resized) { + dialog._.resized = true; + } + dialog._.fromResizeEvent = true; + } +}); + +CKEDITOR.on('dialogDefinition', function(dialogDefinitionEvent) { + + if(dialogDefinitionEvent.data.name === 'checkspell') { + var dialogDefinition = dialogDefinitionEvent.data.definition; + + NS.onLoadOverlay = new overlayBlock({ + opacity: "1", + background: "#fff", + target: dialogDefinition.dialog.parts.tabs.getParent().$ + }); + + NS.onLoadOverlay.setEnable(); + + dialogDefinition.dialog.on('cancel', function(cancelEvent) { + dialogDefinition.dialog.getParentEditor().config.wsc_onClose.call(this.document.getWindow().getFrame()); + NS.div_overlay.setDisable(); + NS.onLoadOverlay.setDisable(); + return false; + }, this, null, -1); + } +}); +})(); diff --git a/sources/plugins/wsc/dialogs/wsc_ie.js b/sources/plugins/wsc/dialogs/wsc_ie.js new file mode 100644 index 00000000..f47e507f --- /dev/null +++ b/sources/plugins/wsc/dialogs/wsc_ie.js @@ -0,0 +1,176 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.html or http://ckeditor.com/license + */ + +CKEDITOR.dialog.add( 'checkspell', function( editor ) { + var number = CKEDITOR.tools.getNextNumber(), + iframeId = 'cke_frame_' + number, + textareaId = 'cke_data_' + number, + errorBoxId = 'cke_error_' + number, + interval, + protocol = document.location.protocol || 'http:', + errorMsg = editor.lang.wsc.notAvailable; + + var pasteArea = + '
' + + ''; + + var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol + '//loader.webspellchecker.net/sproxy_fck/sproxy.php' + '?plugin=fck2' + + '&customerid=' + editor.config.wsc_customerId + + '&cmd=script&doc=wsc&schema=22' + ); + + if ( editor.config.wsc_customLoaderScript ) { + errorMsg += '

' + + editor.lang.wsc.errorLoading.replace( /%s/g, editor.config.wsc_customLoaderScript ) + '

'; + } + + function burnSpelling( dialog, errorMsg ) { + var i = 0; + return function() { + if ( typeof( window.doSpell ) == 'function' ) { + //Call from window.setInteval expected at once. + if ( typeof( interval ) != 'undefined' ) + window.clearInterval( interval ); + + initAndSpell( dialog ); + } else if ( i++ == 180 ) // Timeout: 180 * 250ms = 45s. + window._cancelOnError( errorMsg ); + }; + } + + window._cancelOnError = function( m ) { + if ( typeof( window.WSC_Error ) == 'undefined' ) { + CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'none' ); + var errorBox = CKEDITOR.document.getById( errorBoxId ); + errorBox.setStyle( 'display', 'block' ); + errorBox.setHtml( m || editor.lang.wsc.notAvailable ); + } + }; + + function initAndSpell( dialog ) { + var LangComparer = new window._SP_FCK_LangCompare(), + // Language abbr standarts comparer. + pluginPath = CKEDITOR.getUrl( editor.plugins.wsc.path + 'dialogs/' ), + // Service paths corecting/preparing. + framesetPath = pluginPath + 'tmpFrameset.html'; + + // global var is used in FCK specific core + // change on equal var used in fckplugin.js + window.gFCKPluginName = 'wsc'; + + LangComparer.setDefaulLangCode( editor.config.defaultLanguage ); + + window.doSpell({ + ctrl: textareaId, + + lang: editor.config.wsc_lang || LangComparer.getSPLangCode( editor.langCode ), + intLang: editor.config.wsc_uiLang || LangComparer.getSPLangCode( editor.langCode ), + winType: iframeId, // If not defined app will run on winpopup. + + // Callback binding section. + onCancel: function() { + dialog.hide(); + }, + onFinish: function( dT ) { + editor.focus(); + dialog.getParentEditor().setData( dT.value ); + dialog.hide(); + }, + + // Some manipulations with client static pages. + staticFrame: framesetPath, + framesetPath: framesetPath, + iframePath: pluginPath + 'ciframe.html', + + // Styles defining. + schemaURI: pluginPath + 'wsc.css', + + userDictionaryName: editor.config.wsc_userDictionaryName, + customDictionaryName: editor.config.wsc_customDictionaryIds && editor.config.wsc_customDictionaryIds.split( "," ), + domainName: editor.config.wsc_domainName + + }); + + // Hide user message console (if application was loaded more then after timeout). + CKEDITOR.document.getById( errorBoxId ).setStyle( 'display', 'none' ); + CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'block' ); + } + + return { + title: editor.config.wsc_dialogTitle || editor.lang.wsc.title, + minWidth: 485, + minHeight: 380, + buttons: [ CKEDITOR.dialog.cancelButton ], + onShow: function() { + var contentArea = this.getContentElement( 'general', 'content' ).getElement(); + contentArea.setHtml( pasteArea ); + contentArea.getChild( 2 ).setStyle( 'height', this._.contentSize.height + 'px' ); + + if ( typeof( window.doSpell ) != 'function' ) { + // Load script. + CKEDITOR.document.getHead().append( CKEDITOR.document.createElement( 'script', { + attributes: { + type: 'text/javascript', + src: wscCoreUrl + } + })); + } + + var sData = editor.getData(); // Get the data to be checked. + + CKEDITOR.document.getById( textareaId ).setValue( sData ); + + interval = window.setInterval( burnSpelling( this, errorMsg ), 250 ); + }, + onHide: function() { + window.ooo = undefined; + window.int_framsetLoaded = undefined; + window.framesetLoaded = undefined; + window.is_window_opened = false; + }, + contents: [ + { + id: 'general', + label: editor.config.wsc_dialogTitle || editor.lang.wsc.title, + padding: 0, + elements: [ + { + type: 'html', + id: 'content', + html: '' + } + ] + } + ] + }; +}); + +// Expand the spell-check frame when dialog resized. (#6829) +CKEDITOR.dialog.on( 'resize', function( evt ) { + var data = evt.data, + dialog = data.dialog; + + if ( dialog._.name == 'checkspell' ) { + var content = dialog.getContentElement( 'general', 'content' ).getElement(), + iframe = content && content.getChild( 2 ); + + iframe && iframe.setSize( 'height', data.height ); + iframe && iframe.setSize( 'width', data.width ); + } +}); diff --git a/sources/plugins/wsc/icons/hidpi/spellchecker.png b/sources/plugins/wsc/icons/hidpi/spellchecker.png new file mode 100644 index 0000000000000000000000000000000000000000..58a9f4c1328de5c5c9d05e61878e9860cd8a6399 GIT binary patch literal 2816 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 S?mQX*0000t}QT literal 0 HcmV?d00001 diff --git a/sources/plugins/wsc/icons/spellchecker.png b/sources/plugins/wsc/icons/spellchecker.png new file mode 100644 index 0000000000000000000000000000000000000000..2b50c5c65d0365b0ef543389111c23ff5b539eb8 GIT binary patch literal 836 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_D|iQ>>?pV~EA+)XAs)Zaavy?KdvlV7zf@4wIntl6N~iJ5*O{ZFSo4 zDtp1USF^uxKH%N;I<;|uM&ey@g)GDAtlTXI3LBE0-&|%boU*NZV%k5;^pbP`=T4kF zS-8j0qL0}jP=vvvui3C|la6Lr(^>z zpZqLy{xe5YL)2QgdC%|My?gNLRnb*k3mR6vihu5P`tu)q+rH$Utzv?Kp=U!)#RXX- zqN9_8X3v`SOWQB>vx?`u=!l32h76`PYu50n?a5%$(bwl^m^N+NF{uLy1_wkZo;tvD zKqC0AvJ&&W>JyBgY@R=SsJMI2o)iliJ83PYo@rejVf-qdMmL+-1E#5dt(t4Vv+>%a zU3$wjxE@)^u^%twahR4Gy7TPKn>P)kju+0DH!m$Mt*vS=-}UR)7i(P&58WTOdgZE1 zSzFaKQ&ye&`Sa&_PcCzF^MbOnwpD3?BE8?0x7g)!YK7v?hA2zUt&+_iNw( zG#6FjiPPsjuZ@k3{o1VX;_chFf0@dD{jFQJYRA=@>Ur%QIZ@g6lF31WmE0ZzEceC4 z#cS_>-wg!&8~Oj%#jm!17*=t~#5MHhjTSxc%8CfigmszF!iaHxJHzuB$lLFB^RXvDF!10 zLt|Y7b6rET5JN*NBSR}=Lu~^iD+7ZS=e}-6(U6;;l9^VCTf@!CzWhK9k{}y`^V3So o6N^$A%FE03GV`*FlM@S4_413-XTP(N0xDwgboFyt=akR{05%h1k^lez literal 0 HcmV?d00001 diff --git a/sources/plugins/wsc/lang/af.js b/sources/plugins/wsc/lang/af.js new file mode 100644 index 00000000..9caf6f7e --- /dev/null +++ b/sources/plugins/wsc/lang/af.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'af', { + btnIgnore: 'Ignoreer', + btnIgnoreAll: 'Ignoreer alles', + btnReplace: 'Vervang', + btnReplaceAll: 'vervang alles', + btnUndo: 'Ontdoen', + changeTo: 'Verander na', + errorLoading: 'Fout by inlaai van diens: %s.', + ieSpellDownload: 'Speltoetser is nie geïnstalleer nie. Wil u dit nou aflaai?', + manyChanges: 'Klaar met speltoets: %1 woorde verander', + noChanges: 'Klaar met speltoets: Geen woorde verander nie', + noMispell: 'Klaar met speltoets: Geen foute nie', + noSuggestions: '- Geen voorstel -', + notAvailable: 'Jammer, hierdie diens is nie nou beskikbaar nie.', + notInDic: 'Nie in woordeboek nie', + oneChange: 'Klaar met speltoets: Een woord verander', + progress: 'Spelling word getoets...', + title: 'Speltoetser', + toolbar: 'Speltoets' +}); diff --git a/sources/plugins/wsc/lang/ar.js b/sources/plugins/wsc/lang/ar.js new file mode 100644 index 00000000..f152dc15 --- /dev/null +++ b/sources/plugins/wsc/lang/ar.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'ar', { + btnIgnore: 'تجاهل', + btnIgnoreAll: 'تجاهل الكل', + btnReplace: 'تغيير', + btnReplaceAll: 'تغيير الكل', + btnUndo: 'تراجع', + changeTo: 'التغيير إلى', + errorLoading: 'خطأ في تحميل تطبيق خدمة الاستضافة: %s.', + ieSpellDownload: 'المدقق الإملائي (الإنجليزي) غير مثبّت. هل تود تحميله الآن؟', + manyChanges: 'تم إكمال التدقيق الإملائي: تم تغيير %1 من كلمات', + noChanges: 'تم التدقيق الإملائي: لم يتم تغيير أي كلمة', + noMispell: 'تم التدقيق الإملائي: لم يتم العثور على أي أخطاء إملائية', + noSuggestions: '- لا توجد إقتراحات -', + notAvailable: 'عفواً، ولكن هذه الخدمة غير متاحة الان', + notInDic: 'ليست في القاموس', + oneChange: 'تم التدقيق الإملائي: تم تغيير كلمة واحدة فقط', + progress: 'جاري التدقيق الاملائى', + title: 'التدقيق الإملائي', + toolbar: 'تدقيق إملائي' +}); diff --git a/sources/plugins/wsc/lang/bg.js b/sources/plugins/wsc/lang/bg.js new file mode 100644 index 00000000..e814a9f2 --- /dev/null +++ b/sources/plugins/wsc/lang/bg.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'bg', { + btnIgnore: 'Игнорирай', + btnIgnoreAll: 'Игнорирай всичко', + btnReplace: 'Препокриване', + btnReplaceAll: 'Препокрий всичко', + btnUndo: 'Възтанови', + changeTo: 'Промени на', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Spell checker not installed. Do you want to download it now?', + manyChanges: 'Spell check complete: %1 words changed', + noChanges: 'Spell check complete: No words changed', + noMispell: 'Spell check complete: No misspellings found', + noSuggestions: '- Няма препоръчани -', + notAvailable: 'Съжаляваме, но услугата не е достъпна за момента', + notInDic: 'Не е в речника', + oneChange: 'Spell check complete: One word changed', + progress: 'Проверява се правописа...', + title: 'Проверка на правопис', + toolbar: 'Проверка на правопис' +}); diff --git a/sources/plugins/wsc/lang/bn.js b/sources/plugins/wsc/lang/bn.js new file mode 100644 index 00000000..03a38130 --- /dev/null +++ b/sources/plugins/wsc/lang/bn.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'bn', { + btnIgnore: 'ইগনোর কর', + btnIgnoreAll: 'সব ইগনোর কর', + btnReplace: 'বদলে দাও', + btnReplaceAll: 'সব বদলে দাও', + btnUndo: 'আন্ডু', + changeTo: 'এতে বদলাও', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'বানান পরীক্ষক ইনস্টল করা নেই। আপনি কি এখনই এটা ডাউনলোড করতে চান?', + manyChanges: 'বানান পরীক্ষা শেষ: %1 গুলো শব্দ বদলে গ্যাছে', + noChanges: 'বানান পরীক্ষা শেষ: কোন শব্দ পরিবর্তন করা হয়নি', + noMispell: 'বানান পরীক্ষা শেষ: কোন ভুল বানান পাওয়া যায়নি', + noSuggestions: '- কোন সাজেশন নেই -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'শব্দকোষে নেই', + oneChange: 'বানান পরীক্ষা শেষ: একটি মাত্র শব্দ পরিবর্তন করা হয়েছে', + progress: 'বানান পরীক্ষা চলছে...', + title: 'Spell Checker', + toolbar: 'বানান চেক' +}); diff --git a/sources/plugins/wsc/lang/bs.js b/sources/plugins/wsc/lang/bs.js new file mode 100644 index 00000000..b40859c8 --- /dev/null +++ b/sources/plugins/wsc/lang/bs.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'bs', { + btnIgnore: 'Ignore', + btnIgnoreAll: 'Ignore All', + btnReplace: 'Replace', + btnReplaceAll: 'Replace All', + btnUndo: 'Undo', + changeTo: 'Change to', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Spell checker not installed. Do you want to download it now?', + manyChanges: 'Spell check complete: %1 words changed', + noChanges: 'Spell check complete: No words changed', + noMispell: 'Spell check complete: No misspellings found', + noSuggestions: '- No suggestions -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Not in dictionary', + oneChange: 'Spell check complete: One word changed', + progress: 'Spell check in progress...', + title: 'Spell Checker', + toolbar: 'Check Spelling' +}); diff --git a/sources/plugins/wsc/lang/ca.js b/sources/plugins/wsc/lang/ca.js new file mode 100644 index 00000000..857cfaa0 --- /dev/null +++ b/sources/plugins/wsc/lang/ca.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'ca', { + btnIgnore: 'Ignora', + btnIgnoreAll: 'Ignora-les totes', + btnReplace: 'Canvia', + btnReplaceAll: 'Canvia-les totes', + btnUndo: 'Desfés', + changeTo: 'Reemplaça amb', + errorLoading: 'Error carregant el servidor: %s.', + ieSpellDownload: 'Verificació ortogràfica no instal·lada. Voleu descarregar-ho ara?', + manyChanges: 'Verificació ortogràfica: s\'han canviat %1 paraules', + noChanges: 'Verificació ortogràfica: no s\'ha canviat cap paraula', + noMispell: 'Verificació ortogràfica acabada: no hi ha cap paraula mal escrita', + noSuggestions: 'Cap suggeriment', + notAvailable: 'El servei no es troba disponible ara.', + notInDic: 'No és al diccionari', + oneChange: 'Verificació ortogràfica: s\'ha canviat una paraula', + progress: 'Verificació ortogràfica en curs...', + title: 'Comprova l\'ortografia', + toolbar: 'Revisa l\'ortografia' +}); diff --git a/sources/plugins/wsc/lang/cs.js b/sources/plugins/wsc/lang/cs.js new file mode 100644 index 00000000..fcda7f01 --- /dev/null +++ b/sources/plugins/wsc/lang/cs.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'cs', { + btnIgnore: 'Přeskočit', + btnIgnoreAll: 'Přeskakovat vše', + btnReplace: 'Zaměnit', + btnReplaceAll: 'Zaměňovat vše', + btnUndo: 'Zpět', + changeTo: 'Změnit na', + errorLoading: 'Chyba nahrávání služby aplikace z: %s.', + ieSpellDownload: 'Kontrola pravopisu není nainstalována. Chcete ji nyní stáhnout?', + manyChanges: 'Kontrola pravopisu dokončena: %1 slov změněno', + noChanges: 'Kontrola pravopisu dokončena: Beze změn', + noMispell: 'Kontrola pravopisu dokončena: Žádné pravopisné chyby nenalezeny', + noSuggestions: '- žádné návrhy -', + notAvailable: 'Omlouváme se, ale služba nyní není dostupná.', + notInDic: 'Není ve slovníku', + oneChange: 'Kontrola pravopisu dokončena: Jedno slovo změněno', + progress: 'Probíhá kontrola pravopisu...', + title: 'Kontrola pravopisu', + toolbar: 'Zkontrolovat pravopis' +}); diff --git a/sources/plugins/wsc/lang/cy.js b/sources/plugins/wsc/lang/cy.js new file mode 100644 index 00000000..308de25c --- /dev/null +++ b/sources/plugins/wsc/lang/cy.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'cy', { + btnIgnore: 'Anwybyddu Un', + btnIgnoreAll: 'Anwybyddu Pob', + btnReplace: 'Amnewid Un', + btnReplaceAll: 'Amnewid Pob', + btnUndo: 'Dadwneud', + changeTo: 'Newid i', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Gwirydd sillafu heb ei arsefydlu. A ydych am ei lawrlwytho nawr?', + manyChanges: 'Gwirio sillafu wedi gorffen: Newidiwyd %1 gair', + noChanges: 'Gwirio sillafu wedi gorffen: Dim newidiadau', + noMispell: 'Gwirio sillafu wedi gorffen: Dim camsillaf.', + noSuggestions: '- Dim awgrymiadau -', + notAvailable: 'Nid yw\'r gwasanaeth hwn ar gael yn bresennol.', + notInDic: 'Nid i\'w gael yn y geiriadur', + oneChange: 'Gwirio sillafu wedi gorffen: Newidiwyd 1 gair', + progress: 'Gwirio sillafu yn ar y gweill...', + title: 'Gwirio Sillafu', + toolbar: 'Gwirio Sillafu' +}); diff --git a/sources/plugins/wsc/lang/da.js b/sources/plugins/wsc/lang/da.js new file mode 100644 index 00000000..018984e6 --- /dev/null +++ b/sources/plugins/wsc/lang/da.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'da', { + btnIgnore: 'Ignorér', + btnIgnoreAll: 'Ignorér alle', + btnReplace: 'Erstat', + btnReplaceAll: 'Erstat alle', + btnUndo: 'Tilbage', + changeTo: 'Forslag', + errorLoading: 'Fejl ved indlæsning af host: %s.', + ieSpellDownload: 'Stavekontrol ikke installeret. Vil du installere den nu?', + manyChanges: 'Stavekontrol færdig: %1 ord ændret', + noChanges: 'Stavekontrol færdig: Ingen ord ændret', + noMispell: 'Stavekontrol færdig: Ingen fejl fundet', + noSuggestions: '(ingen forslag)', + notAvailable: 'Stavekontrol er desværre ikke tilgængelig.', + notInDic: 'Ikke i ordbogen', + oneChange: 'Stavekontrol færdig: Et ord ændret', + progress: 'Stavekontrollen arbejder...', + title: 'Stavekontrol', + toolbar: 'Stavekontrol' +}); diff --git a/sources/plugins/wsc/lang/de.js b/sources/plugins/wsc/lang/de.js new file mode 100644 index 00000000..d8e541c5 --- /dev/null +++ b/sources/plugins/wsc/lang/de.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'de', { + btnIgnore: 'Ignorieren', + btnIgnoreAll: 'Alle Ignorieren', + btnReplace: 'Ersetzen', + btnReplaceAll: 'Alle Ersetzen', + btnUndo: 'Rückgängig', + changeTo: 'Ändern in', + errorLoading: 'Fehler beim laden des Dienstanbieters: %s.', + ieSpellDownload: 'Rechtschreibprüfung nicht installiert. Möchten Sie sie jetzt herunterladen?', + manyChanges: 'Rechtschreibprüfung abgeschlossen - %1 Wörter geändert', + noChanges: 'Rechtschreibprüfung abgeschlossen - keine Worte geändert', + noMispell: 'Rechtschreibprüfung abgeschlossen - keine Fehler gefunden', + noSuggestions: ' - keine Vorschläge - ', + notAvailable: 'Entschuldigung, aber dieser Dienst steht im Moment nicht zur Verfügung.', + notInDic: 'Nicht im Wörterbuch', + oneChange: 'Rechtschreibprüfung abgeschlossen - ein Wort geändert', + progress: 'Rechtschreibprüfung läuft...', + title: 'Rechtschreibprüfung', + toolbar: 'Rechtschreibprüfung' +}); diff --git a/sources/plugins/wsc/lang/el.js b/sources/plugins/wsc/lang/el.js new file mode 100644 index 00000000..8bd15cb1 --- /dev/null +++ b/sources/plugins/wsc/lang/el.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'el', { + btnIgnore: 'Αγνόηση', + btnIgnoreAll: 'Αγνόηση όλων', + btnReplace: 'Αντικατάσταση', + btnReplaceAll: 'Αντικατάσταση όλων', + btnUndo: 'Αναίρεση', + changeTo: 'Αλλαγή σε', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Δεν υπάρχει εγκατεστημένος ορθογράφος. Θέλετε να τον κατεβάσετε τώρα;', + manyChanges: 'Ο ορθογραφικός έλεγχος ολοκληρώθηκε: Άλλαξαν %1 λέξεις', + noChanges: 'Ο ορθογραφικός έλεγχος ολοκληρώθηκε: Δεν άλλαξαν λέξεις', + noMispell: 'Ο ορθογραφικός έλεγχος ολοκληρώθηκε: Δεν βρέθηκαν λάθη', + noSuggestions: '- Δεν υπάρχουν προτάσεις -', + notAvailable: 'Η υπηρεσία δεν είναι διαθέσιμη αυτήν την στιγμή.', + notInDic: 'Δεν υπάρχει στο λεξικό', + oneChange: 'Ο ορθογραφικός έλεγχος ολοκληρώθηκε: Άλλαξε μια λέξη', + progress: 'Γίνεται ορθογραφικός έλεγχος...', + title: 'Ορθογραφικός Έλεγχος', + toolbar: 'Ορθογραφικός Έλεγχος' +}); diff --git a/sources/plugins/wsc/lang/en-au.js b/sources/plugins/wsc/lang/en-au.js new file mode 100644 index 00000000..e03a9848 --- /dev/null +++ b/sources/plugins/wsc/lang/en-au.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'en-au', { + btnIgnore: 'Ignore', + btnIgnoreAll: 'Ignore All', + btnReplace: 'Replace', + btnReplaceAll: 'Replace All', + btnUndo: 'Undo', + changeTo: 'Change to', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Spell checker not installed. Do you want to download it now?', + manyChanges: 'Spell check complete: %1 words changed', + noChanges: 'Spell check complete: No words changed', + noMispell: 'Spell check complete: No misspellings found', + noSuggestions: '- No suggestions -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Not in dictionary', + oneChange: 'Spell check complete: One word changed', + progress: 'Spell check in progress...', + title: 'Spell Checker', + toolbar: 'Check Spelling' +}); diff --git a/sources/plugins/wsc/lang/en-ca.js b/sources/plugins/wsc/lang/en-ca.js new file mode 100644 index 00000000..312d285c --- /dev/null +++ b/sources/plugins/wsc/lang/en-ca.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'en-ca', { + btnIgnore: 'Ignore', + btnIgnoreAll: 'Ignore All', + btnReplace: 'Replace', + btnReplaceAll: 'Replace All', + btnUndo: 'Undo', + changeTo: 'Change to', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Spell checker not installed. Do you want to download it now?', + manyChanges: 'Spell check complete: %1 words changed', + noChanges: 'Spell check complete: No words changed', + noMispell: 'Spell check complete: No misspellings found', + noSuggestions: '- No suggestions -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Not in dictionary', + oneChange: 'Spell check complete: One word changed', + progress: 'Spell check in progress...', + title: 'Spell Checker', + toolbar: 'Check Spelling' +}); diff --git a/sources/plugins/wsc/lang/en-gb.js b/sources/plugins/wsc/lang/en-gb.js new file mode 100644 index 00000000..0f33b994 --- /dev/null +++ b/sources/plugins/wsc/lang/en-gb.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'en-gb', { + btnIgnore: 'Ignore', + btnIgnoreAll: 'Ignore All', + btnReplace: 'Replace', + btnReplaceAll: 'Replace All', + btnUndo: 'Undo', + changeTo: 'Change to', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Spell checker not installed. Do you want to download it now?', + manyChanges: 'Spell check complete: %1 words changed', + noChanges: 'Spell check complete: No words changed', + noMispell: 'Spell check complete: No misspellings found', + noSuggestions: '- No suggestions -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Not in dictionary', + oneChange: 'Spell check complete: One word changed', + progress: 'Spell check in progress...', + title: 'Spell Checker', + toolbar: 'Check Spelling' +}); diff --git a/sources/plugins/wsc/lang/en.js b/sources/plugins/wsc/lang/en.js new file mode 100644 index 00000000..99b4bebf --- /dev/null +++ b/sources/plugins/wsc/lang/en.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'en', { + btnIgnore: 'Ignore', + btnIgnoreAll: 'Ignore All', + btnReplace: 'Replace', + btnReplaceAll: 'Replace All', + btnUndo: 'Undo', + changeTo: 'Change to', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Spell checker not installed. Do you want to download it now?', + manyChanges: 'Spell check complete: %1 words changed', + noChanges: 'Spell check complete: No words changed', + noMispell: 'Spell check complete: No misspellings found', + noSuggestions: '- No suggestions -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Not in dictionary', + oneChange: 'Spell check complete: One word changed', + progress: 'Spell check in progress...', + title: 'Spell Checker', + toolbar: 'Check Spelling' +}); diff --git a/sources/plugins/wsc/lang/eo.js b/sources/plugins/wsc/lang/eo.js new file mode 100644 index 00000000..399e59ac --- /dev/null +++ b/sources/plugins/wsc/lang/eo.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'eo', { + btnIgnore: 'Ignori', + btnIgnoreAll: 'Ignori Ĉion', + btnReplace: 'Anstataŭigi', + btnReplaceAll: 'Anstataŭigi Ĉion', + btnUndo: 'Malfari', + changeTo: 'Ŝanĝi al', + errorLoading: 'Eraro en la servoelŝuto el la gastiga komputiko: %s.', + ieSpellDownload: 'Ortografikontrolilo ne instalita. Ĉu vi volas elŝuti ĝin nun?', + manyChanges: 'Ortografikontrolado finita: %1 vortoj korektitaj', + noChanges: 'Ortografikontrolado finita: neniu vorto korektita', + noMispell: 'Ortografikontrolado finita: neniu eraro trovita', + noSuggestions: '- Neniu propono -', + notAvailable: 'Bedaŭrinde la servo ne funkcias nuntempe.', + notInDic: 'Ne trovita en la vortaro', + oneChange: 'Ortografikontrolado finita: unu vorto korektita', + progress: 'La ortografio estas kontrolata...', + title: 'Kontroli la ortografion', + toolbar: 'Kontroli la ortografion' +}); diff --git a/sources/plugins/wsc/lang/es.js b/sources/plugins/wsc/lang/es.js new file mode 100644 index 00000000..0284150d --- /dev/null +++ b/sources/plugins/wsc/lang/es.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'es', { + btnIgnore: 'Ignorar', + btnIgnoreAll: 'Ignorar Todo', + btnReplace: 'Reemplazar', + btnReplaceAll: 'Reemplazar Todo', + btnUndo: 'Deshacer', + changeTo: 'Cambiar a', + errorLoading: 'Error cargando la aplicación del servidor: %s.', + ieSpellDownload: 'Módulo de Control de Ortografía no instalado.\r\n¿Desea descargarlo ahora?', + manyChanges: 'Control finalizado: se ha cambiado %1 palabras', + noChanges: 'Control finalizado: no se ha cambiado ninguna palabra', + noMispell: 'Control finalizado: no se encontraron errores', + noSuggestions: '- No hay sugerencias -', + notAvailable: 'Lo sentimos pero el servicio no está disponible.', + notInDic: 'No se encuentra en el Diccionario', + oneChange: 'Control finalizado: se ha cambiado una palabra', + progress: 'Control de Ortografía en progreso...', + title: 'Comprobar ortografía', + toolbar: 'Ortografía' +}); diff --git a/sources/plugins/wsc/lang/et.js b/sources/plugins/wsc/lang/et.js new file mode 100644 index 00000000..7e198459 --- /dev/null +++ b/sources/plugins/wsc/lang/et.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'et', { + btnIgnore: 'Ignoreeri', + btnIgnoreAll: 'Ignoreeri kõiki', + btnReplace: 'Asenda', + btnReplaceAll: 'Asenda kõik', + btnUndo: 'Võta tagasi', + changeTo: 'Muuda', + errorLoading: 'Viga rakenduse teenushosti laadimisel: %s.', + ieSpellDownload: 'Õigekirja kontrollija ei ole paigaldatud. Soovid sa selle alla laadida?', + manyChanges: 'Õigekirja kontroll sooritatud: %1 sõna muudetud', + noChanges: 'Õigekirja kontroll sooritatud: ühtegi sõna ei muudetud', + noMispell: 'Õigekirja kontroll sooritatud: õigekirjuvigu ei leitud', + noSuggestions: '- Soovitused puuduvad -', + notAvailable: 'Kahjuks ei ole teenus praegu saadaval.', + notInDic: 'Puudub sõnastikust', + oneChange: 'Õigekirja kontroll sooritatud: üks sõna muudeti', + progress: 'Toimub õigekirja kontroll...', + title: 'Õigekirjakontroll', + toolbar: 'Õigekirjakontroll' +}); diff --git a/sources/plugins/wsc/lang/eu.js b/sources/plugins/wsc/lang/eu.js new file mode 100644 index 00000000..b079af03 --- /dev/null +++ b/sources/plugins/wsc/lang/eu.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'eu', { + btnIgnore: 'Ezikusi', + btnIgnoreAll: 'Denak Ezikusi', + btnReplace: 'Ordezkatu', + btnReplaceAll: 'Denak Ordezkatu', + btnUndo: 'Desegin', + changeTo: 'Honekin ordezkatu', + errorLoading: 'Errorea gertatu da aplikazioa zerbitzaritik kargatzean: %s.', + ieSpellDownload: 'Zuzentzaile ortografikoa ez dago instalatuta. Deskargatu nahi duzu?', + manyChanges: 'Zuzenketa ortografikoa bukatuta: %1 hitz aldatu dira', + noChanges: 'Zuzenketa ortografikoa bukatuta: Ez da ezer aldatu', + noMispell: 'Zuzenketa ortografikoa bukatuta: Akatsik ez', + noSuggestions: '- Iradokizunik ez -', + notAvailable: 'Barkatu baina momentu honetan zerbitzua ez dago erabilgarri.', + notInDic: 'Ez dago hiztegian', + oneChange: 'Zuzenketa ortografikoa bukatuta: Hitz bat aldatu da', + progress: 'Zuzenketa ortografikoa martxan...', + title: 'Ortografia zuzenketa', + toolbar: 'Ortografia' +}); diff --git a/sources/plugins/wsc/lang/fa.js b/sources/plugins/wsc/lang/fa.js new file mode 100644 index 00000000..de7041bd --- /dev/null +++ b/sources/plugins/wsc/lang/fa.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'fa', { + btnIgnore: 'چشمپوشی', + btnIgnoreAll: 'چشمپوشی همه', + btnReplace: 'جایگزینی', + btnReplaceAll: 'جایگزینی همه', + btnUndo: 'واچینش', + changeTo: 'تغییر به', + errorLoading: 'خطا در بارگیری برنامه خدمات میزبان: %s.', + ieSpellDownload: 'بررسی کنندهٴ املا نصب نشده است. آیا میخواهید آن را هماکنون دریافت کنید؟', + manyChanges: 'بررسی املا انجام شد. %1 واژه تغییر یافت', + noChanges: 'بررسی املا انجام شد. هیچ واژهای تغییر نیافت', + noMispell: 'بررسی املا انجام شد. هیچ غلط املائی یافت نشد', + noSuggestions: '- پیشنهادی نیست -', + notAvailable: 'با عرض پوزش خدمات الان در دسترس نیستند.', + notInDic: 'در واژه~نامه یافت نشد', + oneChange: 'بررسی املا انجام شد. یک واژه تغییر یافت', + progress: 'بررسی املا در حال انجام...', + title: 'بررسی املا', + toolbar: 'بررسی املا' +}); diff --git a/sources/plugins/wsc/lang/fi.js b/sources/plugins/wsc/lang/fi.js new file mode 100644 index 00000000..786404b9 --- /dev/null +++ b/sources/plugins/wsc/lang/fi.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'fi', { + btnIgnore: 'Jätä huomioimatta', + btnIgnoreAll: 'Jätä kaikki huomioimatta', + btnReplace: 'Korvaa', + btnReplaceAll: 'Korvaa kaikki', + btnUndo: 'Kumoa', + changeTo: 'Vaihda', + errorLoading: 'Virhe ladattaessa oikolukupalvelua isännältä: %s.', + ieSpellDownload: 'Oikeinkirjoituksen tarkistusta ei ole asennettu. Haluatko ladata sen nyt?', + manyChanges: 'Tarkistus valmis: %1 sanaa muutettiin', + noChanges: 'Tarkistus valmis: Yhtään sanaa ei muutettu', + noMispell: 'Tarkistus valmis: Ei virheitä', + noSuggestions: 'Ei ehdotuksia', + notAvailable: 'Valitettavasti oikoluku ei ole käytössä tällä hetkellä.', + notInDic: 'Ei sanakirjassa', + oneChange: 'Tarkistus valmis: Yksi sana muutettiin', + progress: 'Tarkistus käynnissä...', + title: 'Oikoluku', + toolbar: 'Tarkista oikeinkirjoitus' +}); diff --git a/sources/plugins/wsc/lang/fo.js b/sources/plugins/wsc/lang/fo.js new file mode 100644 index 00000000..0cf829a8 --- /dev/null +++ b/sources/plugins/wsc/lang/fo.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'fo', { + btnIgnore: 'Forfjóna', + btnIgnoreAll: 'Forfjóna alt', + btnReplace: 'Yvirskriva', + btnReplaceAll: 'Yvirskriva alt', + btnUndo: 'Angra', + changeTo: 'Broyt til', + errorLoading: 'Feilur við innlesing av application service host: %s.', + ieSpellDownload: 'Rættstavarin er ikki tøkur í tekstviðgeranum. Vilt tú heinta hann nú?', + manyChanges: 'Rættstavarin liðugur: %1 orð broytt', + noChanges: 'Rættstavarin liðugur: Einki orð varð broytt', + noMispell: 'Rættstavarin liðugur: Eingin feilur funnin', + noSuggestions: '- Einki uppskot -', + notAvailable: 'Tíverri, ikki tøkt í løtuni.', + notInDic: 'Finst ikki í orðabókini', + oneChange: 'Rættstavarin liðugur: Eitt orð er broytt', + progress: 'Rættstavarin arbeiðir...', + title: 'Kanna stavseting', + toolbar: 'Kanna stavseting' +}); diff --git a/sources/plugins/wsc/lang/fr-ca.js b/sources/plugins/wsc/lang/fr-ca.js new file mode 100644 index 00000000..37f84c8a --- /dev/null +++ b/sources/plugins/wsc/lang/fr-ca.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'fr-ca', { + btnIgnore: 'Ignorer', + btnIgnoreAll: 'Ignorer tout', + btnReplace: 'Remplacer', + btnReplaceAll: 'Remplacer tout', + btnUndo: 'Annuler', + changeTo: 'Changer en', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Le Correcteur d\'orthographe n\'est pas installé. Souhaitez-vous le télécharger maintenant?', + manyChanges: 'Vérification d\'orthographe terminée: %1 mots modifiés', + noChanges: 'Vérification d\'orthographe terminée: Pas de modifications', + noMispell: 'Vérification d\'orthographe terminée: pas d\'erreur trouvée', + noSuggestions: '- Pas de suggestion -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Pas dans le dictionnaire', + oneChange: 'Vérification d\'orthographe terminée: Un mot modifié', + progress: 'Vérification d\'orthographe en cours...', + title: 'Spell Checker', + toolbar: 'Orthographe' +}); diff --git a/sources/plugins/wsc/lang/fr.js b/sources/plugins/wsc/lang/fr.js new file mode 100644 index 00000000..f442bd9d --- /dev/null +++ b/sources/plugins/wsc/lang/fr.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'fr', { + btnIgnore: 'Ignorer', + btnIgnoreAll: 'Ignorer tout', + btnReplace: 'Remplacer', + btnReplaceAll: 'Remplacer tout', + btnUndo: 'Annuler', + changeTo: 'Modifier pour', + errorLoading: 'Erreur du chargement du service depuis l\'hôte : %s.', + ieSpellDownload: 'La vérification d\'orthographe n\'est pas installée. Voulez-vous la télécharger maintenant?', + manyChanges: 'Vérification de l\'orthographe terminée : %1 mots corrigés.', + noChanges: 'Vérification de l\'orthographe terminée : Aucun mot corrigé.', + noMispell: 'Vérification de l\'orthographe terminée : aucune erreur trouvée.', + noSuggestions: '- Aucune suggestion -', + notAvailable: 'Désolé, le service est indisponible actuellement.', + notInDic: 'N\'existe pas dans le dictionnaire.', + oneChange: 'Vérification de l\'orthographe terminée : Un seul mot corrigé.', + progress: 'Vérification de l\'orthographe en cours...', + title: 'Vérifier l\'orthographe', + toolbar: 'Vérifier l\'orthographe' +}); diff --git a/sources/plugins/wsc/lang/gl.js b/sources/plugins/wsc/lang/gl.js new file mode 100644 index 00000000..5da1ff7c --- /dev/null +++ b/sources/plugins/wsc/lang/gl.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'gl', { + btnIgnore: 'Ignorar', + btnIgnoreAll: 'Ignorar Todas', + btnReplace: 'Substituir', + btnReplaceAll: 'Substituir Todas', + btnUndo: 'Desfacer', + changeTo: 'Cambiar a', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'O corrector ortográfico non está instalado. ¿Quere descargalo agora?', + manyChanges: 'Corrección ortográfica rematada: %1 verbas substituidas', + noChanges: 'Corrección ortográfica rematada: Non se substituiu nengunha verba', + noMispell: 'Corrección ortográfica rematada: Non se atoparon erros', + noSuggestions: '- Sen candidatos -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Non está no diccionario', + oneChange: 'Corrección ortográfica rematada: Unha verba substituida', + progress: 'Corrección ortográfica en progreso...', + title: 'Spell Checker', + toolbar: 'Corrección Ortográfica' +}); diff --git a/sources/plugins/wsc/lang/gu.js b/sources/plugins/wsc/lang/gu.js new file mode 100644 index 00000000..385d9f5b --- /dev/null +++ b/sources/plugins/wsc/lang/gu.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'gu', { + btnIgnore: 'ઇગ્નોર/અવગણના કરવી', + btnIgnoreAll: 'બધાની ઇગ્નોર/અવગણના કરવી', + btnReplace: 'બદલવું', + btnReplaceAll: 'બધા બદલી કરો', + btnUndo: 'અન્ડૂ', + changeTo: 'આનાથી બદલવું', + errorLoading: 'સર્વિસ એપ્લીકેશન લોડ નથી થ: %s.', + ieSpellDownload: 'સ્પેલ-ચેકર ઇન્સ્ટોલ નથી. શું તમે ડાઉનલોડ કરવા માંગો છો?', + manyChanges: 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: %1 શબ્દ બદલયા છે', + noChanges: 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: એકપણ શબ્દ બદલયો નથી', + noMispell: 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: ખોટી જોડણી મળી નથી', + noSuggestions: '- કઇ સજેશન નથી -', + notAvailable: 'માફ કરશો, આ સુવિધા ઉપલબ્ધ નથી', + notInDic: 'શબ્દકોશમાં નથી', + oneChange: 'શબ્દની જોડણી/સ્પેલ ચેક પૂર્ણ: એક શબ્દ બદલયો છે', + progress: 'શબ્દની જોડણી/સ્પેલ ચેક ચાલુ છે...', + title: 'સ્પેલ ', + toolbar: 'જોડણી (સ્પેલિંગ) તપાસવી' +}); diff --git a/sources/plugins/wsc/lang/he.js b/sources/plugins/wsc/lang/he.js new file mode 100644 index 00000000..4b78bde6 --- /dev/null +++ b/sources/plugins/wsc/lang/he.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'he', { + btnIgnore: 'התעלמות', + btnIgnoreAll: 'התעלמות מהכל', + btnReplace: 'החלפה', + btnReplaceAll: 'החלפת הכל', + btnUndo: 'החזרה', + changeTo: 'שינוי ל', + errorLoading: 'שגיאה בהעלאת השירות: %s.', + ieSpellDownload: 'בודק האיות לא מותקן, האם להורידו?', + manyChanges: 'בדיקות איות הסתיימה: %1 מילים שונו', + noChanges: 'בדיקות איות הסתיימה: לא שונתה אף מילה', + noMispell: 'בדיקות איות הסתיימה: לא נמצאו שגיאות כתיב', + noSuggestions: '- אין הצעות -', + notAvailable: 'לא נמצא שירות זמין.', + notInDic: 'לא נמצא במילון', + oneChange: 'בדיקות איות הסתיימה: שונתה מילה אחת', + progress: 'בודק האיות בתהליך בדיקה....', + title: 'בדיקת איות', + toolbar: 'בדיקת איות' +}); diff --git a/sources/plugins/wsc/lang/hi.js b/sources/plugins/wsc/lang/hi.js new file mode 100644 index 00000000..bb1a4dbb --- /dev/null +++ b/sources/plugins/wsc/lang/hi.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'hi', { + btnIgnore: 'इग्नोर', + btnIgnoreAll: 'सभी इग्नोर करें', + btnReplace: 'रिप्लेस', + btnReplaceAll: 'सभी रिप्लेस करें', + btnUndo: 'अन्डू', + changeTo: 'इसमें बदलें', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'स्पॅल-चॅकर इन्स्टाल नहीं किया गया है। क्या आप इसे डाउनलोड करना चाहेंगे?', + manyChanges: 'वर्तनी की जाँच : %1 शब्द बदले गये', + noChanges: 'वर्तनी की जाँच :कोई शब्द नहीं बदला गया', + noMispell: 'वर्तनी की जाँच : कोई गलत वर्तनी (स्पॅलिंग) नहीं पाई गई', + noSuggestions: '- कोई सुझाव नहीं -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'शब्दकोश में नहीं', + oneChange: 'वर्तनी की जाँच : एक शब्द बदला गया', + progress: 'वर्तनी की जाँच (स्पॅल-चॅक) जारी है...', + title: 'Spell Checker', + toolbar: 'वर्तनी (स्पेलिंग) जाँच' +}); diff --git a/sources/plugins/wsc/lang/hr.js b/sources/plugins/wsc/lang/hr.js new file mode 100644 index 00000000..1094e079 --- /dev/null +++ b/sources/plugins/wsc/lang/hr.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'hr', { + btnIgnore: 'Zanemari', + btnIgnoreAll: 'Zanemari sve', + btnReplace: 'Zamijeni', + btnReplaceAll: 'Zamijeni sve', + btnUndo: 'Vrati', + changeTo: 'Promijeni u', + errorLoading: 'Greška učitavanja aplikacije: %s.', + ieSpellDownload: 'Provjera pravopisa nije instalirana. Želite li skinuti provjeru pravopisa?', + manyChanges: 'Provjera završena: Promijenjeno %1 riječi', + noChanges: 'Provjera završena: Nije napravljena promjena', + noMispell: 'Provjera završena: Nema grešaka', + noSuggestions: '-Nema preporuke-', + notAvailable: 'Žao nam je, ali usluga trenutno nije dostupna.', + notInDic: 'Nije u rječniku', + oneChange: 'Provjera završena: Jedna riječ promjenjena', + progress: 'Provjera u tijeku...', + title: 'Provjera pravopisa', + toolbar: 'Provjeri pravopis' +}); diff --git a/sources/plugins/wsc/lang/hu.js b/sources/plugins/wsc/lang/hu.js new file mode 100644 index 00000000..9e442e75 --- /dev/null +++ b/sources/plugins/wsc/lang/hu.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'hu', { + btnIgnore: 'Kihagyja', + btnIgnoreAll: 'Mindet kihagyja', + btnReplace: 'Csere', + btnReplaceAll: 'Összes cseréje', + btnUndo: 'Visszavonás', + changeTo: 'Módosítás', + errorLoading: 'Hiba a szolgáltatás host betöltése közben: %s.', + ieSpellDownload: 'A helyesírás-ellenőrző nincs telepítve. Szeretné letölteni most?', + manyChanges: 'Helyesírás-ellenőrzés kész: %1 szó cserélve', + noChanges: 'Helyesírás-ellenőrzés kész: Nincs változtatott szó', + noMispell: 'Helyesírás-ellenőrzés kész: Nem találtam hibát', + noSuggestions: 'Nincs javaslat', + notAvailable: 'Sajnálom, de a szolgáltatás jelenleg nem elérhető.', + notInDic: 'Nincs a szótárban', + oneChange: 'Helyesírás-ellenőrzés kész: Egy szó cserélve', + progress: 'Helyesírás-ellenőrzés folyamatban...', + title: 'Helyesírás ellenörző', + toolbar: 'Helyesírás-ellenőrzés' +}); diff --git a/sources/plugins/wsc/lang/is.js b/sources/plugins/wsc/lang/is.js new file mode 100644 index 00000000..96931692 --- /dev/null +++ b/sources/plugins/wsc/lang/is.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'is', { + btnIgnore: 'Hunsa', + btnIgnoreAll: 'Hunsa allt', + btnReplace: 'Skipta', + btnReplaceAll: 'Skipta öllu', + btnUndo: 'Til baka', + changeTo: 'Tillaga', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Villuleit ekki sett upp.
Viltu setja hana upp?', + manyChanges: 'Villuleit lokið: %1 orðum breytt', + noChanges: 'Villuleit lokið: Engu orði breytt', + noMispell: 'Villuleit lokið: Engin villa fannst', + noSuggestions: '- engar tillögur -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Ekki í orðabókinni', + oneChange: 'Villuleit lokið: Einu orði breytt', + progress: 'Villuleit í gangi...', + title: 'Spell Checker', + toolbar: 'Villuleit' +}); diff --git a/sources/plugins/wsc/lang/it.js b/sources/plugins/wsc/lang/it.js new file mode 100644 index 00000000..6e28785e --- /dev/null +++ b/sources/plugins/wsc/lang/it.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'it', { + btnIgnore: 'Ignora', + btnIgnoreAll: 'Ignora tutto', + btnReplace: 'Cambia', + btnReplaceAll: 'Cambia tutto', + btnUndo: 'Annulla', + changeTo: 'Cambia in', + errorLoading: 'Errore nel caricamento dell\'host col servizio applicativo: %s.', + ieSpellDownload: 'Contollo ortografico non installato. Lo vuoi scaricare ora?', + manyChanges: 'Controllo ortografico completato: %1 parole cambiate', + noChanges: 'Controllo ortografico completato: nessuna parola cambiata', + noMispell: 'Controllo ortografico completato: nessun errore trovato', + noSuggestions: '- Nessun suggerimento -', + notAvailable: 'Il servizio non è momentaneamente disponibile.', + notInDic: 'Non nel dizionario', + oneChange: 'Controllo ortografico completato: 1 parola cambiata', + progress: 'Controllo ortografico in corso', + title: 'Controllo ortografico', + toolbar: 'Correttore ortografico' +}); diff --git a/sources/plugins/wsc/lang/ja.js b/sources/plugins/wsc/lang/ja.js new file mode 100644 index 00000000..fe90d5e9 --- /dev/null +++ b/sources/plugins/wsc/lang/ja.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'ja', { + btnIgnore: '無視', + btnIgnoreAll: 'すべて無視', + btnReplace: '置換', + btnReplaceAll: 'すべて置換', + btnUndo: 'やり直し', + changeTo: '変更', + errorLoading: 'アプリケーションサービスホスト読込みエラー: %s.', + ieSpellDownload: 'スペルチェッカーがインストールされていません。今すぐダウンロードしますか?', + manyChanges: 'スペルチェック完了: %1 語句変更されました', + noChanges: 'スペルチェック完了: 語句は変更されませんでした', + noMispell: 'スペルチェック完了: スペルの誤りはありませんでした', + noSuggestions: '- 該当なし -', + notAvailable: '申し訳ありません、現在サービスを利用することができません', + notInDic: '辞書にありません', + oneChange: 'スペルチェック完了: 1語句変更されました', + progress: 'スペルチェック処理中...', + title: 'スペルチェック', + toolbar: 'スペルチェック' +}); diff --git a/sources/plugins/wsc/lang/ka.js b/sources/plugins/wsc/lang/ka.js new file mode 100644 index 00000000..70cc4bed --- /dev/null +++ b/sources/plugins/wsc/lang/ka.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'ka', { + btnIgnore: 'უგულებელყოფა', + btnIgnoreAll: 'ყველას უგულებელყოფა', + btnReplace: 'შეცვლა', + btnReplaceAll: 'ყველას შეცვლა', + btnUndo: 'გაუქმება', + changeTo: 'შეცვლელი', + errorLoading: 'სერვისის გამოძახების შეცდომა: %s.', + ieSpellDownload: 'მართლწერის შემოწმება არაა დაინსტალირებული. ჩამოვქაჩოთ ინტერნეტიდან?', + manyChanges: 'მართლწერის შემოწმება: %1 სიტყვა შეიცვალა', + noChanges: 'მართლწერის შემოწმება: არაფერი შეცვლილა', + noMispell: 'მართლწერის შემოწმება: შეცდომა არ მოიძებნა', + noSuggestions: '- არაა შემოთავაზება -', + notAvailable: 'უკაცრავად, ეს სერვისი ამჟამად მიუწვდომელია.', + notInDic: 'არაა ლექსიკონში', + oneChange: 'მართლწერის შემოწმება: ერთი სიტყვა შეიცვალა', + progress: 'მიმდინარეობს მართლწერის შემოწმება...', + title: 'მართლწერა', + toolbar: 'მართლწერა' +}); diff --git a/sources/plugins/wsc/lang/km.js b/sources/plugins/wsc/lang/km.js new file mode 100644 index 00000000..26693a6d --- /dev/null +++ b/sources/plugins/wsc/lang/km.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'km', { + btnIgnore: 'មិនផ្លាស់ប្តូរ', + btnIgnoreAll: 'មិនផ្លាស់ប្តូរ ទាំងអស់', + btnReplace: 'ជំនួស', + btnReplaceAll: 'ជំនួសទាំងអស់', + btnUndo: 'សារឡើងវិញ', + changeTo: 'ផ្លាស់ប្តូរទៅ', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'ពុំមានកម្មវិធីពិនិត្យអក្ខរាវិរុទ្ធ ។ តើចង់ទាញយកពីណា?', + manyChanges: 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: %1 ពាក្យបានផ្លាស់ប្តូរ', + noChanges: 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: ពុំមានផ្លាស់ប្តូរ', + noMispell: 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: គ្មានកំហុស', + noSuggestions: '- គ្មានសំណើរ -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'គ្មានក្នុងវចនានុក្រម', + oneChange: 'ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: ពាក្យមួយត្រូចបានផ្លាស់ប្តូរ', + progress: 'កំពុងពិនិត្យអក្ខរាវិរុទ្ធ...', + title: 'Spell Checker', + toolbar: 'ពិនិត្យអក្ខរាវិរុទ្ធ' +}); diff --git a/sources/plugins/wsc/lang/ko.js b/sources/plugins/wsc/lang/ko.js new file mode 100644 index 00000000..e71340d5 --- /dev/null +++ b/sources/plugins/wsc/lang/ko.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'ko', { + btnIgnore: '건너뜀', + btnIgnoreAll: '모두 건너뜀', + btnReplace: '변경', + btnReplaceAll: '모두 변경', + btnUndo: '취소', + changeTo: '변경할 단어', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: '철자 검사기가 철치되지 않았습니다. 지금 다운로드하시겠습니까?', + manyChanges: '철자검사 완료: %1 단어가 변경되었습니다.', + noChanges: '철자검사 완료: 변경된 단어가 없습니다.', + noMispell: '철자검사 완료: 잘못된 철자가 없습니다.', + noSuggestions: '- 추천단어 없음 -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: '사전에 없는 단어', + oneChange: '철자검사 완료: 단어가 변경되었습니다.', + progress: '철자검사를 진행중입니다...', + title: 'Spell Check', + toolbar: '철자검사' +}); diff --git a/sources/plugins/wsc/lang/ku.js b/sources/plugins/wsc/lang/ku.js new file mode 100644 index 00000000..a69cdc01 --- /dev/null +++ b/sources/plugins/wsc/lang/ku.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'ku', { + btnIgnore: 'پشتگوێ کردن', + btnIgnoreAll: 'پشتگوێکردنی ههمووی', + btnReplace: 'لهبریدانن', + btnReplaceAll: 'لهبریدانانی ههمووی', + btnUndo: 'پووچکردنهوه', + changeTo: 'گۆڕینی بۆ', + errorLoading: 'ههڵه لههێنانی داخوازینامهی خانهخۆێی ڕاژه: %s.', + ieSpellDownload: 'پشکنینی ڕێنووس دانهمزراوه. دهتهوێت ئێستا دایبگریت?', + manyChanges: 'پشکنینی ڕێنووس کۆتای هات: لهسهدا %1 ی وشهکان گۆڕدرا', + noChanges: 'پشکنینی ڕێنووس کۆتای هات: هیچ وشهیهك نۆگۆڕدرا', + noMispell: 'پشکنینی ڕێنووس کۆتای هات: هیچ ههڵهیهکی ڕێنووس نهدۆزراوه', + noSuggestions: '- هیچ پێشنیارێك -', + notAvailable: 'ببووره، لهمکاتهدا ڕاژهکه لهبهردهستا نیه.', + notInDic: 'لهفهرههنگ دانیه', + oneChange: 'پشکنینی ڕێنووس کۆتای هات: یهك وشه گۆڕدرا', + progress: 'پشکنینی ڕێنووس لهبهردهوامبوون دایه...', + title: 'پشکنینی ڕێنووس', + toolbar: 'پشکنینی ڕێنووس' +}); diff --git a/sources/plugins/wsc/lang/lt.js b/sources/plugins/wsc/lang/lt.js new file mode 100644 index 00000000..ce87d11e --- /dev/null +++ b/sources/plugins/wsc/lang/lt.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'lt', { + btnIgnore: 'Ignoruoti', + btnIgnoreAll: 'Ignoruoti visus', + btnReplace: 'Pakeisti', + btnReplaceAll: 'Pakeisti visus', + btnUndo: 'Atšaukti', + changeTo: 'Pakeisti į', + errorLoading: 'Klaida įkraunant servisą: %s.', + ieSpellDownload: 'Rašybos tikrinimas neinstaliuotas. Ar Jūs norite jį dabar atsisiųsti?', + manyChanges: 'Rašybos tikrinimas baigtas: Pakeista %1 žodžių', + noChanges: 'Rašybos tikrinimas baigtas: Nėra pakeistų žodžių', + noMispell: 'Rašybos tikrinimas baigtas: Nerasta rašybos klaidų', + noSuggestions: '- Nėra pasiūlymų -', + notAvailable: 'Atleiskite, šiuo metu servisas neprieinamas.', + notInDic: 'Žodyne nerastas', + oneChange: 'Rašybos tikrinimas baigtas: Vienas žodis pakeistas', + progress: 'Vyksta rašybos tikrinimas...', + title: 'Tikrinti klaidas', + toolbar: 'Rašybos tikrinimas' +}); diff --git a/sources/plugins/wsc/lang/lv.js b/sources/plugins/wsc/lang/lv.js new file mode 100644 index 00000000..4084468b --- /dev/null +++ b/sources/plugins/wsc/lang/lv.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'lv', { + btnIgnore: 'Ignorēt', + btnIgnoreAll: 'Ignorēt visu', + btnReplace: 'Aizvietot', + btnReplaceAll: 'Aizvietot visu', + btnUndo: 'Atcelt', + changeTo: 'Nomainīt uz', + errorLoading: 'Kļūda ielādējot aplikācijas servisa adresi: %s.', + ieSpellDownload: 'Pareizrakstības pārbaudītājs nav pievienots. Vai vēlaties to lejupielādēt tagad?', + manyChanges: 'Pareizrakstības pārbaude pabeigta: %1 vārdi tika mainīti', + noChanges: 'Pareizrakstības pārbaude pabeigta: nekas netika labots', + noMispell: 'Pareizrakstības pārbaude pabeigta: kļūdas netika atrastas', + noSuggestions: '- Nav ieteikumu -', + notAvailable: 'Atvainojiet, bet serviss šobrīd nav pieejams.', + notInDic: 'Netika atrasts vārdnīcā', + oneChange: 'Pareizrakstības pārbaude pabeigta: 1 vārds izmainīts', + progress: 'Notiek pareizrakstības pārbaude...', + title: 'Pārbaudīt gramatiku', + toolbar: 'Pareizrakstības pārbaude' +}); diff --git a/sources/plugins/wsc/lang/mk.js b/sources/plugins/wsc/lang/mk.js new file mode 100644 index 00000000..f2145814 --- /dev/null +++ b/sources/plugins/wsc/lang/mk.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'mk', { + btnIgnore: 'Ignore', + btnIgnoreAll: 'Ignore All', + btnReplace: 'Replace', + btnReplaceAll: 'Replace All', + btnUndo: 'Undo', + changeTo: 'Change to', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Spell checker not installed. Do you want to download it now?', + manyChanges: 'Spell check complete: %1 words changed', + noChanges: 'Spell check complete: No words changed', + noMispell: 'Spell check complete: No misspellings found', + noSuggestions: '- No suggestions -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Not in dictionary', + oneChange: 'Spell check complete: One word changed', + progress: 'Spell check in progress...', + title: 'Spell Checker', + toolbar: 'Check Spelling' +}); diff --git a/sources/plugins/wsc/lang/mn.js b/sources/plugins/wsc/lang/mn.js new file mode 100644 index 00000000..f61f9e15 --- /dev/null +++ b/sources/plugins/wsc/lang/mn.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'mn', { + btnIgnore: 'Зөвшөөрөх', + btnIgnoreAll: 'Бүгдийг зөвшөөрөх', + btnReplace: 'Солих', + btnReplaceAll: 'Бүгдийг Дарж бичих', + btnUndo: 'Буцаах', + changeTo: 'Өөрчлөх', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Дүрэм шалгагч суугаагүй байна. Татаж авахыг хүсч байна уу?', + manyChanges: 'Дүрэм шалгаад дууссан: %1 үг өөрчлөгдсөн', + noChanges: 'Дүрэм шалгаад дууссан: үг өөрчлөгдөөгүй', + noMispell: 'Дүрэм шалгаад дууссан: Алдаа олдсонгүй', + noSuggestions: '- Тайлбаргүй -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Толь бичиггүй', + oneChange: 'Дүрэм шалгаад дууссан: 1 үг өөрчлөгдсөн', + progress: 'Дүрэм шалгаж байгаа үйл явц...', + title: 'Spell Checker', + toolbar: 'Үгийн дүрэх шалгах' +}); diff --git a/sources/plugins/wsc/lang/ms.js b/sources/plugins/wsc/lang/ms.js new file mode 100644 index 00000000..a45a0346 --- /dev/null +++ b/sources/plugins/wsc/lang/ms.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'ms', { + btnIgnore: 'Biar', + btnIgnoreAll: 'Biarkan semua', + btnReplace: 'Ganti', + btnReplaceAll: 'Gantikan Semua', + btnUndo: 'Batalkan', + changeTo: 'Tukarkan kepada', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Pemeriksa ejaan tidak dipasang. Adakah anda mahu muat turun sekarang?', + manyChanges: 'Pemeriksaan ejaan siap: %1 perkataan diubah', + noChanges: 'Pemeriksaan ejaan siap: Tiada perkataan diubah', + noMispell: 'Pemeriksaan ejaan siap: Tiada salah ejaan', + noSuggestions: '- Tiada cadangan -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Tidak terdapat didalam kamus', + oneChange: 'Pemeriksaan ejaan siap: Satu perkataan telah diubah', + progress: 'Pemeriksaan ejaan sedang diproses...', + title: 'Spell Checker', + toolbar: 'Semak Ejaan' +}); diff --git a/sources/plugins/wsc/lang/nb.js b/sources/plugins/wsc/lang/nb.js new file mode 100644 index 00000000..02a070a2 --- /dev/null +++ b/sources/plugins/wsc/lang/nb.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'nb', { + btnIgnore: 'Ignorer', + btnIgnoreAll: 'Ignorer alle', + btnReplace: 'Erstatt', + btnReplaceAll: 'Erstatt alle', + btnUndo: 'Angre', + changeTo: 'Endre til', + errorLoading: 'Feil under lasting av applikasjonstjenestetjener: %s.', + ieSpellDownload: 'Stavekontroll er ikke installert. Vil du laste den ned nå?', + manyChanges: 'Stavekontroll fullført: %1 ord endret', + noChanges: 'Stavekontroll fullført: ingen ord endret', + noMispell: 'Stavekontroll fullført: ingen feilstavinger funnet', + noSuggestions: '- Ingen forslag -', + notAvailable: 'Beklager, tjenesten er utilgjenglig nå.', + notInDic: 'Ikke i ordboken', + oneChange: 'Stavekontroll fullført: Ett ord endret', + progress: 'Stavekontroll pågår...', + title: 'Stavekontroll', + toolbar: 'Stavekontroll' +}); diff --git a/sources/plugins/wsc/lang/nl.js b/sources/plugins/wsc/lang/nl.js new file mode 100644 index 00000000..742027dc --- /dev/null +++ b/sources/plugins/wsc/lang/nl.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'nl', { + btnIgnore: 'Negeren', + btnIgnoreAll: 'Alles negeren', + btnReplace: 'Vervangen', + btnReplaceAll: 'Alles vervangen', + btnUndo: 'Ongedaan maken', + changeTo: 'Wijzig in', + errorLoading: 'Er is een fout opgetreden bij het laden van de dienst: %s.', + ieSpellDownload: 'De spellingscontrole is niet geïnstalleerd. Wilt u deze nu downloaden?', + manyChanges: 'Klaar met spellingscontrole: %1 woorden aangepast', + noChanges: 'Klaar met spellingscontrole: geen woorden aangepast', + noMispell: 'Klaar met spellingscontrole: geen fouten gevonden', + noSuggestions: '- Geen suggesties -', + notAvailable: 'Excuses, deze dienst is momenteel niet beschikbaar.', + notInDic: 'Niet in het woordenboek', + oneChange: 'Klaar met spellingscontrole: één woord aangepast', + progress: 'Bezig met spellingscontrole...', + title: 'Spellingscontrole', + toolbar: 'Spellingscontrole' +}); diff --git a/sources/plugins/wsc/lang/no.js b/sources/plugins/wsc/lang/no.js new file mode 100644 index 00000000..416f67a3 --- /dev/null +++ b/sources/plugins/wsc/lang/no.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'no', { + btnIgnore: 'Ignorer', + btnIgnoreAll: 'Ignorer alle', + btnReplace: 'Erstatt', + btnReplaceAll: 'Erstatt alle', + btnUndo: 'Angre', + changeTo: 'Endre til', + errorLoading: 'Feil under lasting av applikasjonstjenestetjener: %s.', + ieSpellDownload: 'Stavekontroll er ikke installert. Vil du laste den ned nå?', + manyChanges: 'Stavekontroll fullført: %1 ord endret', + noChanges: 'Stavekontroll fullført: ingen ord endret', + noMispell: 'Stavekontroll fullført: ingen feilstavinger funnet', + noSuggestions: '- Ingen forslag -', + notAvailable: 'Beklager, tjenesten er utilgjenglig nå.', + notInDic: 'Ikke i ordboken', + oneChange: 'Stavekontroll fullført: Ett ord endret', + progress: 'Stavekontroll pågår...', + title: 'Stavekontroll', + toolbar: 'Stavekontroll' +}); diff --git a/sources/plugins/wsc/lang/pl.js b/sources/plugins/wsc/lang/pl.js new file mode 100644 index 00000000..0f40934e --- /dev/null +++ b/sources/plugins/wsc/lang/pl.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'pl', { + btnIgnore: 'Ignoruj', + btnIgnoreAll: 'Ignoruj wszystkie', + btnReplace: 'Zmień', + btnReplaceAll: 'Zmień wszystkie', + btnUndo: 'Cofnij', + changeTo: 'Zmień na', + errorLoading: 'Błąd wczytywania hosta aplikacji usługi: %s.', + ieSpellDownload: 'Słownik nie jest zainstalowany. Czy chcesz go pobrać?', + manyChanges: 'Sprawdzanie zakończone: zmieniono %l słów', + noChanges: 'Sprawdzanie zakończone: nie zmieniono żadnego słowa', + noMispell: 'Sprawdzanie zakończone: nie znaleziono błędów', + noSuggestions: '- Brak sugestii -', + notAvailable: 'Przepraszamy, ale usługa jest obecnie niedostępna.', + notInDic: 'Słowa nie ma w słowniku', + oneChange: 'Sprawdzanie zakończone: zmieniono jedno słowo', + progress: 'Trwa sprawdzanie...', + title: 'Sprawdź pisownię', + toolbar: 'Sprawdź pisownię' +}); diff --git a/sources/plugins/wsc/lang/pt-br.js b/sources/plugins/wsc/lang/pt-br.js new file mode 100644 index 00000000..d0469357 --- /dev/null +++ b/sources/plugins/wsc/lang/pt-br.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'pt-br', { + btnIgnore: 'Ignorar uma vez', + btnIgnoreAll: 'Ignorar Todas', + btnReplace: 'Alterar', + btnReplaceAll: 'Alterar Todas', + btnUndo: 'Desfazer', + changeTo: 'Alterar para', + errorLoading: 'Erro carregando servidor de aplicação: %s.', + ieSpellDownload: 'A verificação ortográfica não foi instalada. Você gostaria de realizar o download agora?', + manyChanges: 'Verificação ortográfica encerrada: %1 palavras foram alteradas', + noChanges: 'Verificação ortográfica encerrada: Não houve alterações', + noMispell: 'Verificação encerrada: Não foram encontrados erros de ortografia', + noSuggestions: '-sem sugestões de ortografia-', + notAvailable: 'Desculpe, o serviço não está disponível no momento.', + notInDic: 'Não encontrada', + oneChange: 'Verificação ortográfica encerrada: Uma palavra foi alterada', + progress: 'Verificação ortográfica em andamento...', + title: 'Corretor Ortográfico', + toolbar: 'Verificar Ortografia' +}); diff --git a/sources/plugins/wsc/lang/pt.js b/sources/plugins/wsc/lang/pt.js new file mode 100644 index 00000000..744fd28c --- /dev/null +++ b/sources/plugins/wsc/lang/pt.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'pt', { + btnIgnore: 'Ignorar', + btnIgnoreAll: 'Ignorar Tudo', + btnReplace: 'Substituir', + btnReplaceAll: 'Substituir Tudo', + btnUndo: 'Anular', + changeTo: 'Mudar para', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: ' Verificação ortográfica não instalada. Quer descarregar agora?', + manyChanges: 'Verificação ortográfica completa: %1 palavras alteradas', + noChanges: 'Verificação ortográfica completa: não houve alteração de palavras', + noMispell: 'Verificação ortográfica completa: não foram encontrados erros', + noSuggestions: '- Sem sugestões -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Não está num directório', + oneChange: 'Verificação ortográfica completa: uma palavra alterada', + progress: 'Verificação ortográfica em progresso…', + title: 'Spell Checker', + toolbar: 'Verificação Ortográfica' +}); diff --git a/sources/plugins/wsc/lang/ro.js b/sources/plugins/wsc/lang/ro.js new file mode 100644 index 00000000..c4b40e04 --- /dev/null +++ b/sources/plugins/wsc/lang/ro.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'ro', { + btnIgnore: 'Ignoră', + btnIgnoreAll: 'Ignoră toate', + btnReplace: 'Înlocuieşte', + btnReplaceAll: 'Înlocuieşte tot', + btnUndo: 'Starea anterioară (undo)', + changeTo: 'Schimbă în', + errorLoading: 'Eroare în lansarea aplicației service host %s.', + ieSpellDownload: 'Unealta pentru verificat textul (Spell checker) neinstalată. Doriţi să o descărcaţi acum?', + manyChanges: 'Verificarea textului terminată: 1% cuvinte modificate', + noChanges: 'Verificarea textului terminată: Niciun cuvânt modificat', + noMispell: 'Verificarea textului terminată: Nicio greşeală găsită', + noSuggestions: '- Fără sugestii -', + notAvailable: 'Scuzați, dar serviciul nu este disponibil momentan.', + notInDic: 'Nu e în dicţionar', + oneChange: 'Verificarea textului terminată: Un cuvânt modificat', + progress: 'Verificarea textului în desfăşurare...', + title: 'Spell Checker', + toolbar: 'Verifică scrierea textului' +}); diff --git a/sources/plugins/wsc/lang/ru.js b/sources/plugins/wsc/lang/ru.js new file mode 100644 index 00000000..d73f3018 --- /dev/null +++ b/sources/plugins/wsc/lang/ru.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'ru', { + btnIgnore: 'Пропустить', + btnIgnoreAll: 'Пропустить всё', + btnReplace: 'Заменить', + btnReplaceAll: 'Заменить всё', + btnUndo: 'Отменить', + changeTo: 'Изменить на', + errorLoading: 'Произошла ошибка при подключении к серверу проверки орфографии: %s.', + ieSpellDownload: 'Модуль проверки орфографии не установлен. Хотите скачать его?', + manyChanges: 'Проверка орфографии завершена. Изменено слов: %1', + noChanges: 'Проверка орфографии завершена. Не изменено ни одного слова', + noMispell: 'Проверка орфографии завершена. Ошибок не найдено', + noSuggestions: '- Варианты отсутствуют -', + notAvailable: 'Извините, но в данный момент сервис недоступен.', + notInDic: 'Отсутствует в словаре', + oneChange: 'Проверка орфографии завершена. Изменено одно слово', + progress: 'Орфография проверяется...', + title: 'Проверка орфографии', + toolbar: 'Проверить орфографию' +}); diff --git a/sources/plugins/wsc/lang/sk.js b/sources/plugins/wsc/lang/sk.js new file mode 100644 index 00000000..9c2ce037 --- /dev/null +++ b/sources/plugins/wsc/lang/sk.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'sk', { + btnIgnore: 'Ignorovať', + btnIgnoreAll: 'Ignorovať všetko', + btnReplace: 'Prepísat', + btnReplaceAll: 'Prepísat všetko', + btnUndo: 'Späť', + changeTo: 'Zmeniť na', + errorLoading: 'Chyba pri načítaní slovníka z adresy: %s.', + ieSpellDownload: 'Kontrola pravopisu nie je naištalovaná. Chcete ju teraz stiahnuť?', + manyChanges: 'Kontrola pravopisu dokončená: Bolo zmenených %1 slov', + noChanges: 'Kontrola pravopisu dokončená: Neboli zmenené žiadne slová', + noMispell: 'Kontrola pravopisu dokončená: Neboli nájdené žiadne chyby pravopisu', + noSuggestions: '- Žiadny návrh -', + notAvailable: 'Prepáčte, ale služba je momentálne nedostupná.', + notInDic: 'Nie je v slovníku', + oneChange: 'Kontrola pravopisu dokončená: Bolo zmenené jedno slovo', + progress: 'Prebieha kontrola pravopisu...', + title: 'Skontrolovať pravopis', + toolbar: 'Kontrola pravopisu' +}); diff --git a/sources/plugins/wsc/lang/sl.js b/sources/plugins/wsc/lang/sl.js new file mode 100644 index 00000000..ba871234 --- /dev/null +++ b/sources/plugins/wsc/lang/sl.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'sl', { + btnIgnore: 'Prezri', + btnIgnoreAll: 'Prezri vse', + btnReplace: 'Zamenjaj', + btnReplaceAll: 'Zamenjaj vse', + btnUndo: 'Razveljavi', + changeTo: 'Spremeni v', + errorLoading: 'Napaka pri nalaganju storitve programa na naslovu %s.', + ieSpellDownload: 'Črkovalnik ni nameščen. Ali ga želite prenesti sedaj?', + manyChanges: 'Črkovanje je končano: Spremenjenih je bilo %1 besed', + noChanges: 'Črkovanje je končano: Nobena beseda ni bila spremenjena', + noMispell: 'Črkovanje je končano: Brez napak', + noSuggestions: '- Ni predlogov -', + notAvailable: 'Oprostite, storitev trenutno ni dosegljiva.', + notInDic: 'Ni v slovarju', + oneChange: 'Črkovanje je končano: Spremenjena je bila ena beseda', + progress: 'Preverjanje črkovanja se izvaja...', + title: 'Črkovalnik', + toolbar: 'Preveri črkovanje' +}); diff --git a/sources/plugins/wsc/lang/sr-latn.js b/sources/plugins/wsc/lang/sr-latn.js new file mode 100644 index 00000000..f9585cc7 --- /dev/null +++ b/sources/plugins/wsc/lang/sr-latn.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'sr-latn', { + btnIgnore: 'Ignoriši', + btnIgnoreAll: 'Ignoriši sve', + btnReplace: 'Zameni', + btnReplaceAll: 'Zameni sve', + btnUndo: 'Vrati akciju', + changeTo: 'Izmeni', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Provera spelovanja nije instalirana. Da li želite da je skinete sa Interneta?', + manyChanges: 'Provera spelovanja završena: %1 reč(i) je izmenjeno', + noChanges: 'Provera spelovanja završena: Nije izmenjena nijedna rec', + noMispell: 'Provera spelovanja završena: greške nisu pronadene', + noSuggestions: '- Bez sugestija -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Nije u rečniku', + oneChange: 'Provera spelovanja završena: Izmenjena je jedna reč', + progress: 'Provera spelovanja u toku...', + title: 'Spell Checker', + toolbar: 'Proveri spelovanje' +}); diff --git a/sources/plugins/wsc/lang/sr.js b/sources/plugins/wsc/lang/sr.js new file mode 100644 index 00000000..9c4cb7f2 --- /dev/null +++ b/sources/plugins/wsc/lang/sr.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'sr', { + btnIgnore: 'Игнориши', + btnIgnoreAll: 'Игнориши све', + btnReplace: 'Замени', + btnReplaceAll: 'Замени све', + btnUndo: 'Врати акцију', + changeTo: 'Измени', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'Провера спеловања није инсталирана. Да ли желите да је скинете са Интернета?', + manyChanges: 'Провера спеловања завршена: %1 реч(и) је измењено', + noChanges: 'Провера спеловања завршена: Није измењена ниједна реч', + noMispell: 'Провера спеловања завршена: грешке нису пронађене', + noSuggestions: '- Без сугестија -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'Није у речнику', + oneChange: 'Провера спеловања завршена: Измењена је једна реч', + progress: 'Провера спеловања у току...', + title: 'Spell Checker', + toolbar: 'Провери спеловање' +}); diff --git a/sources/plugins/wsc/lang/sv.js b/sources/plugins/wsc/lang/sv.js new file mode 100644 index 00000000..32e11e80 --- /dev/null +++ b/sources/plugins/wsc/lang/sv.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'sv', { + btnIgnore: 'Ignorera', + btnIgnoreAll: 'Ignorera alla', + btnReplace: 'Ersätt', + btnReplaceAll: 'Ersätt alla', + btnUndo: 'Ångra', + changeTo: 'Ändra till', + errorLoading: 'Tjänsten är ej tillgänglig: %s.', + ieSpellDownload: 'Stavningskontrollen är ej installerad. Vill du göra det nu?', + manyChanges: 'Stavningskontroll slutförd: %1 ord rättades.', + noChanges: 'Stavningskontroll slutförd: Inga ord rättades.', + noMispell: 'Stavningskontroll slutförd: Inga stavfel påträffades.', + noSuggestions: '- Förslag saknas -', + notAvailable: 'Tyvärr är tjänsten ej tillgänglig nu', + notInDic: 'Saknas i ordlistan', + oneChange: 'Stavningskontroll slutförd: Ett ord rättades.', + progress: 'Stavningskontroll pågår...', + title: 'Kontrollera stavning', + toolbar: 'Stavningskontroll' +}); diff --git a/sources/plugins/wsc/lang/th.js b/sources/plugins/wsc/lang/th.js new file mode 100644 index 00000000..6e09e6cc --- /dev/null +++ b/sources/plugins/wsc/lang/th.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'th', { + btnIgnore: 'ยกเว้น', + btnIgnoreAll: 'ยกเว้นทั้งหมด', + btnReplace: 'แทนที่', + btnReplaceAll: 'แทนที่ทั้งหมด', + btnUndo: 'ยกเลิก', + changeTo: 'แก้ไขเป็น', + errorLoading: 'Error loading application service host: %s.', + ieSpellDownload: 'ไม่ได้ติดตั้งระบบตรวจสอบคำสะกด. ต้องการติดตั้งไหมครับ?', + manyChanges: 'ตรวจสอบคำสะกดเสร็จสิ้น:: แก้ไข %1 คำ', + noChanges: 'ตรวจสอบคำสะกดเสร็จสิ้น: ไม่มีการแก้คำใดๆ', + noMispell: 'ตรวจสอบคำสะกดเสร็จสิ้น: ไม่พบคำสะกดผิด', + noSuggestions: '- ไม่มีคำแนะนำใดๆ -', + notAvailable: 'Sorry, but service is unavailable now.', + notInDic: 'ไม่พบในดิกชันนารี', + oneChange: 'ตรวจสอบคำสะกดเสร็จสิ้น: แก้ไข1คำ', + progress: 'กำลังตรวจสอบคำสะกด...', + title: 'Spell Checker', + toolbar: 'ตรวจการสะกดคำ' +}); diff --git a/sources/plugins/wsc/lang/tr.js b/sources/plugins/wsc/lang/tr.js new file mode 100644 index 00000000..f400035c --- /dev/null +++ b/sources/plugins/wsc/lang/tr.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'tr', { + btnIgnore: 'Yoksay', + btnIgnoreAll: 'Tümünü Yoksay', + btnReplace: 'Değiştir', + btnReplaceAll: 'Tümünü Değiştir', + btnUndo: 'Geri Al', + changeTo: 'Şuna değiştir:', + errorLoading: 'Uygulamada yüklerken hata oluştu: %s.', + ieSpellDownload: 'Yazım denetimi yüklenmemiş. Şimdi yüklemek ister misiniz?', + manyChanges: 'Yazım denetimi tamamlandı: %1 kelime değiştirildi', + noChanges: 'Yazım denetimi tamamlandı: Hiçbir kelime değiştirilmedi', + noMispell: 'Yazım denetimi tamamlandı: Yanlış yazıma rastlanmadı', + noSuggestions: '- Öneri Yok -', + notAvailable: 'Üzügünüz, bu servis şuanda hizmet dışıdır.', + notInDic: 'Sözlükte Yok', + oneChange: 'Yazım denetimi tamamlandı: Bir kelime değiştirildi', + progress: 'Yazım denetimi işlemde...', + title: 'Yazımı Denetle', + toolbar: 'Yazım Denetimi' +}); diff --git a/sources/plugins/wsc/lang/ug.js b/sources/plugins/wsc/lang/ug.js new file mode 100644 index 00000000..273621e1 --- /dev/null +++ b/sources/plugins/wsc/lang/ug.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'ug', { + btnIgnore: 'پەرۋا قىلما', + btnIgnoreAll: 'ھەممىگە پەرۋا قىلما', + btnReplace: 'ئالماشتۇر', + btnReplaceAll: 'ھەممىنى ئالماشتۇر', + btnUndo: 'يېنىۋال', + changeTo: 'ئۆزگەرت', + errorLoading: 'لازىملىق مۇلازىمېتىرنى يۈكلىگەندە خاتالىق كۆرۈلدى: %s.', + ieSpellDownload: 'ئىملا تەكشۈرۈش قىستۇرمىسى تېخى ئورنىتىلمىغان، ھازىرلا چۈشۈرەمسىز؟', + manyChanges: 'ئىملا تەكشۈرۈش تامام: %1 سۆزنى ئۆزگەرتتى', + noChanges: 'ئىملا تەكشۈرۈش تامام: ھېچقانداق سۆزنى ئۆزگەرتمىدى', + noMispell: 'ئىملا تەكشۈرۈش تامام: ئىملا خاتالىقى بايقالمىدى', + noSuggestions: '-تەكلىپ يوق-', + notAvailable: 'كەچۈرۈڭ، مۇلازىمېتىرنى ۋاقتىنچە ئىشلەتكىلى بولمايدۇ', + notInDic: 'لۇغەتتە يوق', + oneChange: 'ئىملا تەكشۈرۈش تامام: بىر سۆزنى ئۆزگەرتتى', + progress: 'ئىملا تەكشۈرۈۋاتىدۇ…', + title: 'ئىملا تەكشۈر', + toolbar: 'ئىملا تەكشۈر' +}); diff --git a/sources/plugins/wsc/lang/uk.js b/sources/plugins/wsc/lang/uk.js new file mode 100644 index 00000000..a813bff1 --- /dev/null +++ b/sources/plugins/wsc/lang/uk.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'uk', { + btnIgnore: 'Пропустити', + btnIgnoreAll: 'Пропустити все', + btnReplace: 'Замінити', + btnReplaceAll: 'Замінити все', + btnUndo: 'Назад', + changeTo: 'Замінити на', + errorLoading: 'Помилка завантаження : %s.', + ieSpellDownload: 'Модуль перевірки орфографії не встановлено. Бажаєте завантажити його зараз?', + manyChanges: 'Перевірку орфографії завершено: 1% слів(ова) змінено', + noChanges: 'Перевірку орфографії завершено: жодне слово не змінено', + noMispell: 'Перевірку орфографії завершено: помилок не знайдено', + noSuggestions: '- немає варіантів -', + notAvailable: 'Вибачте, але сервіс наразі недоступний.', + notInDic: 'Немає в словнику', + oneChange: 'Перевірку орфографії завершено: змінено одне слово', + progress: 'Виконується перевірка орфографії...', + title: 'Перевірка орфографії', + toolbar: 'Перевірити орфографію' +}); diff --git a/sources/plugins/wsc/lang/vi.js b/sources/plugins/wsc/lang/vi.js new file mode 100644 index 00000000..bba8969c --- /dev/null +++ b/sources/plugins/wsc/lang/vi.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'vi', { + btnIgnore: 'Bỏ qua', + btnIgnoreAll: 'Bỏ qua tất cả', + btnReplace: 'Thay thế', + btnReplaceAll: 'Thay thế tất cả', + btnUndo: 'Phục hồi lại', + changeTo: 'Chuyển thành', + errorLoading: 'Lỗi khi đang nạp dịch vụ ứng dụng: %s.', + ieSpellDownload: 'Chức năng kiểm tra chính tả chưa được cài đặt. Bạn có muốn tải về ngay bây giờ?', + manyChanges: 'Hoàn tất kiểm tra chính tả: %1 từ đã được thay đổi', + noChanges: 'Hoàn tất kiểm tra chính tả: Không có từ nào được thay đổi', + noMispell: 'Hoàn tất kiểm tra chính tả: Không có lỗi chính tả', + noSuggestions: '- Không đưa ra gợi ý về từ -', + notAvailable: 'Xin lỗi, dịch vụ này hiện tại không có.', + notInDic: 'Không có trong từ điển', + oneChange: 'Hoàn tất kiểm tra chính tả: Một từ đã được thay đổi', + progress: 'Đang tiến hành kiểm tra chính tả...', + title: 'Kiểm tra chính tả', + toolbar: 'Kiểm tra chính tả' +}); diff --git a/sources/plugins/wsc/lang/zh-cn.js b/sources/plugins/wsc/lang/zh-cn.js new file mode 100644 index 00000000..a2987b84 --- /dev/null +++ b/sources/plugins/wsc/lang/zh-cn.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'zh-cn', { + btnIgnore: '忽略', + btnIgnoreAll: '全部忽略', + btnReplace: '替换', + btnReplaceAll: '全部替换', + btnUndo: '撤消', + changeTo: '更改为', + errorLoading: '加载应该服务主机时出错: %s.', + ieSpellDownload: '拼写检查插件还没安装, 您是否想现在就下载?', + manyChanges: '拼写检查完成: 更改了 %1 个单词', + noChanges: '拼写检查完成: 没有更改任何单词', + noMispell: '拼写检查完成: 没有发现拼写错误', + noSuggestions: '- 没有建议 -', + notAvailable: '抱歉, 服务目前暂不可用', + notInDic: '没有在字典里', + oneChange: '拼写检查完成: 更改了一个单词', + progress: '正在进行拼写检查...', + title: '拼写检查', + toolbar: '拼写检查' +}); diff --git a/sources/plugins/wsc/lang/zh.js b/sources/plugins/wsc/lang/zh.js new file mode 100644 index 00000000..a3aa83d7 --- /dev/null +++ b/sources/plugins/wsc/lang/zh.js @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'wsc', 'zh', { + btnIgnore: '忽略', + btnIgnoreAll: '全部忽略', + btnReplace: '取代', + btnReplaceAll: '全部取代', + btnUndo: '復原', + changeTo: '更改為', + errorLoading: '無法聯系侍服器: %s.', + ieSpellDownload: '尚未安裝拼字檢查元件。您是否想要現在下載?', + manyChanges: '拼字檢查完成:更改了 %1 個單字', + noChanges: '拼字檢查完成:未更改任何單字', + noMispell: '拼字檢查完成:未發現拼字錯誤', + noSuggestions: '- 無建議值 -', + notAvailable: '抱歉,服務目前暫不可用', + notInDic: '不在字典中', + oneChange: '拼字檢查完成:更改了 1 個單字', + progress: '進行拼字檢查中…', + title: '拼字檢查', + toolbar: '拼字檢查' +}); diff --git a/sources/plugins/wsc/plugin.js b/sources/plugins/wsc/plugin.js new file mode 100644 index 00000000..ba443706 --- /dev/null +++ b/sources/plugins/wsc/plugin.js @@ -0,0 +1,142 @@ +// Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +// For licensing, see LICENSE.md or http://ckeditor.com/license + +CKEDITOR.plugins.add( 'wsc', { + requires: 'dialog', + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en-au,en-ca,en-gb,en,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,ka,km,ko,lt,lv,mk,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sr-latn,sr,sv,th,tr,ug,uk,vi,zh-cn,zh', // %REMOVE_LINE_CORE% + icons: 'spellchecker', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + parseApi: function(editor) { + editor.config.wsc_onFinish = (typeof editor.config.wsc_onFinish === 'function') ? editor.config.wsc_onFinish : function() {}; + editor.config.wsc_onClose = (typeof editor.config.wsc_onClose === 'function') ? editor.config.wsc_onClose : function() {}; + }, + parseConfig: function(editor) { + editor.config.wsc_customerId = editor.config.wsc_customerId || CKEDITOR.config.wsc_customerId || '1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk'; + editor.config.wsc_customDictionaryIds = editor.config.wsc_customDictionaryIds || CKEDITOR.config.wsc_customDictionaryIds || ''; + editor.config.wsc_userDictionaryName = editor.config.wsc_userDictionaryName || CKEDITOR.config.wsc_userDictionaryName || ''; + editor.config.wsc_customLoaderScript = editor.config.wsc_customLoaderScript || CKEDITOR.config.wsc_customLoaderScript; + + CKEDITOR.config.wsc_cmd = editor.config.wsc_cmd || CKEDITOR.config.wsc_cmd || 'spell'; // spell, thes or grammar. default tab + CKEDITOR.config.wsc_version="v4.3.0-master-d769233"; + CKEDITOR.config.wsc_removeGlobalVariable = true; + }, + init: function( editor ) { + var commandName = 'checkspell'; + + var strNormalDialog = 'dialogs/wsc.js', + strIeDialog = 'dialogs/wsc_ie.js', + strDialog, + self = this, + env = CKEDITOR.env; + + self.parseConfig(editor); + self.parseApi(editor); + var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) ); + + // SpellChecker doesn't work in Opera, with custom domain, IE Compatibility Mode and IE (8 & 9) Quirks Mode + command.modes = { wysiwyg: ( !CKEDITOR.env.opera && !CKEDITOR.env.air && document.domain == window.location.hostname && + !( env.ie && ( env.version < 8 || env.quirks ) ) ) }; + + if(typeof editor.plugins.scayt == 'undefined'){ + editor.ui.addButton && editor.ui.addButton( 'SpellChecker', { + label: editor.lang.wsc.toolbar, + click: function(editor) { + var inlineMode = (editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE), + text = inlineMode ? editor.container.getText() : editor.document.getBody().getText(); + + text = text.replace(/\s/g, ''); + + if(text) { + editor.execCommand('checkspell'); + } else { + alert('Nothing to check!'); + } + }, + toolbar: 'spellchecker,10' + }); + } + + + if ( CKEDITOR.env.ie && CKEDITOR.env.version <= 7 ){ + strDialog = strIeDialog; + } else { + if (!window.postMessage) { + strDialog = strIeDialog; + } else { + strDialog = strNormalDialog; + } + } + CKEDITOR.dialog.add( commandName, this.path + strDialog ); + } + +}); + +/** + * The parameter sets the customer ID for WSC. It is used for hosted users only. It is required for migration from free + * to trial or paid versions. + * + * config.wsc_customerId = 'encrypted-customer-id'; + * + * @cfg {String} [wsc_customerId='1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk'] + * @member CKEDITOR.config + */ + +/** + * It links WSC to custom dictionaries. It should be a string with dictionary IDs + * separated by commas (`','`). Available only for the licensed version. + * + * Further details at [http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:customdictionaries:licensed](http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:customdictionaries:licensed) + * + * config.wsc_customDictionaryIds = '1,3001'; + * + * @cfg {String} [wsc_customDictionaryIds=''] + * @member CKEDITOR.config + */ + +/** + * It activates a user dictionary for WSC. The user dictionary name should be used. Available only for the licensed version. + * + * config.wsc_userDictionaryName = 'MyUserDictionaryName'; + * + * @cfg {String} [wsc_userDictionaryName=''] + * @member CKEDITOR.config + */ + +/** + * The parameter sets the URL to WSC file. It is required to the licensed version of WSC application. + * + * Further details available at [http://wiki.webspellchecker.net/doku.php?id=migration:hosredfreetolicensedck](http://wiki.webspellchecker.net/doku.php?id=migration:hosredfreetolicensedck) + * + * config.wsc_customLoaderScript = "http://my-host/spellcheck/lf/22/js/wsc_fck2plugin.js"; + * + * @cfg {String} [wsc_customLoaderScript=''] + * @member CKEDITOR.config + */ + +/** + * The parameter sets the default spellchecking language for WSC. + * Possible values are: + * `'en_US'`, `'en_GB'`, `'pt_BR'`, `'da_DK'`, + * `'nl_NL'`, `'en_CA'`, `'fi_FI'`, `'fr_FR'`, + * `'fr_CA'`, `'de_DE'`, `'el_GR'`, `'it_IT'`, + * `'nb_NO'`, `'pt_PT'`, `'es_ES'`, `'sv_SE'`. + * + * Further details available at [http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:supportedlanguages](http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:supportedlanguages) + * + * config.wsc_lang = 'de_DE'; + * + * @cfg {String} [wsc_lang='en_US'] + * @member CKEDITOR.config + */ + +/** + * The parameter sets the active tab, when the WSC dialog is opened. + * Possible values are: + * `'spell'`, `'thes'`, `'grammar'`. + * + * // Sets active tab thesaurus. + * config.wsc_cmd = 'thes'; + * + * @cfg {String} [wsc_cmd='spell'] + * @member CKEDITOR.config + */ diff --git a/sources/plugins/wysiwygarea/plugin.js b/sources/plugins/wysiwygarea/plugin.js new file mode 100644 index 00000000..9b24257b --- /dev/null +++ b/sources/plugins/wysiwygarea/plugin.js @@ -0,0 +1,708 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview The WYSIWYG Area plugin. It registers the "wysiwyg" editing + * mode, which handles the main editing area space. + */ + +( function() { + CKEDITOR.plugins.add( 'wysiwygarea', { + init: function( editor ) { + if ( editor.config.fullPage ) { + editor.addFeature( { + allowedContent: 'html head title; style [media,type]; body (*)[id]; meta link [*]', + requiredContent: 'body' + } ); + } + + editor.addMode( 'wysiwyg', function( callback ) { + var src = 'document.open();' + + // In IE, the document domain must be set any time we call document.open(). + ( CKEDITOR.env.ie ? '(' + CKEDITOR.tools.fixDomain + ')();' : '' ) + + 'document.close();'; + + // With IE, the custom domain has to be taken care at first, + // for other browers, the 'src' attribute should be left empty to + // trigger iframe's 'load' event. + // Microsoft Edge throws "Permission Denied" if treated like an IE (#13441). + if ( CKEDITOR.env.air ) { + src = 'javascript:void(0)'; // jshint ignore:line + } else if ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) { + src = 'javascript:void(function(){' + encodeURIComponent( src ) + '}())'; // jshint ignore:line + } else { + src = ''; + } + + var iframe = CKEDITOR.dom.element.createFromHtml( '' ); + iframe.setStyles( { width: '100%', height: '100%' } ); + iframe.addClass( 'cke_wysiwyg_frame' ).addClass( 'cke_reset' ); + + var contentSpace = editor.ui.space( 'contents' ); + contentSpace.append( iframe ); + + + // Asynchronous iframe loading is only required in IE>8 and Gecko (other reasons probably). + // Do not use it on WebKit as it'll break the browser-back navigation. + var useOnloadEvent = ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) || CKEDITOR.env.gecko; + if ( useOnloadEvent ) + iframe.on( 'load', onLoad ); + + var frameLabel = editor.title, + helpLabel = editor.fire( 'ariaEditorHelpLabel', {} ).label; + + if ( frameLabel ) { + if ( CKEDITOR.env.ie && helpLabel ) + frameLabel += ', ' + helpLabel; + + iframe.setAttribute( 'title', frameLabel ); + } + + if ( helpLabel ) { + var labelId = CKEDITOR.tools.getNextId(), + desc = CKEDITOR.dom.element.createFromHtml( '' + helpLabel + '' ); + + contentSpace.append( desc, 1 ); + iframe.setAttribute( 'aria-describedby', labelId ); + } + + // Remove the ARIA description. + editor.on( 'beforeModeUnload', function( evt ) { + evt.removeListener(); + if ( desc ) + desc.remove(); + } ); + + iframe.setAttributes( { + tabIndex: editor.tabIndex, + allowTransparency: 'true' + } ); + + // Execute onLoad manually for all non IE||Gecko browsers. + !useOnloadEvent && onLoad(); + + editor.fire( 'ariaWidget', iframe ); + + function onLoad( evt ) { + evt && evt.removeListener(); + editor.editable( new framedWysiwyg( editor, iframe.$.contentWindow.document.body ) ); + editor.setData( editor.getData( 1 ), callback ); + } + } ); + } + } ); + + /** + * Adds the path to a stylesheet file to the exisiting {@link CKEDITOR.config#contentsCss} value. + * + * **Note:** This method is available only with the `wysiwygarea` plugin and only affects + * classic editors based on it (so it does not affect inline editors). + * + * editor.addContentsCss( 'assets/contents.css' ); + * + * @since 4.4 + * @param {String} cssPath The path to the stylesheet file which should be added. + * @member CKEDITOR.editor + */ + CKEDITOR.editor.prototype.addContentsCss = function( cssPath ) { + var cfg = this.config, + curContentsCss = cfg.contentsCss; + + // Convert current value into array. + if ( !CKEDITOR.tools.isArray( curContentsCss ) ) + cfg.contentsCss = curContentsCss ? [ curContentsCss ] : []; + + cfg.contentsCss.push( cssPath ); + }; + + function onDomReady( win ) { + var editor = this.editor, + doc = win.document, + body = doc.body; + + // Remove helper scripts from the DOM. + var script = doc.getElementById( 'cke_actscrpt' ); + script && script.parentNode.removeChild( script ); + script = doc.getElementById( 'cke_shimscrpt' ); + script && script.parentNode.removeChild( script ); + script = doc.getElementById( 'cke_basetagscrpt' ); + script && script.parentNode.removeChild( script ); + + body.contentEditable = true; + + if ( CKEDITOR.env.ie ) { + // Don't display the focus border. + body.hideFocus = true; + + // Disable and re-enable the body to avoid IE from + // taking the editing focus at startup. (#141 / #523) + body.disabled = true; + body.removeAttribute( 'disabled' ); + } + + delete this._.isLoadingData; + + // Play the magic to alter element reference to the reloaded one. + this.$ = body; + + doc = new CKEDITOR.dom.document( doc ); + + this.setup(); + this.fixInitialSelection(); + + var editable = this; + + // Without it IE8 has problem with removing selection in nested editable. (#13785) + if ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) { + doc.getDocumentElement().addClass( doc.$.compatMode ); + } + + // Prevent IE/Edge from leaving a new paragraph/div after deleting all contents in body. (#6966, #13142) + if ( CKEDITOR.env.ie && !CKEDITOR.env.edge && editor.enterMode != CKEDITOR.ENTER_P ) { + removeSuperfluousElement( 'p' ); + } else if ( CKEDITOR.env.edge && editor.enterMode != CKEDITOR.ENTER_DIV ) { + removeSuperfluousElement( 'div' ); + } + + // Fix problem with cursor not appearing in Webkit and IE11+ when clicking below the body (#10945, #10906). + // Fix for older IEs (8-10 and QM) is placed inside selection.js. + if ( CKEDITOR.env.webkit || ( CKEDITOR.env.ie && CKEDITOR.env.version > 10 ) ) { + doc.getDocumentElement().on( 'mousedown', function( evt ) { + if ( evt.data.getTarget().is( 'html' ) ) { + // IE needs this timeout. Webkit does not, but it does not cause problems too. + setTimeout( function() { + editor.editable().focus(); + } ); + } + } ); + } + + // Config props: disableObjectResizing and disableNativeTableHandles handler. + objectResizeDisabler( editor ); + + // Enable dragging of position:absolute elements in IE. + try { + editor.document.$.execCommand( '2D-position', false, true ); + } catch ( e ) {} + + if ( CKEDITOR.env.gecko || CKEDITOR.env.ie && editor.document.$.compatMode == 'CSS1Compat' ) { + this.attachListener( this, 'keydown', function( evt ) { + var keyCode = evt.data.getKeystroke(); + + // PageUp OR PageDown + if ( keyCode == 33 || keyCode == 34 ) { + // PageUp/PageDown scrolling is broken in document + // with standard doctype, manually fix it. (#4736) + if ( CKEDITOR.env.ie ) { + setTimeout( function() { + editor.getSelection().scrollIntoView(); + }, 0 ); + } + // Page up/down cause editor selection to leak + // outside of editable thus we try to intercept + // the behavior, while it affects only happen + // when editor contents are not overflowed. (#7955) + else if ( editor.window.$.innerHeight > this.$.offsetHeight ) { + var range = editor.createRange(); + range[ keyCode == 33 ? 'moveToElementEditStart' : 'moveToElementEditEnd' ]( this ); + range.select(); + evt.data.preventDefault(); + } + } + } ); + } + + if ( CKEDITOR.env.ie ) { + // [IE] Iframe will still keep the selection when blurred, if + // focus is moved onto a non-editing host, e.g. link or button, but + // it becomes a problem for the object type selection, since the resizer + // handler attached on it will mark other part of the UI, especially + // for the dialog. (#8157) + // [IE<8 & Opera] Even worse For old IEs, the cursor will not vanish even if + // the selection has been moved to another text input in some cases. (#4716) + // + // Now the range restore is disabled, so we simply force IE to clean + // up the selection before blur. + this.attachListener( doc, 'blur', function() { + // Error proof when the editor is not visible. (#6375) + try { + doc.$.selection.empty(); + } catch ( er ) {} + } ); + } + + if ( CKEDITOR.env.iOS ) { + // [iOS] If touch is bound to any parent of the iframe blur happens on any touch + // event and body becomes the focused element (#10714). + this.attachListener( doc, 'touchend', function() { + win.focus(); + } ); + } + + var title = editor.document.getElementsByTag( 'title' ).getItem( 0 ); + // document.title is malfunctioning on Chrome, so get value from the element (#12402). + title.data( 'cke-title', title.getText() ); + + // [IE] JAWS will not recognize the aria label we used on the iframe + // unless the frame window title string is used as the voice label, + // backup the original one and restore it on output. + if ( CKEDITOR.env.ie ) + editor.document.$.title = this._.docTitle; + + CKEDITOR.tools.setTimeout( function() { + // Editable is ready after first setData. + if ( this.status == 'unloaded' ) + this.status = 'ready'; + + editor.fire( 'contentDom' ); + + if ( this._.isPendingFocus ) { + editor.focus(); + this._.isPendingFocus = false; + } + + setTimeout( function() { + editor.fire( 'dataReady' ); + }, 0 ); + }, 0, this ); + + function removeSuperfluousElement( tagName ) { + var lockRetain = false; + + // Superfluous elements appear after keydown + // and before keyup, so the procedure is as follows: + // 1. On first keydown mark all elements with + // a specified tag name as non-superfluous. + editable.attachListener( editable, 'keydown', function() { + var body = doc.getBody(), + retained = body.getElementsByTag( tagName ); + + if ( !lockRetain ) { + for ( var i = 0; i < retained.count(); i++ ) { + retained.getItem( i ).setCustomData( 'retain', true ); + } + lockRetain = true; + } + }, null, null, 1 ); + + // 2. On keyup remove all elements that were not marked + // as non-superfluous (which means they must have had appeared in the meantime). + editable.attachListener( editable, 'keyup', function() { + var elements = doc.getElementsByTag( tagName ); + if ( lockRetain ) { + if ( elements.count() == 1 && !elements.getItem( 0 ).getCustomData( 'retain' ) ) { + elements.getItem( 0 ).remove( 1 ); + } + lockRetain = false; + } + } ); + } + } + + var framedWysiwyg = CKEDITOR.tools.createClass( { + $: function() { + this.base.apply( this, arguments ); + + this._.frameLoadedHandler = CKEDITOR.tools.addFunction( function( win ) { + // Avoid opening design mode in a frame window thread, + // which will cause host page scrolling.(#4397) + CKEDITOR.tools.setTimeout( onDomReady, 0, this, win ); + }, this ); + + this._.docTitle = this.getWindow().getFrame().getAttribute( 'title' ); + }, + + base: CKEDITOR.editable, + + proto: { + setData: function( data, isSnapshot ) { + var editor = this.editor; + + if ( isSnapshot ) { + this.setHtml( data ); + this.fixInitialSelection(); + + // Fire dataReady for the consistency with inline editors + // and because it makes sense. (#10370) + editor.fire( 'dataReady' ); + } + else { + this._.isLoadingData = true; + editor._.dataStore = { id: 1 }; + + var config = editor.config, + fullPage = config.fullPage, + docType = config.docType; + + // Build the additional stuff to be included into . + var headExtra = CKEDITOR.tools.buildStyleHtml( iframeCssFixes() ).replace( / + + + +

+ CKEditor Samples » Replace DIV with CKEditor on the Fly +

+
+ This sample is not maintained anymore. Check out the brand new samples in CKEditor SDK. +
+
+

+ This sample shows how to automatically replace <div> elements + with a CKEditor instance on the fly, following user's doubleclick. The content + that was previously placed inside the <div> element will now + be moved into CKEditor editing area. +

+

+ For details on how to create this setup check the source code of this sample page. +

+
+

+ Double-click any of the following <div> elements to transform them into + editor instances. +

+
+

+ Part 1 +

+

+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi + semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna + rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla + nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce + eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. +

+
+
+

+ Part 2 +

+

+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi + semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna + rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla + nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce + eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. +

+

+ Donec velit. Mauris massa. Vestibulum non nulla. Nam suscipit arcu nec elit. Phasellus + sollicitudin iaculis ante. Ut non mauris et sapien tincidunt adipiscing. Vestibulum + vitae leo. Suspendisse nec mi tristique nulla laoreet vulputate. +

+
+
+

+ Part 3 +

+

+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi + semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna + rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla + nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce + eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. +

+
+ + + diff --git a/sources/samples/old/index.html b/sources/samples/old/index.html new file mode 100644 index 00000000..07853c17 --- /dev/null +++ b/sources/samples/old/index.html @@ -0,0 +1,111 @@ + + + + + + CKEditor Samples + + + +

+ CKEditor Samples +

+
+ These samples are not maintained anymore. Check out the brand new samples in CKEditor SDK. +
+
+
+

+ Basic Samples +

+
+
Replace textarea elements by class name
+
Automatic replacement of all textarea elements of a given class with a CKEditor instance.
+ +
Replace textarea elements by code
+
Replacement of textarea elements with CKEditor instances by using a JavaScript call.
+ +
Create editors with jQuery
+
Creating standard and inline CKEditor instances with jQuery adapter.
+
+ +

+ Basic Customization +

+
+
User Interface color
+
Changing CKEditor User Interface color and adding a toolbar button that lets the user set the UI color.
+ +
User Interface languages
+
Changing CKEditor User Interface language and adding a drop-down list that lets the user choose the UI language.
+
+ + + + +
+
+

+ Inline Editing +

+
+
Massive inline editor creation
+
Turn all elements with contentEditable = true attribute into inline editors.
+ +
Convert element into an inline editor by code
+
Conversion of DOM elements into inline CKEditor instances by using a JavaScript call.
+ +
Replace textarea with inline editor New!
+
A form with a textarea that is replaced by an inline editor at runtime.
+ + +
+ +

+ Advanced Samples +

+
+
Data filtering and features activation New!
+
Data filtering and automatic features activation basing on configuration.
+ +
Replace DIV elements on the fly
+
Transforming a div element into an instance of CKEditor with a mouse click.
+ +
Append editor instances
+
Appending editor instances to existing DOM elements.
+ +
Create and destroy editor instances for Ajax applications
+
Creating and destroying CKEditor instances on the fly and saving the contents entered into the editor window.
+ +
Basic usage of the API
+
Using the CKEditor JavaScript API to interact with the editor at runtime.
+ +
XHTML-compliant style
+
Configuring CKEditor to produce XHTML 1.1 compliant attributes and styles.
+ +
Read-only mode
+
Using the readOnly API to block introducing changes to the editor contents.
+ +
"Tab" key-based navigation
+
Navigating among editor instances with tab key.
+ + + + +
+
+
+ + + diff --git a/sources/samples/old/inlineall.html b/sources/samples/old/inlineall.html new file mode 100644 index 00000000..23e2a5f5 --- /dev/null +++ b/sources/samples/old/inlineall.html @@ -0,0 +1,314 @@ + + + + + + Massive inline editing — CKEditor Sample + + + + + + +
+

CKEditor Samples » Massive inline editing

+
+ This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. +
+
+

This sample page demonstrates the inline editing feature - CKEditor instances will be created automatically from page elements with contentEditable attribute set to value true:

+
<div contenteditable="true" > ... </div>
+

Click inside of any element below to start editing.

+
+
+
+ +
+
+
+

+ Fusce vitae porttitor +

+

+ + Lorem ipsum dolor sit amet dolor. Duis blandit vestibulum faucibus a, tortor. + +

+

+ Proin nunc justo felis mollis tincidunt, risus risus pede, posuere cubilia Curae, Nullam euismod, enim. Etiam nibh ultricies dolor ac dignissim erat volutpat. Vivamus fermentum nisl nulla sem in metus. Maecenas wisi. Donec nec erat volutpat. +

+
+

+ Fusce vitae porttitor a, euismod convallis nisl, blandit risus tortor, pretium. + Vehicula vitae, imperdiet vel, ornare enim vel sodales rutrum +

+
+
+

+ Libero nunc, rhoncus ante ipsum non ipsum. Nunc eleifend pede turpis id sollicitudin fringilla. Phasellus ultrices, velit ac arcu. +

+
+

Pellentesque nunc. Donec suscipit erat. Pellentesque habitant morbi tristique ullamcorper.

+

Mauris mattis feugiat lectus nec mauris. Nullam vitae ante.

+
+
+
+
+

+ Integer condimentum sit amet +

+

+ Aenean nonummy a, mattis varius. Cras aliquet. + Praesent magna non mattis ac, rhoncus nunc, rhoncus eget, cursus pulvinar mollis.

+

Proin id nibh. Sed eu libero posuere sed, lectus. Phasellus dui gravida gravida feugiat mattis ac, felis.

+

Integer condimentum sit amet, tempor elit odio, a dolor non ante at sapien. Sed ac lectus. Nulla ligula quis eleifend mi, id leo velit pede cursus arcu id nulla ac lectus. Phasellus vestibulum. Nunc viverra enim quis diam.

+
+
+

+ Praesent wisi accumsan sit amet nibh +

+

Donec ullamcorper, risus tortor, pretium porttitor. Morbi quam quis lectus non leo.

+

Integer faucibus scelerisque. Proin faucibus at, aliquet vulputate, odio at eros. Fusce gravida, erat vitae augue. Fusce urna fringilla gravida.

+

In hac habitasse platea dictumst. Praesent wisi accumsan sit amet nibh. Maecenas orci luctus a, lacinia quam sem, posuere commodo, odio condimentum tempor, pede semper risus. Suspendisse pede. In hac habitasse platea dictumst. Nam sed laoreet sit amet erat. Integer.

+
+
+
+
+

+ CKEditor logo +

+

Quisque justo neque, mattis sed, fermentum ultrices posuere cubilia Curae, Vestibulum elit metus, quis placerat ut, lectus. Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis. Fusce porttitor, nulla quis turpis. Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi. Donec odio nec velit ac nunc sit amet, accumsan cursus aliquet. Vestibulum ante sit amet sagittis mi.

+

+ Nullam laoreet vel consectetuer tellus suscipit +

+
    +
  • Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis.
  • +
  • Fusce porttitor, nulla quis turpis. Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi.
  • +
  • Mauris eget tellus. Donec non felis. Nam eget dolor. Vestibulum enim. Donec.
  • +
+

Quisque justo neque, mattis sed, fermentum ultrices posuere cubilia Curae, Vestibulum elit metus, quis placerat ut, lectus.

+

Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi. Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis. Fusce porttitor, nulla quis turpis.

+

Donec odio nec velit ac nunc sit amet, accumsan cursus aliquet. Vestibulum ante sit amet sagittis mi. Sed in nonummy faucibus turpis. Mauris eget tellus. Donec non felis. Nam eget dolor. Vestibulum enim. Donec.

+
+
+
+
+ Tags of this article: +

+ inline, editing, floating, CKEditor +

+
+
+ + + diff --git a/sources/samples/old/inlinebycode.html b/sources/samples/old/inlinebycode.html new file mode 100644 index 00000000..70e15550 --- /dev/null +++ b/sources/samples/old/inlinebycode.html @@ -0,0 +1,124 @@ + + + + + + Inline Editing by Code — CKEditor Sample + + + + + +

+ CKEditor Samples » Inline Editing by Code +

+
+ This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. +
+
+

+ This sample shows how to create an inline editor instance of CKEditor. It is created + with a JavaScript call using the following code: +

+
+// This property tells CKEditor to not activate every element with contenteditable=true element.
+CKEDITOR.disableAutoInline = true;
+
+var editor = CKEDITOR.inline( document.getElementById( 'editable' ) );
+
+

+ Note that editable in the code above is the id + attribute of the <div> element to be converted into an inline instance. +

+
+
+

Saturn V carrying Apollo 11 Apollo 11

+ +

Apollo 11 was the spaceflight that landed the first humans, Americans Neil Armstrong and Buzz Aldrin, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.

+ +

Armstrong spent about three and a half two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, Michael Collins, piloted the command spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.

+ +

Broadcasting and quotes

+ +

Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:

+ +
+

One small step for [a] man, one giant leap for mankind.

+
+ +

Apollo 11 effectively ended the Space Race and fulfilled a national goal proposed in 1961 by the late U.S. President John F. Kennedy in a speech before the United States Congress:

+ +
+

[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.

+
+ +

Technical details

+ + + + + + + + + + + + + + + + + + + + + + + +
Mission crew
PositionAstronaut
CommanderNeil A. Armstrong
Command Module PilotMichael Collins
Lunar Module PilotEdwin "Buzz" E. Aldrin, Jr.
+ +

Launched by a Saturn V rocket from Kennedy Space Center in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of NASA's Apollo program. The Apollo spacecraft had three parts:

+ +
    +
  1. Command Module with a cabin for the three astronauts which was the only part which landed back on Earth
  2. +
  3. Service Module which supported the Command Module with propulsion, electrical power, oxygen and water
  4. +
  5. Lunar Module for landing on the Moon.
  6. +
+ +

After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the Sea of Tranquility. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the Pacific Ocean on July 24.

+ +
+

Source: Wikipedia.org

+
+ + + + + diff --git a/sources/samples/old/inlinetextarea.html b/sources/samples/old/inlinetextarea.html new file mode 100644 index 00000000..e9274041 --- /dev/null +++ b/sources/samples/old/inlinetextarea.html @@ -0,0 +1,113 @@ + + + + + + Replace Textarea with Inline Editor — CKEditor Sample + + + + + +

+ CKEditor Samples » Replace Textarea with Inline Editor +

+
+ This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. +
+
+

+ You can also create an inline editor from a textarea + element. In this case the textarea will be replaced + by a div element with inline editing enabled. +

+
+// "article-body" is the name of a textarea element.
+var editor = CKEDITOR.inline( 'article-body' );
+
+
+
+

This is a sample form with some fields

+

+ Title:
+

+

+ Article Body (Textarea converted to CKEditor):
+ +

+

+ +

+
+ + + + + diff --git a/sources/samples/old/jquery.html b/sources/samples/old/jquery.html new file mode 100644 index 00000000..3d4b4dc9 --- /dev/null +++ b/sources/samples/old/jquery.html @@ -0,0 +1,103 @@ + + + + + + jQuery Adapter — CKEditor Sample + + + + + + + + +

+ CKEditor Samples » Create Editors with jQuery +

+
+ This sample is not maintained anymore. Check out the brand new samples in CKEditor SDK. +
+
+
+

+ This sample shows how to use the jQuery adapter. + Note that you have to include both CKEditor and jQuery scripts before including the adapter. +

+ +
+<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
+<script src="/ckedit../../ckeditor.js"></script>
+<script src="/ckeditor/adapters/jquery.js"></script>
+
+ +

Then you can replace HTML elements with a CKEditor instance using the ckeditor() method.

+ +
+$( document ).ready( function() {
+	$( 'textarea#editor1' ).ckeditor();
+} );
+
+
+ +

Inline Example

+ +
+

Saturn V carrying Apollo 11Apollo 11 was the spaceflight that landed the first humans, Americans Neil Armstrong and Buzz Aldrin, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.

+

Armstrong spent about three and a half two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, Michael Collins, piloted the command spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth. +

Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:

+

One small step for [a] man, one giant leap for mankind.

Apollo 11 effectively ended the Space Race and fulfilled a national goal proposed in 1961 by the late U.S. President John F. Kennedy in a speech before the United States Congress:

[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.

+
+ +
+ +

Classic (iframe-based) Example

+ + + +

+ + + + + +

+
+ + + diff --git a/sources/samples/old/readonly.html b/sources/samples/old/readonly.html new file mode 100644 index 00000000..7b9e7178 --- /dev/null +++ b/sources/samples/old/readonly.html @@ -0,0 +1,76 @@ + + + + + + Using the CKEditor Read-Only API — CKEditor Sample + + + + + +

+ CKEditor Samples » Using the CKEditor Read-Only API +

+
+ This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. +
+
+

+ This sample shows how to use the + setReadOnly + API to put editor into the read-only state that makes it impossible for users to change the editor contents. +

+

+ For details on how to create this setup check the source code of this sample page. +

+
+
+

+ +

+

+ + +

+
+ + + diff --git a/sources/samples/old/replacebyclass.html b/sources/samples/old/replacebyclass.html new file mode 100644 index 00000000..7fb6dec6 --- /dev/null +++ b/sources/samples/old/replacebyclass.html @@ -0,0 +1,60 @@ + + + + + + Replace Textareas by Class Name — CKEditor Sample + + + + +

+ CKEditor Samples » Replace Textarea Elements by Class Name +

+
+ This sample is not maintained anymore. Check out the brand new samples in CKEditor SDK. +
+
+

+ This sample shows how to automatically replace all <textarea> elements + of a given class with a CKEditor instance. +

+

+ To replace a <textarea> element, simply assign it the ckeditor + class, as in the code below: +

+
+<textarea class="ckeditor" name="editor1"></textarea>
+
+

+ Note that other <textarea> attributes (like id or name) need to be adjusted to your document. +

+
+
+

+ + +

+

+ +

+
+ + + diff --git a/sources/samples/old/replacebycode.html b/sources/samples/old/replacebycode.html new file mode 100644 index 00000000..413ec4d3 --- /dev/null +++ b/sources/samples/old/replacebycode.html @@ -0,0 +1,59 @@ + + + + + + Replace Textarea by Code — CKEditor Sample + + + + +

+ CKEditor Samples » Replace Textarea Elements Using JavaScript Code +

+
+ This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. +
+
+
+

+ This editor is using an <iframe> element-based editing area, provided by the Wysiwygarea plugin. +

+
+CKEDITOR.replace( 'textarea_id' )
+
+
+ + +

+ +

+
+ + + diff --git a/sources/samples/old/sample.css b/sources/samples/old/sample.css new file mode 100644 index 00000000..92f76bb6 --- /dev/null +++ b/sources/samples/old/sample.css @@ -0,0 +1,357 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +html, body, h1, h2, h3, h4, h5, h6, div, span, blockquote, p, address, form, fieldset, img, ul, ol, dl, dt, dd, li, hr, table, td, th, strong, em, sup, sub, dfn, ins, del, q, cite, var, samp, code, kbd, tt, pre +{ + line-height: 1.5; +} + +body +{ + padding: 10px 30px; +} + +input, textarea, select, option, optgroup, button, td, th +{ + font-size: 100%; +} + +pre +{ + -moz-tab-size: 4; + tab-size: 4; +} + +pre, code, kbd, samp, tt +{ + font-family: monospace,monospace; + font-size: 1em; +} + +body { + width: 960px; + margin: 0 auto; +} + +code +{ + background: #f3f3f3; + border: 1px solid #ddd; + padding: 1px 4px; + border-radius: 3px; +} + +abbr +{ + border-bottom: 1px dotted #555; + cursor: pointer; +} + +.new, .beta +{ + text-transform: uppercase; + font-size: 10px; + font-weight: bold; + padding: 1px 4px; + margin: 0 0 0 5px; + color: #fff; + float: right; + border-radius: 3px; +} + +.new +{ + background: #FF7E00; + border: 1px solid #DA8028; + text-shadow: 0 1px 0 #C97626; + + box-shadow: 0 2px 3px 0 #FFA54E inset; +} + +.beta +{ + background: #18C0DF; + border: 1px solid #19AAD8; + text-shadow: 0 1px 0 #048CAD; + font-style: italic; + + box-shadow: 0 2px 3px 0 #50D4FD inset; +} + +h1.samples +{ + color: #0782C1; + font-size: 200%; + font-weight: normal; + margin: 0; + padding: 0; +} + +h1.samples a +{ + color: #0782C1; + text-decoration: none; + border-bottom: 1px dotted #0782C1; +} + +.samples a:hover +{ + border-bottom: 1px dotted #0782C1; +} + +h2.samples +{ + color: #000000; + font-size: 130%; + margin: 15px 0 0 0; + padding: 0; +} + +p, blockquote, address, form, pre, dl, h1.samples, h2.samples +{ + margin-bottom: 15px; +} + +ul.samples +{ + margin-bottom: 15px; +} + +.clear +{ + clear: both; +} + +fieldset +{ + margin: 0; + padding: 10px; +} + +body, input, textarea +{ + color: #333333; + font-family: Arial, Helvetica, sans-serif; +} + +body +{ + font-size: 75%; +} + +a.samples +{ + color: #189DE1; + text-decoration: none; +} + +form +{ + margin: 0; + padding: 0; +} + +pre.samples +{ + background-color: #F7F7F7; + border: 1px solid #D7D7D7; + overflow: auto; + padding: 0.25em; + white-space: pre-wrap; /* CSS 2.1 */ + word-wrap: break-word; /* IE7 */ +} + +#footer +{ + clear: both; + padding-top: 10px; +} + +#footer hr +{ + margin: 10px 0 15px 0; + height: 1px; + border: solid 1px gray; + border-bottom: none; +} + +#footer p +{ + margin: 0 10px 10px 10px; + float: left; +} + +#footer #copy +{ + float: right; +} + +#outputSample +{ + width: 100%; + table-layout: fixed; +} + +#outputSample thead th +{ + color: #dddddd; + background-color: #999999; + padding: 4px; + white-space: nowrap; +} + +#outputSample tbody th +{ + vertical-align: top; + text-align: left; +} + +#outputSample pre +{ + margin: 0; + padding: 0; +} + +.description +{ + border: 1px dotted #B7B7B7; + margin-bottom: 10px; + padding: 10px 10px 0; + overflow: hidden; +} + +label +{ + display: block; + margin-bottom: 6px; +} + +/** + * CKEditor editables are automatically set with the "cke_editable" class + * plus cke_editable_(inline|themed) depending on the editor type. + */ + +/* Style a bit the inline editables. */ +.cke_editable.cke_editable_inline +{ + cursor: pointer; +} + +/* Once an editable element gets focused, the "cke_focus" class is + added to it, so we can style it differently. */ +.cke_editable.cke_editable_inline.cke_focus +{ + box-shadow: inset 0px 0px 20px 3px #ddd, inset 0 0 1px #000; + outline: none; + background: #eee; + cursor: text; +} + +/* Avoid pre-formatted overflows inline editable. */ +.cke_editable_inline pre +{ + white-space: pre-wrap; + word-wrap: break-word; +} + +/** + * Samples index styles. + */ + +.twoColumns, +.twoColumnsLeft, +.twoColumnsRight +{ + overflow: hidden; +} + +.twoColumnsLeft, +.twoColumnsRight +{ + width: 45%; +} + +.twoColumnsLeft +{ + float: left; +} + +.twoColumnsRight +{ + float: right; +} + +dl.samples +{ + padding: 0 0 0 40px; +} +dl.samples > dt +{ + display: list-item; + list-style-type: disc; + list-style-position: outside; + margin: 0 0 3px; +} +dl.samples > dd +{ + margin: 0 0 3px; +} +.warning +{ + color: #ff0000; + background-color: #FFCCBA; + border: 2px dotted #ff0000; + padding: 15px 10px; + margin: 10px 0; +} + +.warning.deprecated { + font-size: 1.3em; +} + +/* Used on inline samples */ + +blockquote +{ + font-style: italic; + font-family: Georgia, Times, "Times New Roman", serif; + padding: 2px 0; + border-style: solid; + border-color: #ccc; + border-width: 0; +} + +.cke_contents_ltr blockquote +{ + padding-left: 20px; + padding-right: 8px; + border-left-width: 5px; +} + +.cke_contents_rtl blockquote +{ + padding-left: 8px; + padding-right: 20px; + border-right-width: 5px; +} + +img.right { + border: 1px solid #ccc; + float: right; + margin-left: 15px; + padding: 5px; +} + +img.left { + border: 1px solid #ccc; + float: left; + margin-right: 15px; + padding: 5px; +} + +.marker +{ + background-color: Yellow; +} diff --git a/sources/samples/old/sample.js b/sources/samples/old/sample.js new file mode 100644 index 00000000..a0e02694 --- /dev/null +++ b/sources/samples/old/sample.js @@ -0,0 +1,51 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +// Tool scripts for the sample pages. +// This file can be ignored and is not required to make use of CKEditor. + +( function() { + CKEDITOR.on( 'instanceReady', function( ev ) { + // Check for sample compliance. + var editor = ev.editor, + meta = CKEDITOR.document.$.getElementsByName( 'ckeditor-sample-required-plugins' ), + requires = meta.length ? CKEDITOR.dom.element.get( meta[ 0 ] ).getAttribute( 'content' ).split( ',' ) : [], + missing = [], + i; + + if ( requires.length ) { + for ( i = 0; i < requires.length; i++ ) { + if ( !editor.plugins[ requires[ i ] ] ) + missing.push( '' + requires[ i ] + '' ); + } + + if ( missing.length ) { + var warn = CKEDITOR.dom.element.createFromHtml( + '
' + + 'To fully experience this demo, the ' + missing.join( ', ' ) + ' plugin' + ( missing.length > 1 ? 's are' : ' is' ) + ' required.' + + '
' + ); + warn.insertBefore( editor.container ); + } + } + + // Set icons. + var doc = new CKEDITOR.dom.document( document ), + icons = doc.find( '.button_icon' ); + + for ( i = 0; i < icons.count(); i++ ) { + var icon = icons.getItem( i ), + name = icon.getAttribute( 'data-icon' ), + style = CKEDITOR.skin.getIconStyle( name, ( CKEDITOR.lang.dir == 'rtl' ) ); + + icon.addClass( 'cke_button_icon' ); + icon.addClass( 'cke_button__' + name + '_icon' ); + icon.setAttribute( 'style', style ); + icon.setStyle( 'float', 'none' ); + + } + } ); +} )(); +// %LEAVE_UNMINIFIED% %REMOVE_LINE% diff --git a/sources/samples/old/sample_posteddata.php b/sources/samples/old/sample_posteddata.php new file mode 100644 index 00000000..e560d204 --- /dev/null +++ b/sources/samples/old/sample_posteddata.php @@ -0,0 +1,16 @@ +
+
+-------------------------------------------------------------------------------------------
+  CKEditor - Posted Data
+
+  We are sorry, but your Web server does not support the PHP language used in this script.
+
+  Please note that CKEditor can be used with any other server-side language than just PHP.
+  To save the content created with CKEditor you need to read the POST data on the server
+  side and write it to a file or the database.
+
+  Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
+  For licensing, see LICENSE.md or http://ckeditor.com/license
+-------------------------------------------------------------------------------------------
+
+
*/ include "assets/posteddata.php"; ?> diff --git a/sources/samples/old/tabindex.html b/sources/samples/old/tabindex.html new file mode 100644 index 00000000..4918e672 --- /dev/null +++ b/sources/samples/old/tabindex.html @@ -0,0 +1,78 @@ + + + + + + TAB Key-Based Navigation — CKEditor Sample + + + + + + +

+ CKEditor Samples » TAB Key-Based Navigation +

+
+ This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. +
+
+

+ This sample shows how tab key navigation among editor instances is + affected by the tabIndex attribute from + the original page element. Use TAB key to move between the editors. +

+
+

+ +

+
+

+ +

+

+ +

+ + + diff --git a/sources/samples/old/uicolor.html b/sources/samples/old/uicolor.html new file mode 100644 index 00000000..c1b48aab --- /dev/null +++ b/sources/samples/old/uicolor.html @@ -0,0 +1,72 @@ + + + + + + UI Color Picker — CKEditor Sample + + + + +

+ CKEditor Samples » UI Color +

+
+ This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. +
+
+

+ This sample shows how to automatically replace <textarea> elements + with a CKEditor instance with an option to change the color of its user interface.
+ Note:The UI skin color feature depends on the CKEditor skin + compatibility. The Moono and Kama skins are examples of skins that work with it. +

+
+
+

+ This editor instance has a UI color value defined in configuration to change the skin color, + To specify the color of the user interface, set the uiColor property: +

+
+CKEDITOR.replace( 'textarea_id', {
+	uiColor: '#14B8C4'
+});
+

+ Note that textarea_id in the code above is the id attribute of + the <textarea> element to be replaced. +

+

+ + +

+

+ +

+
+ + + diff --git a/sources/samples/old/uilanguages.html b/sources/samples/old/uilanguages.html new file mode 100644 index 00000000..a7bf1116 --- /dev/null +++ b/sources/samples/old/uilanguages.html @@ -0,0 +1,122 @@ + + + + + + User Interface Globalization — CKEditor Sample + + + + + +

+ CKEditor Samples » User Interface Languages +

+
+ This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. +
+
+

+ This sample shows how to automatically replace <textarea> elements + with a CKEditor instance with an option to change the language of its user interface. +

+

+ It pulls the language list from CKEditor _languages.js file that contains the list of supported languages and creates + a drop-down list that lets the user change the UI language. +

+

+ By default, CKEditor automatically localizes the editor to the language of the user. + The UI language can be controlled with two configuration options: + language and + + defaultLanguage. The defaultLanguage setting specifies the + default CKEditor language to be used when a localization suitable for user's settings is not available. +

+

+ To specify the user interface language that will be used no matter what language is + specified in user's browser or operating system, set the language property: +

+
+CKEDITOR.replace( 'textarea_id', {
+	// Load the German interface.
+	language: 'de'
+});
+

+ Note that textarea_id in the code above is the id attribute of + the <textarea> element to be replaced. +

+
+
+

+ Available languages ( languages!):
+ +
+ + (You may see strange characters if your system does not support the selected language) + +

+

+ + +

+
+ + + diff --git a/sources/samples/old/xhtmlstyle.html b/sources/samples/old/xhtmlstyle.html new file mode 100644 index 00000000..bbf2b339 --- /dev/null +++ b/sources/samples/old/xhtmlstyle.html @@ -0,0 +1,234 @@ + + + + + + XHTML Compliant Output — CKEditor Sample + + + + + + +

+ CKEditor Samples » Producing XHTML Compliant Output +

+
+ This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. +
+
+

+ This sample shows how to configure CKEditor to output valid + XHTML 1.1 code. + Deprecated elements (<font>, <u>) or attributes + (size, face) will be replaced with XHTML compliant code. +

+

+ To add a CKEditor instance outputting valid XHTML code, load the editor using a standard + JavaScript call and define CKEditor features to use the XHTML compliant elements and styles. +

+

+ A snippet of the configuration code can be seen below; check the source of this page for + full definition: +

+
+CKEDITOR.replace( 'textarea_id', {
+	contentsCss: 'assets/outputxhtml.css',
+
+	coreStyles_bold: {
+		element: 'span',
+		attributes: { 'class': 'Bold' }
+	},
+	coreStyles_italic: {
+		element: 'span',
+		attributes: { 'class': 'Italic' }
+	},
+
+	...
+});
+
+
+

+ + + +

+

+ +

+
+ + + diff --git a/sources/samples/toolbarconfigurator/bender.js b/sources/samples/toolbarconfigurator/bender.js new file mode 100644 index 00000000..d592866c --- /dev/null +++ b/sources/samples/toolbarconfigurator/bender.js @@ -0,0 +1,52 @@ +/* jshint browser: false, node: true */ + +'use strict'; + +var config = { + + applications: { + ckeditor: { + path: '../../', + files: [ + 'ckeditor.js' + ] + }, + + codemirror: { + path: '.', + files: [ + 'js/lib/codemirror/codemirror.js' + ] + }, + + toolbartool: { + path: '.', + files: [ + 'js/fulltoolbareditor.js', + 'js/abstracttoolbarmodifier.js', + 'js/toolbarmodifier.js', + 'js/toolbartextmodifier.js' + ] + } + }, + + plugins: [ + 'node_modules/benderjs-mocha', + 'node_modules/benderjs-chai' + ], + + framework: 'mocha', + + tests: { + 'main': { + applications: [ 'ckeditor', 'codemirror', 'toolbartool' ], + basePath: 'tests/', + paths: [ + '**', + '!**/_*/**' + ] + } + } +}; + +module.exports = config; diff --git a/sources/samples/toolbarconfigurator/css/fontello.css b/sources/samples/toolbarconfigurator/css/fontello.css new file mode 100644 index 00000000..bb32199d --- /dev/null +++ b/sources/samples/toolbarconfigurator/css/fontello.css @@ -0,0 +1,55 @@ +@font-face { + font-family: 'fontello'; + src: url('../font/fontello.eot?89024372'); + src: url('../font/fontello.eot?89024372#iefix') format('embedded-opentype'), + url('../font/fontello.woff?89024372') format('woff'), + url('../font/fontello.ttf?89024372') format('truetype'), + url('../font/fontello.svg?89024372#fontello') format('svg'); + font-weight: normal; + font-style: normal; +} +/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ +/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */ +/* +@media screen and (-webkit-min-device-pixel-ratio:0) { + @font-face { + font-family: 'fontello'; + src: url('../font/fontello.svg?89024372#fontello') format('svg'); + } +} +*/ + + [class^="icon-"]:before, [class*=" icon-"]:before { + font-family: "fontello"; + font-style: normal; + font-weight: normal; + speak: none; + + display: inline-block; + text-decoration: inherit; + width: 1em; + margin-right: .2em; + text-align: center; + /* opacity: .8; */ + + /* For safety - reset parent styles, that can break glyph codes*/ + font-variant: normal; + text-transform: none; + + /* fix buttons height, for twitter bootstrap */ + line-height: 1em; + + /* Animation center compensation - margins should be symmetric */ + /* remove if not needed */ + margin-left: .2em; + + /* you can be more comfortable with increased icons size */ + /* font-size: 120%; */ + + /* Uncomment for 3D effect */ + /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ +} + +.icon-trash:before { content: '\e802'; } /* '' */ +.icon-down-big:before { content: '\e800'; } /* '' */ +.icon-up-big:before { content: '\e801'; } /* '' */ \ No newline at end of file diff --git a/sources/samples/toolbarconfigurator/font/LICENSE.txt b/sources/samples/toolbarconfigurator/font/LICENSE.txt new file mode 100644 index 00000000..b5110545 --- /dev/null +++ b/sources/samples/toolbarconfigurator/font/LICENSE.txt @@ -0,0 +1,12 @@ +Font license info + + +## Font Awesome + + Copyright (C) 2012 by Dave Gandy + + Author: Dave Gandy + License: SIL () + Homepage: http://fortawesome.github.com/Font-Awesome/ + + diff --git a/sources/samples/toolbarconfigurator/font/config.json b/sources/samples/toolbarconfigurator/font/config.json new file mode 100644 index 00000000..94809d70 --- /dev/null +++ b/sources/samples/toolbarconfigurator/font/config.json @@ -0,0 +1,28 @@ +{ + "name": "", + "css_prefix_text": "icon-", + "css_use_suffix": false, + "hinting": true, + "units_per_em": 1000, + "ascent": 850, + "glyphs": [ + { + "uid": "f48ae54adfb27d8ada53d0fd9e34ee10", + "css": "trash-empty", + "code": 59392, + "src": "fontawesome" + }, + { + "uid": "1c4068ed75209e21af36017df8871802", + "css": "down-big", + "code": 59393, + "src": "fontawesome" + }, + { + "uid": "95376bf082bfec6ce06ea1cda7bd7ead", + "css": "up-big", + "code": 59394, + "src": "fontawesome" + } + ] +} \ No newline at end of file diff --git a/sources/samples/toolbarconfigurator/font/fontello.eot b/sources/samples/toolbarconfigurator/font/fontello.eot new file mode 100644 index 0000000000000000000000000000000000000000..2732fad4b99afccc74c27aa672ccd40f913b80ca GIT binary patch literal 4988 zcmd^CT}&L;6+U-n|5z{>v%7Y(7~l1;TJ;11yDg zVpn;H>a>bi`B(Z@Bfv`Q*fYSi|jl~N@SeW+BaYM*MUmGV&aB~qZ@nVp6B zCrbO=ftmB2bH97fx#ymHXZEEwqCXxW5~LAd8o6~F!19)0bYZfl?>%iZ)KhQvZ0=d> zXg@7biPor0MOwjM2@TCO1#OY8L$_!HmJrRrvO$})Y_laDrzG{E#*;K{#!`j;>yj1rq};0G5fc0e|M>9%?p!$L*zb$_Ms&hy#4wN^hxNQORMD@ z&5r?*yNt*FmC~FgZqsYfUxDslwQj7_zx>CbV?2^;)@t#iA3WL)U19t`td};+(cV`O zzwc$Vr`9)$>+k&N`#VGjUV=VDLVrWNMQ-wG-_m{w%WE|${z}IMmT7N|(00!?xsaWw zvAc9v)2DW>(G|UsE`m^BFhcffce`WDz{0KV`rhb7z>JTcLcWI4F<(ZU?kKN z4Bip9566VrzWw5zAewn?cB=XU8Bex3=Y;}X+bQ# zqBY?08b`YZTfMAx4V*+|2kls5aD3<3k%^Ajoxo@y2H(#IM)3%Wf%Xv8JKHZF?i5|^ z;a2siNrP(d8a0pz8Hj!-X+P#PQm+}L=_KF!zU*F3`Kx$4$6;nFnn3c5-S4b9Wk z-0V-2*V{Nvjkq!k^VYLh^OvVCUN|>#cC2lnZIG`M`wzuA=D6UP2ZlyOf9T*>=xwc$ z)FfTf&oAEJ z{uLX=S$=*A-k#T5KmW8T;P(f#;#s#4?rC`Z{L^G6mDJkoNS+C{i;loEe%^$!8+_22fKhT zIM_{%blJfk*q?K-pW>)1j)K5wqj&fub2UJ_Mn872p#7r7!5TG-BM#PKPdL~GeA>Zo z3W=v2?16pG!G4+%n+|TIF7f+xY5nHL^5Rli9!vMg{=VY_a`vVy!L+<)tw`&7d8xFq zDaYhOX{}sbSt%vwN~?7|Rb0HjVr|sbx|}I)Y%Z79Pd7yVc z_3Mo|HE}C4l`JeIlrZJIR3A<%SJxHg%3jSyj7YeWlWKA@7g1yRuvEj0hVyx;{8?*W z9b?s>m8y?HA2U9j%*h2=saT*)<_fS#o5W~{(NG~=$mjE6Me%&zP&An<=JN@qnG)l; zq837MrzdmDZKRaPNQEPjyb^_k(oF;L$oZ;!HYK@b%THP?0+^N+S;27CK6kWoDOZ>b zTT}U*kw@FubPf$+j^1&VP%cw>)A22&H(f|2lpCs%GNd9SWvQ2E;Y_(=3FR>*N2F!v zl*rB&GIkK&nvvp0RdYoPGFve$PMSSO3UeNm48vR9ozkO*m8o_1nN_zttAv$Fs0I_` zNvRsrPjU(Xj8tCvS(}39hn7%&Q-0v0S$@pHk!nmAWThZgBjQb{M)UmTT-7Tw`A)U3 zXxvDsCiDEI-1+I6F&u%t&9?6|tJIW!I#+FKO2d6h`Qv#-X{AL|)dqg}@lYa!B~uFH z7I*e?j#QJ8k_C+W^L_gS&eK$?QmF28$JJ^)d=!&!0kJurQ2WiQVA*O`HI@g=s?M^_ zth!hRkX4pJv+7|PGOJ#e2hFOFVL5%dYeH_LYTW_cLCS$4oT z%Omj3Qo=XO2z;|V3g0XZ_-5H@%2B(1q9&%iuOQP%Xn_~Nf>fQcNJ4d)DjHW&R9-iV zYy!1WFFnH=He}`L-2FzZa6%p1&8G;d?wAt6K0AFqU!3l}O)*mr+R?;KQhKevu}kXy z7*gnG_K}e}V+>bgB8aF=%mES9Sp^i3HJnfhGkI_{p^^`2#mdit(Tn6!C@Pb3g7+9E zeXdfOFeb2ba+aTInMRf=6i@!Bz^r3>?h($m&FHm{bp z!oY<*b^>S?9OF1N#;xJ7fpNwWJ%l|LhNuk%4>%B@ASZF<#+tghFZx-aMD5Y>#Nih< zBKf@$v3mVH9|<4sE@wW*D5iPBHY*=?h?L_7@)k!CB-DUCeMF`?*`dq1q#VUD&2c$K z4EBZeMWLNT6ACRmXVfxYJJAd$tB5I~1|5&-dRhzoPQWbcnIAF@ndIq@<9r&;C#zi| zfXY6(Yew?-%)`58n_cgE59cvc^~LKg_Y8WVV-&iZnDUp9LF(U z&qf9Z19nUr$;+BsM56%X0D{4Uxg~7N69Bg59CJ>i=}G1=IL{mg7nsA~Dds!|@HOTz zxX2s^lgwdoi8&(xQ_Nv7%^U`onZw{|=9~eTVGe_@GlxNrISlg5IR$WqISj5chru_P z!{8ZH_3x(nSyt2#%+J~ABv8Sw8kmQnSf)C$%bsP$X3yD(+4DAHYSB~!yVM0%Z0e$o zn7U*mrY@UmaF=?G6`T6JjhMP(Bc`sJapfy2y>s#gAKwX_yyril-%a5~EZ)ff!iS$A za}uXyM(M`-mg`tUb}F;w*SxW+M`Ws<;?+wzHTG(*>d`Z(Gidl;U=?2mxIPd&-%+mD Kt8V<(q5l8`HZgPn literal 0 HcmV?d00001 diff --git a/sources/samples/toolbarconfigurator/font/fontello.svg b/sources/samples/toolbarconfigurator/font/fontello.svg new file mode 100644 index 00000000..33d14ac8 --- /dev/null +++ b/sources/samples/toolbarconfigurator/font/fontello.svg @@ -0,0 +1,14 @@ + + + +Copyright (C) 2014 by original authors @ fontello.com + + + + + + + + + + \ No newline at end of file diff --git a/sources/samples/toolbarconfigurator/font/fontello.ttf b/sources/samples/toolbarconfigurator/font/fontello.ttf new file mode 100644 index 0000000000000000000000000000000000000000..fbcbf06af5fe25519880166886f3af289acfd960 GIT binary patch literal 4820 zcmd^CTWlNG5uLlsm#CLzk+c)a@}*alWO7N#vLq{(?8tmbah%k$*OY% z_ATvKu-vOj@mD$}GC06gp=A4p<(R2=va9=8AAKd9Q?2l^dUxRbiZBS%{`5+bDwY>*~s3H8xt zNYnh32@V|zxZ2|);1!+|J)(Q?Q87GlT(k`ipE*4c3bvhLEu`NG?tVXX7N217B; zZhv%84Dsxr_B5EGosjA4`I*lz-r4;%8^s0wehJ>4*V;b)xGCWG2ei@!w-D|bMEvyQ zWG0o=+U-o94t9vnz|(#{gnWAOZk>GX?6a+7|E5MAcO20NnNO-U`I~Rnx&u3c3y06P z{a}uBM}WV#r{6g^;SR&ap7b9%Z<}MCpnD<>%yC`l^V)5ok)#Bz!FH|T4TpJ{{<80L z$eF?Od^F_P(ExPL!8+_22fKiuaIl*i>8gW0us`cyKgH2koCSf=PH*x}=4ya;gMQ** zL5D=EgEeXq#~rN0o^Y@W_?&~?6cSH5*aLgf!G4+*TMlldZt;io`o`_e<;A74>`kAP z1O2B4<=kz#4%70QwIZ#X<)!t_Ejcb1*4N6Vm6i2maecLpr%Q`BSFFvtT9>n>&8_A2 zHF+x8UpGyb)=HaJxirt-x1L`dD3=%H!shy_oN)Zgjm`BNrD8d`R4#9v?dz-0$E|)X_J;wswFC8lX_u22{}OhbczOn=D?6()>zBfM2l8nvFIjdEZHMl(8uvEKwE>g z1jY(*l8X4QK46~)V-fRL;AQiH(fhs3g1t#w$dbKFI!TCSfiRm8zdXKQrE&%E<*; zsaT*)862vt z+um$esVV(buG-X;M);KS$McHPN{gnd4gB%rqeKWr(4$kisz7D16{!m9im(l_h=FN! z9IlP?6fJ6x=CO=PBtKa|{SHcoUxRi7OHV60zaxaO%iV%p+}W!+QcXrm7U1_6&CLS$ zX)0AIRGZy#wHgnfz~Wm$Y>6k-A+su2wwYCpp_!EqBrWTXILYKtUQ&w--sPf zsNVg0ijeAwDG}_q%Xjj#%l-UN%#=fRHgS`bUh8k1l6pLb6#BV+Wn|79Bh{D)A}bSX zKn8VI0S#o0Bviso9vMrh+S zU;t72O~gj;;h#-Wo@~5SNg7g)Rp9H?!LUr$d?*)R6xp~`1wKdPS8{J_QkUVkwQl|4 ze2P!D4>ttjA)+yX#!jP4af&EjyQZ{sVct-B+M37V)zVfNxRA$50L?;RT!+SlH4--9 zX9C$n*uLPR<_ZyTAwWS*;>wLZb@N=zvp|X3-tood7d9gK1CQ9f0bY+p40pG)9%Bs4 zJZ+nm4<|&*2?KSDqX`mf&|W?=)12zi)m&1J;hN^W93z~4rhHLo7cqoJ%NC7V#cMa3 z;ZzklCDf1;F)+x>+-iiHJhCuRqK zNCgA!NoC@IjDLy!0`373XjchvQl{#INONtnsGgj_HD0eq1{VWPOd7?@nma^e022U$ z!KAq(Y|CQ+w&fyo&SB_r<}kR#90pG?hryG~c?95V%wceuISi(l!{7>YMggXo!(fIv z46ZVV!BfmR4=~Fd2480mgB)`h|4`kalJ zx?&@yu9|V>D=EEe>K0$$3EaGw-lgA9*g(a<1ypGw3sD`2PZ{_@4oucg5a!mFtzN8-MH2e*ji^AMF4D literal 0 HcmV?d00001 diff --git a/sources/samples/toolbarconfigurator/font/fontello.woff b/sources/samples/toolbarconfigurator/font/fontello.woff new file mode 100644 index 0000000000000000000000000000000000000000..e1d56472f88b35b037149608094afc4bbcf97b50 GIT binary patch literal 2904 zcmY*bc{r5a8-8EQOm-oAc3G0_yAoq$ER)?>YK*a^u}p($QzBc!h>|6VlHJ&{lqiN| z%aSF#WGNzFi12%-@B8QXT-SY_=f1D|InN*GT<1JtXe1H<0Vvp<0Z#hLGx#s3=l>sQ zyOU}F03slj4oAb8vm>4ak03~kg}5HHqWXA+UV4U-B%r(%()b{V!psj+y@PxRkTwDU zOuqqug%Zz7*7xza4AsI0A$j71taaKCOI3R)GL5BLW=s;ZJ zFE&`^13U;`kmd~a4TJi2cV!EU1_fRwK_z{V=OhGU*^^NtK}0X8mJOnSBONKZ83*Jn zPb_}bGpo6|v$@5-tvV(mA{TC~ehRCC$K$YA9M;RbnU$g6%}!ACyvi#qj&mocjk~R@ zdzy>So9R6WEUU3;)Azt)y>DTKU`QBu5cpHD&MD0p6F?|{p8?KX(8 zP%$221f@mZ#lit^5LN*I^jafEBs;Qe{6PD*3cy{>I780Lb{GvEaO6ufzz6Z@;h#L= z93Iy>_pLKZK~Tj{u`N{csOX_mrla}nq%Ya+r@r|o8aFzM|E^xWVJK5gDy>y|(A#9@ z>NBFZfE1NhydfOxKbV{Hkg>4D@BwPe+-*4IWKtSCEZDu42W_7DB3lM^apLN3_FZpC|0Id}3ba2oZ!x;lpF*vvG5Bar{2q;Iowe1FOhN(z|mv2b4#GL zW)?%C&@Z#L(S=@+=e=8Mk%5C+%vHum>iXA$RaXM!iYtTibKq)$p`mlxF(w60F*iT% z2w2W^nI+BQ!cQ6RoVyqD=|RAX+@wNy4~ZHI_}FbJ{LSmt;CN>g_&Pqq-U0 z`x{m0VaPJJn719yx@RqOT-3)V@7LL^ZqMP6(s7@27B!6m`fBASX;P~{*x1U{7ot2K z^Rqczc>H^kS>pf}>+{EGQsa)r?gIr>bztUG%SPXL))gN6XYN{Ud@Jz^&;5EcaM7Db z?YjCOtECJ#?21mVCueTDe|dg`tKM(QEMSZ)Inz;6n{c$=@1%rwDKcQpAx|%q zNf_oQV0+|DpGM`5$GBtWFQZQh8rS`>Kb3JEJIe^O?3$WR@wS^Gvutpp-_wFdDS^yc zOG`R<5Qe&T^AN~Bt{FMt^RNeKa_7$4)OSiBqESOImM92>*$*T47CFaWc~7WCDmWAs>?WY8<)1fgFn;-o zRRS;V;lmo=gmsS$puhM}lLB>oCm0RwuWOuV*&?RP zl+-cGw4EY)ySzg(_PylUj(U!@bkW;#U%0PZakgk9%dGMH58$J~PS4X!qeAGt9n--h z%dAFr4V*V4O!49_h-C`p8}G86n9{FnchBy%NZH=hAbJ|_#lbE1Mj=9t9rU3+d?c+< z&iQyFk#nEv;d1GD`pXOg;K2dFMb5fI=?&yL!`D6)#vl3+%ssAd!Rx_ty1`$dU)WiK z;u66_jf;yTtL7g&=8(DgI!rhCpWoydUp zv>qd;GHU93_*N~CLfDW{%w!18* zjZ|F1B(PiZMT3z+$modrryp=GDX%#!&QQOJGUd%26v zGg!h{b2m-roYdhocL&=0E6-ToBn%0Ayl~wC@nx8@;@5mHP`euW(pSyf^RC_T@9GKm zeyb(m7b)2$h7rS@BQe&bK9(sBKQlK7>&13qX0wAksZ+tXw%u_Jjnv{{&c(C(y*iEDkOA)FBb({PRfl*Nh-4OzMhPaJDL>bo_~y<<^yjv?u@Rc878 z#MD10UTPJ#{gBiB?7iJ{NguPn8lAoO%2L4O;6`MP=2 zvPDA8zBJnU(dCdwyjg6U*Rx>#mo?XyiGg~fo^6_~aZ2xa<+AnxhI}6sbmV{kU@R7x z#aWeClEX90*~hz1-jZTpa1SR$^~JCX3GN5t1H8Y&h`NI5Mo)oLST^K;HUECce{M(2 z9Nhfs4SRBk6$=7!UCfD$ivYm*1OYN$vsY$y_WS7iOLBnMh*&(v31}`M9h&R?S-!uDxe~I&L z^j+IqI0y$OE<{=Uy$85kfHLg+tveABlsL*G${lIhHwI{J1@-LGY5+lfz$eS^qoM); zJ^}Djz@iT5uyv+_U?Qge5HyB*N>qT-hzdsOph_lr7E@b9B`X75kqQG5R2eYV#<{{M h)|m=pL{N{>SsfEVryv3YMICr>r-JDom6<*r{|}rP@vZ;> literal 0 HcmV?d00001 diff --git a/sources/samples/toolbarconfigurator/index.html b/sources/samples/toolbarconfigurator/index.html new file mode 100644 index 00000000..3c1cf525 --- /dev/null +++ b/sources/samples/toolbarconfigurator/index.html @@ -0,0 +1,446 @@ + + + + + + + + Toolbar Configurator + + + + + + + + + + + + +
+
+

+ CKEditor Logo +

+ +
+
+ +
+
+
+
+
+

+ Toolbar Configurator + Help +

+ +
+
+ Select configurator type + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+

What Am I Doing Here?

+ +
+
+
+

Arrange toolbar groups, toggle button visibility according to your needs and get your toolbar configuration.

+

You can replace the content of the config.js file with the generated configuration. If you already set some configuration options you will need to merge both configurations.

+
+
+

Read more about different ways of setting configuration and do not forget about clearing browser cache.

+

Arranging toolbar groups is the recommended way of configuring the toolbar, but if you need more freedom you can use the advanced configurator.

+
+
+ +
+ +

+ +

+
+
+
+
+ +
+

+ CKEditor – The text editor for the Internet – http://ckeditor.com +

+

+ Copyright © 2003-2015, CKSource – Frederico Knabben. All rights reserved. +

+
+ + + + + + + + + + + + + + diff --git a/sources/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js b/sources/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js new file mode 100644 index 00000000..af6cd622 --- /dev/null +++ b/sources/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js @@ -0,0 +1,566 @@ +/* global ToolbarConfigurator */ + +'use strict'; + +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create +if ( typeof Object.create != 'function' ) { + ( function() { + var F = function() {}; + Object.create = function( o ) { + if ( arguments.length > 1 ) { + throw Error( 'Second argument not supported' ); + } + if ( o === null ) { + throw Error( 'Cannot set a null [[Prototype]]' ); + } + if ( typeof o != 'object' ) { + throw TypeError( 'Argument must be an object' ); + } + F.prototype = o; + return new F(); + }; + } )(); +} + +// Copy of the divarea plugin (with some enhancements), so we always have some editable mode, regardless of the build's config. +CKEDITOR.plugins.add( 'toolbarconfiguratorarea', { + // Use afterInit to override wysiwygarea's mode. May still fail to override divarea, but divarea is nice. + afterInit: function( editor ) { + editor.addMode( 'wysiwyg', function( callback ) { + var editingBlock = CKEDITOR.dom.element.createFromHtml( '
' ); + + var contentSpace = editor.ui.space( 'contents' ); + contentSpace.append( editingBlock ); + + editingBlock = editor.editable( editingBlock ); + + editingBlock.detach = CKEDITOR.tools.override( editingBlock.detach, + function( org ) { + return function() { + org.apply( this, arguments ); + this.remove(); + }; + } ); + + editor.setData( editor.getData( 1 ), callback ); + editor.fire( 'contentDom' ); + } ); + + // Additions to the divarea. + + // Speed up data processing. + editor.dataProcessor.toHtml = function( html ) { + return html; + }; + editor.dataProcessor.toDataFormat = function( html ) { + return html; + }; + + // End of the additions. + } +} ); + +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys +if ( !Object.keys ) { + Object.keys = ( function() { + var hasOwnProperty = Object.prototype.hasOwnProperty, + hasDontEnumBug = !( { toString: null } ).propertyIsEnumerable( 'toString' ), + dontEnums = [ + 'toString', + 'toLocaleString', + 'valueOf', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'constructor' + ], + dontEnumsLength = dontEnums.length; + + return function( obj ) { + if ( typeof obj !== 'object' && ( typeof obj !== 'function' || obj === null ) ) + throw new TypeError( 'Object.keys called on non-object' ); + + var result = [], prop, i; + + for ( prop in obj ) { + if ( hasOwnProperty.call( obj, prop ) ) + result.push( prop ); + + } + + if ( hasDontEnumBug ) { + for ( i = 0; i < dontEnumsLength; i++ ) { + if ( hasOwnProperty.call( obj, dontEnums[ i ] ) ) + result.push( dontEnums[ i ] ); + + } + } + return result; + }; + }() ); +} + +( function() { + /** + * @class ToolbarConfigurator.AbstractToolbarModifier + * @param {String} editorId An id of modified editor + * @constructor + */ + function AbstractToolbarModifier( editorId, cfg ) { + this.cfg = cfg || {}; + this.hidden = false; + this.editorId = editorId; + this.fullToolbarEditor = new ToolbarConfigurator.FullToolbarEditor(); + + this.mainContainer = null; + + this.originalConfig = null; + this.actualConfig = null; + + this.waitForReady = false; + this.isEditableVisible = false; + + this.toolbarContainer = null; + this.toolbarButtons = []; + } + + // Expose the class. + ToolbarConfigurator.AbstractToolbarModifier = AbstractToolbarModifier; + + /** + * @param {String} config + */ + AbstractToolbarModifier.prototype.setConfig = function( config ) { + this._onInit( undefined, config, true ); + }; + + /** + * @param {Function} [callback] + */ + AbstractToolbarModifier.prototype.init = function( callback ) { + var that = this; + + this.mainContainer = new CKEDITOR.dom.element( 'div' ); + + if ( this.fullToolbarEditor.editorInstance !== null ) { + throw 'Only one instance of ToolbarModifier is allowed'; + } + + if ( !this.editorInstance ) { + // Do not refresh yet, let's wait for the full toolbar editor (see below). + this._createEditor( false ); + } + + this.editorInstance.once( 'loaded', function() { + that.fullToolbarEditor.init( function() { + that._onInit( callback ); + + if ( typeof that.onRefresh == 'function' ) { + that.onRefresh(); + } + }, that.editorInstance.config ); + } ); + + return this.mainContainer; + }; + + /** + * Called editor initialization finished. + * + * @param {Function} callback + * @param {String} [actualConfig] + * @private + */ + AbstractToolbarModifier.prototype._onInit = function( callback, actualConfig ) { + this.originalConfig = this.editorInstance.config; + + if ( !actualConfig ) { + this.actualConfig = JSON.parse( JSON.stringify( this.originalConfig ) ); + } else { + this.actualConfig = JSON.parse( actualConfig ); + } + + if ( !this.actualConfig.toolbarGroups && !this.actualConfig.toolbar ) { + this.actualConfig.toolbarGroups = getDefaultToolbarGroups( this.editorInstance ); + } + + if ( typeof callback === 'function' ) + callback( this.mainContainer ); + + // Here we are going to keep only `name` and `groups` data from editor `toolbar` property. + function getDefaultToolbarGroups( editor ) { + var toolbarGroups = editor.toolbar, + copy = []; + + var max = toolbarGroups.length; + for ( var i = 0; i < max; i++ ) { + var group = toolbarGroups[ i ]; + + if ( typeof group == 'string' ) { + copy.push( group ); // separator + } else { + copy.push( { + name: group.name, + groups: group.groups ? group.groups.slice() : [] + } ); + } + } + + return copy; + } + }; + + /** + * Creates DOM structure of tool. + * + * @returns {CKEDITOR.dom.element} + * @private + */ + AbstractToolbarModifier.prototype._createModifier = function() { + this.mainContainer.addClass( 'unselectable' ); + + if ( this.modifyContainer ) { + this.modifyContainer.remove(); + } + + this.modifyContainer = new CKEDITOR.dom.element( 'div' ); + this.modifyContainer.addClass( 'toolbarModifier' ); + + this.mainContainer.append( this.modifyContainer ); + + return this.mainContainer; + }; + + /** + * Find editable area in CKEditor instance DOM container + * + * @returns {CKEDITOR.dom.element} + */ + AbstractToolbarModifier.prototype.getEditableArea = function() { + var selector = ( '#' + this.editorInstance.id + '_contents' ); + + return this.editorInstance.container.findOne( selector ); + }; + + /** + * Hide editable area in modified editor by sets its height to 0. + * + * @private + */ + AbstractToolbarModifier.prototype._hideEditable = function() { + var area = this.getEditableArea(); + + this.isEditableVisible = false; + + this.lastEditableAreaHeight = area.getStyle( 'height' ); + area.setStyle( 'height', '0' ); + }; + + /** + * Show editable area in modified editor. + * + * @private + */ + AbstractToolbarModifier.prototype._showEditable = function() { + this.isEditableVisible = true; + + this.getEditableArea().setStyle( 'height', this.lastEditableAreaHeight || 'auto' ); + }; + + /** + * Toggle editable area visibility. + * + * @private + */ + AbstractToolbarModifier.prototype._toggleEditable = function() { + if ( this.isEditableVisible ) + this._hideEditable(); + else + this._showEditable(); + }; + + /** + * Usually called when configuration changes. + * + * @private + */ + AbstractToolbarModifier.prototype._refreshEditor = function() { + var that = this, + status = this.editorInstance.status; + + // Wait for ready only once. + if ( this.waitForReady ) + return; + + // Not ready. + if ( status == 'unloaded' || status == 'loaded' ) { + this.waitForReady = true; + + this.editorInstance.once( 'instanceReady', function() { + refresh(); + }, this ); + // Ready or destroyed. + } else { + refresh(); + } + + function refresh() { + that.editorInstance.destroy(); + that._createEditor( true, that.getActualConfig() ); + that.waitForReady = false; + } + }; + + /** + * Creates editor that can be used to present the toolbar configuration. + * + * @private + */ + AbstractToolbarModifier.prototype._createEditor = function( doRefresh, configOverrides ) { + var that = this; + + this.editorInstance = CKEDITOR.replace( this.editorId ); + + this.editorInstance.on( 'configLoaded', function() { + var config = that.editorInstance.config; + + if ( configOverrides ) { + CKEDITOR.tools.extend( config, configOverrides, true ); + } + + AbstractToolbarModifier.extendPluginsConfig( config ); + } ); + + // Prevent creating any other space than the top one. + this.editorInstance.on( 'uiSpace', function( evt ) { + if ( evt.data.space != 'top' ) { + evt.stop(); + } + }, null, null, -999 ); + + this.editorInstance.once( 'loaded', function() { + var btns = that.editorInstance.ui.instances; + + for ( var i in btns ) { + if ( btns[ i ] ) { + btns[ i ].click = empty; + btns[ i ].onClick = empty; + } + } + + if ( !that.isEditableVisible ) { + that._hideEditable(); + } + + if ( that.currentActive && that.currentActive.name ) { + that._highlightGroup( that.currentActive.name ); + } + + if ( that.hidden ) { + that.hideUI(); + } else { + that.showUI(); + } + + if ( doRefresh && ( typeof that.onRefresh === 'function' ) ) { + that.onRefresh(); + } + } ); + + function empty() {} + }; + + /** + * Always returns copy of config. + * + * @returns {Object} + */ + AbstractToolbarModifier.prototype.getActualConfig = function() { + return JSON.parse( JSON.stringify( this.actualConfig ) ); + }; + + /** + * Creates toolbar in tool. + * + * @private + */ + AbstractToolbarModifier.prototype._createToolbar = function() { + if ( !this.toolbarButtons.length ) { + return; + } + + this.toolbarContainer = new CKEDITOR.dom.element( 'div' ); + this.toolbarContainer.addClass( 'toolbar' ); + + var max = this.toolbarButtons.length; + for ( var i = 0; i < max; i += 1 ) { + this._createToolbarBtn( this.toolbarButtons[ i ] ); + } + }; + + /** + * Create toolbar button and add it to toolbar container + * + * @param {Object} cfg + * @returns {CKEDITOR.dom.element} + * @private + */ + AbstractToolbarModifier.prototype._createToolbarBtn = function( cfg ) { + var btnText = ( typeof cfg.text === 'string' ? cfg.text : cfg.text.inactive ), + btn = ToolbarConfigurator.FullToolbarEditor.createButton( btnText, cfg.cssClass ); + + this.toolbarContainer.append( btn ); + btn.data( 'group', cfg.group ); + btn.addClass( cfg.position ); + btn.on( 'click', function() { + cfg.clickCallback.call( this, btn, cfg ); + }, this ); + + return btn; + }; + + /** + * @private + * @param {Object} config + */ + AbstractToolbarModifier.prototype._fixGroups = function( config ) { + var groups = config.toolbarGroups || []; + + var max = groups.length; + for ( var i = 0; i < max; i += 1 ) { + var currentGroup = groups[ i ]; + + // separator, in config, is in raw format + // need to make it more sophisticated to keep unique id + // for each one + if ( currentGroup == '/' ) { + currentGroup = groups[ i ] = {}; + currentGroup.type = 'separator'; + currentGroup.name = ( 'separator' + CKEDITOR.tools.getNextNumber() ); + continue; + } + + // sometimes subgroups are not set (basic package), so need to + // create them artifically + currentGroup.groups = currentGroup.groups || []; + + // when there is no subgroup with same name like its parent name + // then it have to be added artificially + // in order to maintain consistency between user interface and config + if ( CKEDITOR.tools.indexOf( currentGroup.groups, currentGroup.name ) == -1 ) { + this.editorInstance.ui.addToolbarGroup( currentGroup.name, currentGroup.groups[ currentGroup.groups.length - 1 ], currentGroup.name ); + currentGroup.groups.push( currentGroup.name ); + } + + this._fixSubgroups( currentGroup ); + } + }; + + /** + * Transform subgroup string to object literal + * with keys: {String} name and {Number} totalBtns + * Please note: this method modify Object provided in first argument + * + * input: + * [ + * { groups: [ 'nameOne', 'nameTwo' ] } + * ] + * + * output: + * [ + * { groups: [ { name: 'nameOne', totalBtns: 3 }, { name: 'nameTwo', totalBtns: 5 } ] } + * ] + * + * @param {Object} group + * @private + */ + AbstractToolbarModifier.prototype._fixSubgroups = function( group ) { + var subGroups = group.groups; + + var max = subGroups.length; + for ( var i = 0; i < max; i += 1 ) { + var subgroupName = subGroups[ i ]; + + subGroups[ i ] = { + name: subgroupName, + totalBtns: ToolbarConfigurator.ToolbarModifier.getTotalSubGroupButtonsNumber( subgroupName, this.fullToolbarEditor ) + }; + } + }; + + /** + * Same as JSON.stringify method but returned string is in one line + * + * @param {Object} json + * @param {Object} opts + * @param {Boolean} opts.addSpaces + * @param {Boolean} opts.noQuotesOnKey + * @param {Boolean} opts.singleQuotes + * @returns {Object} + */ + AbstractToolbarModifier.stringifyJSONintoOneLine = function( json, opts ) { + opts = opts || {}; + var stringJSON = JSON.stringify( json, null, '' ); + + // IE8 make new line characters + stringJSON = stringJSON.replace( /\n/g, '' ); + + if ( opts.addSpaces ) { + stringJSON = stringJSON.replace( /(\{|:|,|\[|\])/g, function( sentence ) { + return sentence + ' '; + } ); + + stringJSON = stringJSON.replace( /(\])/g, function( sentence ) { + return ' ' + sentence; + } ); + } + + if ( opts.noQuotesOnKey ) { + stringJSON = stringJSON.replace( /"(\w*)":/g, function( sentence, word ) { + return word + ':'; + } ); + } + + if ( opts.singleQuotes ) { + stringJSON = stringJSON.replace( /\"/g, '\'' ); + } + + return stringJSON; + }; + + /** + * Hide toolbar configurator + */ + AbstractToolbarModifier.prototype.hideUI = function() { + this.hidden = true; + this.mainContainer.hide(); + if ( this.editorInstance.container ) { + this.editorInstance.container.hide(); + } + }; + + /** + * Show toolbar configurator + */ + AbstractToolbarModifier.prototype.showUI = function() { + this.hidden = false; + this.mainContainer.show(); + if ( this.editorInstance.container ) { + this.editorInstance.container.show(); + } + }; + + + /** + * Extends plugins setttings in the specified config with settings useful for + * the toolbar configurator. + * + * @static + */ + AbstractToolbarModifier.extendPluginsConfig = function( config ) { + var extraPlugins = config.extraPlugins; + + // Enable the special, lightweight area to replace wysiwygarea. + config.extraPlugins = ( extraPlugins ? extraPlugins + ',' : '' ) + 'toolbarconfiguratorarea'; + }; +} )(); diff --git a/sources/samples/toolbarconfigurator/js/fulltoolbareditor.js b/sources/samples/toolbarconfigurator/js/fulltoolbareditor.js new file mode 100644 index 00000000..2b9f15f7 --- /dev/null +++ b/sources/samples/toolbarconfigurator/js/fulltoolbareditor.js @@ -0,0 +1,365 @@ +/* exported ToolbarConfigurator */ +/* global ToolbarConfigurator */ + +'use strict'; + +window.ToolbarConfigurator = {}; + +( function() { + /** + * @class ToolbarConfigurator.FullToolbarEditor + * @constructor + */ + function FullToolbarEditor() { + this.instanceid = 'fte' + CKEDITOR.tools.getNextId(); + this.textarea = new CKEDITOR.dom.element( 'textarea' ); + this.textarea.setAttributes( { + id: this.instanceid, + name: this.instanceid, + contentEditable: true + } ); + + this.buttons = null; + this.editorInstance = null; + } + + // Expose the class. + ToolbarConfigurator.FullToolbarEditor = FullToolbarEditor; + + /** + * @param {Function} callback + * @param {Object} cfg + */ + FullToolbarEditor.prototype.init = function( callback ) { + var that = this; + + document.body.appendChild( this.textarea.$ ); + + CKEDITOR.replace( this.instanceid ); + + this.editorInstance = CKEDITOR.instances[ this.instanceid ]; + + this.editorInstance.once( 'configLoaded', function( e ) { + var cfg = e.editor.config; + + // We want all the buttons. + delete cfg.removeButtons; + delete cfg.toolbarGroups; + delete cfg.toolbar; + ToolbarConfigurator.AbstractToolbarModifier.extendPluginsConfig( cfg ); + + e.editor.once( 'loaded', function() { + that.buttons = FullToolbarEditor.toolbarToButtons( that.editorInstance.toolbar ); + + that.buttonsByGroup = FullToolbarEditor.groupButtons( that.buttons ); + + that.buttonNamesByGroup = that.groupButtonNamesByGroup( that.buttons ); + + e.editor.container.hide(); + + if ( typeof callback === 'function' ) + callback( that.buttons ); + } ); + } ); + }; + + /** + * Group array of button names by their group parents. + * + * @param {Array} buttons + * @returns {Object} + */ + FullToolbarEditor.prototype.groupButtonNamesByGroup = function( buttons ) { + var that = this, + groups = FullToolbarEditor.groupButtons( buttons ); + + for ( var groupName in groups ) { + var currGroup = groups[ groupName ]; + + groups[ groupName ] = FullToolbarEditor.map( currGroup, function( button ) { + return that.getCamelCasedButtonName( button.name ); + } ); + } + + return groups; + }; + + /** + * Returns group literal. + * + * @param {String} name + * @returns {Object} + */ + FullToolbarEditor.prototype.getGroupByName = function( name ) { + var groups = this.editorInstance.config.toolbarGroups || this.getFullToolbarGroupsConfig(); + + var max = groups.length; + for ( var i = 0; i < max; i += 1 ) { + if ( groups[ i ].name === name ) + return groups[ i ]; + } + + return null; + }; + + /** + * @param {String} name + * @returns {String | null} + */ + FullToolbarEditor.prototype.getCamelCasedButtonName = function( name ) { + var items = this.editorInstance.ui.items; + + for ( var key in items ) { + if ( items[ key ].name == name ) + return key; + } + + return null; + }; + + /** + * Returns full toolbarGroups config value which is used when + * there is no toolbarGroups field in config. + * + * @param {Boolean} [pickSeparators=false] + * @returns {Array} + */ + FullToolbarEditor.prototype.getFullToolbarGroupsConfig = function( pickSeparators ) { + pickSeparators = ( pickSeparators === true ? true : false ); + + var result = [], + toolbarGroups = this.editorInstance.toolbar; + + var max = toolbarGroups.length; + for ( var i = 0; i < max; i += 1 ) { + var currentGroup = toolbarGroups[ i ], + copiedGroup = {}; + + if ( typeof currentGroup.name != 'string' ) { + // this is not a group + if ( pickSeparators ) { + result.push( '/' ); + } + continue; + } + + copiedGroup.name = currentGroup.name; + if ( currentGroup.groups ) + copiedGroup.groups = Array.prototype.slice.call( currentGroup.groups ); + + result.push( copiedGroup ); + } + + return result; + }; + + /** + * Filters array items based on checker provided in second argument. + * Returns new array. + * + * @param {Array} arr + * @param {Function} checker + * @returns {Array} + */ + FullToolbarEditor.filter = function( arr, checker ) { + var max = ( arr && arr.length ? arr.length : 0 ), + result = []; + + for ( var i = 0; i < max; i += 1 ) { + if ( checker( arr[ i ] ) ) + result.push( arr[ i ] ); + } + + return result; + }; + + /** + * Simplified http://underscorejs.org/#map functionality + * + * @param {Array | Object} enumerable + * @param {Function} modifier + * @returns {Array | Object} + */ + FullToolbarEditor.map = function( enumerable, modifier ) { + var result; + + if ( CKEDITOR.tools.isArray( enumerable ) ) { + result = []; + + var max = enumerable.length; + for ( var i = 0; i < max; i += 1 ) + result.push( modifier( enumerable[ i ] ) ); + } else { + result = {}; + + for ( var key in enumerable ) + result[ key ] = modifier( enumerable[ key ] ); + } + + return result; + }; + + /** + * Group buttons by their parent names. + * + * @static + * @param {Array} buttons + * @returns {Object} The object (`name => group`) representing CKEDITOR.ui.button or CKEDITOR.ui.richCombo + */ + FullToolbarEditor.groupButtons = function( buttons ) { + var groups = {}; + + var max = buttons.length; + for ( var i = 0; i < max; i += 1 ) { + var currBtn = buttons[ i ], + currBtnGroupName = currBtn.toolbar.split( ',' )[ 0 ]; + + groups[ currBtnGroupName ] = groups[ currBtnGroupName ] || []; + + groups[ currBtnGroupName ].push( currBtn ); + } + + return groups; + }; + + /** + * Pick all buttons from toolbar. + * + * @static + * @param {Array} groups + * @returns {Array} + */ + FullToolbarEditor.toolbarToButtons = function( groups ) { + var buttons = []; + + var max = groups.length; + for ( var i = 0; i < max; i += 1 ) { + var currentGroup = groups[ i ]; + + if ( typeof currentGroup == 'object' ) + buttons = buttons.concat( FullToolbarEditor.groupToButtons( groups[ i ] ) ); + } + + return buttons; + }; + + /** + * Creates HTML button representation for view. + * + * @static + * @param {CKEDITOR.ui.button | CKEDITOR.ui.richCombo} button + * @returns {CKEDITOR.dom.element} + */ + FullToolbarEditor.createToolbarButton = function( button ) { + var $button = new CKEDITOR.dom.element( 'a' ), + icon = FullToolbarEditor.createIcon( button.name, button.icon, button.command ); + + $button.setStyle( 'float', 'none' ); + + $button.addClass( 'cke_' + ( CKEDITOR.lang.dir == 'rtl' ? 'rtl' : 'ltr' ) ); + + if ( button instanceof CKEDITOR.ui.button ) { + $button.addClass( 'cke_button' ); + $button.addClass( 'cke_toolgroup' ); + + $button.append( icon ); + } else if ( CKEDITOR.ui.richCombo && button instanceof CKEDITOR.ui.richCombo ) { + var comboLabel = new CKEDITOR.dom.element( 'span' ), + comboOpen = new CKEDITOR.dom.element( 'span' ), + comboArrow = new CKEDITOR.dom.element( 'span' ); + + $button.addClass( 'cke_combo_button' ); + + comboLabel.addClass( 'cke_combo_text' ); + comboLabel.addClass( 'cke_combo_inlinelabel' ); + comboLabel.setText( button.label ); + + comboOpen.addClass( 'cke_combo_open' ); + comboArrow.addClass( 'cke_combo_arrow' ); + comboOpen.append( comboArrow ); + + $button.append( comboLabel ); + $button.append( comboOpen ); + } + + return $button; + }; + + /** + * Create and return icon element. + * + * @param {String} name + * @param {String} icon + * @param {String} command + * @static + * @returns {CKEDITOR.dom.element} + */ + FullToolbarEditor.createIcon = function( name, icon, command ) { + var iconStyle = CKEDITOR.skin.getIconStyle( name, ( CKEDITOR.lang.dir == 'rtl' ) ); + + // We don't know exactly how to get icon style. Especially for extra plugins, + // Which definition may vary. + iconStyle = iconStyle || CKEDITOR.skin.getIconStyle( icon, ( CKEDITOR.lang.dir == 'rtl' ) ); + iconStyle = iconStyle || CKEDITOR.skin.getIconStyle( command, ( CKEDITOR.lang.dir == 'rtl' ) ); + + var iconElement = new CKEDITOR.dom.element( 'span' ); + + iconElement.addClass( 'cke_button_icon' ); + iconElement.addClass( 'cke_button__' + name + '_icon' ); + iconElement.setAttribute( 'style', iconStyle ); + iconElement.setStyle( 'float', 'none' ); + + return iconElement; + }; + + /** + * Create and return button element + * + * @param {String} text + * @param {String} cssClasses + * @returns {CKEDITOR.dom.element} + */ + FullToolbarEditor.createButton = function( text, cssClasses ) { + var $button = new CKEDITOR.dom.element( 'button' ); + + $button.addClass( 'button-a' ); + + $button.setAttribute( 'type', 'button' ); + + if ( typeof cssClasses == 'string' ) { + cssClasses = cssClasses.split( ' ' ); + + var i = cssClasses.length; + while ( i-- ) { + $button.addClass( cssClasses[ i ] ); + } + } + + $button.setHtml( text ); + + return $button; + }; + + /** + * @static + * @param {Object} group + * @returns {Array} representing HTML buttons for view + */ + FullToolbarEditor.groupToButtons = function( group ) { + var buttons = [], + items = group.items; + + var max = items ? items.length : 0; + for ( var i = 0; i < max; i += 1 ) { + var item = items[ i ]; + + if ( item instanceof CKEDITOR.ui.button || CKEDITOR.ui.richCombo && item instanceof CKEDITOR.ui.richCombo ) { + item.$ = FullToolbarEditor.createToolbarButton( item ); + buttons.push( item ); + } + } + + return buttons; + }; + +} )(); diff --git a/sources/samples/toolbarconfigurator/js/toolbarmodifier.js b/sources/samples/toolbarconfigurator/js/toolbarmodifier.js new file mode 100644 index 00000000..bd33d24f --- /dev/null +++ b/sources/samples/toolbarconfigurator/js/toolbarmodifier.js @@ -0,0 +1,1366 @@ +/* global ToolbarConfigurator, alert */ + +'use strict'; + +( function() { + var AbstractToolbarModifier = ToolbarConfigurator.AbstractToolbarModifier; + + /** + * @class ToolbarConfigurator.ToolbarModifier + * @param {String} editorId An id of modified editor + * @param {Object} cfg + * @extends AbstractToolbarModifier + * @constructor + */ + function ToolbarModifier( editorId, cfg ) { + AbstractToolbarModifier.call( this, editorId, cfg ); + + this.removedButtons = null; + this.originalConfig = null; + this.actualConfig = null; + this.emptyVisible = false; + + // edit, paste, config + this.state = 'edit'; + + this.toolbarButtons = [ + { + text: { + active: 'Hide empty toolbar groups', + inactive: 'Show empty toolbar groups' + }, + group: 'edit', + position: 'left', + cssClass: 'button-a-soft', + clickCallback: function( button, buttonDefinition ) { + var className = 'button-a-background'; + + button[ button.hasClass( className ) ? 'removeClass' : 'addClass' ]( className ); + + this._toggleVisibilityEmptyElements(); + + if ( this.emptyVisible ) { + button.setText( buttonDefinition.text.active ); + } else { + button.setText( buttonDefinition.text.inactive ); + } + } + }, + { + text: 'Add row separator', + group: 'edit', + position: 'left', + cssClass: 'button-a-soft', + clickCallback: function() { + this._addSeparator(); + } + }, + /*{ + text: 'Paste config', + group: 'edit', + position: 'left', + clickCallback: function() { + this.state = 'paste'; + + this.modifyContainer.addClass( 'hidden' ); + this.configContainer.removeClass( 'hidden' ); + this.configContainer.setHtml( '' ); + this.showToolbarBtnsByGroupName( 'config' ); + } + },*/ + { + text: 'Select config', + group: 'config', + position: 'left', + cssClass: 'button-a-soft', + clickCallback: function() { + this.configContainer.findOne( 'textarea' ).$.select(); + } + }, + { + text: 'Back to configurator', + group: 'config', + position: 'right', + cssClass: 'button-a-background', + clickCallback: function() { + if ( this.state === 'paste' ) { + var cfg = this.configContainer.findOne( 'textarea' ).getValue(); + cfg = ToolbarModifier.evaluateToolbarGroupsConfig( cfg ); + + if ( cfg ) { + this.setConfig( cfg ); + } else { + alert( 'Your pasted config is wrong.' ); + } + } + + this.state = 'edit'; + this._showConfigurationTool(); + this.showToolbarBtnsByGroupName( this.state ); + } + }, + { + text: 'Get toolbar config', + group: 'edit', + position: 'right', + cssClass: 'button-a-background icon-pos-left icon-download', + clickCallback: function() { + this.state = 'config'; + this._showConfig(); + this.showToolbarBtnsByGroupName( this.state ); + } + } + ]; + + this.cachedActiveElement = null; + } + + // Expose the class. + ToolbarConfigurator.ToolbarModifier = ToolbarModifier; + + ToolbarModifier.prototype = Object.create( ToolbarConfigurator.AbstractToolbarModifier.prototype ); + + /** + * @returns {Object} + */ + ToolbarModifier.prototype.getActualConfig = function() { + var copy = AbstractToolbarModifier.prototype.getActualConfig.call( this ); + + if ( copy.toolbarGroups ) { + + var max = copy.toolbarGroups.length; + for ( var i = 0; i < max; i += 1 ) { + var currentGroup = copy.toolbarGroups[ i ]; + + copy.toolbarGroups[ i ] = ToolbarModifier.parseGroupToConfigValue( currentGroup ); + } + + } + + return copy; + }; + + /** + * @param {Function} callback + * @param {String} [config] + * @param {Boolean} [forceKeepRemoveButtons=false] + * @private + */ + ToolbarModifier.prototype._onInit = function( callback, config, forceKeepRemoveButtons ) { + forceKeepRemoveButtons = ( forceKeepRemoveButtons === true ); + AbstractToolbarModifier.prototype._onInit.call( this, undefined, config ); + + this.removedButtons = []; + + if ( forceKeepRemoveButtons ) { + if ( this.actualConfig.removeButtons ) { + this.removedButtons = this.actualConfig.removeButtons.split( ',' ); + } else { + this.removedButtons = []; + } + } else { + if ( !( 'removeButtons' in this.originalConfig ) ) { + this.originalConfig.removeButtons = ''; + this.removedButtons = []; + } else { + this.removedButtons = this.originalConfig.removeButtons ? this.originalConfig.removeButtons.split( ',' ) : []; + } + } + + if ( !this.actualConfig.toolbarGroups ) + this.actualConfig.toolbarGroups = this.fullToolbarEditor.getFullToolbarGroupsConfig(); + + this._fixGroups( this.actualConfig ); + this._calculateTotalBtns(); + + this._createModifier(); + this._refreshMoveBtnsAvalibility(); + this._refreshBtnTabIndexes(); + + if ( typeof callback === 'function' ) + callback( this.mainContainer ); + }; + + /** + * @private + */ + ToolbarModifier.prototype._showConfigurationTool = function() { + this.configContainer.addClass( 'hidden' ); + this.modifyContainer.removeClass( 'hidden' ); + }; + + /** + * Show configuration file in tool + * + * @private + */ + ToolbarModifier.prototype._showConfig = function() { + var that = this, + actualConfig = this.getActualConfig(), + cfg = {}; + if ( actualConfig.toolbarGroups ) { + cfg.toolbarGroups = actualConfig.toolbarGroups; + + var groups = prepareGroups( actualConfig.toolbarGroups, this.cfg.trimEmptyGroups ); + + cfg.toolbarGroups = '\n\t\t' + groups.join( ',\n\t\t' ); + } + + function prepareGroups( toolbarGroups, trimEmptyGroups ) { + var groups = [], + max = toolbarGroups.length; + + for ( var i = 0; i < max; i++ ) { + var group = toolbarGroups[ i ]; + + if ( group === '/' ) { + groups.push( '\'/\'' ); + continue; + } + + if ( trimEmptyGroups ) { + var max2 = group.groups.length; + while ( max2-- ) { + var subgroup = group.groups[ max2 ]; + + if ( ToolbarModifier.getTotalSubGroupButtonsNumber( subgroup, that.fullToolbarEditor ) === 0 ) { + group.groups.splice( max2, 1 ); + } + } + } + + if ( !( trimEmptyGroups && group.groups.length === 0 ) ) { + groups.push( AbstractToolbarModifier.stringifyJSONintoOneLine( group, { + addSpaces: true, + noQuotesOnKey: true, + singleQuotes: true + } ) ); + } + } + + return groups; + } + + if ( actualConfig.removeButtons ) { + cfg.removeButtons = actualConfig.removeButtons; + } + + var content = [ + '' + ].join( '' ); + + + + this.modifyContainer.addClass( 'hidden' ); + this.configContainer.removeClass( 'hidden' ); + + this.configContainer.setHtml( content ); + }; + + /** + * Toggle empty groups and subgroups visibility. + * + * @private + */ + ToolbarModifier.prototype._toggleVisibilityEmptyElements = function() { + if ( this.modifyContainer.hasClass( 'empty-visible' ) ) { + this.modifyContainer.removeClass( 'empty-visible' ); + this.emptyVisible = false; + } else { + this.modifyContainer.addClass( 'empty-visible' ); + this.emptyVisible = true; + } + + this._refreshMoveBtnsAvalibility(); + }; + + /** + * Creates HTML main container of modifier. + * + * @returns {CKEDITOR.dom.element} + * @private + */ + ToolbarModifier.prototype._createModifier = function() { + var that = this; + + AbstractToolbarModifier.prototype._createModifier.call( this ); + + this.modifyContainer.setHtml( this._toolbarConfigToListString() ); + + var groupLi = this.modifyContainer.find( 'li[data-type="group"]' ); + + this.modifyContainer.on( 'mouseleave', function() { + this._dehighlightActiveToolGroup(); + }, this ); + + var max = groupLi.count(); + for ( var i = 0; i < max; i += 1 ) { + groupLi.getItem( i ).on( 'mouseenter', onGroupHover ); + } + + function onGroupHover() { + that._highlightGroup( this.data( 'name' ) ); + } + + CKEDITOR.document.on( 'keypress', function( e ) { + var nativeEvent = e.data.$, + keyCode = nativeEvent.keyCode, + spaceOrEnter = ( keyCode === 32 || keyCode === 13 ), + active = new CKEDITOR.dom.element( CKEDITOR.document.$.activeElement ); + + var mainContainer = active.getAscendant( function( node ) { + return node.$ === that.mainContainer.$; + } ); + + if ( !mainContainer || !spaceOrEnter ) { + return; + } + + if ( active.data( 'type' ) === 'button' ) { + active.findOne( 'input' ).$.click(); + } + } ); + + this.modifyContainer.on( 'click', function( e ) { + var origEvent = e.data.$, + target = new CKEDITOR.dom.element( ( origEvent.target || origEvent.srcElement ) ), + relativeGroupOrSeparatorLi = ToolbarModifier.getGroupOrSeparatorLiAncestor( target ); + + if ( !relativeGroupOrSeparatorLi ) { + return; + } + + that.cachedActiveElement = document.activeElement; + + // checkbox clicked + if ( target.$ instanceof HTMLInputElement ) + that._handleCheckboxClicked( target ); + + // link clicked + else if ( target.$ instanceof HTMLButtonElement ) { + if ( origEvent.preventDefault ) + origEvent.preventDefault(); + else + origEvent.returnValue = false; + + var result = that._handleAnchorClicked( target.$ ); + + if ( result && result.action == 'remove' ) + return; + + } + + var elementType = relativeGroupOrSeparatorLi.data( 'type' ), + elementName = relativeGroupOrSeparatorLi.data( 'name' ); + + that._setActiveElement( elementType, elementName ); + + if ( that.cachedActiveElement ) + that.cachedActiveElement.focus(); + } ); + + if ( !this.toolbarContainer ) { + this._createToolbar(); + this.toolbarContainer.insertBefore( this.mainContainer.getChildren().getItem( 0 ) ); + } + + this.showToolbarBtnsByGroupName( 'edit' ); + + if ( !this.configContainer ) { + this.configContainer = new CKEDITOR.dom.element( 'div' ); + this.configContainer.addClass( 'configContainer' ); + this.configContainer.addClass( 'hidden' ); + + this.mainContainer.append( this.configContainer ); + } + + return this.mainContainer; + }; + + /** + * Show toolbar buttons related to group name provided in argument + * and hide other buttons + * Please note: this method works on toolbar in tool, which is located + * on top of the tool + * + * @param {String} groupName + */ + ToolbarModifier.prototype.showToolbarBtnsByGroupName = function( groupName ) { + if ( !this.toolbarContainer ) { + return; + } + + var allButtons = this.toolbarContainer.find( 'button' ); + + var max = allButtons.count(); + for ( var i = 0; i < max; i += 1 ) { + var currentBtn = allButtons.getItem( i ); + + if ( currentBtn.data( 'group' ) == groupName ) + currentBtn.removeClass( 'hidden' ); + else + currentBtn.addClass( 'hidden' ); + + } + }; + + /** + * Parse group "model" to configuration value + * + * @param {Object} group + * @returns {Object} + * @private + */ + ToolbarModifier.parseGroupToConfigValue = function( group ) { + if ( group.type == 'separator' ) { + return '/'; + } + + var groups = group.groups, + max = groups.length; + + delete group.totalBtns; + for ( var i = 0; i < max; i += 1 ) { + groups[ i ] = groups[ i ].name; + } + + return group; + }; + + /** + * Find closest Li ancestor in DOM tree which is group or separator element + * + * @param {CKEDITOR.dom.element} element + * @returns {CKEDITOR.dom.element} + */ + ToolbarModifier.getGroupOrSeparatorLiAncestor = function( element ) { + if ( element.$ instanceof HTMLLIElement && element.data( 'type' ) == 'group' ) + return element; + else { + return ToolbarModifier.getFirstAncestor( element, function( ancestor ) { + var type = ancestor.data( 'type' ); + + return ( type == 'group' || type == 'separator' ); + } ); + } + }; + + /** + * Set active element in tool by provided type and name. + * + * @param {String} type + * @param {String} name + */ + ToolbarModifier.prototype._setActiveElement = function( type, name ) { + // clear current active element + if ( this.currentActive ) + this.currentActive.elem.removeClass( 'active' ); + + if ( type === null ) { + this._dehighlightActiveToolGroup(); + this.currentActive = null; + return; + } + + var liElem = this.mainContainer.findOne( 'ul[data-type=table-body] li[data-type="' + type + '"][data-name="' + name + '"]' ); + + liElem.addClass( 'active' ); + + // setup model + this.currentActive = { + type: type, + name: name, + elem: liElem + }; + + // highlight group in toolbar + if ( type == 'group' ) + this._highlightGroup( name ); + + if ( type == 'separator' ) + this._dehighlightActiveToolGroup(); + }; + + /** + * @returns {CKEDITOR.dom.element|null} + */ + ToolbarModifier.prototype.getActiveToolGroup = function() { + if ( this.editorInstance.container ) + return this.editorInstance.container.findOne( '.cke_toolgroup.active, .cke_toolbar.active' ); + else + return null; + }; + + /** + * @private + */ + ToolbarModifier.prototype._dehighlightActiveToolGroup = function() { + var currentActive = this.getActiveToolGroup(); + + if ( currentActive ) + currentActive.removeClass( 'active' ); + + // @see ToolbarModifier.prototype._highlightGroup. + if ( this.editorInstance.container ) { + this.editorInstance.container.removeClass( 'some-toolbar-active' ); + } + }; + + /** + * Highlight group by its name, and dehighlight current group. + * + * @param {String} name + */ + ToolbarModifier.prototype._highlightGroup = function( name ) { + if ( !this.editorInstance.container ) + return; + + var foundBtnName = this.getFirstEnabledButtonInGroup( name ), + foundBtn = this.editorInstance.container.findOne( '.cke_button__' + foundBtnName + ', .cke_combo__' + foundBtnName ); + + this._dehighlightActiveToolGroup(); + + // Helpful to dim other toolbar groups if one is highlighted. + if ( this.editorInstance.container ) { + this.editorInstance.container.addClass( 'some-toolbar-active' ); + } + + if ( foundBtn ) { + var btnToolbar = ToolbarModifier.getFirstAncestor( foundBtn, function( ancestor ) { + return ancestor.hasClass( 'cke_toolbar' ); + } ); + + if ( btnToolbar ) + btnToolbar.addClass( 'active' ); + } + }; + + /** + * @param {String} groupName + * @return {String|null} + */ + ToolbarModifier.prototype.getFirstEnabledButtonInGroup = function( groupName ) { + var groups = this.actualConfig.toolbarGroups, + groupIndex = this.getGroupIndex( groupName ), + group = groups[ groupIndex ]; + + if ( groupIndex === -1 ) { + return null; + } + + var max = group.groups ? group.groups.length : 0; + for ( var i = 0; i < max; i += 1 ) { + var currSubgroupName = group.groups[ i ].name, + firstEnabled = this.getFirstEnabledButtonInSubgroup( currSubgroupName ); + + if ( firstEnabled ) + return firstEnabled; + } + return null; + }; + + /** + * @param {String} subgroupName + * @returns {String|null} + */ + ToolbarModifier.prototype.getFirstEnabledButtonInSubgroup = function( subgroupName ) { + var subgroupBtns = this.fullToolbarEditor.buttonsByGroup[ subgroupName ]; + + var max = subgroupBtns ? subgroupBtns.length : 0; + for ( var i = 0; i < max; i += 1 ) { + var currBtnName = subgroupBtns[ i ].name; + if ( !this.isButtonRemoved( currBtnName ) ) + return currBtnName; + } + + return null; + }; + + /** + * Sets up parameters and call adequate action. + * + * @param {CKEDITOR.dom.element} checkbox + * @private + */ + ToolbarModifier.prototype._handleCheckboxClicked = function( checkbox ) { + var closestLi = checkbox.getAscendant( 'li' ), + elementName = closestLi.data( 'name' ), + aboutToAddToRemoved = !checkbox.$.checked; + + if ( aboutToAddToRemoved ) + this._addButtonToRemoved( elementName ); + else + this._removeButtonFromRemoved( elementName ); + }; + + /** + * Sets up parameters and call adequate action. + * + * @param {HTMLAnchorElement} anchor + * @private + */ + ToolbarModifier.prototype._handleAnchorClicked = function( anchor ) { + var anchorDOM = new CKEDITOR.dom.element( anchor ), + relativeLi = anchorDOM.getAscendant( 'li' ), + relativeUl = relativeLi.getAscendant( 'ul' ), + elementType = relativeLi.data( 'type' ), + elementName = relativeLi.data( 'name' ), + direction = anchorDOM.data( 'direction' ), + nearestLi = ( direction === 'up' ? relativeLi.getPrevious() : relativeLi.getNext() ), + groupName, + subgroupName, + newIndex; + + // nothing to do + if ( anchorDOM.hasClass( 'disabled' ) ) + return null; + + // remove separator and nothing else + if ( anchorDOM.hasClass( 'remove' ) ) { + relativeLi.remove(); + this._removeSeparator( relativeLi.data( 'name' ) ); + this._setActiveElement( null ); + return { action: 'remove' }; + } + + if ( !anchorDOM.hasClass( 'move' ) || !nearestLi ) + return { action: null }; + + // move group or separator + if ( elementType === 'group' || elementType === 'separator' ) { + groupName = elementName; + newIndex = this._moveGroup( direction, groupName ); + } + + // move subgroup + if ( elementType === 'subgroup' ) { + subgroupName = elementName; + groupName = relativeLi.getAscendant( 'li' ).data( 'name' ); + newIndex = this._moveSubgroup( direction, groupName, subgroupName ); + } + + // Visual effect + if ( direction === 'up' ) + relativeLi.insertBefore( relativeUl.getChild( newIndex ) ); + + if ( direction === 'down' ) + relativeLi.insertAfter( relativeUl.getChild( newIndex ) ); + + // Should know whether there is next li element after modifications. + var nextLi = relativeLi; + + // We are looking for next li element in list (to check whether current one is the last one) + var found; + while ( nextLi = ( direction === 'up' ? nextLi.getPrevious() : nextLi.getNext() ) ) { + if ( !this.emptyVisible && nextLi.hasClass( 'empty' ) ) { + continue; + } + + found = nextLi; + break; + } + + // If not found, it means that we reached end. + if ( !found ) { + var selector = ( '[data-direction="' + ( direction === 'up' ? 'down' : 'up' ) + '"]' ); + + // Shifting direction. + this.cachedActiveElement = anchorDOM.getParent().findOne( selector ); + } + + this._refreshMoveBtnsAvalibility(); + this._refreshBtnTabIndexes(); + + return { + action: 'move' + }; + }; + + /** + * First element can not be moved up, and last element can not be moved down, + * so they are disabled. + */ + ToolbarModifier.prototype._refreshMoveBtnsAvalibility = function() { + var that = this, + disabledBtns = this.mainContainer.find( 'ul[data-type=table-body] li > p > span > button.move.disabled' ); + + // enabling all disabled buttons + var max = disabledBtns.count(); + for ( var i = 0; i < max; i += 1 ) { + var currentBtn = disabledBtns.getItem( i ); + currentBtn.removeClass( 'disabled' ); + } + + + function disableElementsInLists( ulList ) { + var max = ulList.count(); + for ( i = 0; i < max; i += 1 ) { + that._disableElementsInList( ulList.getItem( i ) ); + } + } + + // Disable buttons in toolbars. + disableElementsInLists( this.mainContainer.find( 'ul[data-type=table-body]' ) ); + + // Disable buttons in toolbar groups. + disableElementsInLists( this.mainContainer.find( 'ul[data-type=table-body] > li > ul' ) ); + }; + + /** + * @private + */ + ToolbarModifier.prototype._refreshBtnTabIndexes = function() { + var tabindexed = this.mainContainer.find( '[data-tab="true"]' ); + + var max = tabindexed.count(); + for ( var i = 0; i < max; i++ ) { + var item = tabindexed.getItem( i ), + disabled = item.hasClass( 'disabled' ); + + item.setAttribute( 'tabindex', disabled ? -1 : i ); + } + }; + + /** + * Disable buttons to move elements up and down which should be disabled. + * + * @param {CKEDITOR.dom.element} ul + * @private + */ + ToolbarModifier.prototype._disableElementsInList = function( ul ) { + var liList = ul.getChildren(); + + if ( !liList.count() ) + return; + + var firstDisabled, lastDisabled; + if ( this.emptyVisible ) { + firstDisabled = ul.getFirst(); + lastDisabled = ul.getLast(); + } else { + firstDisabled = ul.getFirst( isNotEmptyChecker ); + lastDisabled = ul.getLast( isNotEmptyChecker ); + } + + function isNotEmptyChecker( element ) { + return !element.hasClass( 'empty' ); + } + + if ( firstDisabled ) + var firstDisabledBtn = firstDisabled.findOne( 'p button[data-direction="up"]' ); + + if ( lastDisabled ) + var lastDisabledBtn = lastDisabled.findOne( 'p button[data-direction="down"]' ); + + if ( firstDisabledBtn ) { + firstDisabledBtn.addClass( 'disabled' ); + firstDisabledBtn.setAttribute( 'tabindex', '-1' ); + } + + if ( lastDisabledBtn ) { + lastDisabledBtn.addClass( 'disabled' ); + lastDisabledBtn.setAttribute( 'tabindex', '-1' ); + } + }; + + /** + * Gets group index in actual config toolbarGroups + * + * @param {String} name + * @returns {Number} + */ + ToolbarModifier.prototype.getGroupIndex = function( name ) { + var groups = this.actualConfig.toolbarGroups; + + var max = groups.length; + for ( var i = 0; i < max; i += 1 ) { + if ( groups[ i ].name === name ) + return i; + } + + return -1; + }; + + /** + * Handle adding separator. + * + * @private + */ + ToolbarModifier.prototype._addSeparator = function() { + var separatorIndex = this._determineSeparatorToAddIndex(), + separator = ToolbarModifier.createSeparatorLiteral(), + domSeparator = CKEDITOR.dom.element.createFromHtml( ToolbarModifier.getToolbarSeparatorString( separator ) ); + + this.actualConfig.toolbarGroups.splice( separatorIndex, 0, separator ); + + domSeparator.insertBefore( this.modifyContainer.findOne( 'ul[data-type=table-body]' ).getChild( separatorIndex ) ); + + this._setActiveElement( 'separator', separator.name ); + this._refreshMoveBtnsAvalibility(); + this._refreshBtnTabIndexes(); + this._refreshEditor(); + }; + + /** + * Handle removing separator. + * + * @param {String} name + */ + ToolbarModifier.prototype._removeSeparator = function( name ) { + var separatorIndex = CKEDITOR.tools.indexOf( this.actualConfig.toolbarGroups, function( group ) { + return group.type == 'separator' && group.name == name; + } ); + + this.actualConfig.toolbarGroups.splice( separatorIndex, 1 ); + + this._refreshMoveBtnsAvalibility(); + this._refreshBtnTabIndexes(); + this._refreshEditor(); + }; + + /** + * Determine index where separator should be added, based on currently selected element. + * + * @returns {Number} + * @private + */ + ToolbarModifier.prototype._determineSeparatorToAddIndex = function() { + if ( !this.currentActive ) + return 0; + + var groupLi; + if ( this.currentActive.elem.data( 'type' ) == 'group' || this.currentActive.elem.data( 'type' ) == 'separator' ) + groupLi = this.currentActive.elem; + else + groupLi = this.currentActive.elem.getAscendant( 'li' ); + + return groupLi.getIndex(); + }; + + /** + * @param {Array} elementsArray + * @param {Number} elementIndex + * @param {String} direction + * @returns {Number} + * @private + */ + ToolbarModifier.prototype._moveElement = function( elementsArray, elementIndex, direction ) { + var nextIndex; + + if ( this.emptyVisible ) + nextIndex = ( direction == 'down' ? elementIndex + 1 : elementIndex - 1 ); + else { + // When empty elements are not visible, there is need to skip them. + nextIndex = ToolbarModifier.getFirstElementIndexWith( elementsArray, elementIndex, direction, isEmptyOrSeparatorChecker ); + } + + function isEmptyOrSeparatorChecker( element ) { + return element.totalBtns || element.type == 'separator'; + } + + var offset = nextIndex - elementIndex; + + return ToolbarModifier.moveTo( offset, elementsArray, elementIndex ); + }; + + /** + * Moves group located in config level up or down and refresh editor. + * + * @param {String} direction + * @param {String} groupName + * @returns {Number} + */ + ToolbarModifier.prototype._moveGroup = function( direction, groupName ) { + var groupIndex = this.getGroupIndex( groupName ), + groups = this.actualConfig.toolbarGroups, + newIndex = this._moveElement( groups, groupIndex, direction ); + + this._refreshMoveBtnsAvalibility(); + this._refreshBtnTabIndexes(); + this._refreshEditor(); + + return newIndex; + }; + + /** + * Moves subgroup located in config level up or down and refresh editor. + * + * @param {String} direction + * @param {String} groupName + * @param {String} subgroupName + * @private + */ + ToolbarModifier.prototype._moveSubgroup = function( direction, groupName, subgroupName ) { + var groupIndex = this.getGroupIndex( groupName ), + groups = this.actualConfig.toolbarGroups, + group = groups[ groupIndex ], + subgroupIndex = CKEDITOR.tools.indexOf( group.groups, function( subgroup ) { + return subgroup.name == subgroupName; + } ), + newIndex = this._moveElement( group.groups, subgroupIndex, direction ); + + this._refreshEditor(); + + return newIndex; + }; + + /** + * Set `totalBtns` property in `actualConfig.toolbarGroups` elements. + * + * @private + */ + ToolbarModifier.prototype._calculateTotalBtns = function() { + var groups = this.actualConfig.toolbarGroups; + + var i = groups.length; + // from the end + while ( i-- ) { + var currentGroup = groups[ i ], + totalBtns = ToolbarModifier.getTotalGroupButtonsNumber( currentGroup, this.fullToolbarEditor ); + + if ( currentGroup.type == 'separator' ) { + // nothing to do with separator + continue; + } + + currentGroup.totalBtns = totalBtns; + } + }; + + /** + * Add button to removeButtons field in config and refresh editor. + * + * @param {String} buttonName + * @private + */ + ToolbarModifier.prototype._addButtonToRemoved = function( buttonName ) { + if ( CKEDITOR.tools.indexOf( this.removedButtons, buttonName ) != -1 ) + throw 'Button already added to removed'; + + this.removedButtons.push( buttonName ); + this.actualConfig.removeButtons = this.removedButtons.join( ',' ); + this._refreshEditor(); + }; + + /** + * Remove button from removeButtons field in config and refresh editor. + * + * @param {String} buttonName + * @private + */ + ToolbarModifier.prototype._removeButtonFromRemoved = function( buttonName ) { + var foundAtIndex = CKEDITOR.tools.indexOf( this.removedButtons, buttonName ); + + if ( foundAtIndex === -1 ) + throw 'Trying to remove button from removed, but not found'; + + this.removedButtons.splice( foundAtIndex, 1 ); + this.actualConfig.removeButtons = this.removedButtons.join( ',' ); + this._refreshEditor(); + }; + + /** + * Parse group "model" to configuration value + * + * @param {Object} group + * @returns {Object} + * @static + */ + ToolbarModifier.parseGroupToConfigValue = function( group ) { + if ( group.type == 'separator' ) { + return '/'; + } + + var groups = group.groups, + max = groups.length; + + delete group.totalBtns; + for ( var i = 0; i < max; i += 1 ) { + groups[ i ] = groups[ i ].name; + } + + return group; + }; + + /** + * Find closest Li ancestor in DOM tree which is group or separator element + * + * @param {CKEDITOR.dom.element} element + * @returns {CKEDITOR.dom.element} + * @static + */ + ToolbarModifier.getGroupOrSeparatorLiAncestor = function( element ) { + if ( element.$ instanceof HTMLLIElement && element.data( 'type' ) == 'group' ) + return element; + else { + return ToolbarModifier.getFirstAncestor( element, function( ancestor ) { + var type = ancestor.data( 'type' ); + + return ( type == 'group' || type == 'separator' ); + } ); + } + }; + + /** + * Create separator literal with unique id. + * + * @public + * @static + * @return {Object} + */ + ToolbarModifier.createSeparatorLiteral = function() { + return { + type: 'separator', + name: ( 'separator' + CKEDITOR.tools.getNextNumber() ) + }; + }; + + /** + * Creates HTML unordered list string based on toolbarGroups field in config. + * + * @returns {String} + * @static + */ + ToolbarModifier.prototype._toolbarConfigToListString = function() { + var groups = this.actualConfig.toolbarGroups || [], + listString = '
    '; + + var max = groups.length; + for ( var i = 0; i < max; i += 1 ) { + var currentGroup = groups[ i ]; + + if ( currentGroup.type === 'separator' ) + listString += ToolbarModifier.getToolbarSeparatorString( currentGroup ); + else + listString += this._getToolbarGroupString( currentGroup ); + } + + listString += '
'; + + var headerString = ToolbarModifier.getToolbarHeaderString(); + + return headerString + listString; + }; + + /** + * Created HTML group list element based on group field in config. + * + * @param {Object} group + * @returns {String} + * @private + */ + ToolbarModifier.prototype._getToolbarGroupString = function( group ) { + var subgroups = group.groups, + groupString = ''; + + groupString += [ + '
  • ' + ].join( '' ); + groupString += ToolbarModifier.getToolbarElementPreString( group ) + '
      '; + + var max = subgroups.length; + + for ( var i = 0; i < max; i += 1 ) { + var currentSubgroup = subgroups[ i ], + subgroupBtns = this.fullToolbarEditor.buttonsByGroup[ currentSubgroup.name ]; + + groupString += this._getToolbarSubgroupString( currentSubgroup, subgroupBtns ); + } + groupString += '
  • '; + + return groupString; + }; + + /** + * @param {Object} separator + * @returns {String} + * @static + */ + ToolbarModifier.getToolbarSeparatorString = function( separator ) { + return [ + '
  • ', + ToolbarModifier.getToolbarElementPreString( 'row separator' ), + '
  • ' + ].join( '' ); + }; + + /** + * @returns {string} + */ + ToolbarModifier.getToolbarHeaderString = function() { + return '
      ' + + '
    • ' + + '

      Toolbars

      ' + + '
        ' + + '
      • ' + + '

        Toolbar groups

        ' + + '

        Toolbar group items

        ' + + '
      • ' + + '
      ' + + '
    • ' + + '
    '; + }; + + /** + * Find and return first ancestor of element provided in first argument + * which match the criteria checked in function provided in second argument. + * + * @param {CKEDITOR.dom.element} element + * @param {Function} checker + * @returns {CKEDITOR.dom.element|null} + */ + ToolbarModifier.getFirstAncestor = function( element, checker ) { + var ancestors = element.getParents(), + i = ancestors.length; + + while ( i-- ) { + if ( checker( ancestors[ i ] ) ) + return ancestors[ i ]; + } + + return null; + }; + + /** + * Looking through array elements start from index provided in second argument + * and go 'up' or 'down' in array + * last argument is condition checker which should return Boolean value + * + * User cases: + * + * ToolbarModifier.getFirstElementIndexWith( [3, 4, 8, 1, 4], 2, 'down', function( elem ) { return elem == 4; } ); // 4 + * ToolbarModifier.getFirstElementIndexWith( [3, 4, 8, 1, 4], 2, 'up', function( elem ) { return elem == 4; } ); // 1 + * + * @param {Array} array + * @param {Number} i + * @param {String} direction 'up' or 'down' + * @param {Function} conditionChecker + * @static + * @returns {Number} index of found element + */ + ToolbarModifier.getFirstElementIndexWith = function( array, i, direction, conditionChecker ) { + function whileChecker() { + var result; + if ( direction === 'up' ) + result = i--; + else + result = ( ++i < array.length ); + + return result; + } + + while ( whileChecker() ) { + if ( conditionChecker( array[ i ] ) ) + return i; + + } + + return -1; + }; + + /** + * Moves array element at index level up or down. + * + * @static + * @param {String} direction + * @param {Array} array + * @param {Number} index + * @returns {Number} + */ + ToolbarModifier.moveTo = function( offset, array, index ) { + var element, newIndex; + + if ( index !== -1 ) + element = array.splice( index, 1 )[ 0 ]; + + newIndex = index + offset; + + array.splice( newIndex, 0, element ); + + return newIndex; + }; + + /** + * @static + * @param {Object} subgroup + * @returns {Number} + */ + ToolbarModifier.getTotalSubGroupButtonsNumber = function( subgroup, fullToolbarEditor ) { + var subgroupName = ( typeof subgroup == 'string' ? subgroup : subgroup.name ), + subgroupBtns = fullToolbarEditor.buttonsByGroup[ subgroupName ]; + + return ( subgroupBtns ? subgroupBtns.length : 0 ); + }; + + /** + * Returns all buttons number in group which are nested in subgroups also. + * + * @param {Object} group + * @param {ToolbarModifier.FullToolbarEditor} + * @static + * @returns {Number} + */ + ToolbarModifier.getTotalGroupButtonsNumber = function( group, fullToolbarEditor ) { + var total = 0, + subgroups = group.groups; + + var max = subgroups ? subgroups.length : 0; + for ( var i = 0; i < max; i += 1 ) + total += ToolbarModifier.getTotalSubGroupButtonsNumber( subgroups[ i ], fullToolbarEditor ); + + return total; + }; + + /** + * Creates HTML subgroup list element based on subgroup field in config. + * + * @param {Object} subgroup + * @param {Array} groupBtns + * @returns {String} + * @private + */ + ToolbarModifier.prototype._getToolbarSubgroupString = function( subgroup, groupBtns ) { + var subgroupString = ''; + + subgroupString += [ + '
  • ' + ].join( '' ); + subgroupString += ToolbarModifier.getToolbarElementPreString( subgroup.name ); + subgroupString += '
      '; + + var max = groupBtns ? groupBtns.length : 0; + for ( var i = 0; i < max; i += 1 ) + subgroupString += this.getButtonString( groupBtns[ i ] ); + + subgroupString += '
    '; + + subgroupString += '
  • '; + + return subgroupString; + }; + + /** + * @param {String} buttonName + * @returns {String|null} + * @private + */ + ToolbarModifier.prototype._getConfigButtonName = function( buttonName ) { + var items = this.fullToolbarEditor.editorInstance.ui.items; + + var name; + for ( name in items ) { + if ( items[ name ].name == buttonName ) + return name; + } + + return null; + }; + + /** + * @param {String} buttonName + * @returns {Boolean} + */ + ToolbarModifier.prototype.isButtonRemoved = function( buttonName ) { + return CKEDITOR.tools.indexOf( this.removedButtons, this._getConfigButtonName( buttonName ) ) != -1; + }; + + /** + * @param {CKEDITOR.ui.button/CKEDITOR.ui.richCombo} button + * @returns {String} + * @public + */ + ToolbarModifier.prototype.getButtonString = function( button ) { + var checked = ( this.isButtonRemoved( button.name ) ? '' : 'checked="checked"' ); + + return [ + '
  • ', + '', + '
  • ' + ].join( '' ); + }; + + /** + * Creates group header string. + * + * @param {Object|String} group + * @returns {String} + * @static + */ + ToolbarModifier.getToolbarElementPreString = function( group ) { + var name = ( group.name ? group.name : group ); + + return [ + '

    ', + '', + '', + '', + ( name == 'row separator' ? '' : '' ), + name, + '', + '

    ' + ].join( '' ); + }; + + /** + * @static + * @param {String} cfg + * @returns {String} + */ + ToolbarModifier.evaluateToolbarGroupsConfig = function( cfg ) { + cfg = ( function( cfg ) { + var config = {}, result; + + /*jshint -W002 */ + try { + result = eval( '(' + cfg + ')' ); + } catch ( e ) { + try { + result = eval( cfg ); + } catch ( e ) { + return null; + } + } + /*jshint +W002 */ + + if ( config.toolbarGroups && typeof config.toolbarGroups.length === 'number' ) { + return JSON.stringify( config ); + } else if ( result && typeof result.length === 'number' ) { + return JSON.stringify( { toolbarGroups: result } ); + } else if ( result && result.toolbarGroups ) { + return JSON.stringify( result ); + } else { + return null; + } + + }( cfg ) ); + + return cfg; + }; + + return ToolbarModifier; +} )(); + diff --git a/sources/samples/toolbarconfigurator/js/toolbartextmodifier.js b/sources/samples/toolbarconfigurator/js/toolbartextmodifier.js new file mode 100644 index 00000000..4c14dd28 --- /dev/null +++ b/sources/samples/toolbarconfigurator/js/toolbartextmodifier.js @@ -0,0 +1,623 @@ +/* global CodeMirror, ToolbarConfigurator */ + +'use strict'; + +( function() { + var AbstractToolbarModifier = ToolbarConfigurator.AbstractToolbarModifier, + FullToolbarEditor = ToolbarConfigurator.FullToolbarEditor; + + /** + * @class ToolbarConfigurator.ToolbarTextModifier + * @param {String} editorId An id of modified editor + * @extends AbstractToolbarModifier + * @constructor + */ + function ToolbarTextModifier( editorId ) { + AbstractToolbarModifier.call( this, editorId ); + + this.codeContainer = null; + this.hintContainer = null; + } + + // Expose the class. + ToolbarConfigurator.ToolbarTextModifier = ToolbarTextModifier; + + ToolbarTextModifier.prototype = Object.create( AbstractToolbarModifier.prototype ); + + /** + * @param {Function} callback + * @param {String} [config] + * @private + */ + ToolbarTextModifier.prototype._onInit = function( callback, config ) { + AbstractToolbarModifier.prototype._onInit.call( this, undefined, config ); + + this._createModifier( config ? this.actualConfig : undefined ); + + if ( typeof callback === 'function' ) + callback( this.mainContainer ); + }; + + /** + * Creates HTML main container of modifier. + * + * @param {String} cfg + * @returns {CKEDITOR.dom.element} + * @private + */ + ToolbarTextModifier.prototype._createModifier = function( cfg ) { + var that = this; + + this._createToolbar(); + + if ( this.toolbarContainer ) { + this.mainContainer.append( this.toolbarContainer ); + } + + AbstractToolbarModifier.prototype._createModifier.call( this ); + + this._setupActualConfig( cfg ); + + var toolbarCfg = this.actualConfig.toolbar, + cfgValue; + + if ( CKEDITOR.tools.isArray( toolbarCfg ) ) { + var stringifiedToolbar = '[\n\t\t' + FullToolbarEditor.map( toolbarCfg, function( json ) { + return AbstractToolbarModifier.stringifyJSONintoOneLine( json, { + addSpaces: true, + noQuotesOnKey: true, + singleQuotes: true + } ); + } ).join( ',\n\t\t' ) + '\n\t]'; + + cfgValue = '\tconfig.toolbar = ' + stringifiedToolbar + ';'; + } else { + cfgValue = 'config.toolbar = [];'; + } + + cfgValue = [ + 'CKEDITOR.editorConfig = function( config ) {\n', + cfgValue, + '\n};' + ].join( '' ); + + function hint( cm ) { + var data = setupData( cm ); + + if ( data.charsBetween === null ) { + return; + } + + var unused = that.getUnusedButtonsArray( that.actualConfig.toolbar, true, data.charsBetween ), + to = cm.getCursor(), + from = CodeMirror.Pos( to.line, ( to.ch - ( data.charsBetween.length ) ) ), + token = cm.getTokenAt( to ), + prevToken = cm.getTokenAt( { line: to.line, ch: token.start } ); + + // determine that we are at beginning of group, + // so first key is "name" + if ( prevToken.string === '{' ) + unused = [ 'name' ]; + + // preventing close with special character and move cursor forward + // when no autocomplete + if ( unused.length === 0 ) + return; + + return new HintData( from, to, unused ); + } + + function HintData( from, to, list ) { + this.from = from; + this.to = to; + this.list = list; + this._handlers = []; + } + + function setupData( cm, character ) { + var result = {}; + + result.cur = cm.getCursor(); + result.tok = cm.getTokenAt( result.cur ); + + result[ 'char' ] = character || result.tok.string.charAt( result.tok.string.length - 1 ); + + // Getting string between begin of line and cursor. + var curLineTillCur = cm.getRange( CodeMirror.Pos( result.cur.line, 0 ), result.cur ); + + // Reverse string. + var currLineTillCurReversed = curLineTillCur.split( '' ).reverse().join( '' ); + + // Removing proper string definitions : + // FROM: + // R' ,'odeR' ,'odnU' [ :smeti{ + // ^^^^^^ ^^^^^^ + // TO: + // R' , [ :smeti{ + currLineTillCurReversed = currLineTillCurReversed.replace( /(['|"]\w*['|"])/g, '' ); + + // Matching letters till ' or " character and end string char. + // R' , [ :smeti{ + // ^ + result.charsBetween = currLineTillCurReversed.match( /(^\w*)(['|"])/ ); + + if ( result.charsBetween ) { + result.endChar = result.charsBetween[ 2 ]; + + // And reverse string (bring to original state). + result.charsBetween = result.charsBetween[ 1 ].split( '' ).reverse().join( '' ); + } + + return result; + } + + function complete( cm ) { + setTimeout( function() { + if ( !cm.state.completionActive ) { + CodeMirror.showHint( cm, hint, { + hintsClass: 'toolbar-modifier', + completeSingle: false + } ); + } + }, 100 ); + + return CodeMirror.Pass; + } + + var codeMirrorWrapper = new CKEDITOR.dom.element( 'div' ); + codeMirrorWrapper.addClass( 'codemirror-wrapper' ); + this.modifyContainer.append( codeMirrorWrapper ); + this.codeContainer = CodeMirror( codeMirrorWrapper.$, { + mode: { name: 'javascript', json: true }, + // For some reason (most likely CM's bug) gutter breaks CM's height. + // Refreshing CM does not help. + lineNumbers: false, + lineWrapping: true, + // Trick to make CM autogrow. http://codemirror.net/demo/resize.html + viewportMargin: Infinity, + value: cfgValue, + smartIndent: false, + indentWithTabs: true, + indentUnit: 4, + tabSize: 4, + theme: 'neo', + extraKeys: { + 'Left': complete, + 'Right': complete, + "'''": complete, + "'\"'": complete, + Backspace: complete, + Delete: complete, + 'Shift-Tab': 'indentLess' + } + } ); + + this.codeContainer.on( 'endCompletion', function( cm, completionData ) { + var data = setupData( cm ); + + // preventing close with special character and move cursor forward + // when no autocomplete + if ( completionData === undefined ) + return; + + cm.replaceSelection( data.endChar ); + } ); + + this.codeContainer.on( 'change', function() { + var value = that.codeContainer.getValue(); + + value = that._evaluateValue( value ); + + if ( value !== null ) { + that.actualConfig.toolbar = ( value.toolbar ? value.toolbar : that.actualConfig.toolbar ); + + that._fillHintByUnusedElements(); + that._refreshEditor(); + + that.mainContainer.removeClass( 'invalid' ); + } else { + that.mainContainer.addClass( 'invalid' ); + } + } ); + + this.hintContainer = new CKEDITOR.dom.element( 'div' ); + this.hintContainer.addClass( 'toolbarModifier-hints' ); + + this._fillHintByUnusedElements(); + this.hintContainer.insertBefore( codeMirrorWrapper ); + }; + + /** + * Create DOM string and set to hint container, + * show proper information when no unused element left. + * + * @private + */ + ToolbarTextModifier.prototype._fillHintByUnusedElements = function() { + var unused = this.getUnusedButtonsArray( this.actualConfig.toolbar, true ); + unused = this.groupButtonNamesByGroup( unused ); + + var unusedElements = FullToolbarEditor.map( unused, function( elem ) { + var buttonsList = FullToolbarEditor.map( elem.buttons, function( buttonName ) { + return '' + buttonName + ' '; + } ).join( '' ); + + return [ + '
    ', + '', elem.name, '', + '
    ', + '
    ', + buttonsList, + '
    ' + ].join( '' ); + } ).join( ' ' ); + + var listHeader = [ + '
    Toolbar group
    ', + '
    Unused items
    ' + ].join( '' ); + + var header = '

    Unused toolbar items

    '; + + if ( !unused.length ) { + listHeader = '

    All items are in use.

    '; + } + + this.codeContainer.refresh(); + + this.hintContainer.setHtml( header + '
    ' + listHeader + unusedElements + '
    ' ); + }; + + /** + * @param {String} buttonName + * @returns {String} + */ + ToolbarTextModifier.prototype.getToolbarGroupByButtonName = function( buttonName ) { + var buttonNames = this.fullToolbarEditor.buttonNamesByGroup; + + for ( var groupName in buttonNames ) { + var buttons = buttonNames[ groupName ]; + + var i = buttons.length; + while ( i-- ) { + if ( buttonName === buttons[ i ] ) { + return groupName; + } + } + + } + + return null; + }; + + /** + * Filter all available toolbar elements by array of elements provided in first argument. + * Returns elements which are not used. + * + * @param {Object} toolbar + * @param {Boolean} [sorted=false] + * @param {String} prefix + * @returns {Array} + */ + ToolbarTextModifier.prototype.getUnusedButtonsArray = function( toolbar, sorted, prefix ) { + sorted = ( sorted === true ? true : false ); + var providedElements = ToolbarTextModifier.mapToolbarCfgToElementsList( toolbar ), + allElements = Object.keys( this.fullToolbarEditor.editorInstance.ui.items ); + + // get rid of "-" elements + allElements = FullToolbarEditor.filter( allElements, function( elem ) { + var isSeparator = ( elem === '-' ), + matchPrefix = ( prefix === undefined || elem.toLowerCase().indexOf( prefix.toLowerCase() ) === 0 ); + + return !isSeparator && matchPrefix; + } ); + + var elementsNotUsed = FullToolbarEditor.filter( allElements, function( elem ) { + return CKEDITOR.tools.indexOf( providedElements, elem ) == -1; + } ); + + if ( sorted ) + elementsNotUsed.sort(); + + return elementsNotUsed; + }; + + /** + * + * @param {Array} buttons + * @returns {Array} + */ + ToolbarTextModifier.prototype.groupButtonNamesByGroup = function( buttons ) { + var result = [], + groupedBtns = JSON.parse( JSON.stringify( this.fullToolbarEditor.buttonNamesByGroup ) ); + + for ( var groupName in groupedBtns ) { + var currGroup = groupedBtns[ groupName ]; + currGroup = FullToolbarEditor.filter( currGroup, function( btnName ) { + return CKEDITOR.tools.indexOf( buttons, btnName ) !== -1; + } ); + + if ( currGroup.length ) { + result.push( { + name: groupName, + buttons: currGroup + } ); + } + + } + + return result; + }; + + /** + * Map toolbar config value to flat items list. + * + * input: + * [ + * { name: "basicstyles", items: ["Bold", "Italic"] }, + * { name: "advancedstyles", items: ["Bold", "Outdent", "Indent"] } + * ] + * + * output: + * ["Bold", "Italic", "Outdent", "Indent"] + * + * @param {Object} toolbar + * @returns {Array} + */ + ToolbarTextModifier.mapToolbarCfgToElementsList = function( toolbar ) { + var elements = []; + + var max = toolbar.length; + for ( var i = 0; i < max; i += 1 ) { + if ( !toolbar[ i ] || typeof toolbar[ i ] === 'string' ) + continue; + + elements = elements.concat( FullToolbarEditor.filter( toolbar[ i ].items, checker ) ); + } + + function checker( elem ) { + return elem !== '-'; + } + + return elements; + }; + + /** + * @param {String} cfg + * @private + */ + ToolbarTextModifier.prototype._setupActualConfig = function( cfg ) { + cfg = cfg || this.editorInstance.config; + + // if toolbar already exists in config, there is nothing to do + if ( CKEDITOR.tools.isArray( cfg.toolbar ) ) + return; + + // if toolbar group not present, we need to pick them from full toolbar instance + if ( !cfg.toolbarGroups ) + cfg.toolbarGroups = this.fullToolbarEditor.getFullToolbarGroupsConfig( true ); + + this._fixGroups( cfg ); + + cfg.toolbar = this._mapToolbarGroupsToToolbar( cfg.toolbarGroups, this.actualConfig.removeButtons ); + + this.actualConfig.toolbar = cfg.toolbar; + this.actualConfig.removeButtons = ''; + }; + + /** + * **Please note:** This method modify element provided in first argument. + * + * @param {Array} toolbarGroups + * @returns {Array} + * @private + */ + ToolbarTextModifier.prototype._mapToolbarGroupsToToolbar = function( toolbarGroups, removedBtns ) { + removedBtns = removedBtns || this.editorInstance.config.removedBtns; + removedBtns = typeof removedBtns == 'string' ? removedBtns.split( ',' ) : []; + + // from the end, because array indexes may change + var i = toolbarGroups.length; + while ( i-- ) { + var mappedSubgroup = this._mapToolbarSubgroup( toolbarGroups[ i ], removedBtns ); + + if ( toolbarGroups[ i ].type === 'separator' ) { + toolbarGroups[ i ] = '/'; + continue; + } + + // don't want empty groups + if ( CKEDITOR.tools.isArray( mappedSubgroup ) && mappedSubgroup.length === 0 ) { + toolbarGroups.splice( i, 1 ); + continue; + } + + if ( typeof mappedSubgroup == 'string' ) + toolbarGroups[ i ] = mappedSubgroup; + else { + toolbarGroups[ i ] = { + name: toolbarGroups[ i ].name, + items: mappedSubgroup + }; + } + } + + return toolbarGroups; + }; + + /** + * + * @param {String|Object} group + * @param {Array} removedBtns + * @returns {Array} + * @private + */ + ToolbarTextModifier.prototype._mapToolbarSubgroup = function( group, removedBtns ) { + var totalBtns = 0; + if ( typeof group == 'string' ) + return group; + + var max = group.groups ? group.groups.length : 0, + result = []; + for ( var i = 0; i < max; i += 1 ) { + var currSubgroup = group.groups[ i ]; + + var buttons = this.fullToolbarEditor.buttonsByGroup[ typeof currSubgroup === 'string' ? currSubgroup : currSubgroup.name ] || []; + buttons = this._mapButtonsToButtonsNames( buttons, removedBtns ); + var currTotalBtns = buttons.length; + totalBtns += currTotalBtns; + result = result.concat( buttons ); + + if ( currTotalBtns ) + result.push( '-' ); + } + + if ( result[ result.length - 1 ] == '-' ) + result.pop(); + + return result; + }; + + /** + * + * @param {Array} buttons + * @param {Array} removedBtns + * @returns {Array} + * @private + */ + ToolbarTextModifier.prototype._mapButtonsToButtonsNames = function( buttons, removedBtns ) { + var i = buttons.length; + while ( i-- ) { + var currBtn = buttons[ i ], + camelCasedName; + + if ( typeof currBtn === 'string' ) { + camelCasedName = currBtn; + } else { + camelCasedName = this.fullToolbarEditor.getCamelCasedButtonName( currBtn.name ); + } + + if ( CKEDITOR.tools.indexOf( removedBtns, camelCasedName ) !== -1 ) { + buttons.splice( i, 1 ); + continue; + } + + buttons[ i ] = camelCasedName; + } + + return buttons; + }; + + /** + * @param {String} val + * @returns {Object} + * @private + */ + ToolbarTextModifier.prototype._evaluateValue = function( val ) { + var parsed; + + try { + var config = {}; + ( function() { + var CKEDITOR = Function( 'var CKEDITOR = {}; ' + val + '; return CKEDITOR;' )(); + + CKEDITOR.editorConfig( config ); + parsed = config; + } )(); + + // CKEditor does not handle empty arrays in configuration files + // on IE8 + var i = parsed.toolbar.length; + while ( i-- ) + if ( !parsed.toolbar[ i ] ) parsed.toolbar.splice( i, 1 ); + + } catch ( e ) { + parsed = null; + } + + return parsed; + }; + + /** + * @param {Array} toolbar + * @returns {{toolbarGroups: Array, removeButtons: string}} + */ + ToolbarTextModifier.prototype.mapToolbarToToolbarGroups = function( toolbar ) { + var usedGroups = {}, + removeButtons = [], + toolbarGroups = []; + + var max = toolbar.length; + for ( var i = 0; i < max; i++ ) { + if ( toolbar[ i ] === '/' ) { + toolbarGroups.push( '/' ); + continue; + } + + var items = toolbar[ i ].items; + + var toolbarGroup = {}; + toolbarGroup.name = toolbar[ i ].name; + toolbarGroup.groups = []; + + var max2 = items.length; + for ( var j = 0; j < max2; j++ ) { + var item = items[ j ]; + + if ( item === '-' ) { + continue; + } + + var groupName = this.getToolbarGroupByButtonName( item ); + + var groupIndex = toolbarGroup.groups.indexOf( groupName ); + if ( groupIndex === -1 ) { + toolbarGroup.groups.push( groupName ); + } + + usedGroups[ groupName ] = usedGroups[ groupName ] || {}; + + var buttons = ( usedGroups[ groupName ].buttons = usedGroups[ groupName ].buttons || {} ); + + buttons[ item ] = buttons[ item ] || { used: 0, origin: toolbarGroup.name }; + buttons[ item ].used++; + } + + toolbarGroups.push( toolbarGroup ); + } + + // Handling removed buttons + removeButtons = prepareRemovedButtons( usedGroups, this.fullToolbarEditor.buttonNamesByGroup ); + + function prepareRemovedButtons( usedGroups, buttonNames ) { + var removed = []; + + for ( var groupName in usedGroups ) { + var group = usedGroups[ groupName ]; + var allButtonsInGroup = buttonNames[ groupName ].slice(); + + removed = removed.concat( removeStuffFromArray( allButtonsInGroup, Object.keys( group.buttons ) ) ); + } + + return removed; + } + + function removeStuffFromArray( array, stuff ) { + array = array.slice(); + var i = stuff.length; + + while ( i-- ) { + var atIndex = array.indexOf( stuff[ i ] ); + if ( atIndex !== -1 ) { + array.splice( atIndex, 1 ); + } + } + + return array; + } + + return { toolbarGroups: toolbarGroups, removeButtons: removeButtons.join( ',' ) }; + }; + + return ToolbarTextModifier; +} )(); diff --git a/sources/samples/toolbarconfigurator/less/base.less b/sources/samples/toolbarconfigurator/less/base.less new file mode 100644 index 00000000..be59d207 --- /dev/null +++ b/sources/samples/toolbarconfigurator/less/base.less @@ -0,0 +1,38 @@ +// Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +// For licensing, see LICENSE.html or http://cksource.com/ckeditor/license + +@base-font-size: 16px; +@base-line-height: 24px; +@base-line-ratio: 1.8; + +@sample-font-stack: Arial, Helvetica, sans-serif; +@sample-font-stack-monospace: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; +@sample-font-maven: "Maven Pro"; +@sample-font-indie: "Indie Flower"; +@sample-text-color: #575757; + +@sample-link-color: #cf5d4e; +@sample-link-color-hover: lighten( @sample-link-color, -10% ); + +@sample-box-background-color: #f5f5f5; +@sample-box-border-color: #ddd; + +@sample-top-navigation-background: #454545; + +// Standard gaps +@sample-standard-vgap: 1.2em; +@sample-standard-hgap: 1.5em; + +// Generic font-size/line-height mixin. +.font-size( @remSize ) { + @pxSize: round( @remSize * @base-font-size, 2 ); + + @remHeight: round( @remSize * @base-line-ratio, 2 ); + @pxHeight: round( @pxSize * @base-line-ratio, 2 ); + + font-size: ~"@{pxSize}"; + font-size: ~"@{remSize}rem"; + + line-height: ~"@{pxHeight}"; + line-height: ~"@{remHeight}rem"; +} diff --git a/sources/samples/toolbarconfigurator/less/toolbarmodifier.less b/sources/samples/toolbarconfigurator/less/toolbarmodifier.less new file mode 100644 index 00000000..ea6ed15a --- /dev/null +++ b/sources/samples/toolbarconfigurator/less/toolbarmodifier.less @@ -0,0 +1,508 @@ +// Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +// For licensing, see LICENSE.html or http://cksource.com/ckeditor/license + +@import "base.less"; + +@modifier-group-hover-color: #fffbe3; +@modifier-group-active-color: #f0fafb; + +@modifier-active-toolbar-color: darken( @modifier-group-hover-color, 10% ); + +@modifier-toolbar-border-color: #ccc; +@modifier-toolbar-group-border-color: #ddd; +@modifier-toolbar-group-vpadding: 2px; +@modifier-toolbar-hgap: 5px; + +@modifier-toolbar-button-color: #e7e7e7; + +#toolbar .cke_toolbar { + pointer-events: none; + .user-select( none ); + cursor: default; +} + +// Dim all but active toolbars if some is active. +.some-toolbar-active .cke_toolbar { + .opacity( .5 ); +} + +.cke_toolbar.active { + position: relative; + + // Active toolbar is always highlighted. + .opacity( 1 ); + + &:after { + content: ''; + display: block; + position: absolute; + top: 0; + right: 6px; + bottom: 5px; + left: 0; + .border-radius( 5px ); + .box-shadow( 0px 0px 15px 3px @modifier-active-toolbar-color ); + } + + .cke_toolgroup { + .box-shadow( none ); + border-color: darken( @modifier-active-toolbar-color, 40% ); + } + + .cke_combo, + .cke_toolgroup { + position: relative; + z-index: 2; + } + + .cke_combo_button { + .box-shadow( none ); + } +} + +.unselectable { + .user-select( none ); +} +.toolbar { + padding: 5px 0; + margin-bottom: 2 * @sample-standard-vgap; + overflow: hidden; + background: #fff; + + button.button-a { + &.cke_button { + cursor: pointer; + + display: inline-block; + padding: 4px 6px; + outline: 0; + border: 1px solid #a6a6a6; + } + + &.hidden { + display: none; + } + + &.left { + float: left; + margin-right: 8px; + } + + &.right { + float: right; + margin-left: 8px; + } + + .highlight { + color: #ffefc1; + } + } +} + +// Styles applied when configurator is hidden and code is being displayed (and vice-versa). +.configContainer.hidden, +.toolbarModifier.hidden, +.toolbarModifier-hints.hidden { + display: none; +} + +.toolbarModifier :focus, +.toolbar button:focus, +.configContainer textarea.configCode:focus { + outline: none; +} + +div.toolbarModifier { + padding: 0; + overflow: hidden; + width: 100%; + position: relative; + display: table; + border-collapse: collapse; + + ::-moz-focus-inner { + border: 0; + } + + .empty { + display: none; + } + + &.empty-visible .empty { + display: table-row; + .opacity( 0.6 ); + } + + // Give empty toolbar groups height similar to height of non empty groups. + // Non empty groups are stretched by contained toolbar buttons. + .empty > p { + line-height: 31px; + } + + // List of toolbars. + & > ul { + padding: 0; + margin: 0; + border-top: 1px solid @modifier-toolbar-border-color; + width: 100%; + + &[data-type="table-header"] { + display: table-header-group; + } + + &[data-type="table-body"] { + display: table-row-group; + } + + // Override global margins and paddings. + p { + padding: 0; + margin: 0; + } + + // A single toolbar. + & > li { + display: table-row; + + &[data-type="header"] { + font-weight: bold; + user-select: none; + cursor: default; + } + + &[data-type="group"], + &[data-type="separator"] { + border-bottom: 1px solid @modifier-toolbar-border-color; + } + + &[data-type="subgroup"] { + border-top: 1px solid #eee; + + &:first-child { + border-top: none; + } + } + + &[data-type="group"].active, + &[data-type="group"]:hover, + &[data-type="separator"].active, + &[data-type="separator"]:hover { + overflow: hidden; + z-index: 2; + } + + &[data-type="group"].active, + &[data-type="separator"].active, + &[data-type="group"].active:hover, + &[data-type="separator"].active:hover { + background: @modifier-group-active-color; + } + + &[data-type="group"]:hover, + &[data-type="separator"]:hover { + background: @modifier-group-hover-color; + } + + &[data-type="separator"] { + &:after { + content: ''; + width: 100%; + } + + background: #f5f5f5; + + & > p { + padding: @modifier-toolbar-group-vpadding @modifier-toolbar-hgap; + } + } + + & > p, & > ul { + display: table-cell; + vertical-align: middle; + } + + // Note: this also controls the list of toolbar groups. + p { + padding-left: @modifier-toolbar-hgap; + min-width: 200px; + + span { + white-space: nowrap; + cursor: default; + + button { + font-size: 12.666px; + margin-right: 5px; + cursor: pointer; + background: #fff; + .border-radius( 5px ); + border: 1px solid #bbb; + padding: 0 7px; + line-height: 12px; + height: 20px; + + &:not(.disabled) { + &:hover, + &:focus { + color: #fff; + background-color: @sample-top-navigation-background; + border-color: transparent; + } + } + + &.move.disabled { + cursor: default; + .opacity( 0.2 ); + } + } + } + } + + // List of toolbar groups. + ul { + border-collapse: collapse; + padding: 0; + width: 100%; + + // A single toolbar group. + li { + display: table-row; + list-style-type: none; + // Resets slightly increased lists' lh which is bigger than button's height + // so it stretches columns. + line-height: 1; + + &[data-type="subgroup"] { + border-top: 1px solid @modifier-toolbar-group-border-color; + + &:first-child { + border-top: 0; + } + + [data-type="button"] { + .border-radius( 3px ); + padding: 0 2px; + + &:focus { + background: rgba(0, 0, 0, 0.04); + } + + input { + vertical-align: middle; + } + } + } + + & > p, & > ul { + display: table-cell; + vertical-align: middle; + } + + // List of buttons in a group. + ul { + padding: 0; + + // A single button in a group. + li { + padding: 0; + display: inline-block; + cursor: pointer; + margin: @modifier-toolbar-group-vpadding 5px @modifier-toolbar-group-vpadding 0; + + // Enforce styles to save space. + .cke_combo_text { + cursor: pointer; + white-space: nowrap; + } + + .cke_toolgroup, + .cke_combo_button { + cursor: pointer; + margin: 0; + vertical-align: middle; + border: 1px solid #ddd; + .font-size( .713 ); + } + } + } + } + } + } + } + + & > .codemirror-wrapper { + overflow-y: auto; + } + + // Advanced configurator: list of unused elements. + &-hints { + float: right; + width: 350px; + min-width: 150px; + overflow-y: auto; + margin-left: @sample-standard-hgap; + + h3 { + .font-size( 1.13 ); + padding: .3*@sample-standard-vgap @sample-standard-hgap; + background: @sample-box-background-color; + border-bottom: 1px solid @sample-box-border-color; + margin-top: 0; + margin-bottom: @sample-standard-vgap; + } + + dl { + //margin-top: 0; + margin-bottom: @sample-standard-vgap; + overflow: hidden; + + .list-header { + font-weight: bold; + border: 0; + padding-bottom: .5*@sample-standard-vgap; + } + + & > p { + text-align: center; + } + + dt { + float: left; + width: 9em; + clear: both; + text-align: right; + border-top: 1px solid @sample-box-border-color; + padding-left: @sample-standard-hgap; + padding-right: .1em; + .box-sizing( border-box ); + + code { + background: none; + border: none; + vertical-align: middle; + } + } + + dd { + margin-left: 10em; + clear: right; + padding-right: @sample-standard-hgap; + + code { + line-height: 2.2em; + } + + &:after { + content: '\00a0'; + display: block; + clear: left; + float: right; + height: 0; + width: 0; + } + } + } + } +} + +.toolbarModifier-hints, +.configContainer textarea.configCode, +.CodeMirror { + .border-radius( 3px ); + border: 1px solid #ccc; + .font-size( .813 ); +} + +.configContainer textarea.configCode, +.CodeMirror pre, +.CodeMirror-linenumber { + .font-size( .813 ); + font-family: @sample-font-stack-monospace; +} + +.CodeMirror pre { + border: none; + padding: 0; + margin: 0; +} + +.configContainer textarea.configCode { + .box-sizing( border-box ); + color: @sample-text-color; + padding: 10px; + width: 100%; + min-height: 500px; + margin: 0; + resize: none; + outline: none; + -moz-tab-size: 4; + tab-size: 4; + white-space: pre; + word-wrap: normal; + overflow: auto; +} + +.CodeMirror-hints.toolbar-modifier { + padding: 0; + color: @sample-text-color; + + .CodeMirror-hint-active { + color: @sample-text-color; + background: @modifier-group-active-color; + } + + .font-size( .875 ); + font-family: @sample-font-stack-monospace; + + & > li:hover { + background: @modifier-group-hover-color; + } +} + +/* Text modifier */ +#toolbarModifierWrapper { + margin-bottom: @sample-standard-vgap; + + .invalid .CodeMirror { + background: #fff8f8; + border-color: red; + } + + .CodeMirror { + // Autogrow. http://codemirror.net/demo/resize.html + height: auto; + // Complementory with std's CodeMirror-lines vertical padding. + // Not needed when we use lines number, but we can't due to a bug in CM. + padding: 0 @sample-standard-vgap/2; + } +} + +.staticContainer { + position: fixed; + top: 0; + width: 100%; + z-index: 10; + + > .grid-container { + max-width: 1044px + 2 * @grid-gutter-width; + + .inner { + background: #fff; + + .toolbar { + margin-bottom: 0; + } + } + } +} + +// Help button to display information about configurator. +#help { + position: relative; + top: -15px; + left: -5px; + + &-content { + display: none; + } +} diff --git a/sources/samples/toolbarconfigurator/lib/codemirror/LICENSE b/sources/samples/toolbarconfigurator/lib/codemirror/LICENSE new file mode 100644 index 00000000..d21bbea5 --- /dev/null +++ b/sources/samples/toolbarconfigurator/lib/codemirror/LICENSE @@ -0,0 +1,19 @@ +Copyright (C) 2014 by Marijn Haverbeke and others + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/sources/samples/toolbarconfigurator/lib/codemirror/README.md b/sources/samples/toolbarconfigurator/lib/codemirror/README.md new file mode 100644 index 00000000..38156a74 --- /dev/null +++ b/sources/samples/toolbarconfigurator/lib/codemirror/README.md @@ -0,0 +1,12 @@ +# CodeMirror +[![Build Status](https://travis-ci.org/codemirror/CodeMirror.svg)](https://travis-ci.org/codemirror/CodeMirror) +[![NPM version](https://img.shields.io/npm/v/codemirror.svg)](https://www.npmjs.org/package/codemirror) +[Funding status: ![maintainer happiness](https://marijnhaverbeke.nl/fund/status_s.png?again)](https://marijnhaverbeke.nl/fund/) + +CodeMirror is a JavaScript component that provides a code editor in +the browser. When a mode is available for the language you are coding +in, it will color your code, and optionally help with indentation. + +The project page is http://codemirror.net +The manual is at http://codemirror.net/doc/manual.html +The contributing guidelines are in [CONTRIBUTING.md](https://github.com/codemirror/CodeMirror/blob/master/CONTRIBUTING.md) diff --git a/sources/samples/toolbarconfigurator/lib/codemirror/codemirror.css b/sources/samples/toolbarconfigurator/lib/codemirror/codemirror.css new file mode 100644 index 00000000..ceacd130 --- /dev/null +++ b/sources/samples/toolbarconfigurator/lib/codemirror/codemirror.css @@ -0,0 +1,325 @@ +/* BASICS */ + +.CodeMirror { + /* Set height, width, borders, and global font properties here */ + font-family: monospace; + height: 300px; + color: black; +} + +/* PADDING */ + +.CodeMirror-lines { + padding: 4px 0; /* Vertical padding around content */ +} +.CodeMirror pre { + padding: 0 4px; /* Horizontal padding of content */ +} + +.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { + background-color: white; /* The little square between H and V scrollbars */ +} + +/* GUTTER */ + +.CodeMirror-gutters { + border-right: 1px solid #ddd; + background-color: #f7f7f7; + white-space: nowrap; +} +.CodeMirror-linenumbers {} +.CodeMirror-linenumber { + padding: 0 3px 0 5px; + min-width: 20px; + text-align: right; + color: #999; + white-space: nowrap; +} + +.CodeMirror-guttermarker { color: black; } +.CodeMirror-guttermarker-subtle { color: #999; } + +/* CURSOR */ + +.CodeMirror div.CodeMirror-cursor { + border-left: 1px solid black; +} +/* Shown when moving in bi-directional text */ +.CodeMirror div.CodeMirror-secondarycursor { + border-left: 1px solid silver; +} +.CodeMirror.cm-fat-cursor div.CodeMirror-cursor { + width: auto; + border: 0; + background: #7e7; +} +.CodeMirror.cm-fat-cursor div.CodeMirror-cursors { + z-index: 1; +} + +.cm-animate-fat-cursor { + width: auto; + border: 0; + -webkit-animation: blink 1.06s steps(1) infinite; + -moz-animation: blink 1.06s steps(1) infinite; + animation: blink 1.06s steps(1) infinite; +} +@-moz-keyframes blink { + 0% { background: #7e7; } + 50% { background: none; } + 100% { background: #7e7; } +} +@-webkit-keyframes blink { + 0% { background: #7e7; } + 50% { background: none; } + 100% { background: #7e7; } +} +@keyframes blink { + 0% { background: #7e7; } + 50% { background: none; } + 100% { background: #7e7; } +} + +/* Can style cursor different in overwrite (non-insert) mode */ +div.CodeMirror-overwrite div.CodeMirror-cursor {} + +.cm-tab { display: inline-block; text-decoration: inherit; } + +.CodeMirror-ruler { + border-left: 1px solid #ccc; + position: absolute; +} + +/* DEFAULT THEME */ + +.cm-s-default .cm-keyword {color: #708;} +.cm-s-default .cm-atom {color: #219;} +.cm-s-default .cm-number {color: #164;} +.cm-s-default .cm-def {color: #00f;} +.cm-s-default .cm-variable, +.cm-s-default .cm-punctuation, +.cm-s-default .cm-property, +.cm-s-default .cm-operator {} +.cm-s-default .cm-variable-2 {color: #05a;} +.cm-s-default .cm-variable-3 {color: #085;} +.cm-s-default .cm-comment {color: #a50;} +.cm-s-default .cm-string {color: #a11;} +.cm-s-default .cm-string-2 {color: #f50;} +.cm-s-default .cm-meta {color: #555;} +.cm-s-default .cm-qualifier {color: #555;} +.cm-s-default .cm-builtin {color: #30a;} +.cm-s-default .cm-bracket {color: #997;} +.cm-s-default .cm-tag {color: #170;} +.cm-s-default .cm-attribute {color: #00c;} +.cm-s-default .cm-header {color: blue;} +.cm-s-default .cm-quote {color: #090;} +.cm-s-default .cm-hr {color: #999;} +.cm-s-default .cm-link {color: #00c;} + +.cm-negative {color: #d44;} +.cm-positive {color: #292;} +.cm-header, .cm-strong {font-weight: bold;} +.cm-em {font-style: italic;} +.cm-link {text-decoration: underline;} +.cm-strikethrough {text-decoration: line-through;} + +.cm-s-default .cm-error {color: #f00;} +.cm-invalidchar {color: #f00;} + +.CodeMirror-composing { border-bottom: 2px solid; } + +/* Default styles for common addons */ + +div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} +div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} +.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); } +.CodeMirror-activeline-background {background: #e8f2ff;} + +/* STOP */ + +/* The rest of this file contains styles related to the mechanics of + the editor. You probably shouldn't touch them. */ + +.CodeMirror { + position: relative; + overflow: hidden; + background: white; +} + +.CodeMirror-scroll { + overflow: scroll !important; /* Things will break if this is overridden */ + /* 30px is the magic margin used to hide the element's real scrollbars */ + /* See overflow: hidden in .CodeMirror */ + margin-bottom: -30px; margin-right: -30px; + padding-bottom: 30px; + height: 100%; + outline: none; /* Prevent dragging from highlighting the element */ + position: relative; +} +.CodeMirror-sizer { + position: relative; + border-right: 30px solid transparent; +} + +/* The fake, visible scrollbars. Used to force redraw during scrolling + before actuall scrolling happens, thus preventing shaking and + flickering artifacts. */ +.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { + position: absolute; + z-index: 6; + display: none; +} +.CodeMirror-vscrollbar { + right: 0; top: 0; + overflow-x: hidden; + overflow-y: scroll; +} +.CodeMirror-hscrollbar { + bottom: 0; left: 0; + overflow-y: hidden; + overflow-x: scroll; +} +.CodeMirror-scrollbar-filler { + right: 0; bottom: 0; +} +.CodeMirror-gutter-filler { + left: 0; bottom: 0; +} + +.CodeMirror-gutters { + position: absolute; left: 0; top: 0; + z-index: 3; +} +.CodeMirror-gutter { + white-space: normal; + height: 100%; + display: inline-block; + margin-bottom: -30px; + /* Hack to make IE7 behave */ + *zoom:1; + *display:inline; +} +.CodeMirror-gutter-wrapper { + position: absolute; + z-index: 4; + height: 100%; +} +.CodeMirror-gutter-elt { + position: absolute; + cursor: default; + z-index: 4; +} +.CodeMirror-gutter-wrapper { + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} + +.CodeMirror-lines { + cursor: text; + min-height: 1px; /* prevents collapsing before first draw */ +} +.CodeMirror pre { + /* Reset some styles that the rest of the page might have set */ + -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; + border-width: 0; + background: transparent; + font-family: inherit; + font-size: inherit; + margin: 0; + white-space: pre; + word-wrap: normal; + line-height: inherit; + color: inherit; + z-index: 2; + position: relative; + overflow: visible; + -webkit-tap-highlight-color: transparent; +} +.CodeMirror-wrap pre { + word-wrap: break-word; + white-space: pre-wrap; + word-break: normal; +} + +.CodeMirror-linebackground { + position: absolute; + left: 0; right: 0; top: 0; bottom: 0; + z-index: 0; +} + +.CodeMirror-linewidget { + position: relative; + z-index: 2; + overflow: auto; +} + +.CodeMirror-widget {} + +.CodeMirror-code { + outline: none; +} + +/* Force content-box sizing for the elements where we expect it */ +.CodeMirror-scroll, +.CodeMirror-sizer, +.CodeMirror-gutter, +.CodeMirror-gutters, +.CodeMirror-linenumber { + -moz-box-sizing: content-box; + box-sizing: content-box; +} + +.CodeMirror-measure { + position: absolute; + width: 100%; + height: 0; + overflow: hidden; + visibility: hidden; +} +.CodeMirror-measure pre { position: static; } + +.CodeMirror div.CodeMirror-cursor { + position: absolute; + border-right: none; + width: 0; +} + +div.CodeMirror-cursors { + visibility: hidden; + position: relative; + z-index: 3; +} +.CodeMirror-focused div.CodeMirror-cursors { + visibility: visible; +} + +.CodeMirror-selected { background: #d9d9d9; } +.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; } +.CodeMirror-crosshair { cursor: crosshair; } +.CodeMirror ::selection { background: #d7d4f0; } +.CodeMirror ::-moz-selection { background: #d7d4f0; } + +.cm-searching { + background: #ffa; + background: rgba(255, 255, 0, .4); +} + +/* IE7 hack to prevent it from returning funny offsetTops on the spans */ +.CodeMirror span { *vertical-align: text-bottom; } + +/* Used to force a border model for a node */ +.cm-force-border { padding-right: .1px; } + +@media print { + /* Hide the cursor when printing */ + .CodeMirror div.CodeMirror-cursors { + visibility: hidden; + } +} + +/* See issue #2901 */ +.cm-tab-wrap-hack:after { content: ''; } + +/* Help users use markselection to safely style text background */ +span.CodeMirror-selectedtext { background: none; } diff --git a/sources/samples/toolbarconfigurator/lib/codemirror/codemirror.js b/sources/samples/toolbarconfigurator/lib/codemirror/codemirror.js new file mode 100644 index 00000000..37e26855 --- /dev/null +++ b/sources/samples/toolbarconfigurator/lib/codemirror/codemirror.js @@ -0,0 +1,8738 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// This is CodeMirror (http://codemirror.net), a code editor +// implemented in JavaScript on top of the browser's DOM. +// +// You can find some technical background for some of the code below +// at http://marijnhaverbeke.nl/blog/#cm-internals . + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + module.exports = mod(); + else if (typeof define == "function" && define.amd) // AMD + return define([], mod); + else // Plain browser env + this.CodeMirror = mod(); +})(function() { + "use strict"; + + // BROWSER SNIFFING + + // Kludges for bugs and behavior differences that can't be feature + // detected are enabled based on userAgent etc sniffing. + + var gecko = /gecko\/\d/i.test(navigator.userAgent); + var ie_upto10 = /MSIE \d/.test(navigator.userAgent); + var ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); + var ie = ie_upto10 || ie_11up; + var ie_version = ie && (ie_upto10 ? document.documentMode || 6 : ie_11up[1]); + var webkit = /WebKit\//.test(navigator.userAgent); + var qtwebkit = webkit && /Qt\/\d+\.\d+/.test(navigator.userAgent); + var chrome = /Chrome\//.test(navigator.userAgent); + var presto = /Opera\//.test(navigator.userAgent); + var safari = /Apple Computer/.test(navigator.vendor); + var mac_geMountainLion = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent); + var phantom = /PhantomJS/.test(navigator.userAgent); + + var ios = /AppleWebKit/.test(navigator.userAgent) && /Mobile\/\w+/.test(navigator.userAgent); + // This is woefully incomplete. Suggestions for alternative methods welcome. + var mobile = ios || /Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent); + var mac = ios || /Mac/.test(navigator.platform); + var windows = /win/i.test(navigator.platform); + + var presto_version = presto && navigator.userAgent.match(/Version\/(\d*\.\d*)/); + if (presto_version) presto_version = Number(presto_version[1]); + if (presto_version && presto_version >= 15) { presto = false; webkit = true; } + // Some browsers use the wrong event properties to signal cmd/ctrl on OS X + var flipCtrlCmd = mac && (qtwebkit || presto && (presto_version == null || presto_version < 12.11)); + var captureRightClick = gecko || (ie && ie_version >= 9); + + // Optimize some code when these features are not used. + var sawReadOnlySpans = false, sawCollapsedSpans = false; + + // EDITOR CONSTRUCTOR + + // A CodeMirror instance represents an editor. This is the object + // that user code is usually dealing with. + + function CodeMirror(place, options) { + if (!(this instanceof CodeMirror)) return new CodeMirror(place, options); + + this.options = options = options ? copyObj(options) : {}; + // Determine effective options based on given values and defaults. + copyObj(defaults, options, false); + setGuttersForLineNumbers(options); + + var doc = options.value; + if (typeof doc == "string") doc = new Doc(doc, options.mode); + this.doc = doc; + + var input = new CodeMirror.inputStyles[options.inputStyle](this); + var display = this.display = new Display(place, doc, input); + display.wrapper.CodeMirror = this; + updateGutters(this); + themeChanged(this); + if (options.lineWrapping) + this.display.wrapper.className += " CodeMirror-wrap"; + if (options.autofocus && !mobile) display.input.focus(); + initScrollbars(this); + + this.state = { + keyMaps: [], // stores maps added by addKeyMap + overlays: [], // highlighting overlays, as added by addOverlay + modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info + overwrite: false, + delayingBlurEvent: false, + focused: false, + suppressEdits: false, // used to disable editing during key handlers when in readOnly mode + pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll + draggingText: false, + highlight: new Delayed(), // stores highlight worker timeout + keySeq: null, // Unfinished key sequence + specialChars: null + }; + + var cm = this; + + // Override magic textarea content restore that IE sometimes does + // on our hidden textarea on reload + if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20); + + registerEventHandlers(this); + ensureGlobalHandlers(); + + startOperation(this); + this.curOp.forceUpdate = true; + attachDoc(this, doc); + + if ((options.autofocus && !mobile) || cm.hasFocus()) + setTimeout(bind(onFocus, this), 20); + else + onBlur(this); + + for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt)) + optionHandlers[opt](this, options[opt], Init); + maybeUpdateLineNumberWidth(this); + if (options.finishInit) options.finishInit(this); + for (var i = 0; i < initHooks.length; ++i) initHooks[i](this); + endOperation(this); + // Suppress optimizelegibility in Webkit, since it breaks text + // measuring on line wrapping boundaries. + if (webkit && options.lineWrapping && + getComputedStyle(display.lineDiv).textRendering == "optimizelegibility") + display.lineDiv.style.textRendering = "auto"; + } + + // DISPLAY CONSTRUCTOR + + // The display handles the DOM integration, both for input reading + // and content drawing. It holds references to DOM nodes and + // display-related state. + + function Display(place, doc, input) { + var d = this; + this.input = input; + + // Covers bottom-right square when both scrollbars are present. + d.scrollbarFiller = elt("div", null, "CodeMirror-scrollbar-filler"); + d.scrollbarFiller.setAttribute("cm-not-content", "true"); + // Covers bottom of gutter when coverGutterNextToScrollbar is on + // and h scrollbar is present. + d.gutterFiller = elt("div", null, "CodeMirror-gutter-filler"); + d.gutterFiller.setAttribute("cm-not-content", "true"); + // Will contain the actual code, positioned to cover the viewport. + d.lineDiv = elt("div", null, "CodeMirror-code"); + // Elements are added to these to represent selection and cursors. + d.selectionDiv = elt("div", null, null, "position: relative; z-index: 1"); + d.cursorDiv = elt("div", null, "CodeMirror-cursors"); + // A visibility: hidden element used to find the size of things. + d.measure = elt("div", null, "CodeMirror-measure"); + // When lines outside of the viewport are measured, they are drawn in this. + d.lineMeasure = elt("div", null, "CodeMirror-measure"); + // Wraps everything that needs to exist inside the vertically-padded coordinate system + d.lineSpace = elt("div", [d.measure, d.lineMeasure, d.selectionDiv, d.cursorDiv, d.lineDiv], + null, "position: relative; outline: none"); + // Moved around its parent to cover visible view. + d.mover = elt("div", [elt("div", [d.lineSpace], "CodeMirror-lines")], null, "position: relative"); + // Set to the height of the document, allowing scrolling. + d.sizer = elt("div", [d.mover], "CodeMirror-sizer"); + d.sizerWidth = null; + // Behavior of elts with overflow: auto and padding is + // inconsistent across browsers. This is used to ensure the + // scrollable area is big enough. + d.heightForcer = elt("div", null, null, "position: absolute; height: " + scrollerGap + "px; width: 1px;"); + // Will contain the gutters, if any. + d.gutters = elt("div", null, "CodeMirror-gutters"); + d.lineGutter = null; + // Actual scrollable element. + d.scroller = elt("div", [d.sizer, d.heightForcer, d.gutters], "CodeMirror-scroll"); + d.scroller.setAttribute("tabIndex", "-1"); + // The element in which the editor lives. + d.wrapper = elt("div", [d.scrollbarFiller, d.gutterFiller, d.scroller], "CodeMirror"); + + // Work around IE7 z-index bug (not perfect, hence IE7 not really being supported) + if (ie && ie_version < 8) { d.gutters.style.zIndex = -1; d.scroller.style.paddingRight = 0; } + if (!webkit && !(gecko && mobile)) d.scroller.draggable = true; + + if (place) { + if (place.appendChild) place.appendChild(d.wrapper); + else place(d.wrapper); + } + + // Current rendered range (may be bigger than the view window). + d.viewFrom = d.viewTo = doc.first; + d.reportedViewFrom = d.reportedViewTo = doc.first; + // Information about the rendered lines. + d.view = []; + d.renderedView = null; + // Holds info about a single rendered line when it was rendered + // for measurement, while not in view. + d.externalMeasured = null; + // Empty space (in pixels) above the view + d.viewOffset = 0; + d.lastWrapHeight = d.lastWrapWidth = 0; + d.updateLineNumbers = null; + + d.nativeBarWidth = d.barHeight = d.barWidth = 0; + d.scrollbarsClipped = false; + + // Used to only resize the line number gutter when necessary (when + // the amount of lines crosses a boundary that makes its width change) + d.lineNumWidth = d.lineNumInnerWidth = d.lineNumChars = null; + // Set to true when a non-horizontal-scrolling line widget is + // added. As an optimization, line widget aligning is skipped when + // this is false. + d.alignWidgets = false; + + d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null; + + // Tracks the maximum line length so that the horizontal scrollbar + // can be kept static when scrolling. + d.maxLine = null; + d.maxLineLength = 0; + d.maxLineChanged = false; + + // Used for measuring wheel scrolling granularity + d.wheelDX = d.wheelDY = d.wheelStartX = d.wheelStartY = null; + + // True when shift is held down. + d.shift = false; + + // Used to track whether anything happened since the context menu + // was opened. + d.selForContextMenu = null; + + d.activeTouch = null; + + input.init(d); + } + + // STATE UPDATES + + // Used to get the editor into a consistent state again when options change. + + function loadMode(cm) { + cm.doc.mode = CodeMirror.getMode(cm.options, cm.doc.modeOption); + resetModeState(cm); + } + + function resetModeState(cm) { + cm.doc.iter(function(line) { + if (line.stateAfter) line.stateAfter = null; + if (line.styles) line.styles = null; + }); + cm.doc.frontier = cm.doc.first; + startWorker(cm, 100); + cm.state.modeGen++; + if (cm.curOp) regChange(cm); + } + + function wrappingChanged(cm) { + if (cm.options.lineWrapping) { + addClass(cm.display.wrapper, "CodeMirror-wrap"); + cm.display.sizer.style.minWidth = ""; + cm.display.sizerWidth = null; + } else { + rmClass(cm.display.wrapper, "CodeMirror-wrap"); + findMaxLine(cm); + } + estimateLineHeights(cm); + regChange(cm); + clearCaches(cm); + setTimeout(function(){updateScrollbars(cm);}, 100); + } + + // Returns a function that estimates the height of a line, to use as + // first approximation until the line becomes visible (and is thus + // properly measurable). + function estimateHeight(cm) { + var th = textHeight(cm.display), wrapping = cm.options.lineWrapping; + var perLine = wrapping && Math.max(5, cm.display.scroller.clientWidth / charWidth(cm.display) - 3); + return function(line) { + if (lineIsHidden(cm.doc, line)) return 0; + + var widgetsHeight = 0; + if (line.widgets) for (var i = 0; i < line.widgets.length; i++) { + if (line.widgets[i].height) widgetsHeight += line.widgets[i].height; + } + + if (wrapping) + return widgetsHeight + (Math.ceil(line.text.length / perLine) || 1) * th; + else + return widgetsHeight + th; + }; + } + + function estimateLineHeights(cm) { + var doc = cm.doc, est = estimateHeight(cm); + doc.iter(function(line) { + var estHeight = est(line); + if (estHeight != line.height) updateLineHeight(line, estHeight); + }); + } + + function themeChanged(cm) { + cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + + cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-"); + clearCaches(cm); + } + + function guttersChanged(cm) { + updateGutters(cm); + regChange(cm); + setTimeout(function(){alignHorizontally(cm);}, 20); + } + + // Rebuild the gutter elements, ensure the margin to the left of the + // code matches their width. + function updateGutters(cm) { + var gutters = cm.display.gutters, specs = cm.options.gutters; + removeChildren(gutters); + for (var i = 0; i < specs.length; ++i) { + var gutterClass = specs[i]; + var gElt = gutters.appendChild(elt("div", null, "CodeMirror-gutter " + gutterClass)); + if (gutterClass == "CodeMirror-linenumbers") { + cm.display.lineGutter = gElt; + gElt.style.width = (cm.display.lineNumWidth || 1) + "px"; + } + } + gutters.style.display = i ? "" : "none"; + updateGutterSpace(cm); + } + + function updateGutterSpace(cm) { + var width = cm.display.gutters.offsetWidth; + cm.display.sizer.style.marginLeft = width + "px"; + } + + // Compute the character length of a line, taking into account + // collapsed ranges (see markText) that might hide parts, and join + // other lines onto it. + function lineLength(line) { + if (line.height == 0) return 0; + var len = line.text.length, merged, cur = line; + while (merged = collapsedSpanAtStart(cur)) { + var found = merged.find(0, true); + cur = found.from.line; + len += found.from.ch - found.to.ch; + } + cur = line; + while (merged = collapsedSpanAtEnd(cur)) { + var found = merged.find(0, true); + len -= cur.text.length - found.from.ch; + cur = found.to.line; + len += cur.text.length - found.to.ch; + } + return len; + } + + // Find the longest line in the document. + function findMaxLine(cm) { + var d = cm.display, doc = cm.doc; + d.maxLine = getLine(doc, doc.first); + d.maxLineLength = lineLength(d.maxLine); + d.maxLineChanged = true; + doc.iter(function(line) { + var len = lineLength(line); + if (len > d.maxLineLength) { + d.maxLineLength = len; + d.maxLine = line; + } + }); + } + + // Make sure the gutters options contains the element + // "CodeMirror-linenumbers" when the lineNumbers option is true. + function setGuttersForLineNumbers(options) { + var found = indexOf(options.gutters, "CodeMirror-linenumbers"); + if (found == -1 && options.lineNumbers) { + options.gutters = options.gutters.concat(["CodeMirror-linenumbers"]); + } else if (found > -1 && !options.lineNumbers) { + options.gutters = options.gutters.slice(0); + options.gutters.splice(found, 1); + } + } + + // SCROLLBARS + + // Prepare DOM reads needed to update the scrollbars. Done in one + // shot to minimize update/measure roundtrips. + function measureForScrollbars(cm) { + var d = cm.display, gutterW = d.gutters.offsetWidth; + var docH = Math.round(cm.doc.height + paddingVert(cm.display)); + return { + clientHeight: d.scroller.clientHeight, + viewHeight: d.wrapper.clientHeight, + scrollWidth: d.scroller.scrollWidth, clientWidth: d.scroller.clientWidth, + viewWidth: d.wrapper.clientWidth, + barLeft: cm.options.fixedGutter ? gutterW : 0, + docHeight: docH, + scrollHeight: docH + scrollGap(cm) + d.barHeight, + nativeBarWidth: d.nativeBarWidth, + gutterWidth: gutterW + }; + } + + function NativeScrollbars(place, scroll, cm) { + this.cm = cm; + var vert = this.vert = elt("div", [elt("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar"); + var horiz = this.horiz = elt("div", [elt("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar"); + place(vert); place(horiz); + + on(vert, "scroll", function() { + if (vert.clientHeight) scroll(vert.scrollTop, "vertical"); + }); + on(horiz, "scroll", function() { + if (horiz.clientWidth) scroll(horiz.scrollLeft, "horizontal"); + }); + + this.checkedOverlay = false; + // Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8). + if (ie && ie_version < 8) this.horiz.style.minHeight = this.vert.style.minWidth = "18px"; + } + + NativeScrollbars.prototype = copyObj({ + update: function(measure) { + var needsH = measure.scrollWidth > measure.clientWidth + 1; + var needsV = measure.scrollHeight > measure.clientHeight + 1; + var sWidth = measure.nativeBarWidth; + + if (needsV) { + this.vert.style.display = "block"; + this.vert.style.bottom = needsH ? sWidth + "px" : "0"; + var totalHeight = measure.viewHeight - (needsH ? sWidth : 0); + // A bug in IE8 can cause this value to be negative, so guard it. + this.vert.firstChild.style.height = + Math.max(0, measure.scrollHeight - measure.clientHeight + totalHeight) + "px"; + } else { + this.vert.style.display = ""; + this.vert.firstChild.style.height = "0"; + } + + if (needsH) { + this.horiz.style.display = "block"; + this.horiz.style.right = needsV ? sWidth + "px" : "0"; + this.horiz.style.left = measure.barLeft + "px"; + var totalWidth = measure.viewWidth - measure.barLeft - (needsV ? sWidth : 0); + this.horiz.firstChild.style.width = + (measure.scrollWidth - measure.clientWidth + totalWidth) + "px"; + } else { + this.horiz.style.display = ""; + this.horiz.firstChild.style.width = "0"; + } + + if (!this.checkedOverlay && measure.clientHeight > 0) { + if (sWidth == 0) this.overlayHack(); + this.checkedOverlay = true; + } + + return {right: needsV ? sWidth : 0, bottom: needsH ? sWidth : 0}; + }, + setScrollLeft: function(pos) { + if (this.horiz.scrollLeft != pos) this.horiz.scrollLeft = pos; + }, + setScrollTop: function(pos) { + if (this.vert.scrollTop != pos) this.vert.scrollTop = pos; + }, + overlayHack: function() { + var w = mac && !mac_geMountainLion ? "12px" : "18px"; + this.horiz.style.minHeight = this.vert.style.minWidth = w; + var self = this; + var barMouseDown = function(e) { + if (e_target(e) != self.vert && e_target(e) != self.horiz) + operation(self.cm, onMouseDown)(e); + }; + on(this.vert, "mousedown", barMouseDown); + on(this.horiz, "mousedown", barMouseDown); + }, + clear: function() { + var parent = this.horiz.parentNode; + parent.removeChild(this.horiz); + parent.removeChild(this.vert); + } + }, NativeScrollbars.prototype); + + function NullScrollbars() {} + + NullScrollbars.prototype = copyObj({ + update: function() { return {bottom: 0, right: 0}; }, + setScrollLeft: function() {}, + setScrollTop: function() {}, + clear: function() {} + }, NullScrollbars.prototype); + + CodeMirror.scrollbarModel = {"native": NativeScrollbars, "null": NullScrollbars}; + + function initScrollbars(cm) { + if (cm.display.scrollbars) { + cm.display.scrollbars.clear(); + if (cm.display.scrollbars.addClass) + rmClass(cm.display.wrapper, cm.display.scrollbars.addClass); + } + + cm.display.scrollbars = new CodeMirror.scrollbarModel[cm.options.scrollbarStyle](function(node) { + cm.display.wrapper.insertBefore(node, cm.display.scrollbarFiller); + // Prevent clicks in the scrollbars from killing focus + on(node, "mousedown", function() { + if (cm.state.focused) setTimeout(function() { cm.display.input.focus(); }, 0); + }); + node.setAttribute("cm-not-content", "true"); + }, function(pos, axis) { + if (axis == "horizontal") setScrollLeft(cm, pos); + else setScrollTop(cm, pos); + }, cm); + if (cm.display.scrollbars.addClass) + addClass(cm.display.wrapper, cm.display.scrollbars.addClass); + } + + function updateScrollbars(cm, measure) { + if (!measure) measure = measureForScrollbars(cm); + var startWidth = cm.display.barWidth, startHeight = cm.display.barHeight; + updateScrollbarsInner(cm, measure); + for (var i = 0; i < 4 && startWidth != cm.display.barWidth || startHeight != cm.display.barHeight; i++) { + if (startWidth != cm.display.barWidth && cm.options.lineWrapping) + updateHeightsInViewport(cm); + updateScrollbarsInner(cm, measureForScrollbars(cm)); + startWidth = cm.display.barWidth; startHeight = cm.display.barHeight; + } + } + + // Re-synchronize the fake scrollbars with the actual size of the + // content. + function updateScrollbarsInner(cm, measure) { + var d = cm.display; + var sizes = d.scrollbars.update(measure); + + d.sizer.style.paddingRight = (d.barWidth = sizes.right) + "px"; + d.sizer.style.paddingBottom = (d.barHeight = sizes.bottom) + "px"; + + if (sizes.right && sizes.bottom) { + d.scrollbarFiller.style.display = "block"; + d.scrollbarFiller.style.height = sizes.bottom + "px"; + d.scrollbarFiller.style.width = sizes.right + "px"; + } else d.scrollbarFiller.style.display = ""; + if (sizes.bottom && cm.options.coverGutterNextToScrollbar && cm.options.fixedGutter) { + d.gutterFiller.style.display = "block"; + d.gutterFiller.style.height = sizes.bottom + "px"; + d.gutterFiller.style.width = measure.gutterWidth + "px"; + } else d.gutterFiller.style.display = ""; + } + + // Compute the lines that are visible in a given viewport (defaults + // the the current scroll position). viewport may contain top, + // height, and ensure (see op.scrollToPos) properties. + function visibleLines(display, doc, viewport) { + var top = viewport && viewport.top != null ? Math.max(0, viewport.top) : display.scroller.scrollTop; + top = Math.floor(top - paddingTop(display)); + var bottom = viewport && viewport.bottom != null ? viewport.bottom : top + display.wrapper.clientHeight; + + var from = lineAtHeight(doc, top), to = lineAtHeight(doc, bottom); + // Ensure is a {from: {line, ch}, to: {line, ch}} object, and + // forces those lines into the viewport (if possible). + if (viewport && viewport.ensure) { + var ensureFrom = viewport.ensure.from.line, ensureTo = viewport.ensure.to.line; + if (ensureFrom < from) { + from = ensureFrom; + to = lineAtHeight(doc, heightAtLine(getLine(doc, ensureFrom)) + display.wrapper.clientHeight); + } else if (Math.min(ensureTo, doc.lastLine()) >= to) { + from = lineAtHeight(doc, heightAtLine(getLine(doc, ensureTo)) - display.wrapper.clientHeight); + to = ensureTo; + } + } + return {from: from, to: Math.max(to, from + 1)}; + } + + // LINE NUMBERS + + // Re-align line numbers and gutter marks to compensate for + // horizontal scrolling. + function alignHorizontally(cm) { + var display = cm.display, view = display.view; + if (!display.alignWidgets && (!display.gutters.firstChild || !cm.options.fixedGutter)) return; + var comp = compensateForHScroll(display) - display.scroller.scrollLeft + cm.doc.scrollLeft; + var gutterW = display.gutters.offsetWidth, left = comp + "px"; + for (var i = 0; i < view.length; i++) if (!view[i].hidden) { + if (cm.options.fixedGutter && view[i].gutter) + view[i].gutter.style.left = left; + var align = view[i].alignable; + if (align) for (var j = 0; j < align.length; j++) + align[j].style.left = left; + } + if (cm.options.fixedGutter) + display.gutters.style.left = (comp + gutterW) + "px"; + } + + // Used to ensure that the line number gutter is still the right + // size for the current document size. Returns true when an update + // is needed. + function maybeUpdateLineNumberWidth(cm) { + if (!cm.options.lineNumbers) return false; + var doc = cm.doc, last = lineNumberFor(cm.options, doc.first + doc.size - 1), display = cm.display; + if (last.length != display.lineNumChars) { + var test = display.measure.appendChild(elt("div", [elt("div", last)], + "CodeMirror-linenumber CodeMirror-gutter-elt")); + var innerW = test.firstChild.offsetWidth, padding = test.offsetWidth - innerW; + display.lineGutter.style.width = ""; + display.lineNumInnerWidth = Math.max(innerW, display.lineGutter.offsetWidth - padding) + 1; + display.lineNumWidth = display.lineNumInnerWidth + padding; + display.lineNumChars = display.lineNumInnerWidth ? last.length : -1; + display.lineGutter.style.width = display.lineNumWidth + "px"; + updateGutterSpace(cm); + return true; + } + return false; + } + + function lineNumberFor(options, i) { + return String(options.lineNumberFormatter(i + options.firstLineNumber)); + } + + // Computes display.scroller.scrollLeft + display.gutters.offsetWidth, + // but using getBoundingClientRect to get a sub-pixel-accurate + // result. + function compensateForHScroll(display) { + return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left; + } + + // DISPLAY DRAWING + + function DisplayUpdate(cm, viewport, force) { + var display = cm.display; + + this.viewport = viewport; + // Store some values that we'll need later (but don't want to force a relayout for) + this.visible = visibleLines(display, cm.doc, viewport); + this.editorIsHidden = !display.wrapper.offsetWidth; + this.wrapperHeight = display.wrapper.clientHeight; + this.wrapperWidth = display.wrapper.clientWidth; + this.oldDisplayWidth = displayWidth(cm); + this.force = force; + this.dims = getDimensions(cm); + this.events = []; + } + + DisplayUpdate.prototype.signal = function(emitter, type) { + if (hasHandler(emitter, type)) + this.events.push(arguments); + }; + DisplayUpdate.prototype.finish = function() { + for (var i = 0; i < this.events.length; i++) + signal.apply(null, this.events[i]); + }; + + function maybeClipScrollbars(cm) { + var display = cm.display; + if (!display.scrollbarsClipped && display.scroller.offsetWidth) { + display.nativeBarWidth = display.scroller.offsetWidth - display.scroller.clientWidth; + display.heightForcer.style.height = scrollGap(cm) + "px"; + display.sizer.style.marginBottom = -display.nativeBarWidth + "px"; + display.sizer.style.borderRightWidth = scrollGap(cm) + "px"; + display.scrollbarsClipped = true; + } + } + + // Does the actual updating of the line display. Bails out + // (returning false) when there is nothing to be done and forced is + // false. + function updateDisplayIfNeeded(cm, update) { + var display = cm.display, doc = cm.doc; + + if (update.editorIsHidden) { + resetView(cm); + return false; + } + + // Bail out if the visible area is already rendered and nothing changed. + if (!update.force && + update.visible.from >= display.viewFrom && update.visible.to <= display.viewTo && + (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo) && + display.renderedView == display.view && countDirtyView(cm) == 0) + return false; + + if (maybeUpdateLineNumberWidth(cm)) { + resetView(cm); + update.dims = getDimensions(cm); + } + + // Compute a suitable new viewport (from & to) + var end = doc.first + doc.size; + var from = Math.max(update.visible.from - cm.options.viewportMargin, doc.first); + var to = Math.min(end, update.visible.to + cm.options.viewportMargin); + if (display.viewFrom < from && from - display.viewFrom < 20) from = Math.max(doc.first, display.viewFrom); + if (display.viewTo > to && display.viewTo - to < 20) to = Math.min(end, display.viewTo); + if (sawCollapsedSpans) { + from = visualLineNo(cm.doc, from); + to = visualLineEndNo(cm.doc, to); + } + + var different = from != display.viewFrom || to != display.viewTo || + display.lastWrapHeight != update.wrapperHeight || display.lastWrapWidth != update.wrapperWidth; + adjustView(cm, from, to); + + display.viewOffset = heightAtLine(getLine(cm.doc, display.viewFrom)); + // Position the mover div to align with the current scroll position + cm.display.mover.style.top = display.viewOffset + "px"; + + var toUpdate = countDirtyView(cm); + if (!different && toUpdate == 0 && !update.force && display.renderedView == display.view && + (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo)) + return false; + + // For big changes, we hide the enclosing element during the + // update, since that speeds up the operations on most browsers. + var focused = activeElt(); + if (toUpdate > 4) display.lineDiv.style.display = "none"; + patchDisplay(cm, display.updateLineNumbers, update.dims); + if (toUpdate > 4) display.lineDiv.style.display = ""; + display.renderedView = display.view; + // There might have been a widget with a focused element that got + // hidden or updated, if so re-focus it. + if (focused && activeElt() != focused && focused.offsetHeight) focused.focus(); + + // Prevent selection and cursors from interfering with the scroll + // width and height. + removeChildren(display.cursorDiv); + removeChildren(display.selectionDiv); + display.gutters.style.height = 0; + + if (different) { + display.lastWrapHeight = update.wrapperHeight; + display.lastWrapWidth = update.wrapperWidth; + startWorker(cm, 400); + } + + display.updateLineNumbers = null; + + return true; + } + + function postUpdateDisplay(cm, update) { + var force = update.force, viewport = update.viewport; + for (var first = true;; first = false) { + if (first && cm.options.lineWrapping && update.oldDisplayWidth != displayWidth(cm)) { + force = true; + } else { + force = false; + // Clip forced viewport to actual scrollable area. + if (viewport && viewport.top != null) + viewport = {top: Math.min(cm.doc.height + paddingVert(cm.display) - displayHeight(cm), viewport.top)}; + // Updated line heights might result in the drawn area not + // actually covering the viewport. Keep looping until it does. + update.visible = visibleLines(cm.display, cm.doc, viewport); + if (update.visible.from >= cm.display.viewFrom && update.visible.to <= cm.display.viewTo) + break; + } + if (!updateDisplayIfNeeded(cm, update)) break; + updateHeightsInViewport(cm); + var barMeasure = measureForScrollbars(cm); + updateSelection(cm); + setDocumentHeight(cm, barMeasure); + updateScrollbars(cm, barMeasure); + } + + update.signal(cm, "update", cm); + if (cm.display.viewFrom != cm.display.reportedViewFrom || cm.display.viewTo != cm.display.reportedViewTo) { + update.signal(cm, "viewportChange", cm, cm.display.viewFrom, cm.display.viewTo); + cm.display.reportedViewFrom = cm.display.viewFrom; cm.display.reportedViewTo = cm.display.viewTo; + } + } + + function updateDisplaySimple(cm, viewport) { + var update = new DisplayUpdate(cm, viewport); + if (updateDisplayIfNeeded(cm, update)) { + updateHeightsInViewport(cm); + postUpdateDisplay(cm, update); + var barMeasure = measureForScrollbars(cm); + updateSelection(cm); + setDocumentHeight(cm, barMeasure); + updateScrollbars(cm, barMeasure); + update.finish(); + } + } + + function setDocumentHeight(cm, measure) { + cm.display.sizer.style.minHeight = measure.docHeight + "px"; + var total = measure.docHeight + cm.display.barHeight; + cm.display.heightForcer.style.top = total + "px"; + cm.display.gutters.style.height = Math.max(total + scrollGap(cm), measure.clientHeight) + "px"; + } + + // Read the actual heights of the rendered lines, and update their + // stored heights to match. + function updateHeightsInViewport(cm) { + var display = cm.display; + var prevBottom = display.lineDiv.offsetTop; + for (var i = 0; i < display.view.length; i++) { + var cur = display.view[i], height; + if (cur.hidden) continue; + if (ie && ie_version < 8) { + var bot = cur.node.offsetTop + cur.node.offsetHeight; + height = bot - prevBottom; + prevBottom = bot; + } else { + var box = cur.node.getBoundingClientRect(); + height = box.bottom - box.top; + } + var diff = cur.line.height - height; + if (height < 2) height = textHeight(display); + if (diff > .001 || diff < -.001) { + updateLineHeight(cur.line, height); + updateWidgetHeight(cur.line); + if (cur.rest) for (var j = 0; j < cur.rest.length; j++) + updateWidgetHeight(cur.rest[j]); + } + } + } + + // Read and store the height of line widgets associated with the + // given line. + function updateWidgetHeight(line) { + if (line.widgets) for (var i = 0; i < line.widgets.length; ++i) + line.widgets[i].height = line.widgets[i].node.offsetHeight; + } + + // Do a bulk-read of the DOM positions and sizes needed to draw the + // view, so that we don't interleave reading and writing to the DOM. + function getDimensions(cm) { + var d = cm.display, left = {}, width = {}; + var gutterLeft = d.gutters.clientLeft; + for (var n = d.gutters.firstChild, i = 0; n; n = n.nextSibling, ++i) { + left[cm.options.gutters[i]] = n.offsetLeft + n.clientLeft + gutterLeft; + width[cm.options.gutters[i]] = n.clientWidth; + } + return {fixedPos: compensateForHScroll(d), + gutterTotalWidth: d.gutters.offsetWidth, + gutterLeft: left, + gutterWidth: width, + wrapperWidth: d.wrapper.clientWidth}; + } + + // Sync the actual display DOM structure with display.view, removing + // nodes for lines that are no longer in view, and creating the ones + // that are not there yet, and updating the ones that are out of + // date. + function patchDisplay(cm, updateNumbersFrom, dims) { + var display = cm.display, lineNumbers = cm.options.lineNumbers; + var container = display.lineDiv, cur = container.firstChild; + + function rm(node) { + var next = node.nextSibling; + // Works around a throw-scroll bug in OS X Webkit + if (webkit && mac && cm.display.currentWheelTarget == node) + node.style.display = "none"; + else + node.parentNode.removeChild(node); + return next; + } + + var view = display.view, lineN = display.viewFrom; + // Loop over the elements in the view, syncing cur (the DOM nodes + // in display.lineDiv) with the view as we go. + for (var i = 0; i < view.length; i++) { + var lineView = view[i]; + if (lineView.hidden) { + } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet + var node = buildLineElement(cm, lineView, lineN, dims); + container.insertBefore(node, cur); + } else { // Already drawn + while (cur != lineView.node) cur = rm(cur); + var updateNumber = lineNumbers && updateNumbersFrom != null && + updateNumbersFrom <= lineN && lineView.lineNumber; + if (lineView.changes) { + if (indexOf(lineView.changes, "gutter") > -1) updateNumber = false; + updateLineForChanges(cm, lineView, lineN, dims); + } + if (updateNumber) { + removeChildren(lineView.lineNumber); + lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN))); + } + cur = lineView.node.nextSibling; + } + lineN += lineView.size; + } + while (cur) cur = rm(cur); + } + + // When an aspect of a line changes, a string is added to + // lineView.changes. This updates the relevant part of the line's + // DOM structure. + function updateLineForChanges(cm, lineView, lineN, dims) { + for (var j = 0; j < lineView.changes.length; j++) { + var type = lineView.changes[j]; + if (type == "text") updateLineText(cm, lineView); + else if (type == "gutter") updateLineGutter(cm, lineView, lineN, dims); + else if (type == "class") updateLineClasses(lineView); + else if (type == "widget") updateLineWidgets(cm, lineView, dims); + } + lineView.changes = null; + } + + // Lines with gutter elements, widgets or a background class need to + // be wrapped, and have the extra elements added to the wrapper div + function ensureLineWrapped(lineView) { + if (lineView.node == lineView.text) { + lineView.node = elt("div", null, null, "position: relative"); + if (lineView.text.parentNode) + lineView.text.parentNode.replaceChild(lineView.node, lineView.text); + lineView.node.appendChild(lineView.text); + if (ie && ie_version < 8) lineView.node.style.zIndex = 2; + } + return lineView.node; + } + + function updateLineBackground(lineView) { + var cls = lineView.bgClass ? lineView.bgClass + " " + (lineView.line.bgClass || "") : lineView.line.bgClass; + if (cls) cls += " CodeMirror-linebackground"; + if (lineView.background) { + if (cls) lineView.background.className = cls; + else { lineView.background.parentNode.removeChild(lineView.background); lineView.background = null; } + } else if (cls) { + var wrap = ensureLineWrapped(lineView); + lineView.background = wrap.insertBefore(elt("div", null, cls), wrap.firstChild); + } + } + + // Wrapper around buildLineContent which will reuse the structure + // in display.externalMeasured when possible. + function getLineContent(cm, lineView) { + var ext = cm.display.externalMeasured; + if (ext && ext.line == lineView.line) { + cm.display.externalMeasured = null; + lineView.measure = ext.measure; + return ext.built; + } + return buildLineContent(cm, lineView); + } + + // Redraw the line's text. Interacts with the background and text + // classes because the mode may output tokens that influence these + // classes. + function updateLineText(cm, lineView) { + var cls = lineView.text.className; + var built = getLineContent(cm, lineView); + if (lineView.text == lineView.node) lineView.node = built.pre; + lineView.text.parentNode.replaceChild(built.pre, lineView.text); + lineView.text = built.pre; + if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) { + lineView.bgClass = built.bgClass; + lineView.textClass = built.textClass; + updateLineClasses(lineView); + } else if (cls) { + lineView.text.className = cls; + } + } + + function updateLineClasses(lineView) { + updateLineBackground(lineView); + if (lineView.line.wrapClass) + ensureLineWrapped(lineView).className = lineView.line.wrapClass; + else if (lineView.node != lineView.text) + lineView.node.className = ""; + var textClass = lineView.textClass ? lineView.textClass + " " + (lineView.line.textClass || "") : lineView.line.textClass; + lineView.text.className = textClass || ""; + } + + function updateLineGutter(cm, lineView, lineN, dims) { + if (lineView.gutter) { + lineView.node.removeChild(lineView.gutter); + lineView.gutter = null; + } + var markers = lineView.line.gutterMarkers; + if (cm.options.lineNumbers || markers) { + var wrap = ensureLineWrapped(lineView); + var gutterWrap = lineView.gutter = elt("div", null, "CodeMirror-gutter-wrapper", "left: " + + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + + "px; width: " + dims.gutterTotalWidth + "px"); + cm.display.input.setUneditable(gutterWrap); + wrap.insertBefore(gutterWrap, lineView.text); + if (lineView.line.gutterClass) + gutterWrap.className += " " + lineView.line.gutterClass; + if (cm.options.lineNumbers && (!markers || !markers["CodeMirror-linenumbers"])) + lineView.lineNumber = gutterWrap.appendChild( + elt("div", lineNumberFor(cm.options, lineN), + "CodeMirror-linenumber CodeMirror-gutter-elt", + "left: " + dims.gutterLeft["CodeMirror-linenumbers"] + "px; width: " + + cm.display.lineNumInnerWidth + "px")); + if (markers) for (var k = 0; k < cm.options.gutters.length; ++k) { + var id = cm.options.gutters[k], found = markers.hasOwnProperty(id) && markers[id]; + if (found) + gutterWrap.appendChild(elt("div", [found], "CodeMirror-gutter-elt", "left: " + + dims.gutterLeft[id] + "px; width: " + dims.gutterWidth[id] + "px")); + } + } + } + + function updateLineWidgets(cm, lineView, dims) { + if (lineView.alignable) lineView.alignable = null; + for (var node = lineView.node.firstChild, next; node; node = next) { + var next = node.nextSibling; + if (node.className == "CodeMirror-linewidget") + lineView.node.removeChild(node); + } + insertLineWidgets(cm, lineView, dims); + } + + // Build a line's DOM representation from scratch + function buildLineElement(cm, lineView, lineN, dims) { + var built = getLineContent(cm, lineView); + lineView.text = lineView.node = built.pre; + if (built.bgClass) lineView.bgClass = built.bgClass; + if (built.textClass) lineView.textClass = built.textClass; + + updateLineClasses(lineView); + updateLineGutter(cm, lineView, lineN, dims); + insertLineWidgets(cm, lineView, dims); + return lineView.node; + } + + // A lineView may contain multiple logical lines (when merged by + // collapsed spans). The widgets for all of them need to be drawn. + function insertLineWidgets(cm, lineView, dims) { + insertLineWidgetsFor(cm, lineView.line, lineView, dims, true); + if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++) + insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false); + } + + function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) { + if (!line.widgets) return; + var wrap = ensureLineWrapped(lineView); + for (var i = 0, ws = line.widgets; i < ws.length; ++i) { + var widget = ws[i], node = elt("div", [widget.node], "CodeMirror-linewidget"); + if (!widget.handleMouseEvents) node.setAttribute("cm-ignore-events", "true"); + positionLineWidget(widget, node, lineView, dims); + cm.display.input.setUneditable(node); + if (allowAbove && widget.above) + wrap.insertBefore(node, lineView.gutter || lineView.text); + else + wrap.appendChild(node); + signalLater(widget, "redraw"); + } + } + + function positionLineWidget(widget, node, lineView, dims) { + if (widget.noHScroll) { + (lineView.alignable || (lineView.alignable = [])).push(node); + var width = dims.wrapperWidth; + node.style.left = dims.fixedPos + "px"; + if (!widget.coverGutter) { + width -= dims.gutterTotalWidth; + node.style.paddingLeft = dims.gutterTotalWidth + "px"; + } + node.style.width = width + "px"; + } + if (widget.coverGutter) { + node.style.zIndex = 5; + node.style.position = "relative"; + if (!widget.noHScroll) node.style.marginLeft = -dims.gutterTotalWidth + "px"; + } + } + + // POSITION OBJECT + + // A Pos instance represents a position within the text. + var Pos = CodeMirror.Pos = function(line, ch) { + if (!(this instanceof Pos)) return new Pos(line, ch); + this.line = line; this.ch = ch; + }; + + // Compare two positions, return 0 if they are the same, a negative + // number when a is less, and a positive number otherwise. + var cmp = CodeMirror.cmpPos = function(a, b) { return a.line - b.line || a.ch - b.ch; }; + + function copyPos(x) {return Pos(x.line, x.ch);} + function maxPos(a, b) { return cmp(a, b) < 0 ? b : a; } + function minPos(a, b) { return cmp(a, b) < 0 ? a : b; } + + // INPUT HANDLING + + function ensureFocus(cm) { + if (!cm.state.focused) { cm.display.input.focus(); onFocus(cm); } + } + + function isReadOnly(cm) { + return cm.options.readOnly || cm.doc.cantEdit; + } + + // This will be set to an array of strings when copying, so that, + // when pasting, we know what kind of selections the copied text + // was made out of. + var lastCopied = null; + + function applyTextInput(cm, inserted, deleted, sel, origin) { + var doc = cm.doc; + cm.display.shift = false; + if (!sel) sel = doc.sel; + + var textLines = splitLines(inserted), multiPaste = null; + // When pasing N lines into N selections, insert one line per selection + if (cm.state.pasteIncoming && sel.ranges.length > 1) { + if (lastCopied && lastCopied.join("\n") == inserted) + multiPaste = sel.ranges.length % lastCopied.length == 0 && map(lastCopied, splitLines); + else if (textLines.length == sel.ranges.length) + multiPaste = map(textLines, function(l) { return [l]; }); + } + + // Normal behavior is to insert the new text into every selection + for (var i = sel.ranges.length - 1; i >= 0; i--) { + var range = sel.ranges[i]; + var from = range.from(), to = range.to(); + if (range.empty()) { + if (deleted && deleted > 0) // Handle deletion + from = Pos(from.line, from.ch - deleted); + else if (cm.state.overwrite && !cm.state.pasteIncoming) // Handle overwrite + to = Pos(to.line, Math.min(getLine(doc, to.line).text.length, to.ch + lst(textLines).length)); + } + var updateInput = cm.curOp.updateInput; + var changeEvent = {from: from, to: to, text: multiPaste ? multiPaste[i % multiPaste.length] : textLines, + origin: origin || (cm.state.pasteIncoming ? "paste" : cm.state.cutIncoming ? "cut" : "+input")}; + makeChange(cm.doc, changeEvent); + signalLater(cm, "inputRead", cm, changeEvent); + // When an 'electric' character is inserted, immediately trigger a reindent + if (inserted && !cm.state.pasteIncoming && cm.options.electricChars && + cm.options.smartIndent && range.head.ch < 100 && + (!i || sel.ranges[i - 1].head.line != range.head.line)) { + var mode = cm.getModeAt(range.head); + var end = changeEnd(changeEvent); + var indented = false; + if (mode.electricChars) { + for (var j = 0; j < mode.electricChars.length; j++) + if (inserted.indexOf(mode.electricChars.charAt(j)) > -1) { + indented = indentLine(cm, end.line, "smart"); + break; + } + } else if (mode.electricInput) { + if (mode.electricInput.test(getLine(doc, end.line).text.slice(0, end.ch))) + indented = indentLine(cm, end.line, "smart"); + } + if (indented) signalLater(cm, "electricInput", cm, end.line); + } + } + ensureCursorVisible(cm); + cm.curOp.updateInput = updateInput; + cm.curOp.typing = true; + cm.state.pasteIncoming = cm.state.cutIncoming = false; + } + + function copyableRanges(cm) { + var text = [], ranges = []; + for (var i = 0; i < cm.doc.sel.ranges.length; i++) { + var line = cm.doc.sel.ranges[i].head.line; + var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)}; + ranges.push(lineRange); + text.push(cm.getRange(lineRange.anchor, lineRange.head)); + } + return {text: text, ranges: ranges}; + } + + function disableBrowserMagic(field) { + field.setAttribute("autocorrect", "off"); + field.setAttribute("autocapitalize", "off"); + field.setAttribute("spellcheck", "false"); + } + + // TEXTAREA INPUT STYLE + + function TextareaInput(cm) { + this.cm = cm; + // See input.poll and input.reset + this.prevInput = ""; + + // Flag that indicates whether we expect input to appear real soon + // now (after some event like 'keypress' or 'input') and are + // polling intensively. + this.pollingFast = false; + // Self-resetting timeout for the poller + this.polling = new Delayed(); + // Tracks when input.reset has punted to just putting a short + // string into the textarea instead of the full selection. + this.inaccurateSelection = false; + // Used to work around IE issue with selection being forgotten when focus moves away from textarea + this.hasSelection = false; + this.composing = null; + }; + + function hiddenTextarea() { + var te = elt("textarea", null, null, "position: absolute; padding: 0; width: 1px; height: 1em; outline: none"); + var div = elt("div", [te], null, "overflow: hidden; position: relative; width: 3px; height: 0px;"); + // The textarea is kept positioned near the cursor to prevent the + // fact that it'll be scrolled into view on input from scrolling + // our fake cursor out of view. On webkit, when wrap=off, paste is + // very slow. So make the area wide instead. + if (webkit) te.style.width = "1000px"; + else te.setAttribute("wrap", "off"); + // If border: 0; -- iOS fails to open keyboard (issue #1287) + if (ios) te.style.border = "1px solid black"; + disableBrowserMagic(te); + return div; + } + + TextareaInput.prototype = copyObj({ + init: function(display) { + var input = this, cm = this.cm; + + // Wraps and hides input textarea + var div = this.wrapper = hiddenTextarea(); + // The semihidden textarea that is focused when the editor is + // focused, and receives input. + var te = this.textarea = div.firstChild; + display.wrapper.insertBefore(div, display.wrapper.firstChild); + + // Needed to hide big blue blinking cursor on Mobile Safari (doesn't seem to work in iOS 8 anymore) + if (ios) te.style.width = "0px"; + + on(te, "input", function() { + if (ie && ie_version >= 9 && input.hasSelection) input.hasSelection = null; + input.poll(); + }); + + on(te, "paste", function() { + // Workaround for webkit bug https://bugs.webkit.org/show_bug.cgi?id=90206 + // Add a char to the end of textarea before paste occur so that + // selection doesn't span to the end of textarea. + if (webkit && !cm.state.fakedLastChar && !(new Date - cm.state.lastMiddleDown < 200)) { + var start = te.selectionStart, end = te.selectionEnd; + te.value += "$"; + // The selection end needs to be set before the start, otherwise there + // can be an intermediate non-empty selection between the two, which + // can override the middle-click paste buffer on linux and cause the + // wrong thing to get pasted. + te.selectionEnd = end; + te.selectionStart = start; + cm.state.fakedLastChar = true; + } + cm.state.pasteIncoming = true; + input.fastPoll(); + }); + + function prepareCopyCut(e) { + if (cm.somethingSelected()) { + lastCopied = cm.getSelections(); + if (input.inaccurateSelection) { + input.prevInput = ""; + input.inaccurateSelection = false; + te.value = lastCopied.join("\n"); + selectInput(te); + } + } else if (!cm.options.lineWiseCopyCut) { + return; + } else { + var ranges = copyableRanges(cm); + lastCopied = ranges.text; + if (e.type == "cut") { + cm.setSelections(ranges.ranges, null, sel_dontScroll); + } else { + input.prevInput = ""; + te.value = ranges.text.join("\n"); + selectInput(te); + } + } + if (e.type == "cut") cm.state.cutIncoming = true; + } + on(te, "cut", prepareCopyCut); + on(te, "copy", prepareCopyCut); + + on(display.scroller, "paste", function(e) { + if (eventInWidget(display, e)) return; + cm.state.pasteIncoming = true; + input.focus(); + }); + + // Prevent normal selection in the editor (we handle our own) + on(display.lineSpace, "selectstart", function(e) { + if (!eventInWidget(display, e)) e_preventDefault(e); + }); + + on(te, "compositionstart", function() { + var start = cm.getCursor("from"); + input.composing = { + start: start, + range: cm.markText(start, cm.getCursor("to"), {className: "CodeMirror-composing"}) + }; + }); + on(te, "compositionend", function() { + if (input.composing) { + input.poll(); + input.composing.range.clear(); + input.composing = null; + } + }); + }, + + prepareSelection: function() { + // Redraw the selection and/or cursor + var cm = this.cm, display = cm.display, doc = cm.doc; + var result = prepareSelection(cm); + + // Move the hidden textarea near the cursor to prevent scrolling artifacts + if (cm.options.moveInputWithCursor) { + var headPos = cursorCoords(cm, doc.sel.primary().head, "div"); + var wrapOff = display.wrapper.getBoundingClientRect(), lineOff = display.lineDiv.getBoundingClientRect(); + result.teTop = Math.max(0, Math.min(display.wrapper.clientHeight - 10, + headPos.top + lineOff.top - wrapOff.top)); + result.teLeft = Math.max(0, Math.min(display.wrapper.clientWidth - 10, + headPos.left + lineOff.left - wrapOff.left)); + } + + return result; + }, + + showSelection: function(drawn) { + var cm = this.cm, display = cm.display; + removeChildrenAndAdd(display.cursorDiv, drawn.cursors); + removeChildrenAndAdd(display.selectionDiv, drawn.selection); + if (drawn.teTop != null) { + this.wrapper.style.top = drawn.teTop + "px"; + this.wrapper.style.left = drawn.teLeft + "px"; + } + }, + + // Reset the input to correspond to the selection (or to be empty, + // when not typing and nothing is selected) + reset: function(typing) { + if (this.contextMenuPending) return; + var minimal, selected, cm = this.cm, doc = cm.doc; + if (cm.somethingSelected()) { + this.prevInput = ""; + var range = doc.sel.primary(); + minimal = hasCopyEvent && + (range.to().line - range.from().line > 100 || (selected = cm.getSelection()).length > 1000); + var content = minimal ? "-" : selected || cm.getSelection(); + this.textarea.value = content; + if (cm.state.focused) selectInput(this.textarea); + if (ie && ie_version >= 9) this.hasSelection = content; + } else if (!typing) { + this.prevInput = this.textarea.value = ""; + if (ie && ie_version >= 9) this.hasSelection = null; + } + this.inaccurateSelection = minimal; + }, + + getField: function() { return this.textarea; }, + + supportsTouch: function() { return false; }, + + focus: function() { + if (this.cm.options.readOnly != "nocursor" && (!mobile || activeElt() != this.textarea)) { + try { this.textarea.focus(); } + catch (e) {} // IE8 will throw if the textarea is display: none or not in DOM + } + }, + + blur: function() { this.textarea.blur(); }, + + resetPosition: function() { + this.wrapper.style.top = this.wrapper.style.left = 0; + }, + + receivedFocus: function() { this.slowPoll(); }, + + // Poll for input changes, using the normal rate of polling. This + // runs as long as the editor is focused. + slowPoll: function() { + var input = this; + if (input.pollingFast) return; + input.polling.set(this.cm.options.pollInterval, function() { + input.poll(); + if (input.cm.state.focused) input.slowPoll(); + }); + }, + + // When an event has just come in that is likely to add or change + // something in the input textarea, we poll faster, to ensure that + // the change appears on the screen quickly. + fastPoll: function() { + var missed = false, input = this; + input.pollingFast = true; + function p() { + var changed = input.poll(); + if (!changed && !missed) {missed = true; input.polling.set(60, p);} + else {input.pollingFast = false; input.slowPoll();} + } + input.polling.set(20, p); + }, + + // Read input from the textarea, and update the document to match. + // When something is selected, it is present in the textarea, and + // selected (unless it is huge, in which case a placeholder is + // used). When nothing is selected, the cursor sits after previously + // seen text (can be empty), which is stored in prevInput (we must + // not reset the textarea when typing, because that breaks IME). + poll: function() { + var cm = this.cm, input = this.textarea, prevInput = this.prevInput; + // Since this is called a *lot*, try to bail out as cheaply as + // possible when it is clear that nothing happened. hasSelection + // will be the case when there is a lot of text in the textarea, + // in which case reading its value would be expensive. + if (!cm.state.focused || (hasSelection(input) && !prevInput) || + isReadOnly(cm) || cm.options.disableInput || cm.state.keySeq) + return false; + // See paste handler for more on the fakedLastChar kludge + if (cm.state.pasteIncoming && cm.state.fakedLastChar) { + input.value = input.value.substring(0, input.value.length - 1); + cm.state.fakedLastChar = false; + } + var text = input.value; + // If nothing changed, bail. + if (text == prevInput && !cm.somethingSelected()) return false; + // Work around nonsensical selection resetting in IE9/10, and + // inexplicable appearance of private area unicode characters on + // some key combos in Mac (#2689). + if (ie && ie_version >= 9 && this.hasSelection === text || + mac && /[\uf700-\uf7ff]/.test(text)) { + cm.display.input.reset(); + return false; + } + + if (cm.doc.sel == cm.display.selForContextMenu) { + var first = text.charCodeAt(0); + if (first == 0x200b && !prevInput) prevInput = "\u200b"; + if (first == 0x21da) { this.reset(); return this.cm.execCommand("undo"); } + } + // Find the part of the input that is actually new + var same = 0, l = Math.min(prevInput.length, text.length); + while (same < l && prevInput.charCodeAt(same) == text.charCodeAt(same)) ++same; + + var self = this; + runInOp(cm, function() { + applyTextInput(cm, text.slice(same), prevInput.length - same, + null, self.composing ? "*compose" : null); + + // Don't leave long text in the textarea, since it makes further polling slow + if (text.length > 1000 || text.indexOf("\n") > -1) input.value = self.prevInput = ""; + else self.prevInput = text; + + if (self.composing) { + self.composing.range.clear(); + self.composing.range = cm.markText(self.composing.start, cm.getCursor("to"), + {className: "CodeMirror-composing"}); + } + }); + return true; + }, + + ensurePolled: function() { + if (this.pollingFast && this.poll()) this.pollingFast = false; + }, + + onKeyPress: function() { + if (ie && ie_version >= 9) this.hasSelection = null; + this.fastPoll(); + }, + + onContextMenu: function(e) { + var input = this, cm = input.cm, display = cm.display, te = input.textarea; + var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop; + if (!pos || presto) return; // Opera is difficult. + + // Reset the current text selection only if the click is done outside of the selection + // and 'resetSelectionOnContextMenu' option is true. + var reset = cm.options.resetSelectionOnContextMenu; + if (reset && cm.doc.sel.contains(pos) == -1) + operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll); + + var oldCSS = te.style.cssText; + input.wrapper.style.position = "absolute"; + te.style.cssText = "position: fixed; width: 30px; height: 30px; top: " + (e.clientY - 5) + + "px; left: " + (e.clientX - 5) + "px; z-index: 1000; background: " + + (ie ? "rgba(255, 255, 255, .05)" : "transparent") + + "; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);"; + if (webkit) var oldScrollY = window.scrollY; // Work around Chrome issue (#2712) + display.input.focus(); + if (webkit) window.scrollTo(null, oldScrollY); + display.input.reset(); + // Adds "Select all" to context menu in FF + if (!cm.somethingSelected()) te.value = input.prevInput = " "; + input.contextMenuPending = true; + display.selForContextMenu = cm.doc.sel; + clearTimeout(display.detectingSelectAll); + + // Select-all will be greyed out if there's nothing to select, so + // this adds a zero-width space so that we can later check whether + // it got selected. + function prepareSelectAllHack() { + if (te.selectionStart != null) { + var selected = cm.somethingSelected(); + var extval = "\u200b" + (selected ? te.value : ""); + te.value = "\u21da"; // Used to catch context-menu undo + te.value = extval; + input.prevInput = selected ? "" : "\u200b"; + te.selectionStart = 1; te.selectionEnd = extval.length; + // Re-set this, in case some other handler touched the + // selection in the meantime. + display.selForContextMenu = cm.doc.sel; + } + } + function rehide() { + input.contextMenuPending = false; + input.wrapper.style.position = "relative"; + te.style.cssText = oldCSS; + if (ie && ie_version < 9) display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos); + + // Try to detect the user choosing select-all + if (te.selectionStart != null) { + if (!ie || (ie && ie_version < 9)) prepareSelectAllHack(); + var i = 0, poll = function() { + if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0 && + te.selectionEnd > 0 && input.prevInput == "\u200b") + operation(cm, commands.selectAll)(cm); + else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500); + else display.input.reset(); + }; + display.detectingSelectAll = setTimeout(poll, 200); + } + } + + if (ie && ie_version >= 9) prepareSelectAllHack(); + if (captureRightClick) { + e_stop(e); + var mouseup = function() { + off(window, "mouseup", mouseup); + setTimeout(rehide, 20); + }; + on(window, "mouseup", mouseup); + } else { + setTimeout(rehide, 50); + } + }, + + setUneditable: nothing, + + needsContentAttribute: false + }, TextareaInput.prototype); + + // CONTENTEDITABLE INPUT STYLE + + function ContentEditableInput(cm) { + this.cm = cm; + this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null; + this.polling = new Delayed(); + this.gracePeriod = false; + } + + ContentEditableInput.prototype = copyObj({ + init: function(display) { + var input = this, cm = input.cm; + var div = input.div = display.lineDiv; + div.contentEditable = "true"; + disableBrowserMagic(div); + + on(div, "paste", function(e) { + var pasted = e.clipboardData && e.clipboardData.getData("text/plain"); + if (pasted) { + e.preventDefault(); + cm.replaceSelection(pasted, null, "paste"); + } + }); + + on(div, "compositionstart", function(e) { + var data = e.data; + input.composing = {sel: cm.doc.sel, data: data, startData: data}; + if (!data) return; + var prim = cm.doc.sel.primary(); + var line = cm.getLine(prim.head.line); + var found = line.indexOf(data, Math.max(0, prim.head.ch - data.length)); + if (found > -1 && found <= prim.head.ch) + input.composing.sel = simpleSelection(Pos(prim.head.line, found), + Pos(prim.head.line, found + data.length)); + }); + on(div, "compositionupdate", function(e) { + input.composing.data = e.data; + }); + on(div, "compositionend", function(e) { + var ours = input.composing; + if (!ours) return; + if (e.data != ours.startData && !/\u200b/.test(e.data)) + ours.data = e.data; + // Need a small delay to prevent other code (input event, + // selection polling) from doing damage when fired right after + // compositionend. + setTimeout(function() { + if (!ours.handled) + input.applyComposition(ours); + if (input.composing == ours) + input.composing = null; + }, 50); + }); + + on(div, "touchstart", function() { + input.forceCompositionEnd(); + }); + + on(div, "input", function() { + if (input.composing) return; + if (!input.pollContent()) + runInOp(input.cm, function() {regChange(cm);}); + }); + + function onCopyCut(e) { + if (cm.somethingSelected()) { + lastCopied = cm.getSelections(); + if (e.type == "cut") cm.replaceSelection("", null, "cut"); + } else if (!cm.options.lineWiseCopyCut) { + return; + } else { + var ranges = copyableRanges(cm); + lastCopied = ranges.text; + if (e.type == "cut") { + cm.operation(function() { + cm.setSelections(ranges.ranges, 0, sel_dontScroll); + cm.replaceSelection("", null, "cut"); + }); + } + } + // iOS exposes the clipboard API, but seems to discard content inserted into it + if (e.clipboardData && !ios) { + e.preventDefault(); + e.clipboardData.clearData(); + e.clipboardData.setData("text/plain", lastCopied.join("\n")); + } else { + // Old-fashioned briefly-focus-a-textarea hack + var kludge = hiddenTextarea(), te = kludge.firstChild; + cm.display.lineSpace.insertBefore(kludge, cm.display.lineSpace.firstChild); + te.value = lastCopied.join("\n"); + var hadFocus = document.activeElement; + selectInput(te); + setTimeout(function() { + cm.display.lineSpace.removeChild(kludge); + hadFocus.focus(); + }, 50); + } + } + on(div, "copy", onCopyCut); + on(div, "cut", onCopyCut); + }, + + prepareSelection: function() { + var result = prepareSelection(this.cm, false); + result.focus = this.cm.state.focused; + return result; + }, + + showSelection: function(info) { + if (!info || !this.cm.display.view.length) return; + if (info.focus) this.showPrimarySelection(); + this.showMultipleSelections(info); + }, + + showPrimarySelection: function() { + var sel = window.getSelection(), prim = this.cm.doc.sel.primary(); + var curAnchor = domToPos(this.cm, sel.anchorNode, sel.anchorOffset); + var curFocus = domToPos(this.cm, sel.focusNode, sel.focusOffset); + if (curAnchor && !curAnchor.bad && curFocus && !curFocus.bad && + cmp(minPos(curAnchor, curFocus), prim.from()) == 0 && + cmp(maxPos(curAnchor, curFocus), prim.to()) == 0) + return; + + var start = posToDOM(this.cm, prim.from()); + var end = posToDOM(this.cm, prim.to()); + if (!start && !end) return; + + var view = this.cm.display.view; + var old = sel.rangeCount && sel.getRangeAt(0); + if (!start) { + start = {node: view[0].measure.map[2], offset: 0}; + } else if (!end) { // FIXME dangerously hacky + var measure = view[view.length - 1].measure; + var map = measure.maps ? measure.maps[measure.maps.length - 1] : measure.map; + end = {node: map[map.length - 1], offset: map[map.length - 2] - map[map.length - 3]}; + } + + try { var rng = range(start.node, start.offset, end.offset, end.node); } + catch(e) {} // Our model of the DOM might be outdated, in which case the range we try to set can be impossible + if (rng) { + sel.removeAllRanges(); + sel.addRange(rng); + if (old && sel.anchorNode == null) sel.addRange(old); + else if (gecko) this.startGracePeriod(); + } + this.rememberSelection(); + }, + + startGracePeriod: function() { + var input = this; + clearTimeout(this.gracePeriod); + this.gracePeriod = setTimeout(function() { + input.gracePeriod = false; + if (input.selectionChanged()) + input.cm.operation(function() { input.cm.curOp.selectionChanged = true; }); + }, 20); + }, + + showMultipleSelections: function(info) { + removeChildrenAndAdd(this.cm.display.cursorDiv, info.cursors); + removeChildrenAndAdd(this.cm.display.selectionDiv, info.selection); + }, + + rememberSelection: function() { + var sel = window.getSelection(); + this.lastAnchorNode = sel.anchorNode; this.lastAnchorOffset = sel.anchorOffset; + this.lastFocusNode = sel.focusNode; this.lastFocusOffset = sel.focusOffset; + }, + + selectionInEditor: function() { + var sel = window.getSelection(); + if (!sel.rangeCount) return false; + var node = sel.getRangeAt(0).commonAncestorContainer; + return contains(this.div, node); + }, + + focus: function() { + if (this.cm.options.readOnly != "nocursor") this.div.focus(); + }, + blur: function() { this.div.blur(); }, + getField: function() { return this.div; }, + + supportsTouch: function() { return true; }, + + receivedFocus: function() { + var input = this; + if (this.selectionInEditor()) + this.pollSelection(); + else + runInOp(this.cm, function() { input.cm.curOp.selectionChanged = true; }); + + function poll() { + if (input.cm.state.focused) { + input.pollSelection(); + input.polling.set(input.cm.options.pollInterval, poll); + } + } + this.polling.set(this.cm.options.pollInterval, poll); + }, + + selectionChanged: function() { + var sel = window.getSelection(); + return sel.anchorNode != this.lastAnchorNode || sel.anchorOffset != this.lastAnchorOffset || + sel.focusNode != this.lastFocusNode || sel.focusOffset != this.lastFocusOffset; + }, + + pollSelection: function() { + if (!this.composing && !this.gracePeriod && this.selectionChanged()) { + var sel = window.getSelection(), cm = this.cm; + this.rememberSelection(); + var anchor = domToPos(cm, sel.anchorNode, sel.anchorOffset); + var head = domToPos(cm, sel.focusNode, sel.focusOffset); + if (anchor && head) runInOp(cm, function() { + setSelection(cm.doc, simpleSelection(anchor, head), sel_dontScroll); + if (anchor.bad || head.bad) cm.curOp.selectionChanged = true; + }); + } + }, + + pollContent: function() { + var cm = this.cm, display = cm.display, sel = cm.doc.sel.primary(); + var from = sel.from(), to = sel.to(); + if (from.line < display.viewFrom || to.line > display.viewTo - 1) return false; + + var fromIndex; + if (from.line == display.viewFrom || (fromIndex = findViewIndex(cm, from.line)) == 0) { + var fromLine = lineNo(display.view[0].line); + var fromNode = display.view[0].node; + } else { + var fromLine = lineNo(display.view[fromIndex].line); + var fromNode = display.view[fromIndex - 1].node.nextSibling; + } + var toIndex = findViewIndex(cm, to.line); + if (toIndex == display.view.length - 1) { + var toLine = display.viewTo - 1; + var toNode = display.view[toIndex].node; + } else { + var toLine = lineNo(display.view[toIndex + 1].line) - 1; + var toNode = display.view[toIndex + 1].node.previousSibling; + } + + var newText = splitLines(domTextBetween(cm, fromNode, toNode, fromLine, toLine)); + var oldText = getBetween(cm.doc, Pos(fromLine, 0), Pos(toLine, getLine(cm.doc, toLine).text.length)); + while (newText.length > 1 && oldText.length > 1) { + if (lst(newText) == lst(oldText)) { newText.pop(); oldText.pop(); toLine--; } + else if (newText[0] == oldText[0]) { newText.shift(); oldText.shift(); fromLine++; } + else break; + } + + var cutFront = 0, cutEnd = 0; + var newTop = newText[0], oldTop = oldText[0], maxCutFront = Math.min(newTop.length, oldTop.length); + while (cutFront < maxCutFront && newTop.charCodeAt(cutFront) == oldTop.charCodeAt(cutFront)) + ++cutFront; + var newBot = lst(newText), oldBot = lst(oldText); + var maxCutEnd = Math.min(newBot.length - (newText.length == 1 ? cutFront : 0), + oldBot.length - (oldText.length == 1 ? cutFront : 0)); + while (cutEnd < maxCutEnd && + newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1)) + ++cutEnd; + + newText[newText.length - 1] = newBot.slice(0, newBot.length - cutEnd); + newText[0] = newText[0].slice(cutFront); + + var chFrom = Pos(fromLine, cutFront); + var chTo = Pos(toLine, oldText.length ? lst(oldText).length - cutEnd : 0); + if (newText.length > 1 || newText[0] || cmp(chFrom, chTo)) { + replaceRange(cm.doc, newText, chFrom, chTo, "+input"); + return true; + } + }, + + ensurePolled: function() { + this.forceCompositionEnd(); + }, + reset: function() { + this.forceCompositionEnd(); + }, + forceCompositionEnd: function() { + if (!this.composing || this.composing.handled) return; + this.applyComposition(this.composing); + this.composing.handled = true; + this.div.blur(); + this.div.focus(); + }, + applyComposition: function(composing) { + if (composing.data && composing.data != composing.startData) + operation(this.cm, applyTextInput)(this.cm, composing.data, 0, composing.sel); + }, + + setUneditable: function(node) { + node.setAttribute("contenteditable", "false"); + }, + + onKeyPress: function(e) { + e.preventDefault(); + operation(this.cm, applyTextInput)(this.cm, String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode), 0); + }, + + onContextMenu: nothing, + resetPosition: nothing, + + needsContentAttribute: true + }, ContentEditableInput.prototype); + + function posToDOM(cm, pos) { + var view = findViewForLine(cm, pos.line); + if (!view || view.hidden) return null; + var line = getLine(cm.doc, pos.line); + var info = mapFromLineView(view, line, pos.line); + + var order = getOrder(line), side = "left"; + if (order) { + var partPos = getBidiPartAt(order, pos.ch); + side = partPos % 2 ? "right" : "left"; + } + var result = nodeAndOffsetInLineMap(info.map, pos.ch, "left"); + result.offset = result.collapse == "right" ? result.end : result.start; + return result; + } + + function badPos(pos, bad) { if (bad) pos.bad = true; return pos; } + + function domToPos(cm, node, offset) { + var lineNode; + if (node == cm.display.lineDiv) { + lineNode = cm.display.lineDiv.childNodes[offset]; + if (!lineNode) return badPos(cm.clipPos(Pos(cm.display.viewTo - 1)), true); + node = null; offset = 0; + } else { + for (lineNode = node;; lineNode = lineNode.parentNode) { + if (!lineNode || lineNode == cm.display.lineDiv) return null; + if (lineNode.parentNode && lineNode.parentNode == cm.display.lineDiv) break; + } + } + for (var i = 0; i < cm.display.view.length; i++) { + var lineView = cm.display.view[i]; + if (lineView.node == lineNode) + return locateNodeInLineView(lineView, node, offset); + } + } + + function locateNodeInLineView(lineView, node, offset) { + var wrapper = lineView.text.firstChild, bad = false; + if (!node || !contains(wrapper, node)) return badPos(Pos(lineNo(lineView.line), 0), true); + if (node == wrapper) { + bad = true; + node = wrapper.childNodes[offset]; + offset = 0; + if (!node) { + var line = lineView.rest ? lst(lineView.rest) : lineView.line; + return badPos(Pos(lineNo(line), line.text.length), bad); + } + } + + var textNode = node.nodeType == 3 ? node : null, topNode = node; + if (!textNode && node.childNodes.length == 1 && node.firstChild.nodeType == 3) { + textNode = node.firstChild; + if (offset) offset = textNode.nodeValue.length; + } + while (topNode.parentNode != wrapper) topNode = topNode.parentNode; + var measure = lineView.measure, maps = measure.maps; + + function find(textNode, topNode, offset) { + for (var i = -1; i < (maps ? maps.length : 0); i++) { + var map = i < 0 ? measure.map : maps[i]; + for (var j = 0; j < map.length; j += 3) { + var curNode = map[j + 2]; + if (curNode == textNode || curNode == topNode) { + var line = lineNo(i < 0 ? lineView.line : lineView.rest[i]); + var ch = map[j] + offset; + if (offset < 0 || curNode != textNode) ch = map[j + (offset ? 1 : 0)]; + return Pos(line, ch); + } + } + } + } + var found = find(textNode, topNode, offset); + if (found) return badPos(found, bad); + + // FIXME this is all really shaky. might handle the few cases it needs to handle, but likely to cause problems + for (var after = topNode.nextSibling, dist = textNode ? textNode.nodeValue.length - offset : 0; after; after = after.nextSibling) { + found = find(after, after.firstChild, 0); + if (found) + return badPos(Pos(found.line, found.ch - dist), bad); + else + dist += after.textContent.length; + } + for (var before = topNode.previousSibling, dist = offset; before; before = before.previousSibling) { + found = find(before, before.firstChild, -1); + if (found) + return badPos(Pos(found.line, found.ch + dist), bad); + else + dist += after.textContent.length; + } + } + + function domTextBetween(cm, from, to, fromLine, toLine) { + var text = "", closing = false; + function recognizeMarker(id) { return function(marker) { return marker.id == id; }; } + function walk(node) { + if (node.nodeType == 1) { + var cmText = node.getAttribute("cm-text"); + if (cmText != null) { + if (cmText == "") cmText = node.textContent.replace(/\u200b/g, ""); + text += cmText; + return; + } + var markerID = node.getAttribute("cm-marker"), range; + if (markerID) { + var found = cm.findMarks(Pos(fromLine, 0), Pos(toLine + 1, 0), recognizeMarker(+markerID)); + if (found.length && (range = found[0].find())) + text += getBetween(cm.doc, range.from, range.to).join("\n"); + return; + } + if (node.getAttribute("contenteditable") == "false") return; + for (var i = 0; i < node.childNodes.length; i++) + walk(node.childNodes[i]); + if (/^(pre|div|p)$/i.test(node.nodeName)) + closing = true; + } else if (node.nodeType == 3) { + var val = node.nodeValue; + if (!val) return; + if (closing) { + text += "\n"; + closing = false; + } + text += val; + } + } + for (;;) { + walk(from); + if (from == to) break; + from = from.nextSibling; + } + return text; + } + + CodeMirror.inputStyles = {"textarea": TextareaInput, "contenteditable": ContentEditableInput}; + + // SELECTION / CURSOR + + // Selection objects are immutable. A new one is created every time + // the selection changes. A selection is one or more non-overlapping + // (and non-touching) ranges, sorted, and an integer that indicates + // which one is the primary selection (the one that's scrolled into + // view, that getCursor returns, etc). + function Selection(ranges, primIndex) { + this.ranges = ranges; + this.primIndex = primIndex; + } + + Selection.prototype = { + primary: function() { return this.ranges[this.primIndex]; }, + equals: function(other) { + if (other == this) return true; + if (other.primIndex != this.primIndex || other.ranges.length != this.ranges.length) return false; + for (var i = 0; i < this.ranges.length; i++) { + var here = this.ranges[i], there = other.ranges[i]; + if (cmp(here.anchor, there.anchor) != 0 || cmp(here.head, there.head) != 0) return false; + } + return true; + }, + deepCopy: function() { + for (var out = [], i = 0; i < this.ranges.length; i++) + out[i] = new Range(copyPos(this.ranges[i].anchor), copyPos(this.ranges[i].head)); + return new Selection(out, this.primIndex); + }, + somethingSelected: function() { + for (var i = 0; i < this.ranges.length; i++) + if (!this.ranges[i].empty()) return true; + return false; + }, + contains: function(pos, end) { + if (!end) end = pos; + for (var i = 0; i < this.ranges.length; i++) { + var range = this.ranges[i]; + if (cmp(end, range.from()) >= 0 && cmp(pos, range.to()) <= 0) + return i; + } + return -1; + } + }; + + function Range(anchor, head) { + this.anchor = anchor; this.head = head; + } + + Range.prototype = { + from: function() { return minPos(this.anchor, this.head); }, + to: function() { return maxPos(this.anchor, this.head); }, + empty: function() { + return this.head.line == this.anchor.line && this.head.ch == this.anchor.ch; + } + }; + + // Take an unsorted, potentially overlapping set of ranges, and + // build a selection out of it. 'Consumes' ranges array (modifying + // it). + function normalizeSelection(ranges, primIndex) { + var prim = ranges[primIndex]; + ranges.sort(function(a, b) { return cmp(a.from(), b.from()); }); + primIndex = indexOf(ranges, prim); + for (var i = 1; i < ranges.length; i++) { + var cur = ranges[i], prev = ranges[i - 1]; + if (cmp(prev.to(), cur.from()) >= 0) { + var from = minPos(prev.from(), cur.from()), to = maxPos(prev.to(), cur.to()); + var inv = prev.empty() ? cur.from() == cur.head : prev.from() == prev.head; + if (i <= primIndex) --primIndex; + ranges.splice(--i, 2, new Range(inv ? to : from, inv ? from : to)); + } + } + return new Selection(ranges, primIndex); + } + + function simpleSelection(anchor, head) { + return new Selection([new Range(anchor, head || anchor)], 0); + } + + // Most of the external API clips given positions to make sure they + // actually exist within the document. + function clipLine(doc, n) {return Math.max(doc.first, Math.min(n, doc.first + doc.size - 1));} + function clipPos(doc, pos) { + if (pos.line < doc.first) return Pos(doc.first, 0); + var last = doc.first + doc.size - 1; + if (pos.line > last) return Pos(last, getLine(doc, last).text.length); + return clipToLen(pos, getLine(doc, pos.line).text.length); + } + function clipToLen(pos, linelen) { + var ch = pos.ch; + if (ch == null || ch > linelen) return Pos(pos.line, linelen); + else if (ch < 0) return Pos(pos.line, 0); + else return pos; + } + function isLine(doc, l) {return l >= doc.first && l < doc.first + doc.size;} + function clipPosArray(doc, array) { + for (var out = [], i = 0; i < array.length; i++) out[i] = clipPos(doc, array[i]); + return out; + } + + // SELECTION UPDATES + + // The 'scroll' parameter given to many of these indicated whether + // the new cursor position should be scrolled into view after + // modifying the selection. + + // If shift is held or the extend flag is set, extends a range to + // include a given position (and optionally a second position). + // Otherwise, simply returns the range between the given positions. + // Used for cursor motion and such. + function extendRange(doc, range, head, other) { + if (doc.cm && doc.cm.display.shift || doc.extend) { + var anchor = range.anchor; + if (other) { + var posBefore = cmp(head, anchor) < 0; + if (posBefore != (cmp(other, anchor) < 0)) { + anchor = head; + head = other; + } else if (posBefore != (cmp(head, other) < 0)) { + head = other; + } + } + return new Range(anchor, head); + } else { + return new Range(other || head, head); + } + } + + // Extend the primary selection range, discard the rest. + function extendSelection(doc, head, other, options) { + setSelection(doc, new Selection([extendRange(doc, doc.sel.primary(), head, other)], 0), options); + } + + // Extend all selections (pos is an array of selections with length + // equal the number of selections) + function extendSelections(doc, heads, options) { + for (var out = [], i = 0; i < doc.sel.ranges.length; i++) + out[i] = extendRange(doc, doc.sel.ranges[i], heads[i], null); + var newSel = normalizeSelection(out, doc.sel.primIndex); + setSelection(doc, newSel, options); + } + + // Updates a single range in the selection. + function replaceOneSelection(doc, i, range, options) { + var ranges = doc.sel.ranges.slice(0); + ranges[i] = range; + setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options); + } + + // Reset the selection to a single range. + function setSimpleSelection(doc, anchor, head, options) { + setSelection(doc, simpleSelection(anchor, head), options); + } + + // Give beforeSelectionChange handlers a change to influence a + // selection update. + function filterSelectionChange(doc, sel) { + var obj = { + ranges: sel.ranges, + update: function(ranges) { + this.ranges = []; + for (var i = 0; i < ranges.length; i++) + this.ranges[i] = new Range(clipPos(doc, ranges[i].anchor), + clipPos(doc, ranges[i].head)); + } + }; + signal(doc, "beforeSelectionChange", doc, obj); + if (doc.cm) signal(doc.cm, "beforeSelectionChange", doc.cm, obj); + if (obj.ranges != sel.ranges) return normalizeSelection(obj.ranges, obj.ranges.length - 1); + else return sel; + } + + function setSelectionReplaceHistory(doc, sel, options) { + var done = doc.history.done, last = lst(done); + if (last && last.ranges) { + done[done.length - 1] = sel; + setSelectionNoUndo(doc, sel, options); + } else { + setSelection(doc, sel, options); + } + } + + // Set a new selection. + function setSelection(doc, sel, options) { + setSelectionNoUndo(doc, sel, options); + addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options); + } + + function setSelectionNoUndo(doc, sel, options) { + if (hasHandler(doc, "beforeSelectionChange") || doc.cm && hasHandler(doc.cm, "beforeSelectionChange")) + sel = filterSelectionChange(doc, sel); + + var bias = options && options.bias || + (cmp(sel.primary().head, doc.sel.primary().head) < 0 ? -1 : 1); + setSelectionInner(doc, skipAtomicInSelection(doc, sel, bias, true)); + + if (!(options && options.scroll === false) && doc.cm) + ensureCursorVisible(doc.cm); + } + + function setSelectionInner(doc, sel) { + if (sel.equals(doc.sel)) return; + + doc.sel = sel; + + if (doc.cm) { + doc.cm.curOp.updateInput = doc.cm.curOp.selectionChanged = true; + signalCursorActivity(doc.cm); + } + signalLater(doc, "cursorActivity", doc); + } + + // Verify that the selection does not partially select any atomic + // marked ranges. + function reCheckSelection(doc) { + setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false), sel_dontScroll); + } + + // Return a selection that does not partially select any atomic + // ranges. + function skipAtomicInSelection(doc, sel, bias, mayClear) { + var out; + for (var i = 0; i < sel.ranges.length; i++) { + var range = sel.ranges[i]; + var newAnchor = skipAtomic(doc, range.anchor, bias, mayClear); + var newHead = skipAtomic(doc, range.head, bias, mayClear); + if (out || newAnchor != range.anchor || newHead != range.head) { + if (!out) out = sel.ranges.slice(0, i); + out[i] = new Range(newAnchor, newHead); + } + } + return out ? normalizeSelection(out, sel.primIndex) : sel; + } + + // Ensure a given position is not inside an atomic range. + function skipAtomic(doc, pos, bias, mayClear) { + var flipped = false, curPos = pos; + var dir = bias || 1; + doc.cantEdit = false; + search: for (;;) { + var line = getLine(doc, curPos.line); + if (line.markedSpans) { + for (var i = 0; i < line.markedSpans.length; ++i) { + var sp = line.markedSpans[i], m = sp.marker; + if ((sp.from == null || (m.inclusiveLeft ? sp.from <= curPos.ch : sp.from < curPos.ch)) && + (sp.to == null || (m.inclusiveRight ? sp.to >= curPos.ch : sp.to > curPos.ch))) { + if (mayClear) { + signal(m, "beforeCursorEnter"); + if (m.explicitlyCleared) { + if (!line.markedSpans) break; + else {--i; continue;} + } + } + if (!m.atomic) continue; + var newPos = m.find(dir < 0 ? -1 : 1); + if (cmp(newPos, curPos) == 0) { + newPos.ch += dir; + if (newPos.ch < 0) { + if (newPos.line > doc.first) newPos = clipPos(doc, Pos(newPos.line - 1)); + else newPos = null; + } else if (newPos.ch > line.text.length) { + if (newPos.line < doc.first + doc.size - 1) newPos = Pos(newPos.line + 1, 0); + else newPos = null; + } + if (!newPos) { + if (flipped) { + // Driven in a corner -- no valid cursor position found at all + // -- try again *with* clearing, if we didn't already + if (!mayClear) return skipAtomic(doc, pos, bias, true); + // Otherwise, turn off editing until further notice, and return the start of the doc + doc.cantEdit = true; + return Pos(doc.first, 0); + } + flipped = true; newPos = pos; dir = -dir; + } + } + curPos = newPos; + continue search; + } + } + } + return curPos; + } + } + + // SELECTION DRAWING + + function updateSelection(cm) { + cm.display.input.showSelection(cm.display.input.prepareSelection()); + } + + function prepareSelection(cm, primary) { + var doc = cm.doc, result = {}; + var curFragment = result.cursors = document.createDocumentFragment(); + var selFragment = result.selection = document.createDocumentFragment(); + + for (var i = 0; i < doc.sel.ranges.length; i++) { + if (primary === false && i == doc.sel.primIndex) continue; + var range = doc.sel.ranges[i]; + var collapsed = range.empty(); + if (collapsed || cm.options.showCursorWhenSelecting) + drawSelectionCursor(cm, range, curFragment); + if (!collapsed) + drawSelectionRange(cm, range, selFragment); + } + return result; + } + + // Draws a cursor for the given range + function drawSelectionCursor(cm, range, output) { + var pos = cursorCoords(cm, range.head, "div", null, null, !cm.options.singleCursorHeightPerLine); + + var cursor = output.appendChild(elt("div", "\u00a0", "CodeMirror-cursor")); + cursor.style.left = pos.left + "px"; + cursor.style.top = pos.top + "px"; + cursor.style.height = Math.max(0, pos.bottom - pos.top) * cm.options.cursorHeight + "px"; + + if (pos.other) { + // Secondary cursor, shown when on a 'jump' in bi-directional text + var otherCursor = output.appendChild(elt("div", "\u00a0", "CodeMirror-cursor CodeMirror-secondarycursor")); + otherCursor.style.display = ""; + otherCursor.style.left = pos.other.left + "px"; + otherCursor.style.top = pos.other.top + "px"; + otherCursor.style.height = (pos.other.bottom - pos.other.top) * .85 + "px"; + } + } + + // Draws the given range as a highlighted selection + function drawSelectionRange(cm, range, output) { + var display = cm.display, doc = cm.doc; + var fragment = document.createDocumentFragment(); + var padding = paddingH(cm.display), leftSide = padding.left; + var rightSide = Math.max(display.sizerWidth, displayWidth(cm) - display.sizer.offsetLeft) - padding.right; + + function add(left, top, width, bottom) { + if (top < 0) top = 0; + top = Math.round(top); + bottom = Math.round(bottom); + fragment.appendChild(elt("div", null, "CodeMirror-selected", "position: absolute; left: " + left + + "px; top: " + top + "px; width: " + (width == null ? rightSide - left : width) + + "px; height: " + (bottom - top) + "px")); + } + + function drawForLine(line, fromArg, toArg) { + var lineObj = getLine(doc, line); + var lineLen = lineObj.text.length; + var start, end; + function coords(ch, bias) { + return charCoords(cm, Pos(line, ch), "div", lineObj, bias); + } + + iterateBidiSections(getOrder(lineObj), fromArg || 0, toArg == null ? lineLen : toArg, function(from, to, dir) { + var leftPos = coords(from, "left"), rightPos, left, right; + if (from == to) { + rightPos = leftPos; + left = right = leftPos.left; + } else { + rightPos = coords(to - 1, "right"); + if (dir == "rtl") { var tmp = leftPos; leftPos = rightPos; rightPos = tmp; } + left = leftPos.left; + right = rightPos.right; + } + if (fromArg == null && from == 0) left = leftSide; + if (rightPos.top - leftPos.top > 3) { // Different lines, draw top part + add(left, leftPos.top, null, leftPos.bottom); + left = leftSide; + if (leftPos.bottom < rightPos.top) add(left, leftPos.bottom, null, rightPos.top); + } + if (toArg == null && to == lineLen) right = rightSide; + if (!start || leftPos.top < start.top || leftPos.top == start.top && leftPos.left < start.left) + start = leftPos; + if (!end || rightPos.bottom > end.bottom || rightPos.bottom == end.bottom && rightPos.right > end.right) + end = rightPos; + if (left < leftSide + 1) left = leftSide; + add(left, rightPos.top, right - left, rightPos.bottom); + }); + return {start: start, end: end}; + } + + var sFrom = range.from(), sTo = range.to(); + if (sFrom.line == sTo.line) { + drawForLine(sFrom.line, sFrom.ch, sTo.ch); + } else { + var fromLine = getLine(doc, sFrom.line), toLine = getLine(doc, sTo.line); + var singleVLine = visualLine(fromLine) == visualLine(toLine); + var leftEnd = drawForLine(sFrom.line, sFrom.ch, singleVLine ? fromLine.text.length + 1 : null).end; + var rightStart = drawForLine(sTo.line, singleVLine ? 0 : null, sTo.ch).start; + if (singleVLine) { + if (leftEnd.top < rightStart.top - 2) { + add(leftEnd.right, leftEnd.top, null, leftEnd.bottom); + add(leftSide, rightStart.top, rightStart.left, rightStart.bottom); + } else { + add(leftEnd.right, leftEnd.top, rightStart.left - leftEnd.right, leftEnd.bottom); + } + } + if (leftEnd.bottom < rightStart.top) + add(leftSide, leftEnd.bottom, null, rightStart.top); + } + + output.appendChild(fragment); + } + + // Cursor-blinking + function restartBlink(cm) { + if (!cm.state.focused) return; + var display = cm.display; + clearInterval(display.blinker); + var on = true; + display.cursorDiv.style.visibility = ""; + if (cm.options.cursorBlinkRate > 0) + display.blinker = setInterval(function() { + display.cursorDiv.style.visibility = (on = !on) ? "" : "hidden"; + }, cm.options.cursorBlinkRate); + else if (cm.options.cursorBlinkRate < 0) + display.cursorDiv.style.visibility = "hidden"; + } + + // HIGHLIGHT WORKER + + function startWorker(cm, time) { + if (cm.doc.mode.startState && cm.doc.frontier < cm.display.viewTo) + cm.state.highlight.set(time, bind(highlightWorker, cm)); + } + + function highlightWorker(cm) { + var doc = cm.doc; + if (doc.frontier < doc.first) doc.frontier = doc.first; + if (doc.frontier >= cm.display.viewTo) return; + var end = +new Date + cm.options.workTime; + var state = copyState(doc.mode, getStateBefore(cm, doc.frontier)); + var changedLines = []; + + doc.iter(doc.frontier, Math.min(doc.first + doc.size, cm.display.viewTo + 500), function(line) { + if (doc.frontier >= cm.display.viewFrom) { // Visible + var oldStyles = line.styles; + var highlighted = highlightLine(cm, line, state, true); + line.styles = highlighted.styles; + var oldCls = line.styleClasses, newCls = highlighted.classes; + if (newCls) line.styleClasses = newCls; + else if (oldCls) line.styleClasses = null; + var ischange = !oldStyles || oldStyles.length != line.styles.length || + oldCls != newCls && (!oldCls || !newCls || oldCls.bgClass != newCls.bgClass || oldCls.textClass != newCls.textClass); + for (var i = 0; !ischange && i < oldStyles.length; ++i) ischange = oldStyles[i] != line.styles[i]; + if (ischange) changedLines.push(doc.frontier); + line.stateAfter = copyState(doc.mode, state); + } else { + processLine(cm, line.text, state); + line.stateAfter = doc.frontier % 5 == 0 ? copyState(doc.mode, state) : null; + } + ++doc.frontier; + if (+new Date > end) { + startWorker(cm, cm.options.workDelay); + return true; + } + }); + if (changedLines.length) runInOp(cm, function() { + for (var i = 0; i < changedLines.length; i++) + regLineChange(cm, changedLines[i], "text"); + }); + } + + // Finds the line to start with when starting a parse. Tries to + // find a line with a stateAfter, so that it can start with a + // valid state. If that fails, it returns the line with the + // smallest indentation, which tends to need the least context to + // parse correctly. + function findStartLine(cm, n, precise) { + var minindent, minline, doc = cm.doc; + var lim = precise ? -1 : n - (cm.doc.mode.innerMode ? 1000 : 100); + for (var search = n; search > lim; --search) { + if (search <= doc.first) return doc.first; + var line = getLine(doc, search - 1); + if (line.stateAfter && (!precise || search <= doc.frontier)) return search; + var indented = countColumn(line.text, null, cm.options.tabSize); + if (minline == null || minindent > indented) { + minline = search - 1; + minindent = indented; + } + } + return minline; + } + + function getStateBefore(cm, n, precise) { + var doc = cm.doc, display = cm.display; + if (!doc.mode.startState) return true; + var pos = findStartLine(cm, n, precise), state = pos > doc.first && getLine(doc, pos-1).stateAfter; + if (!state) state = startState(doc.mode); + else state = copyState(doc.mode, state); + doc.iter(pos, n, function(line) { + processLine(cm, line.text, state); + var save = pos == n - 1 || pos % 5 == 0 || pos >= display.viewFrom && pos < display.viewTo; + line.stateAfter = save ? copyState(doc.mode, state) : null; + ++pos; + }); + if (precise) doc.frontier = pos; + return state; + } + + // POSITION MEASUREMENT + + function paddingTop(display) {return display.lineSpace.offsetTop;} + function paddingVert(display) {return display.mover.offsetHeight - display.lineSpace.offsetHeight;} + function paddingH(display) { + if (display.cachedPaddingH) return display.cachedPaddingH; + var e = removeChildrenAndAdd(display.measure, elt("pre", "x")); + var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle; + var data = {left: parseInt(style.paddingLeft), right: parseInt(style.paddingRight)}; + if (!isNaN(data.left) && !isNaN(data.right)) display.cachedPaddingH = data; + return data; + } + + function scrollGap(cm) { return scrollerGap - cm.display.nativeBarWidth; } + function displayWidth(cm) { + return cm.display.scroller.clientWidth - scrollGap(cm) - cm.display.barWidth; + } + function displayHeight(cm) { + return cm.display.scroller.clientHeight - scrollGap(cm) - cm.display.barHeight; + } + + // Ensure the lineView.wrapping.heights array is populated. This is + // an array of bottom offsets for the lines that make up a drawn + // line. When lineWrapping is on, there might be more than one + // height. + function ensureLineHeights(cm, lineView, rect) { + var wrapping = cm.options.lineWrapping; + var curWidth = wrapping && displayWidth(cm); + if (!lineView.measure.heights || wrapping && lineView.measure.width != curWidth) { + var heights = lineView.measure.heights = []; + if (wrapping) { + lineView.measure.width = curWidth; + var rects = lineView.text.firstChild.getClientRects(); + for (var i = 0; i < rects.length - 1; i++) { + var cur = rects[i], next = rects[i + 1]; + if (Math.abs(cur.bottom - next.bottom) > 2) + heights.push((cur.bottom + next.top) / 2 - rect.top); + } + } + heights.push(rect.bottom - rect.top); + } + } + + // Find a line map (mapping character offsets to text nodes) and a + // measurement cache for the given line number. (A line view might + // contain multiple lines when collapsed ranges are present.) + function mapFromLineView(lineView, line, lineN) { + if (lineView.line == line) + return {map: lineView.measure.map, cache: lineView.measure.cache}; + for (var i = 0; i < lineView.rest.length; i++) + if (lineView.rest[i] == line) + return {map: lineView.measure.maps[i], cache: lineView.measure.caches[i]}; + for (var i = 0; i < lineView.rest.length; i++) + if (lineNo(lineView.rest[i]) > lineN) + return {map: lineView.measure.maps[i], cache: lineView.measure.caches[i], before: true}; + } + + // Render a line into the hidden node display.externalMeasured. Used + // when measurement is needed for a line that's not in the viewport. + function updateExternalMeasurement(cm, line) { + line = visualLine(line); + var lineN = lineNo(line); + var view = cm.display.externalMeasured = new LineView(cm.doc, line, lineN); + view.lineN = lineN; + var built = view.built = buildLineContent(cm, view); + view.text = built.pre; + removeChildrenAndAdd(cm.display.lineMeasure, built.pre); + return view; + } + + // Get a {top, bottom, left, right} box (in line-local coordinates) + // for a given character. + function measureChar(cm, line, ch, bias) { + return measureCharPrepared(cm, prepareMeasureForLine(cm, line), ch, bias); + } + + // Find a line view that corresponds to the given line number. + function findViewForLine(cm, lineN) { + if (lineN >= cm.display.viewFrom && lineN < cm.display.viewTo) + return cm.display.view[findViewIndex(cm, lineN)]; + var ext = cm.display.externalMeasured; + if (ext && lineN >= ext.lineN && lineN < ext.lineN + ext.size) + return ext; + } + + // Measurement can be split in two steps, the set-up work that + // applies to the whole line, and the measurement of the actual + // character. Functions like coordsChar, that need to do a lot of + // measurements in a row, can thus ensure that the set-up work is + // only done once. + function prepareMeasureForLine(cm, line) { + var lineN = lineNo(line); + var view = findViewForLine(cm, lineN); + if (view && !view.text) + view = null; + else if (view && view.changes) + updateLineForChanges(cm, view, lineN, getDimensions(cm)); + if (!view) + view = updateExternalMeasurement(cm, line); + + var info = mapFromLineView(view, line, lineN); + return { + line: line, view: view, rect: null, + map: info.map, cache: info.cache, before: info.before, + hasHeights: false + }; + } + + // Given a prepared measurement object, measures the position of an + // actual character (or fetches it from the cache). + function measureCharPrepared(cm, prepared, ch, bias, varHeight) { + if (prepared.before) ch = -1; + var key = ch + (bias || ""), found; + if (prepared.cache.hasOwnProperty(key)) { + found = prepared.cache[key]; + } else { + if (!prepared.rect) + prepared.rect = prepared.view.text.getBoundingClientRect(); + if (!prepared.hasHeights) { + ensureLineHeights(cm, prepared.view, prepared.rect); + prepared.hasHeights = true; + } + found = measureCharInner(cm, prepared, ch, bias); + if (!found.bogus) prepared.cache[key] = found; + } + return {left: found.left, right: found.right, + top: varHeight ? found.rtop : found.top, + bottom: varHeight ? found.rbottom : found.bottom}; + } + + var nullRect = {left: 0, right: 0, top: 0, bottom: 0}; + + function nodeAndOffsetInLineMap(map, ch, bias) { + var node, start, end, collapse; + // First, search the line map for the text node corresponding to, + // or closest to, the target character. + for (var i = 0; i < map.length; i += 3) { + var mStart = map[i], mEnd = map[i + 1]; + if (ch < mStart) { + start = 0; end = 1; + collapse = "left"; + } else if (ch < mEnd) { + start = ch - mStart; + end = start + 1; + } else if (i == map.length - 3 || ch == mEnd && map[i + 3] > ch) { + end = mEnd - mStart; + start = end - 1; + if (ch >= mEnd) collapse = "right"; + } + if (start != null) { + node = map[i + 2]; + if (mStart == mEnd && bias == (node.insertLeft ? "left" : "right")) + collapse = bias; + if (bias == "left" && start == 0) + while (i && map[i - 2] == map[i - 3] && map[i - 1].insertLeft) { + node = map[(i -= 3) + 2]; + collapse = "left"; + } + if (bias == "right" && start == mEnd - mStart) + while (i < map.length - 3 && map[i + 3] == map[i + 4] && !map[i + 5].insertLeft) { + node = map[(i += 3) + 2]; + collapse = "right"; + } + break; + } + } + return {node: node, start: start, end: end, collapse: collapse, coverStart: mStart, coverEnd: mEnd}; + } + + function measureCharInner(cm, prepared, ch, bias) { + var place = nodeAndOffsetInLineMap(prepared.map, ch, bias); + var node = place.node, start = place.start, end = place.end, collapse = place.collapse; + + var rect; + if (node.nodeType == 3) { // If it is a text node, use a range to retrieve the coordinates. + for (var i = 0; i < 4; i++) { // Retry a maximum of 4 times when nonsense rectangles are returned + while (start && isExtendingChar(prepared.line.text.charAt(place.coverStart + start))) --start; + while (place.coverStart + end < place.coverEnd && isExtendingChar(prepared.line.text.charAt(place.coverStart + end))) ++end; + if (ie && ie_version < 9 && start == 0 && end == place.coverEnd - place.coverStart) { + rect = node.parentNode.getBoundingClientRect(); + } else if (ie && cm.options.lineWrapping) { + var rects = range(node, start, end).getClientRects(); + if (rects.length) + rect = rects[bias == "right" ? rects.length - 1 : 0]; + else + rect = nullRect; + } else { + rect = range(node, start, end).getBoundingClientRect() || nullRect; + } + if (rect.left || rect.right || start == 0) break; + end = start; + start = start - 1; + collapse = "right"; + } + if (ie && ie_version < 11) rect = maybeUpdateRectForZooming(cm.display.measure, rect); + } else { // If it is a widget, simply get the box for the whole widget. + if (start > 0) collapse = bias = "right"; + var rects; + if (cm.options.lineWrapping && (rects = node.getClientRects()).length > 1) + rect = rects[bias == "right" ? rects.length - 1 : 0]; + else + rect = node.getBoundingClientRect(); + } + if (ie && ie_version < 9 && !start && (!rect || !rect.left && !rect.right)) { + var rSpan = node.parentNode.getClientRects()[0]; + if (rSpan) + rect = {left: rSpan.left, right: rSpan.left + charWidth(cm.display), top: rSpan.top, bottom: rSpan.bottom}; + else + rect = nullRect; + } + + var rtop = rect.top - prepared.rect.top, rbot = rect.bottom - prepared.rect.top; + var mid = (rtop + rbot) / 2; + var heights = prepared.view.measure.heights; + for (var i = 0; i < heights.length - 1; i++) + if (mid < heights[i]) break; + var top = i ? heights[i - 1] : 0, bot = heights[i]; + var result = {left: (collapse == "right" ? rect.right : rect.left) - prepared.rect.left, + right: (collapse == "left" ? rect.left : rect.right) - prepared.rect.left, + top: top, bottom: bot}; + if (!rect.left && !rect.right) result.bogus = true; + if (!cm.options.singleCursorHeightPerLine) { result.rtop = rtop; result.rbottom = rbot; } + + return result; + } + + // Work around problem with bounding client rects on ranges being + // returned incorrectly when zoomed on IE10 and below. + function maybeUpdateRectForZooming(measure, rect) { + if (!window.screen || screen.logicalXDPI == null || + screen.logicalXDPI == screen.deviceXDPI || !hasBadZoomedRects(measure)) + return rect; + var scaleX = screen.logicalXDPI / screen.deviceXDPI; + var scaleY = screen.logicalYDPI / screen.deviceYDPI; + return {left: rect.left * scaleX, right: rect.right * scaleX, + top: rect.top * scaleY, bottom: rect.bottom * scaleY}; + } + + function clearLineMeasurementCacheFor(lineView) { + if (lineView.measure) { + lineView.measure.cache = {}; + lineView.measure.heights = null; + if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++) + lineView.measure.caches[i] = {}; + } + } + + function clearLineMeasurementCache(cm) { + cm.display.externalMeasure = null; + removeChildren(cm.display.lineMeasure); + for (var i = 0; i < cm.display.view.length; i++) + clearLineMeasurementCacheFor(cm.display.view[i]); + } + + function clearCaches(cm) { + clearLineMeasurementCache(cm); + cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null; + if (!cm.options.lineWrapping) cm.display.maxLineChanged = true; + cm.display.lineNumChars = null; + } + + function pageScrollX() { return window.pageXOffset || (document.documentElement || document.body).scrollLeft; } + function pageScrollY() { return window.pageYOffset || (document.documentElement || document.body).scrollTop; } + + // Converts a {top, bottom, left, right} box from line-local + // coordinates into another coordinate system. Context may be one of + // "line", "div" (display.lineDiv), "local"/null (editor), "window", + // or "page". + function intoCoordSystem(cm, lineObj, rect, context) { + if (lineObj.widgets) for (var i = 0; i < lineObj.widgets.length; ++i) if (lineObj.widgets[i].above) { + var size = widgetHeight(lineObj.widgets[i]); + rect.top += size; rect.bottom += size; + } + if (context == "line") return rect; + if (!context) context = "local"; + var yOff = heightAtLine(lineObj); + if (context == "local") yOff += paddingTop(cm.display); + else yOff -= cm.display.viewOffset; + if (context == "page" || context == "window") { + var lOff = cm.display.lineSpace.getBoundingClientRect(); + yOff += lOff.top + (context == "window" ? 0 : pageScrollY()); + var xOff = lOff.left + (context == "window" ? 0 : pageScrollX()); + rect.left += xOff; rect.right += xOff; + } + rect.top += yOff; rect.bottom += yOff; + return rect; + } + + // Coverts a box from "div" coords to another coordinate system. + // Context may be "window", "page", "div", or "local"/null. + function fromCoordSystem(cm, coords, context) { + if (context == "div") return coords; + var left = coords.left, top = coords.top; + // First move into "page" coordinate system + if (context == "page") { + left -= pageScrollX(); + top -= pageScrollY(); + } else if (context == "local" || !context) { + var localBox = cm.display.sizer.getBoundingClientRect(); + left += localBox.left; + top += localBox.top; + } + + var lineSpaceBox = cm.display.lineSpace.getBoundingClientRect(); + return {left: left - lineSpaceBox.left, top: top - lineSpaceBox.top}; + } + + function charCoords(cm, pos, context, lineObj, bias) { + if (!lineObj) lineObj = getLine(cm.doc, pos.line); + return intoCoordSystem(cm, lineObj, measureChar(cm, lineObj, pos.ch, bias), context); + } + + // Returns a box for a given cursor position, which may have an + // 'other' property containing the position of the secondary cursor + // on a bidi boundary. + function cursorCoords(cm, pos, context, lineObj, preparedMeasure, varHeight) { + lineObj = lineObj || getLine(cm.doc, pos.line); + if (!preparedMeasure) preparedMeasure = prepareMeasureForLine(cm, lineObj); + function get(ch, right) { + var m = measureCharPrepared(cm, preparedMeasure, ch, right ? "right" : "left", varHeight); + if (right) m.left = m.right; else m.right = m.left; + return intoCoordSystem(cm, lineObj, m, context); + } + function getBidi(ch, partPos) { + var part = order[partPos], right = part.level % 2; + if (ch == bidiLeft(part) && partPos && part.level < order[partPos - 1].level) { + part = order[--partPos]; + ch = bidiRight(part) - (part.level % 2 ? 0 : 1); + right = true; + } else if (ch == bidiRight(part) && partPos < order.length - 1 && part.level < order[partPos + 1].level) { + part = order[++partPos]; + ch = bidiLeft(part) - part.level % 2; + right = false; + } + if (right && ch == part.to && ch > part.from) return get(ch - 1); + return get(ch, right); + } + var order = getOrder(lineObj), ch = pos.ch; + if (!order) return get(ch); + var partPos = getBidiPartAt(order, ch); + var val = getBidi(ch, partPos); + if (bidiOther != null) val.other = getBidi(ch, bidiOther); + return val; + } + + // Used to cheaply estimate the coordinates for a position. Used for + // intermediate scroll updates. + function estimateCoords(cm, pos) { + var left = 0, pos = clipPos(cm.doc, pos); + if (!cm.options.lineWrapping) left = charWidth(cm.display) * pos.ch; + var lineObj = getLine(cm.doc, pos.line); + var top = heightAtLine(lineObj) + paddingTop(cm.display); + return {left: left, right: left, top: top, bottom: top + lineObj.height}; + } + + // Positions returned by coordsChar contain some extra information. + // xRel is the relative x position of the input coordinates compared + // to the found position (so xRel > 0 means the coordinates are to + // the right of the character position, for example). When outside + // is true, that means the coordinates lie outside the line's + // vertical range. + function PosWithInfo(line, ch, outside, xRel) { + var pos = Pos(line, ch); + pos.xRel = xRel; + if (outside) pos.outside = true; + return pos; + } + + // Compute the character position closest to the given coordinates. + // Input must be lineSpace-local ("div" coordinate system). + function coordsChar(cm, x, y) { + var doc = cm.doc; + y += cm.display.viewOffset; + if (y < 0) return PosWithInfo(doc.first, 0, true, -1); + var lineN = lineAtHeight(doc, y), last = doc.first + doc.size - 1; + if (lineN > last) + return PosWithInfo(doc.first + doc.size - 1, getLine(doc, last).text.length, true, 1); + if (x < 0) x = 0; + + var lineObj = getLine(doc, lineN); + for (;;) { + var found = coordsCharInner(cm, lineObj, lineN, x, y); + var merged = collapsedSpanAtEnd(lineObj); + var mergedPos = merged && merged.find(0, true); + if (merged && (found.ch > mergedPos.from.ch || found.ch == mergedPos.from.ch && found.xRel > 0)) + lineN = lineNo(lineObj = mergedPos.to.line); + else + return found; + } + } + + function coordsCharInner(cm, lineObj, lineNo, x, y) { + var innerOff = y - heightAtLine(lineObj); + var wrongLine = false, adjust = 2 * cm.display.wrapper.clientWidth; + var preparedMeasure = prepareMeasureForLine(cm, lineObj); + + function getX(ch) { + var sp = cursorCoords(cm, Pos(lineNo, ch), "line", lineObj, preparedMeasure); + wrongLine = true; + if (innerOff > sp.bottom) return sp.left - adjust; + else if (innerOff < sp.top) return sp.left + adjust; + else wrongLine = false; + return sp.left; + } + + var bidi = getOrder(lineObj), dist = lineObj.text.length; + var from = lineLeft(lineObj), to = lineRight(lineObj); + var fromX = getX(from), fromOutside = wrongLine, toX = getX(to), toOutside = wrongLine; + + if (x > toX) return PosWithInfo(lineNo, to, toOutside, 1); + // Do a binary search between these bounds. + for (;;) { + if (bidi ? to == from || to == moveVisually(lineObj, from, 1) : to - from <= 1) { + var ch = x < fromX || x - fromX <= toX - x ? from : to; + var xDiff = x - (ch == from ? fromX : toX); + while (isExtendingChar(lineObj.text.charAt(ch))) ++ch; + var pos = PosWithInfo(lineNo, ch, ch == from ? fromOutside : toOutside, + xDiff < -1 ? -1 : xDiff > 1 ? 1 : 0); + return pos; + } + var step = Math.ceil(dist / 2), middle = from + step; + if (bidi) { + middle = from; + for (var i = 0; i < step; ++i) middle = moveVisually(lineObj, middle, 1); + } + var middleX = getX(middle); + if (middleX > x) {to = middle; toX = middleX; if (toOutside = wrongLine) toX += 1000; dist = step;} + else {from = middle; fromX = middleX; fromOutside = wrongLine; dist -= step;} + } + } + + var measureText; + // Compute the default text height. + function textHeight(display) { + if (display.cachedTextHeight != null) return display.cachedTextHeight; + if (measureText == null) { + measureText = elt("pre"); + // Measure a bunch of lines, for browsers that compute + // fractional heights. + for (var i = 0; i < 49; ++i) { + measureText.appendChild(document.createTextNode("x")); + measureText.appendChild(elt("br")); + } + measureText.appendChild(document.createTextNode("x")); + } + removeChildrenAndAdd(display.measure, measureText); + var height = measureText.offsetHeight / 50; + if (height > 3) display.cachedTextHeight = height; + removeChildren(display.measure); + return height || 1; + } + + // Compute the default character width. + function charWidth(display) { + if (display.cachedCharWidth != null) return display.cachedCharWidth; + var anchor = elt("span", "xxxxxxxxxx"); + var pre = elt("pre", [anchor]); + removeChildrenAndAdd(display.measure, pre); + var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10; + if (width > 2) display.cachedCharWidth = width; + return width || 10; + } + + // OPERATIONS + + // Operations are used to wrap a series of changes to the editor + // state in such a way that each change won't have to update the + // cursor and display (which would be awkward, slow, and + // error-prone). Instead, display updates are batched and then all + // combined and executed at once. + + var operationGroup = null; + + var nextOpId = 0; + // Start a new operation. + function startOperation(cm) { + cm.curOp = { + cm: cm, + viewChanged: false, // Flag that indicates that lines might need to be redrawn + startHeight: cm.doc.height, // Used to detect need to update scrollbar + forceUpdate: false, // Used to force a redraw + updateInput: null, // Whether to reset the input textarea + typing: false, // Whether this reset should be careful to leave existing text (for compositing) + changeObjs: null, // Accumulated changes, for firing change events + cursorActivityHandlers: null, // Set of handlers to fire cursorActivity on + cursorActivityCalled: 0, // Tracks which cursorActivity handlers have been called already + selectionChanged: false, // Whether the selection needs to be redrawn + updateMaxLine: false, // Set when the widest line needs to be determined anew + scrollLeft: null, scrollTop: null, // Intermediate scroll position, not pushed to DOM yet + scrollToPos: null, // Used to scroll to a specific position + focus: false, + id: ++nextOpId // Unique ID + }; + if (operationGroup) { + operationGroup.ops.push(cm.curOp); + } else { + cm.curOp.ownsGroup = operationGroup = { + ops: [cm.curOp], + delayedCallbacks: [] + }; + } + } + + function fireCallbacksForOps(group) { + // Calls delayed callbacks and cursorActivity handlers until no + // new ones appear + var callbacks = group.delayedCallbacks, i = 0; + do { + for (; i < callbacks.length; i++) + callbacks[i](); + for (var j = 0; j < group.ops.length; j++) { + var op = group.ops[j]; + if (op.cursorActivityHandlers) + while (op.cursorActivityCalled < op.cursorActivityHandlers.length) + op.cursorActivityHandlers[op.cursorActivityCalled++](op.cm); + } + } while (i < callbacks.length); + } + + // Finish an operation, updating the display and signalling delayed events + function endOperation(cm) { + var op = cm.curOp, group = op.ownsGroup; + if (!group) return; + + try { fireCallbacksForOps(group); } + finally { + operationGroup = null; + for (var i = 0; i < group.ops.length; i++) + group.ops[i].cm.curOp = null; + endOperations(group); + } + } + + // The DOM updates done when an operation finishes are batched so + // that the minimum number of relayouts are required. + function endOperations(group) { + var ops = group.ops; + for (var i = 0; i < ops.length; i++) // Read DOM + endOperation_R1(ops[i]); + for (var i = 0; i < ops.length; i++) // Write DOM (maybe) + endOperation_W1(ops[i]); + for (var i = 0; i < ops.length; i++) // Read DOM + endOperation_R2(ops[i]); + for (var i = 0; i < ops.length; i++) // Write DOM (maybe) + endOperation_W2(ops[i]); + for (var i = 0; i < ops.length; i++) // Read DOM + endOperation_finish(ops[i]); + } + + function endOperation_R1(op) { + var cm = op.cm, display = cm.display; + maybeClipScrollbars(cm); + if (op.updateMaxLine) findMaxLine(cm); + + op.mustUpdate = op.viewChanged || op.forceUpdate || op.scrollTop != null || + op.scrollToPos && (op.scrollToPos.from.line < display.viewFrom || + op.scrollToPos.to.line >= display.viewTo) || + display.maxLineChanged && cm.options.lineWrapping; + op.update = op.mustUpdate && + new DisplayUpdate(cm, op.mustUpdate && {top: op.scrollTop, ensure: op.scrollToPos}, op.forceUpdate); + } + + function endOperation_W1(op) { + op.updatedDisplay = op.mustUpdate && updateDisplayIfNeeded(op.cm, op.update); + } + + function endOperation_R2(op) { + var cm = op.cm, display = cm.display; + if (op.updatedDisplay) updateHeightsInViewport(cm); + + op.barMeasure = measureForScrollbars(cm); + + // If the max line changed since it was last measured, measure it, + // and ensure the document's width matches it. + // updateDisplay_W2 will use these properties to do the actual resizing + if (display.maxLineChanged && !cm.options.lineWrapping) { + op.adjustWidthTo = measureChar(cm, display.maxLine, display.maxLine.text.length).left + 3; + cm.display.sizerWidth = op.adjustWidthTo; + op.barMeasure.scrollWidth = + Math.max(display.scroller.clientWidth, display.sizer.offsetLeft + op.adjustWidthTo + scrollGap(cm) + cm.display.barWidth); + op.maxScrollLeft = Math.max(0, display.sizer.offsetLeft + op.adjustWidthTo - displayWidth(cm)); + } + + if (op.updatedDisplay || op.selectionChanged) + op.preparedSelection = display.input.prepareSelection(); + } + + function endOperation_W2(op) { + var cm = op.cm; + + if (op.adjustWidthTo != null) { + cm.display.sizer.style.minWidth = op.adjustWidthTo + "px"; + if (op.maxScrollLeft < cm.doc.scrollLeft) + setScrollLeft(cm, Math.min(cm.display.scroller.scrollLeft, op.maxScrollLeft), true); + cm.display.maxLineChanged = false; + } + + if (op.preparedSelection) + cm.display.input.showSelection(op.preparedSelection); + if (op.updatedDisplay) + setDocumentHeight(cm, op.barMeasure); + if (op.updatedDisplay || op.startHeight != cm.doc.height) + updateScrollbars(cm, op.barMeasure); + + if (op.selectionChanged) restartBlink(cm); + + if (cm.state.focused && op.updateInput) + cm.display.input.reset(op.typing); + if (op.focus && op.focus == activeElt()) ensureFocus(op.cm); + } + + function endOperation_finish(op) { + var cm = op.cm, display = cm.display, doc = cm.doc; + + if (op.updatedDisplay) postUpdateDisplay(cm, op.update); + + // Abort mouse wheel delta measurement, when scrolling explicitly + if (display.wheelStartX != null && (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos)) + display.wheelStartX = display.wheelStartY = null; + + // Propagate the scroll position to the actual DOM scroller + if (op.scrollTop != null && (display.scroller.scrollTop != op.scrollTop || op.forceScroll)) { + doc.scrollTop = Math.max(0, Math.min(display.scroller.scrollHeight - display.scroller.clientHeight, op.scrollTop)); + display.scrollbars.setScrollTop(doc.scrollTop); + display.scroller.scrollTop = doc.scrollTop; + } + if (op.scrollLeft != null && (display.scroller.scrollLeft != op.scrollLeft || op.forceScroll)) { + doc.scrollLeft = Math.max(0, Math.min(display.scroller.scrollWidth - displayWidth(cm), op.scrollLeft)); + display.scrollbars.setScrollLeft(doc.scrollLeft); + display.scroller.scrollLeft = doc.scrollLeft; + alignHorizontally(cm); + } + // If we need to scroll a specific position into view, do so. + if (op.scrollToPos) { + var coords = scrollPosIntoView(cm, clipPos(doc, op.scrollToPos.from), + clipPos(doc, op.scrollToPos.to), op.scrollToPos.margin); + if (op.scrollToPos.isCursor && cm.state.focused) maybeScrollWindow(cm, coords); + } + + // Fire events for markers that are hidden/unidden by editing or + // undoing + var hidden = op.maybeHiddenMarkers, unhidden = op.maybeUnhiddenMarkers; + if (hidden) for (var i = 0; i < hidden.length; ++i) + if (!hidden[i].lines.length) signal(hidden[i], "hide"); + if (unhidden) for (var i = 0; i < unhidden.length; ++i) + if (unhidden[i].lines.length) signal(unhidden[i], "unhide"); + + if (display.wrapper.offsetHeight) + doc.scrollTop = cm.display.scroller.scrollTop; + + // Fire change events, and delayed event handlers + if (op.changeObjs) + signal(cm, "changes", cm, op.changeObjs); + if (op.update) + op.update.finish(); + } + + // Run the given function in an operation + function runInOp(cm, f) { + if (cm.curOp) return f(); + startOperation(cm); + try { return f(); } + finally { endOperation(cm); } + } + // Wraps a function in an operation. Returns the wrapped function. + function operation(cm, f) { + return function() { + if (cm.curOp) return f.apply(cm, arguments); + startOperation(cm); + try { return f.apply(cm, arguments); } + finally { endOperation(cm); } + }; + } + // Used to add methods to editor and doc instances, wrapping them in + // operations. + function methodOp(f) { + return function() { + if (this.curOp) return f.apply(this, arguments); + startOperation(this); + try { return f.apply(this, arguments); } + finally { endOperation(this); } + }; + } + function docMethodOp(f) { + return function() { + var cm = this.cm; + if (!cm || cm.curOp) return f.apply(this, arguments); + startOperation(cm); + try { return f.apply(this, arguments); } + finally { endOperation(cm); } + }; + } + + // VIEW TRACKING + + // These objects are used to represent the visible (currently drawn) + // part of the document. A LineView may correspond to multiple + // logical lines, if those are connected by collapsed ranges. + function LineView(doc, line, lineN) { + // The starting line + this.line = line; + // Continuing lines, if any + this.rest = visualLineContinued(line); + // Number of logical lines in this visual line + this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1; + this.node = this.text = null; + this.hidden = lineIsHidden(doc, line); + } + + // Create a range of LineView objects for the given lines. + function buildViewArray(cm, from, to) { + var array = [], nextPos; + for (var pos = from; pos < to; pos = nextPos) { + var view = new LineView(cm.doc, getLine(cm.doc, pos), pos); + nextPos = pos + view.size; + array.push(view); + } + return array; + } + + // Updates the display.view data structure for a given change to the + // document. From and to are in pre-change coordinates. Lendiff is + // the amount of lines added or subtracted by the change. This is + // used for changes that span multiple lines, or change the way + // lines are divided into visual lines. regLineChange (below) + // registers single-line changes. + function regChange(cm, from, to, lendiff) { + if (from == null) from = cm.doc.first; + if (to == null) to = cm.doc.first + cm.doc.size; + if (!lendiff) lendiff = 0; + + var display = cm.display; + if (lendiff && to < display.viewTo && + (display.updateLineNumbers == null || display.updateLineNumbers > from)) + display.updateLineNumbers = from; + + cm.curOp.viewChanged = true; + + if (from >= display.viewTo) { // Change after + if (sawCollapsedSpans && visualLineNo(cm.doc, from) < display.viewTo) + resetView(cm); + } else if (to <= display.viewFrom) { // Change before + if (sawCollapsedSpans && visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom) { + resetView(cm); + } else { + display.viewFrom += lendiff; + display.viewTo += lendiff; + } + } else if (from <= display.viewFrom && to >= display.viewTo) { // Full overlap + resetView(cm); + } else if (from <= display.viewFrom) { // Top overlap + var cut = viewCuttingPoint(cm, to, to + lendiff, 1); + if (cut) { + display.view = display.view.slice(cut.index); + display.viewFrom = cut.lineN; + display.viewTo += lendiff; + } else { + resetView(cm); + } + } else if (to >= display.viewTo) { // Bottom overlap + var cut = viewCuttingPoint(cm, from, from, -1); + if (cut) { + display.view = display.view.slice(0, cut.index); + display.viewTo = cut.lineN; + } else { + resetView(cm); + } + } else { // Gap in the middle + var cutTop = viewCuttingPoint(cm, from, from, -1); + var cutBot = viewCuttingPoint(cm, to, to + lendiff, 1); + if (cutTop && cutBot) { + display.view = display.view.slice(0, cutTop.index) + .concat(buildViewArray(cm, cutTop.lineN, cutBot.lineN)) + .concat(display.view.slice(cutBot.index)); + display.viewTo += lendiff; + } else { + resetView(cm); + } + } + + var ext = display.externalMeasured; + if (ext) { + if (to < ext.lineN) + ext.lineN += lendiff; + else if (from < ext.lineN + ext.size) + display.externalMeasured = null; + } + } + + // Register a change to a single line. Type must be one of "text", + // "gutter", "class", "widget" + function regLineChange(cm, line, type) { + cm.curOp.viewChanged = true; + var display = cm.display, ext = cm.display.externalMeasured; + if (ext && line >= ext.lineN && line < ext.lineN + ext.size) + display.externalMeasured = null; + + if (line < display.viewFrom || line >= display.viewTo) return; + var lineView = display.view[findViewIndex(cm, line)]; + if (lineView.node == null) return; + var arr = lineView.changes || (lineView.changes = []); + if (indexOf(arr, type) == -1) arr.push(type); + } + + // Clear the view. + function resetView(cm) { + cm.display.viewFrom = cm.display.viewTo = cm.doc.first; + cm.display.view = []; + cm.display.viewOffset = 0; + } + + // Find the view element corresponding to a given line. Return null + // when the line isn't visible. + function findViewIndex(cm, n) { + if (n >= cm.display.viewTo) return null; + n -= cm.display.viewFrom; + if (n < 0) return null; + var view = cm.display.view; + for (var i = 0; i < view.length; i++) { + n -= view[i].size; + if (n < 0) return i; + } + } + + function viewCuttingPoint(cm, oldN, newN, dir) { + var index = findViewIndex(cm, oldN), diff, view = cm.display.view; + if (!sawCollapsedSpans || newN == cm.doc.first + cm.doc.size) + return {index: index, lineN: newN}; + for (var i = 0, n = cm.display.viewFrom; i < index; i++) + n += view[i].size; + if (n != oldN) { + if (dir > 0) { + if (index == view.length - 1) return null; + diff = (n + view[index].size) - oldN; + index++; + } else { + diff = n - oldN; + } + oldN += diff; newN += diff; + } + while (visualLineNo(cm.doc, newN) != newN) { + if (index == (dir < 0 ? 0 : view.length - 1)) return null; + newN += dir * view[index - (dir < 0 ? 1 : 0)].size; + index += dir; + } + return {index: index, lineN: newN}; + } + + // Force the view to cover a given range, adding empty view element + // or clipping off existing ones as needed. + function adjustView(cm, from, to) { + var display = cm.display, view = display.view; + if (view.length == 0 || from >= display.viewTo || to <= display.viewFrom) { + display.view = buildViewArray(cm, from, to); + display.viewFrom = from; + } else { + if (display.viewFrom > from) + display.view = buildViewArray(cm, from, display.viewFrom).concat(display.view); + else if (display.viewFrom < from) + display.view = display.view.slice(findViewIndex(cm, from)); + display.viewFrom = from; + if (display.viewTo < to) + display.view = display.view.concat(buildViewArray(cm, display.viewTo, to)); + else if (display.viewTo > to) + display.view = display.view.slice(0, findViewIndex(cm, to)); + } + display.viewTo = to; + } + + // Count the number of lines in the view whose DOM representation is + // out of date (or nonexistent). + function countDirtyView(cm) { + var view = cm.display.view, dirty = 0; + for (var i = 0; i < view.length; i++) { + var lineView = view[i]; + if (!lineView.hidden && (!lineView.node || lineView.changes)) ++dirty; + } + return dirty; + } + + // EVENT HANDLERS + + // Attach the necessary event handlers when initializing the editor + function registerEventHandlers(cm) { + var d = cm.display; + on(d.scroller, "mousedown", operation(cm, onMouseDown)); + // Older IE's will not fire a second mousedown for a double click + if (ie && ie_version < 11) + on(d.scroller, "dblclick", operation(cm, function(e) { + if (signalDOMEvent(cm, e)) return; + var pos = posFromMouse(cm, e); + if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) return; + e_preventDefault(e); + var word = cm.findWordAt(pos); + extendSelection(cm.doc, word.anchor, word.head); + })); + else + on(d.scroller, "dblclick", function(e) { signalDOMEvent(cm, e) || e_preventDefault(e); }); + // Some browsers fire contextmenu *after* opening the menu, at + // which point we can't mess with it anymore. Context menu is + // handled in onMouseDown for these browsers. + if (!captureRightClick) on(d.scroller, "contextmenu", function(e) {onContextMenu(cm, e);}); + + // Used to suppress mouse event handling when a touch happens + var touchFinished, prevTouch = {end: 0}; + function finishTouch() { + if (d.activeTouch) { + touchFinished = setTimeout(function() {d.activeTouch = null;}, 1000); + prevTouch = d.activeTouch; + prevTouch.end = +new Date; + } + }; + function isMouseLikeTouchEvent(e) { + if (e.touches.length != 1) return false; + var touch = e.touches[0]; + return touch.radiusX <= 1 && touch.radiusY <= 1; + } + function farAway(touch, other) { + if (other.left == null) return true; + var dx = other.left - touch.left, dy = other.top - touch.top; + return dx * dx + dy * dy > 20 * 20; + } + on(d.scroller, "touchstart", function(e) { + if (!isMouseLikeTouchEvent(e)) { + clearTimeout(touchFinished); + var now = +new Date; + d.activeTouch = {start: now, moved: false, + prev: now - prevTouch.end <= 300 ? prevTouch : null}; + if (e.touches.length == 1) { + d.activeTouch.left = e.touches[0].pageX; + d.activeTouch.top = e.touches[0].pageY; + } + } + }); + on(d.scroller, "touchmove", function() { + if (d.activeTouch) d.activeTouch.moved = true; + }); + on(d.scroller, "touchend", function(e) { + var touch = d.activeTouch; + if (touch && !eventInWidget(d, e) && touch.left != null && + !touch.moved && new Date - touch.start < 300) { + var pos = cm.coordsChar(d.activeTouch, "page"), range; + if (!touch.prev || farAway(touch, touch.prev)) // Single tap + range = new Range(pos, pos); + else if (!touch.prev.prev || farAway(touch, touch.prev.prev)) // Double tap + range = cm.findWordAt(pos); + else // Triple tap + range = new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0))); + cm.setSelection(range.anchor, range.head); + cm.focus(); + e_preventDefault(e); + } + finishTouch(); + }); + on(d.scroller, "touchcancel", finishTouch); + + // Sync scrolling between fake scrollbars and real scrollable + // area, ensure viewport is updated when scrolling. + on(d.scroller, "scroll", function() { + if (d.scroller.clientHeight) { + setScrollTop(cm, d.scroller.scrollTop); + setScrollLeft(cm, d.scroller.scrollLeft, true); + signal(cm, "scroll", cm); + } + }); + + // Listen to wheel events in order to try and update the viewport on time. + on(d.scroller, "mousewheel", function(e){onScrollWheel(cm, e);}); + on(d.scroller, "DOMMouseScroll", function(e){onScrollWheel(cm, e);}); + + // Prevent wrapper from ever scrolling + on(d.wrapper, "scroll", function() { d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; }); + + d.dragFunctions = { + simple: function(e) {if (!signalDOMEvent(cm, e)) e_stop(e);}, + start: function(e){onDragStart(cm, e);}, + drop: operation(cm, onDrop) + }; + + var inp = d.input.getField(); + on(inp, "keyup", function(e) { onKeyUp.call(cm, e); }); + on(inp, "keydown", operation(cm, onKeyDown)); + on(inp, "keypress", operation(cm, onKeyPress)); + on(inp, "focus", bind(onFocus, cm)); + on(inp, "blur", bind(onBlur, cm)); + } + + function dragDropChanged(cm, value, old) { + var wasOn = old && old != CodeMirror.Init; + if (!value != !wasOn) { + var funcs = cm.display.dragFunctions; + var toggle = value ? on : off; + toggle(cm.display.scroller, "dragstart", funcs.start); + toggle(cm.display.scroller, "dragenter", funcs.simple); + toggle(cm.display.scroller, "dragover", funcs.simple); + toggle(cm.display.scroller, "drop", funcs.drop); + } + } + + // Called when the window resizes + function onResize(cm) { + var d = cm.display; + if (d.lastWrapHeight == d.wrapper.clientHeight && d.lastWrapWidth == d.wrapper.clientWidth) + return; + // Might be a text scaling operation, clear size caches. + d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null; + d.scrollbarsClipped = false; + cm.setSize(); + } + + // MOUSE EVENTS + + // Return true when the given mouse event happened in a widget + function eventInWidget(display, e) { + for (var n = e_target(e); n != display.wrapper; n = n.parentNode) { + if (!n || (n.nodeType == 1 && n.getAttribute("cm-ignore-events") == "true") || + (n.parentNode == display.sizer && n != display.mover)) + return true; + } + } + + // Given a mouse event, find the corresponding position. If liberal + // is false, it checks whether a gutter or scrollbar was clicked, + // and returns null if it was. forRect is used by rectangular + // selections, and tries to estimate a character position even for + // coordinates beyond the right of the text. + function posFromMouse(cm, e, liberal, forRect) { + var display = cm.display; + if (!liberal && e_target(e).getAttribute("cm-not-content") == "true") return null; + + var x, y, space = display.lineSpace.getBoundingClientRect(); + // Fails unpredictably on IE[67] when mouse is dragged around quickly. + try { x = e.clientX - space.left; y = e.clientY - space.top; } + catch (e) { return null; } + var coords = coordsChar(cm, x, y), line; + if (forRect && coords.xRel == 1 && (line = getLine(cm.doc, coords.line).text).length == coords.ch) { + var colDiff = countColumn(line, line.length, cm.options.tabSize) - line.length; + coords = Pos(coords.line, Math.max(0, Math.round((x - paddingH(cm.display).left) / charWidth(cm.display)) - colDiff)); + } + return coords; + } + + // A mouse down can be a single click, double click, triple click, + // start of selection drag, start of text drag, new cursor + // (ctrl-click), rectangle drag (alt-drag), or xwin + // middle-click-paste. Or it might be a click on something we should + // not interfere with, such as a scrollbar or widget. + function onMouseDown(e) { + var cm = this, display = cm.display; + if (display.activeTouch && display.input.supportsTouch() || signalDOMEvent(cm, e)) return; + display.shift = e.shiftKey; + + if (eventInWidget(display, e)) { + if (!webkit) { + // Briefly turn off draggability, to allow widgets to do + // normal dragging things. + display.scroller.draggable = false; + setTimeout(function(){display.scroller.draggable = true;}, 100); + } + return; + } + if (clickInGutter(cm, e)) return; + var start = posFromMouse(cm, e); + window.focus(); + + switch (e_button(e)) { + case 1: + if (start) + leftButtonDown(cm, e, start); + else if (e_target(e) == display.scroller) + e_preventDefault(e); + break; + case 2: + if (webkit) cm.state.lastMiddleDown = +new Date; + if (start) extendSelection(cm.doc, start); + setTimeout(function() {display.input.focus();}, 20); + e_preventDefault(e); + break; + case 3: + if (captureRightClick) onContextMenu(cm, e); + else delayBlurEvent(cm); + break; + } + } + + var lastClick, lastDoubleClick; + function leftButtonDown(cm, e, start) { + if (ie) setTimeout(bind(ensureFocus, cm), 0); + else cm.curOp.focus = activeElt(); + + var now = +new Date, type; + if (lastDoubleClick && lastDoubleClick.time > now - 400 && cmp(lastDoubleClick.pos, start) == 0) { + type = "triple"; + } else if (lastClick && lastClick.time > now - 400 && cmp(lastClick.pos, start) == 0) { + type = "double"; + lastDoubleClick = {time: now, pos: start}; + } else { + type = "single"; + lastClick = {time: now, pos: start}; + } + + var sel = cm.doc.sel, modifier = mac ? e.metaKey : e.ctrlKey, contained; + if (cm.options.dragDrop && dragAndDrop && !isReadOnly(cm) && + type == "single" && (contained = sel.contains(start)) > -1 && + !sel.ranges[contained].empty()) + leftButtonStartDrag(cm, e, start, modifier); + else + leftButtonSelect(cm, e, start, type, modifier); + } + + // Start a text drag. When it ends, see if any dragging actually + // happen, and treat as a click if it didn't. + function leftButtonStartDrag(cm, e, start, modifier) { + var display = cm.display, startTime = +new Date; + var dragEnd = operation(cm, function(e2) { + if (webkit) display.scroller.draggable = false; + cm.state.draggingText = false; + off(document, "mouseup", dragEnd); + off(display.scroller, "drop", dragEnd); + if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) { + e_preventDefault(e2); + if (!modifier && +new Date - 200 < startTime) + extendSelection(cm.doc, start); + // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081) + if (webkit || ie && ie_version == 9) + setTimeout(function() {document.body.focus(); display.input.focus();}, 20); + else + display.input.focus(); + } + }); + // Let the drag handler handle this. + if (webkit) display.scroller.draggable = true; + cm.state.draggingText = dragEnd; + // IE's approach to draggable + if (display.scroller.dragDrop) display.scroller.dragDrop(); + on(document, "mouseup", dragEnd); + on(display.scroller, "drop", dragEnd); + } + + // Normal selection, as opposed to text dragging. + function leftButtonSelect(cm, e, start, type, addNew) { + var display = cm.display, doc = cm.doc; + e_preventDefault(e); + + var ourRange, ourIndex, startSel = doc.sel, ranges = startSel.ranges; + if (addNew && !e.shiftKey) { + ourIndex = doc.sel.contains(start); + if (ourIndex > -1) + ourRange = ranges[ourIndex]; + else + ourRange = new Range(start, start); + } else { + ourRange = doc.sel.primary(); + ourIndex = doc.sel.primIndex; + } + + if (e.altKey) { + type = "rect"; + if (!addNew) ourRange = new Range(start, start); + start = posFromMouse(cm, e, true, true); + ourIndex = -1; + } else if (type == "double") { + var word = cm.findWordAt(start); + if (cm.display.shift || doc.extend) + ourRange = extendRange(doc, ourRange, word.anchor, word.head); + else + ourRange = word; + } else if (type == "triple") { + var line = new Range(Pos(start.line, 0), clipPos(doc, Pos(start.line + 1, 0))); + if (cm.display.shift || doc.extend) + ourRange = extendRange(doc, ourRange, line.anchor, line.head); + else + ourRange = line; + } else { + ourRange = extendRange(doc, ourRange, start); + } + + if (!addNew) { + ourIndex = 0; + setSelection(doc, new Selection([ourRange], 0), sel_mouse); + startSel = doc.sel; + } else if (ourIndex == -1) { + ourIndex = ranges.length; + setSelection(doc, normalizeSelection(ranges.concat([ourRange]), ourIndex), + {scroll: false, origin: "*mouse"}); + } else if (ranges.length > 1 && ranges[ourIndex].empty() && type == "single" && !e.shiftKey) { + setSelection(doc, normalizeSelection(ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0)); + startSel = doc.sel; + } else { + replaceOneSelection(doc, ourIndex, ourRange, sel_mouse); + } + + var lastPos = start; + function extendTo(pos) { + if (cmp(lastPos, pos) == 0) return; + lastPos = pos; + + if (type == "rect") { + var ranges = [], tabSize = cm.options.tabSize; + var startCol = countColumn(getLine(doc, start.line).text, start.ch, tabSize); + var posCol = countColumn(getLine(doc, pos.line).text, pos.ch, tabSize); + var left = Math.min(startCol, posCol), right = Math.max(startCol, posCol); + for (var line = Math.min(start.line, pos.line), end = Math.min(cm.lastLine(), Math.max(start.line, pos.line)); + line <= end; line++) { + var text = getLine(doc, line).text, leftPos = findColumn(text, left, tabSize); + if (left == right) + ranges.push(new Range(Pos(line, leftPos), Pos(line, leftPos))); + else if (text.length > leftPos) + ranges.push(new Range(Pos(line, leftPos), Pos(line, findColumn(text, right, tabSize)))); + } + if (!ranges.length) ranges.push(new Range(start, start)); + setSelection(doc, normalizeSelection(startSel.ranges.slice(0, ourIndex).concat(ranges), ourIndex), + {origin: "*mouse", scroll: false}); + cm.scrollIntoView(pos); + } else { + var oldRange = ourRange; + var anchor = oldRange.anchor, head = pos; + if (type != "single") { + if (type == "double") + var range = cm.findWordAt(pos); + else + var range = new Range(Pos(pos.line, 0), clipPos(doc, Pos(pos.line + 1, 0))); + if (cmp(range.anchor, anchor) > 0) { + head = range.head; + anchor = minPos(oldRange.from(), range.anchor); + } else { + head = range.anchor; + anchor = maxPos(oldRange.to(), range.head); + } + } + var ranges = startSel.ranges.slice(0); + ranges[ourIndex] = new Range(clipPos(doc, anchor), head); + setSelection(doc, normalizeSelection(ranges, ourIndex), sel_mouse); + } + } + + var editorSize = display.wrapper.getBoundingClientRect(); + // Used to ensure timeout re-tries don't fire when another extend + // happened in the meantime (clearTimeout isn't reliable -- at + // least on Chrome, the timeouts still happen even when cleared, + // if the clear happens after their scheduled firing time). + var counter = 0; + + function extend(e) { + var curCount = ++counter; + var cur = posFromMouse(cm, e, true, type == "rect"); + if (!cur) return; + if (cmp(cur, lastPos) != 0) { + cm.curOp.focus = activeElt(); + extendTo(cur); + var visible = visibleLines(display, doc); + if (cur.line >= visible.to || cur.line < visible.from) + setTimeout(operation(cm, function(){if (counter == curCount) extend(e);}), 150); + } else { + var outside = e.clientY < editorSize.top ? -20 : e.clientY > editorSize.bottom ? 20 : 0; + if (outside) setTimeout(operation(cm, function() { + if (counter != curCount) return; + display.scroller.scrollTop += outside; + extend(e); + }), 50); + } + } + + function done(e) { + counter = Infinity; + e_preventDefault(e); + display.input.focus(); + off(document, "mousemove", move); + off(document, "mouseup", up); + doc.history.lastSelOrigin = null; + } + + var move = operation(cm, function(e) { + if (!e_button(e)) done(e); + else extend(e); + }); + var up = operation(cm, done); + on(document, "mousemove", move); + on(document, "mouseup", up); + } + + // Determines whether an event happened in the gutter, and fires the + // handlers for the corresponding event. + function gutterEvent(cm, e, type, prevent, signalfn) { + try { var mX = e.clientX, mY = e.clientY; } + catch(e) { return false; } + if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false; + if (prevent) e_preventDefault(e); + + var display = cm.display; + var lineBox = display.lineDiv.getBoundingClientRect(); + + if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e); + mY -= lineBox.top - display.viewOffset; + + for (var i = 0; i < cm.options.gutters.length; ++i) { + var g = display.gutters.childNodes[i]; + if (g && g.getBoundingClientRect().right >= mX) { + var line = lineAtHeight(cm.doc, mY); + var gutter = cm.options.gutters[i]; + signalfn(cm, type, cm, line, gutter, e); + return e_defaultPrevented(e); + } + } + } + + function clickInGutter(cm, e) { + return gutterEvent(cm, e, "gutterClick", true, signalLater); + } + + // Kludge to work around strange IE behavior where it'll sometimes + // re-fire a series of drag-related events right after the drop (#1551) + var lastDrop = 0; + + function onDrop(e) { + var cm = this; + if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) + return; + e_preventDefault(e); + if (ie) lastDrop = +new Date; + var pos = posFromMouse(cm, e, true), files = e.dataTransfer.files; + if (!pos || isReadOnly(cm)) return; + // Might be a file drop, in which case we simply extract the text + // and insert it. + if (files && files.length && window.FileReader && window.File) { + var n = files.length, text = Array(n), read = 0; + var loadFile = function(file, i) { + var reader = new FileReader; + reader.onload = operation(cm, function() { + text[i] = reader.result; + if (++read == n) { + pos = clipPos(cm.doc, pos); + var change = {from: pos, to: pos, text: splitLines(text.join("\n")), origin: "paste"}; + makeChange(cm.doc, change); + setSelectionReplaceHistory(cm.doc, simpleSelection(pos, changeEnd(change))); + } + }); + reader.readAsText(file); + }; + for (var i = 0; i < n; ++i) loadFile(files[i], i); + } else { // Normal drop + // Don't do a replace if the drop happened inside of the selected text. + if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) { + cm.state.draggingText(e); + // Ensure the editor is re-focused + setTimeout(function() {cm.display.input.focus();}, 20); + return; + } + try { + var text = e.dataTransfer.getData("Text"); + if (text) { + if (cm.state.draggingText && !(mac ? e.altKey : e.ctrlKey)) + var selected = cm.listSelections(); + setSelectionNoUndo(cm.doc, simpleSelection(pos, pos)); + if (selected) for (var i = 0; i < selected.length; ++i) + replaceRange(cm.doc, "", selected[i].anchor, selected[i].head, "drag"); + cm.replaceSelection(text, "around", "paste"); + cm.display.input.focus(); + } + } + catch(e){} + } + } + + function onDragStart(cm, e) { + if (ie && (!cm.state.draggingText || +new Date - lastDrop < 100)) { e_stop(e); return; } + if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) return; + + e.dataTransfer.setData("Text", cm.getSelection()); + + // Use dummy image instead of default browsers image. + // Recent Safari (~6.0.2) have a tendency to segfault when this happens, so we don't do it there. + if (e.dataTransfer.setDragImage && !safari) { + var img = elt("img", null, null, "position: fixed; left: 0; top: 0;"); + img.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="; + if (presto) { + img.width = img.height = 1; + cm.display.wrapper.appendChild(img); + // Force a relayout, or Opera won't use our image for some obscure reason + img._top = img.offsetTop; + } + e.dataTransfer.setDragImage(img, 0, 0); + if (presto) img.parentNode.removeChild(img); + } + } + + // SCROLL EVENTS + + // Sync the scrollable area and scrollbars, ensure the viewport + // covers the visible area. + function setScrollTop(cm, val) { + if (Math.abs(cm.doc.scrollTop - val) < 2) return; + cm.doc.scrollTop = val; + if (!gecko) updateDisplaySimple(cm, {top: val}); + if (cm.display.scroller.scrollTop != val) cm.display.scroller.scrollTop = val; + cm.display.scrollbars.setScrollTop(val); + if (gecko) updateDisplaySimple(cm); + startWorker(cm, 100); + } + // Sync scroller and scrollbar, ensure the gutter elements are + // aligned. + function setScrollLeft(cm, val, isScroller) { + if (isScroller ? val == cm.doc.scrollLeft : Math.abs(cm.doc.scrollLeft - val) < 2) return; + val = Math.min(val, cm.display.scroller.scrollWidth - cm.display.scroller.clientWidth); + cm.doc.scrollLeft = val; + alignHorizontally(cm); + if (cm.display.scroller.scrollLeft != val) cm.display.scroller.scrollLeft = val; + cm.display.scrollbars.setScrollLeft(val); + } + + // Since the delta values reported on mouse wheel events are + // unstandardized between browsers and even browser versions, and + // generally horribly unpredictable, this code starts by measuring + // the scroll effect that the first few mouse wheel events have, + // and, from that, detects the way it can convert deltas to pixel + // offsets afterwards. + // + // The reason we want to know the amount a wheel event will scroll + // is that it gives us a chance to update the display before the + // actual scrolling happens, reducing flickering. + + var wheelSamples = 0, wheelPixelsPerUnit = null; + // Fill in a browser-detected starting value on browsers where we + // know one. These don't have to be accurate -- the result of them + // being wrong would just be a slight flicker on the first wheel + // scroll (if it is large enough). + if (ie) wheelPixelsPerUnit = -.53; + else if (gecko) wheelPixelsPerUnit = 15; + else if (chrome) wheelPixelsPerUnit = -.7; + else if (safari) wheelPixelsPerUnit = -1/3; + + var wheelEventDelta = function(e) { + var dx = e.wheelDeltaX, dy = e.wheelDeltaY; + if (dx == null && e.detail && e.axis == e.HORIZONTAL_AXIS) dx = e.detail; + if (dy == null && e.detail && e.axis == e.VERTICAL_AXIS) dy = e.detail; + else if (dy == null) dy = e.wheelDelta; + return {x: dx, y: dy}; + }; + CodeMirror.wheelEventPixels = function(e) { + var delta = wheelEventDelta(e); + delta.x *= wheelPixelsPerUnit; + delta.y *= wheelPixelsPerUnit; + return delta; + }; + + function onScrollWheel(cm, e) { + var delta = wheelEventDelta(e), dx = delta.x, dy = delta.y; + + var display = cm.display, scroll = display.scroller; + // Quit if there's nothing to scroll here + if (!(dx && scroll.scrollWidth > scroll.clientWidth || + dy && scroll.scrollHeight > scroll.clientHeight)) return; + + // Webkit browsers on OS X abort momentum scrolls when the target + // of the scroll event is removed from the scrollable element. + // This hack (see related code in patchDisplay) makes sure the + // element is kept around. + if (dy && mac && webkit) { + outer: for (var cur = e.target, view = display.view; cur != scroll; cur = cur.parentNode) { + for (var i = 0; i < view.length; i++) { + if (view[i].node == cur) { + cm.display.currentWheelTarget = cur; + break outer; + } + } + } + } + + // On some browsers, horizontal scrolling will cause redraws to + // happen before the gutter has been realigned, causing it to + // wriggle around in a most unseemly way. When we have an + // estimated pixels/delta value, we just handle horizontal + // scrolling entirely here. It'll be slightly off from native, but + // better than glitching out. + if (dx && !gecko && !presto && wheelPixelsPerUnit != null) { + if (dy) + setScrollTop(cm, Math.max(0, Math.min(scroll.scrollTop + dy * wheelPixelsPerUnit, scroll.scrollHeight - scroll.clientHeight))); + setScrollLeft(cm, Math.max(0, Math.min(scroll.scrollLeft + dx * wheelPixelsPerUnit, scroll.scrollWidth - scroll.clientWidth))); + e_preventDefault(e); + display.wheelStartX = null; // Abort measurement, if in progress + return; + } + + // 'Project' the visible viewport to cover the area that is being + // scrolled into view (if we know enough to estimate it). + if (dy && wheelPixelsPerUnit != null) { + var pixels = dy * wheelPixelsPerUnit; + var top = cm.doc.scrollTop, bot = top + display.wrapper.clientHeight; + if (pixels < 0) top = Math.max(0, top + pixels - 50); + else bot = Math.min(cm.doc.height, bot + pixels + 50); + updateDisplaySimple(cm, {top: top, bottom: bot}); + } + + if (wheelSamples < 20) { + if (display.wheelStartX == null) { + display.wheelStartX = scroll.scrollLeft; display.wheelStartY = scroll.scrollTop; + display.wheelDX = dx; display.wheelDY = dy; + setTimeout(function() { + if (display.wheelStartX == null) return; + var movedX = scroll.scrollLeft - display.wheelStartX; + var movedY = scroll.scrollTop - display.wheelStartY; + var sample = (movedY && display.wheelDY && movedY / display.wheelDY) || + (movedX && display.wheelDX && movedX / display.wheelDX); + display.wheelStartX = display.wheelStartY = null; + if (!sample) return; + wheelPixelsPerUnit = (wheelPixelsPerUnit * wheelSamples + sample) / (wheelSamples + 1); + ++wheelSamples; + }, 200); + } else { + display.wheelDX += dx; display.wheelDY += dy; + } + } + } + + // KEY EVENTS + + // Run a handler that was bound to a key. + function doHandleBinding(cm, bound, dropShift) { + if (typeof bound == "string") { + bound = commands[bound]; + if (!bound) return false; + } + // Ensure previous input has been read, so that the handler sees a + // consistent view of the document + cm.display.input.ensurePolled(); + var prevShift = cm.display.shift, done = false; + try { + if (isReadOnly(cm)) cm.state.suppressEdits = true; + if (dropShift) cm.display.shift = false; + done = bound(cm) != Pass; + } finally { + cm.display.shift = prevShift; + cm.state.suppressEdits = false; + } + return done; + } + + function lookupKeyForEditor(cm, name, handle) { + for (var i = 0; i < cm.state.keyMaps.length; i++) { + var result = lookupKey(name, cm.state.keyMaps[i], handle, cm); + if (result) return result; + } + return (cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm)) + || lookupKey(name, cm.options.keyMap, handle, cm); + } + + var stopSeq = new Delayed; + function dispatchKey(cm, name, e, handle) { + var seq = cm.state.keySeq; + if (seq) { + if (isModifierKey(name)) return "handled"; + stopSeq.set(50, function() { + if (cm.state.keySeq == seq) { + cm.state.keySeq = null; + cm.display.input.reset(); + } + }); + name = seq + " " + name; + } + var result = lookupKeyForEditor(cm, name, handle); + + if (result == "multi") + cm.state.keySeq = name; + if (result == "handled") + signalLater(cm, "keyHandled", cm, name, e); + + if (result == "handled" || result == "multi") { + e_preventDefault(e); + restartBlink(cm); + } + + if (seq && !result && /\'$/.test(name)) { + e_preventDefault(e); + return true; + } + return !!result; + } + + // Handle a key from the keydown event. + function handleKeyBinding(cm, e) { + var name = keyName(e, true); + if (!name) return false; + + if (e.shiftKey && !cm.state.keySeq) { + // First try to resolve full name (including 'Shift-'). Failing + // that, see if there is a cursor-motion command (starting with + // 'go') bound to the keyname without 'Shift-'. + return dispatchKey(cm, "Shift-" + name, e, function(b) {return doHandleBinding(cm, b, true);}) + || dispatchKey(cm, name, e, function(b) { + if (typeof b == "string" ? /^go[A-Z]/.test(b) : b.motion) + return doHandleBinding(cm, b); + }); + } else { + return dispatchKey(cm, name, e, function(b) { return doHandleBinding(cm, b); }); + } + } + + // Handle a key from the keypress event + function handleCharBinding(cm, e, ch) { + return dispatchKey(cm, "'" + ch + "'", e, + function(b) { return doHandleBinding(cm, b, true); }); + } + + var lastStoppedKey = null; + function onKeyDown(e) { + var cm = this; + cm.curOp.focus = activeElt(); + if (signalDOMEvent(cm, e)) return; + // IE does strange things with escape. + if (ie && ie_version < 11 && e.keyCode == 27) e.returnValue = false; + var code = e.keyCode; + cm.display.shift = code == 16 || e.shiftKey; + var handled = handleKeyBinding(cm, e); + if (presto) { + lastStoppedKey = handled ? code : null; + // Opera has no cut event... we try to at least catch the key combo + if (!handled && code == 88 && !hasCopyEvent && (mac ? e.metaKey : e.ctrlKey)) + cm.replaceSelection("", null, "cut"); + } + + // Turn mouse into crosshair when Alt is held on Mac. + if (code == 18 && !/\bCodeMirror-crosshair\b/.test(cm.display.lineDiv.className)) + showCrossHair(cm); + } + + function showCrossHair(cm) { + var lineDiv = cm.display.lineDiv; + addClass(lineDiv, "CodeMirror-crosshair"); + + function up(e) { + if (e.keyCode == 18 || !e.altKey) { + rmClass(lineDiv, "CodeMirror-crosshair"); + off(document, "keyup", up); + off(document, "mouseover", up); + } + } + on(document, "keyup", up); + on(document, "mouseover", up); + } + + function onKeyUp(e) { + if (e.keyCode == 16) this.doc.sel.shift = false; + signalDOMEvent(this, e); + } + + function onKeyPress(e) { + var cm = this; + if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) return; + var keyCode = e.keyCode, charCode = e.charCode; + if (presto && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;} + if ((presto && (!e.which || e.which < 10)) && handleKeyBinding(cm, e)) return; + var ch = String.fromCharCode(charCode == null ? keyCode : charCode); + if (handleCharBinding(cm, e, ch)) return; + cm.display.input.onKeyPress(e); + } + + // FOCUS/BLUR EVENTS + + function delayBlurEvent(cm) { + cm.state.delayingBlurEvent = true; + setTimeout(function() { + if (cm.state.delayingBlurEvent) { + cm.state.delayingBlurEvent = false; + onBlur(cm); + } + }, 100); + } + + function onFocus(cm) { + if (cm.state.delayingBlurEvent) cm.state.delayingBlurEvent = false; + + if (cm.options.readOnly == "nocursor") return; + if (!cm.state.focused) { + signal(cm, "focus", cm); + cm.state.focused = true; + addClass(cm.display.wrapper, "CodeMirror-focused"); + // This test prevents this from firing when a context + // menu is closed (since the input reset would kill the + // select-all detection hack) + if (!cm.curOp && cm.display.selForContextMenu != cm.doc.sel) { + cm.display.input.reset(); + if (webkit) setTimeout(function() { cm.display.input.reset(true); }, 20); // Issue #1730 + } + cm.display.input.receivedFocus(); + } + restartBlink(cm); + } + function onBlur(cm) { + if (cm.state.delayingBlurEvent) return; + + if (cm.state.focused) { + signal(cm, "blur", cm); + cm.state.focused = false; + rmClass(cm.display.wrapper, "CodeMirror-focused"); + } + clearInterval(cm.display.blinker); + setTimeout(function() {if (!cm.state.focused) cm.display.shift = false;}, 150); + } + + // CONTEXT MENU HANDLING + + // To make the context menu work, we need to briefly unhide the + // textarea (making it as unobtrusive as possible) to let the + // right-click take effect on it. + function onContextMenu(cm, e) { + if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return; + cm.display.input.onContextMenu(e); + } + + function contextMenuInGutter(cm, e) { + if (!hasHandler(cm, "gutterContextMenu")) return false; + return gutterEvent(cm, e, "gutterContextMenu", false, signal); + } + + // UPDATING + + // Compute the position of the end of a change (its 'to' property + // refers to the pre-change end). + var changeEnd = CodeMirror.changeEnd = function(change) { + if (!change.text) return change.to; + return Pos(change.from.line + change.text.length - 1, + lst(change.text).length + (change.text.length == 1 ? change.from.ch : 0)); + }; + + // Adjust a position to refer to the post-change position of the + // same text, or the end of the change if the change covers it. + function adjustForChange(pos, change) { + if (cmp(pos, change.from) < 0) return pos; + if (cmp(pos, change.to) <= 0) return changeEnd(change); + + var line = pos.line + change.text.length - (change.to.line - change.from.line) - 1, ch = pos.ch; + if (pos.line == change.to.line) ch += changeEnd(change).ch - change.to.ch; + return Pos(line, ch); + } + + function computeSelAfterChange(doc, change) { + var out = []; + for (var i = 0; i < doc.sel.ranges.length; i++) { + var range = doc.sel.ranges[i]; + out.push(new Range(adjustForChange(range.anchor, change), + adjustForChange(range.head, change))); + } + return normalizeSelection(out, doc.sel.primIndex); + } + + function offsetPos(pos, old, nw) { + if (pos.line == old.line) + return Pos(nw.line, pos.ch - old.ch + nw.ch); + else + return Pos(nw.line + (pos.line - old.line), pos.ch); + } + + // Used by replaceSelections to allow moving the selection to the + // start or around the replaced test. Hint may be "start" or "around". + function computeReplacedSel(doc, changes, hint) { + var out = []; + var oldPrev = Pos(doc.first, 0), newPrev = oldPrev; + for (var i = 0; i < changes.length; i++) { + var change = changes[i]; + var from = offsetPos(change.from, oldPrev, newPrev); + var to = offsetPos(changeEnd(change), oldPrev, newPrev); + oldPrev = change.to; + newPrev = to; + if (hint == "around") { + var range = doc.sel.ranges[i], inv = cmp(range.head, range.anchor) < 0; + out[i] = new Range(inv ? to : from, inv ? from : to); + } else { + out[i] = new Range(from, from); + } + } + return new Selection(out, doc.sel.primIndex); + } + + // Allow "beforeChange" event handlers to influence a change + function filterChange(doc, change, update) { + var obj = { + canceled: false, + from: change.from, + to: change.to, + text: change.text, + origin: change.origin, + cancel: function() { this.canceled = true; } + }; + if (update) obj.update = function(from, to, text, origin) { + if (from) this.from = clipPos(doc, from); + if (to) this.to = clipPos(doc, to); + if (text) this.text = text; + if (origin !== undefined) this.origin = origin; + }; + signal(doc, "beforeChange", doc, obj); + if (doc.cm) signal(doc.cm, "beforeChange", doc.cm, obj); + + if (obj.canceled) return null; + return {from: obj.from, to: obj.to, text: obj.text, origin: obj.origin}; + } + + // Apply a change to a document, and add it to the document's + // history, and propagating it to all linked documents. + function makeChange(doc, change, ignoreReadOnly) { + if (doc.cm) { + if (!doc.cm.curOp) return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly); + if (doc.cm.state.suppressEdits) return; + } + + if (hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange")) { + change = filterChange(doc, change, true); + if (!change) return; + } + + // Possibly split or suppress the update based on the presence + // of read-only spans in its range. + var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to); + if (split) { + for (var i = split.length - 1; i >= 0; --i) + makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [""] : change.text}); + } else { + makeChangeInner(doc, change); + } + } + + function makeChangeInner(doc, change) { + if (change.text.length == 1 && change.text[0] == "" && cmp(change.from, change.to) == 0) return; + var selAfter = computeSelAfterChange(doc, change); + addChangeToHistory(doc, change, selAfter, doc.cm ? doc.cm.curOp.id : NaN); + + makeChangeSingleDoc(doc, change, selAfter, stretchSpansOverChange(doc, change)); + var rebased = []; + + linkedDocs(doc, function(doc, sharedHist) { + if (!sharedHist && indexOf(rebased, doc.history) == -1) { + rebaseHist(doc.history, change); + rebased.push(doc.history); + } + makeChangeSingleDoc(doc, change, null, stretchSpansOverChange(doc, change)); + }); + } + + // Revert a change stored in a document's history. + function makeChangeFromHistory(doc, type, allowSelectionOnly) { + if (doc.cm && doc.cm.state.suppressEdits) return; + + var hist = doc.history, event, selAfter = doc.sel; + var source = type == "undo" ? hist.done : hist.undone, dest = type == "undo" ? hist.undone : hist.done; + + // Verify that there is a useable event (so that ctrl-z won't + // needlessly clear selection events) + for (var i = 0; i < source.length; i++) { + event = source[i]; + if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges) + break; + } + if (i == source.length) return; + hist.lastOrigin = hist.lastSelOrigin = null; + + for (;;) { + event = source.pop(); + if (event.ranges) { + pushSelectionToHistory(event, dest); + if (allowSelectionOnly && !event.equals(doc.sel)) { + setSelection(doc, event, {clearRedo: false}); + return; + } + selAfter = event; + } + else break; + } + + // Build up a reverse change object to add to the opposite history + // stack (redo when undoing, and vice versa). + var antiChanges = []; + pushSelectionToHistory(selAfter, dest); + dest.push({changes: antiChanges, generation: hist.generation}); + hist.generation = event.generation || ++hist.maxGeneration; + + var filter = hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange"); + + for (var i = event.changes.length - 1; i >= 0; --i) { + var change = event.changes[i]; + change.origin = type; + if (filter && !filterChange(doc, change, false)) { + source.length = 0; + return; + } + + antiChanges.push(historyChangeFromChange(doc, change)); + + var after = i ? computeSelAfterChange(doc, change) : lst(source); + makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change)); + if (!i && doc.cm) doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); + var rebased = []; + + // Propagate to the linked documents + linkedDocs(doc, function(doc, sharedHist) { + if (!sharedHist && indexOf(rebased, doc.history) == -1) { + rebaseHist(doc.history, change); + rebased.push(doc.history); + } + makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change)); + }); + } + } + + // Sub-views need their line numbers shifted when text is added + // above or below them in the parent document. + function shiftDoc(doc, distance) { + if (distance == 0) return; + doc.first += distance; + doc.sel = new Selection(map(doc.sel.ranges, function(range) { + return new Range(Pos(range.anchor.line + distance, range.anchor.ch), + Pos(range.head.line + distance, range.head.ch)); + }), doc.sel.primIndex); + if (doc.cm) { + regChange(doc.cm, doc.first, doc.first - distance, distance); + for (var d = doc.cm.display, l = d.viewFrom; l < d.viewTo; l++) + regLineChange(doc.cm, l, "gutter"); + } + } + + // More lower-level change function, handling only a single document + // (not linked ones). + function makeChangeSingleDoc(doc, change, selAfter, spans) { + if (doc.cm && !doc.cm.curOp) + return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans); + + if (change.to.line < doc.first) { + shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line)); + return; + } + if (change.from.line > doc.lastLine()) return; + + // Clip the change to the size of this doc + if (change.from.line < doc.first) { + var shift = change.text.length - 1 - (doc.first - change.from.line); + shiftDoc(doc, shift); + change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch), + text: [lst(change.text)], origin: change.origin}; + } + var last = doc.lastLine(); + if (change.to.line > last) { + change = {from: change.from, to: Pos(last, getLine(doc, last).text.length), + text: [change.text[0]], origin: change.origin}; + } + + change.removed = getBetween(doc, change.from, change.to); + + if (!selAfter) selAfter = computeSelAfterChange(doc, change); + if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans); + else updateDoc(doc, change, spans); + setSelectionNoUndo(doc, selAfter, sel_dontScroll); + } + + // Handle the interaction of a change to a document with the editor + // that this document is part of. + function makeChangeSingleDocInEditor(cm, change, spans) { + var doc = cm.doc, display = cm.display, from = change.from, to = change.to; + + var recomputeMaxLength = false, checkWidthStart = from.line; + if (!cm.options.lineWrapping) { + checkWidthStart = lineNo(visualLine(getLine(doc, from.line))); + doc.iter(checkWidthStart, to.line + 1, function(line) { + if (line == display.maxLine) { + recomputeMaxLength = true; + return true; + } + }); + } + + if (doc.sel.contains(change.from, change.to) > -1) + signalCursorActivity(cm); + + updateDoc(doc, change, spans, estimateHeight(cm)); + + if (!cm.options.lineWrapping) { + doc.iter(checkWidthStart, from.line + change.text.length, function(line) { + var len = lineLength(line); + if (len > display.maxLineLength) { + display.maxLine = line; + display.maxLineLength = len; + display.maxLineChanged = true; + recomputeMaxLength = false; + } + }); + if (recomputeMaxLength) cm.curOp.updateMaxLine = true; + } + + // Adjust frontier, schedule worker + doc.frontier = Math.min(doc.frontier, from.line); + startWorker(cm, 400); + + var lendiff = change.text.length - (to.line - from.line) - 1; + // Remember that these lines changed, for updating the display + if (change.full) + regChange(cm); + else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change)) + regLineChange(cm, from.line, "text"); + else + regChange(cm, from.line, to.line + 1, lendiff); + + var changesHandler = hasHandler(cm, "changes"), changeHandler = hasHandler(cm, "change"); + if (changeHandler || changesHandler) { + var obj = { + from: from, to: to, + text: change.text, + removed: change.removed, + origin: change.origin + }; + if (changeHandler) signalLater(cm, "change", cm, obj); + if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); + } + cm.display.selForContextMenu = null; + } + + function replaceRange(doc, code, from, to, origin) { + if (!to) to = from; + if (cmp(to, from) < 0) { var tmp = to; to = from; from = tmp; } + if (typeof code == "string") code = splitLines(code); + makeChange(doc, {from: from, to: to, text: code, origin: origin}); + } + + // SCROLLING THINGS INTO VIEW + + // If an editor sits on the top or bottom of the window, partially + // scrolled out of view, this ensures that the cursor is visible. + function maybeScrollWindow(cm, coords) { + if (signalDOMEvent(cm, "scrollCursorIntoView")) return; + + var display = cm.display, box = display.sizer.getBoundingClientRect(), doScroll = null; + if (coords.top + box.top < 0) doScroll = true; + else if (coords.bottom + box.top > (window.innerHeight || document.documentElement.clientHeight)) doScroll = false; + if (doScroll != null && !phantom) { + var scrollNode = elt("div", "\u200b", null, "position: absolute; top: " + + (coords.top - display.viewOffset - paddingTop(cm.display)) + "px; height: " + + (coords.bottom - coords.top + scrollGap(cm) + display.barHeight) + "px; left: " + + coords.left + "px; width: 2px;"); + cm.display.lineSpace.appendChild(scrollNode); + scrollNode.scrollIntoView(doScroll); + cm.display.lineSpace.removeChild(scrollNode); + } + } + + // Scroll a given position into view (immediately), verifying that + // it actually became visible (as line heights are accurately + // measured, the position of something may 'drift' during drawing). + function scrollPosIntoView(cm, pos, end, margin) { + if (margin == null) margin = 0; + for (var limit = 0; limit < 5; limit++) { + var changed = false, coords = cursorCoords(cm, pos); + var endCoords = !end || end == pos ? coords : cursorCoords(cm, end); + var scrollPos = calculateScrollPos(cm, Math.min(coords.left, endCoords.left), + Math.min(coords.top, endCoords.top) - margin, + Math.max(coords.left, endCoords.left), + Math.max(coords.bottom, endCoords.bottom) + margin); + var startTop = cm.doc.scrollTop, startLeft = cm.doc.scrollLeft; + if (scrollPos.scrollTop != null) { + setScrollTop(cm, scrollPos.scrollTop); + if (Math.abs(cm.doc.scrollTop - startTop) > 1) changed = true; + } + if (scrollPos.scrollLeft != null) { + setScrollLeft(cm, scrollPos.scrollLeft); + if (Math.abs(cm.doc.scrollLeft - startLeft) > 1) changed = true; + } + if (!changed) break; + } + return coords; + } + + // Scroll a given set of coordinates into view (immediately). + function scrollIntoView(cm, x1, y1, x2, y2) { + var scrollPos = calculateScrollPos(cm, x1, y1, x2, y2); + if (scrollPos.scrollTop != null) setScrollTop(cm, scrollPos.scrollTop); + if (scrollPos.scrollLeft != null) setScrollLeft(cm, scrollPos.scrollLeft); + } + + // Calculate a new scroll position needed to scroll the given + // rectangle into view. Returns an object with scrollTop and + // scrollLeft properties. When these are undefined, the + // vertical/horizontal position does not need to be adjusted. + function calculateScrollPos(cm, x1, y1, x2, y2) { + var display = cm.display, snapMargin = textHeight(cm.display); + if (y1 < 0) y1 = 0; + var screentop = cm.curOp && cm.curOp.scrollTop != null ? cm.curOp.scrollTop : display.scroller.scrollTop; + var screen = displayHeight(cm), result = {}; + if (y2 - y1 > screen) y2 = y1 + screen; + var docBottom = cm.doc.height + paddingVert(display); + var atTop = y1 < snapMargin, atBottom = y2 > docBottom - snapMargin; + if (y1 < screentop) { + result.scrollTop = atTop ? 0 : y1; + } else if (y2 > screentop + screen) { + var newTop = Math.min(y1, (atBottom ? docBottom : y2) - screen); + if (newTop != screentop) result.scrollTop = newTop; + } + + var screenleft = cm.curOp && cm.curOp.scrollLeft != null ? cm.curOp.scrollLeft : display.scroller.scrollLeft; + var screenw = displayWidth(cm) - (cm.options.fixedGutter ? display.gutters.offsetWidth : 0); + var tooWide = x2 - x1 > screenw; + if (tooWide) x2 = x1 + screenw; + if (x1 < 10) + result.scrollLeft = 0; + else if (x1 < screenleft) + result.scrollLeft = Math.max(0, x1 - (tooWide ? 0 : 10)); + else if (x2 > screenw + screenleft - 3) + result.scrollLeft = x2 + (tooWide ? 0 : 10) - screenw; + return result; + } + + // Store a relative adjustment to the scroll position in the current + // operation (to be applied when the operation finishes). + function addToScrollPos(cm, left, top) { + if (left != null || top != null) resolveScrollToPos(cm); + if (left != null) + cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left; + if (top != null) + cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top; + } + + // Make sure that at the end of the operation the current cursor is + // shown. + function ensureCursorVisible(cm) { + resolveScrollToPos(cm); + var cur = cm.getCursor(), from = cur, to = cur; + if (!cm.options.lineWrapping) { + from = cur.ch ? Pos(cur.line, cur.ch - 1) : cur; + to = Pos(cur.line, cur.ch + 1); + } + cm.curOp.scrollToPos = {from: from, to: to, margin: cm.options.cursorScrollMargin, isCursor: true}; + } + + // When an operation has its scrollToPos property set, and another + // scroll action is applied before the end of the operation, this + // 'simulates' scrolling that position into view in a cheap way, so + // that the effect of intermediate scroll commands is not ignored. + function resolveScrollToPos(cm) { + var range = cm.curOp.scrollToPos; + if (range) { + cm.curOp.scrollToPos = null; + var from = estimateCoords(cm, range.from), to = estimateCoords(cm, range.to); + var sPos = calculateScrollPos(cm, Math.min(from.left, to.left), + Math.min(from.top, to.top) - range.margin, + Math.max(from.right, to.right), + Math.max(from.bottom, to.bottom) + range.margin); + cm.scrollTo(sPos.scrollLeft, sPos.scrollTop); + } + } + + // API UTILITIES + + // Indent the given line. The how parameter can be "smart", + // "add"/null, "subtract", or "prev". When aggressive is false + // (typically set to true for forced single-line indents), empty + // lines are not indented, and places where the mode returns Pass + // are left alone. + function indentLine(cm, n, how, aggressive) { + var doc = cm.doc, state; + if (how == null) how = "add"; + if (how == "smart") { + // Fall back to "prev" when the mode doesn't have an indentation + // method. + if (!doc.mode.indent) how = "prev"; + else state = getStateBefore(cm, n); + } + + var tabSize = cm.options.tabSize; + var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize); + if (line.stateAfter) line.stateAfter = null; + var curSpaceString = line.text.match(/^\s*/)[0], indentation; + if (!aggressive && !/\S/.test(line.text)) { + indentation = 0; + how = "not"; + } else if (how == "smart") { + indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text); + if (indentation == Pass || indentation > 150) { + if (!aggressive) return; + how = "prev"; + } + } + if (how == "prev") { + if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize); + else indentation = 0; + } else if (how == "add") { + indentation = curSpace + cm.options.indentUnit; + } else if (how == "subtract") { + indentation = curSpace - cm.options.indentUnit; + } else if (typeof how == "number") { + indentation = curSpace + how; + } + indentation = Math.max(0, indentation); + + var indentString = "", pos = 0; + if (cm.options.indentWithTabs) + for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += "\t";} + if (pos < indentation) indentString += spaceStr(indentation - pos); + + if (indentString != curSpaceString) { + replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), "+input"); + line.stateAfter = null; + return true; + } else { + // Ensure that, if the cursor was in the whitespace at the start + // of the line, it is moved to the end of that space. + for (var i = 0; i < doc.sel.ranges.length; i++) { + var range = doc.sel.ranges[i]; + if (range.head.line == n && range.head.ch < curSpaceString.length) { + var pos = Pos(n, curSpaceString.length); + replaceOneSelection(doc, i, new Range(pos, pos)); + break; + } + } + } + } + + // Utility for applying a change to a line by handle or number, + // returning the number and optionally registering the line as + // changed. + function changeLine(doc, handle, changeType, op) { + var no = handle, line = handle; + if (typeof handle == "number") line = getLine(doc, clipLine(doc, handle)); + else no = lineNo(handle); + if (no == null) return null; + if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType); + return line; + } + + // Helper for deleting text near the selection(s), used to implement + // backspace, delete, and similar functionality. + function deleteNearSelection(cm, compute) { + var ranges = cm.doc.sel.ranges, kill = []; + // Build up a set of ranges to kill first, merging overlapping + // ranges. + for (var i = 0; i < ranges.length; i++) { + var toKill = compute(ranges[i]); + while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) { + var replaced = kill.pop(); + if (cmp(replaced.from, toKill.from) < 0) { + toKill.from = replaced.from; + break; + } + } + kill.push(toKill); + } + // Next, remove those actual ranges. + runInOp(cm, function() { + for (var i = kill.length - 1; i >= 0; i--) + replaceRange(cm.doc, "", kill[i].from, kill[i].to, "+delete"); + ensureCursorVisible(cm); + }); + } + + // Used for horizontal relative motion. Dir is -1 or 1 (left or + // right), unit can be "char", "column" (like char, but doesn't + // cross line boundaries), "word" (across next word), or "group" (to + // the start of next group of word or non-word-non-whitespace + // chars). The visually param controls whether, in right-to-left + // text, direction 1 means to move towards the next index in the + // string, or towards the character to the right of the current + // position. The resulting position will have a hitSide=true + // property if it reached the end of the document. + function findPosH(doc, pos, dir, unit, visually) { + var line = pos.line, ch = pos.ch, origDir = dir; + var lineObj = getLine(doc, line); + var possible = true; + function findNextLine() { + var l = line + dir; + if (l < doc.first || l >= doc.first + doc.size) return (possible = false); + line = l; + return lineObj = getLine(doc, l); + } + function moveOnce(boundToLine) { + var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true); + if (next == null) { + if (!boundToLine && findNextLine()) { + if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj); + else ch = dir < 0 ? lineObj.text.length : 0; + } else return (possible = false); + } else ch = next; + return true; + } + + if (unit == "char") moveOnce(); + else if (unit == "column") moveOnce(true); + else if (unit == "word" || unit == "group") { + var sawType = null, group = unit == "group"; + var helper = doc.cm && doc.cm.getHelper(pos, "wordChars"); + for (var first = true;; first = false) { + if (dir < 0 && !moveOnce(!first)) break; + var cur = lineObj.text.charAt(ch) || "\n"; + var type = isWordChar(cur, helper) ? "w" + : group && cur == "\n" ? "n" + : !group || /\s/.test(cur) ? null + : "p"; + if (group && !first && !type) type = "s"; + if (sawType && sawType != type) { + if (dir < 0) {dir = 1; moveOnce();} + break; + } + + if (type) sawType = type; + if (dir > 0 && !moveOnce(!first)) break; + } + } + var result = skipAtomic(doc, Pos(line, ch), origDir, true); + if (!possible) result.hitSide = true; + return result; + } + + // For relative vertical movement. Dir may be -1 or 1. Unit can be + // "page" or "line". The resulting position will have a hitSide=true + // property if it reached the end of the document. + function findPosV(cm, pos, dir, unit) { + var doc = cm.doc, x = pos.left, y; + if (unit == "page") { + var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight); + y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display)); + } else if (unit == "line") { + y = dir > 0 ? pos.bottom + 3 : pos.top - 3; + } + for (;;) { + var target = coordsChar(cm, x, y); + if (!target.outside) break; + if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; } + y += dir * 5; + } + return target; + } + + // EDITOR METHODS + + // The publicly visible API. Note that methodOp(f) means + // 'wrap f in an operation, performed on its `this` parameter'. + + // This is not the complete set of editor methods. Most of the + // methods defined on the Doc type are also injected into + // CodeMirror.prototype, for backwards compatibility and + // convenience. + + CodeMirror.prototype = { + constructor: CodeMirror, + focus: function(){window.focus(); this.display.input.focus();}, + + setOption: function(option, value) { + var options = this.options, old = options[option]; + if (options[option] == value && option != "mode") return; + options[option] = value; + if (optionHandlers.hasOwnProperty(option)) + operation(this, optionHandlers[option])(this, value, old); + }, + + getOption: function(option) {return this.options[option];}, + getDoc: function() {return this.doc;}, + + addKeyMap: function(map, bottom) { + this.state.keyMaps[bottom ? "push" : "unshift"](getKeyMap(map)); + }, + removeKeyMap: function(map) { + var maps = this.state.keyMaps; + for (var i = 0; i < maps.length; ++i) + if (maps[i] == map || maps[i].name == map) { + maps.splice(i, 1); + return true; + } + }, + + addOverlay: methodOp(function(spec, options) { + var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec); + if (mode.startState) throw new Error("Overlays may not be stateful."); + this.state.overlays.push({mode: mode, modeSpec: spec, opaque: options && options.opaque}); + this.state.modeGen++; + regChange(this); + }), + removeOverlay: methodOp(function(spec) { + var overlays = this.state.overlays; + for (var i = 0; i < overlays.length; ++i) { + var cur = overlays[i].modeSpec; + if (cur == spec || typeof spec == "string" && cur.name == spec) { + overlays.splice(i, 1); + this.state.modeGen++; + regChange(this); + return; + } + } + }), + + indentLine: methodOp(function(n, dir, aggressive) { + if (typeof dir != "string" && typeof dir != "number") { + if (dir == null) dir = this.options.smartIndent ? "smart" : "prev"; + else dir = dir ? "add" : "subtract"; + } + if (isLine(this.doc, n)) indentLine(this, n, dir, aggressive); + }), + indentSelection: methodOp(function(how) { + var ranges = this.doc.sel.ranges, end = -1; + for (var i = 0; i < ranges.length; i++) { + var range = ranges[i]; + if (!range.empty()) { + var from = range.from(), to = range.to(); + var start = Math.max(end, from.line); + end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1; + for (var j = start; j < end; ++j) + indentLine(this, j, how); + var newRanges = this.doc.sel.ranges; + if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0) + replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); + } else if (range.head.line > end) { + indentLine(this, range.head.line, how, true); + end = range.head.line; + if (i == this.doc.sel.primIndex) ensureCursorVisible(this); + } + } + }), + + // Fetch the parser token for a given character. Useful for hacks + // that want to inspect the mode state (say, for completion). + getTokenAt: function(pos, precise) { + return takeToken(this, pos, precise); + }, + + getLineTokens: function(line, precise) { + return takeToken(this, Pos(line), precise, true); + }, + + getTokenTypeAt: function(pos) { + pos = clipPos(this.doc, pos); + var styles = getLineStyles(this, getLine(this.doc, pos.line)); + var before = 0, after = (styles.length - 1) / 2, ch = pos.ch; + var type; + if (ch == 0) type = styles[2]; + else for (;;) { + var mid = (before + after) >> 1; + if ((mid ? styles[mid * 2 - 1] : 0) >= ch) after = mid; + else if (styles[mid * 2 + 1] < ch) before = mid + 1; + else { type = styles[mid * 2 + 2]; break; } + } + var cut = type ? type.indexOf("cm-overlay ") : -1; + return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1); + }, + + getModeAt: function(pos) { + var mode = this.doc.mode; + if (!mode.innerMode) return mode; + return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode; + }, + + getHelper: function(pos, type) { + return this.getHelpers(pos, type)[0]; + }, + + getHelpers: function(pos, type) { + var found = []; + if (!helpers.hasOwnProperty(type)) return found; + var help = helpers[type], mode = this.getModeAt(pos); + if (typeof mode[type] == "string") { + if (help[mode[type]]) found.push(help[mode[type]]); + } else if (mode[type]) { + for (var i = 0; i < mode[type].length; i++) { + var val = help[mode[type][i]]; + if (val) found.push(val); + } + } else if (mode.helperType && help[mode.helperType]) { + found.push(help[mode.helperType]); + } else if (help[mode.name]) { + found.push(help[mode.name]); + } + for (var i = 0; i < help._global.length; i++) { + var cur = help._global[i]; + if (cur.pred(mode, this) && indexOf(found, cur.val) == -1) + found.push(cur.val); + } + return found; + }, + + getStateAfter: function(line, precise) { + var doc = this.doc; + line = clipLine(doc, line == null ? doc.first + doc.size - 1: line); + return getStateBefore(this, line + 1, precise); + }, + + cursorCoords: function(start, mode) { + var pos, range = this.doc.sel.primary(); + if (start == null) pos = range.head; + else if (typeof start == "object") pos = clipPos(this.doc, start); + else pos = start ? range.from() : range.to(); + return cursorCoords(this, pos, mode || "page"); + }, + + charCoords: function(pos, mode) { + return charCoords(this, clipPos(this.doc, pos), mode || "page"); + }, + + coordsChar: function(coords, mode) { + coords = fromCoordSystem(this, coords, mode || "page"); + return coordsChar(this, coords.left, coords.top); + }, + + lineAtHeight: function(height, mode) { + height = fromCoordSystem(this, {top: height, left: 0}, mode || "page").top; + return lineAtHeight(this.doc, height + this.display.viewOffset); + }, + heightAtLine: function(line, mode) { + var end = false, lineObj; + if (typeof line == "number") { + var last = this.doc.first + this.doc.size - 1; + if (line < this.doc.first) line = this.doc.first; + else if (line > last) { line = last; end = true; } + lineObj = getLine(this.doc, line); + } else { + lineObj = line; + } + return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || "page").top + + (end ? this.doc.height - heightAtLine(lineObj) : 0); + }, + + defaultTextHeight: function() { return textHeight(this.display); }, + defaultCharWidth: function() { return charWidth(this.display); }, + + setGutterMarker: methodOp(function(line, gutterID, value) { + return changeLine(this.doc, line, "gutter", function(line) { + var markers = line.gutterMarkers || (line.gutterMarkers = {}); + markers[gutterID] = value; + if (!value && isEmpty(markers)) line.gutterMarkers = null; + return true; + }); + }), + + clearGutter: methodOp(function(gutterID) { + var cm = this, doc = cm.doc, i = doc.first; + doc.iter(function(line) { + if (line.gutterMarkers && line.gutterMarkers[gutterID]) { + line.gutterMarkers[gutterID] = null; + regLineChange(cm, i, "gutter"); + if (isEmpty(line.gutterMarkers)) line.gutterMarkers = null; + } + ++i; + }); + }), + + lineInfo: function(line) { + if (typeof line == "number") { + if (!isLine(this.doc, line)) return null; + var n = line; + line = getLine(this.doc, line); + if (!line) return null; + } else { + var n = lineNo(line); + if (n == null) return null; + } + return {line: n, handle: line, text: line.text, gutterMarkers: line.gutterMarkers, + textClass: line.textClass, bgClass: line.bgClass, wrapClass: line.wrapClass, + widgets: line.widgets}; + }, + + getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo};}, + + addWidget: function(pos, node, scroll, vert, horiz) { + var display = this.display; + pos = cursorCoords(this, clipPos(this.doc, pos)); + var top = pos.bottom, left = pos.left; + node.style.position = "absolute"; + node.setAttribute("cm-ignore-events", "true"); + this.display.input.setUneditable(node); + display.sizer.appendChild(node); + if (vert == "over") { + top = pos.top; + } else if (vert == "above" || vert == "near") { + var vspace = Math.max(display.wrapper.clientHeight, this.doc.height), + hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth); + // Default to positioning above (if specified and possible); otherwise default to positioning below + if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight) + top = pos.top - node.offsetHeight; + else if (pos.bottom + node.offsetHeight <= vspace) + top = pos.bottom; + if (left + node.offsetWidth > hspace) + left = hspace - node.offsetWidth; + } + node.style.top = top + "px"; + node.style.left = node.style.right = ""; + if (horiz == "right") { + left = display.sizer.clientWidth - node.offsetWidth; + node.style.right = "0px"; + } else { + if (horiz == "left") left = 0; + else if (horiz == "middle") left = (display.sizer.clientWidth - node.offsetWidth) / 2; + node.style.left = left + "px"; + } + if (scroll) + scrollIntoView(this, left, top, left + node.offsetWidth, top + node.offsetHeight); + }, + + triggerOnKeyDown: methodOp(onKeyDown), + triggerOnKeyPress: methodOp(onKeyPress), + triggerOnKeyUp: onKeyUp, + + execCommand: function(cmd) { + if (commands.hasOwnProperty(cmd)) + return commands[cmd](this); + }, + + findPosH: function(from, amount, unit, visually) { + var dir = 1; + if (amount < 0) { dir = -1; amount = -amount; } + for (var i = 0, cur = clipPos(this.doc, from); i < amount; ++i) { + cur = findPosH(this.doc, cur, dir, unit, visually); + if (cur.hitSide) break; + } + return cur; + }, + + moveH: methodOp(function(dir, unit) { + var cm = this; + cm.extendSelectionsBy(function(range) { + if (cm.display.shift || cm.doc.extend || range.empty()) + return findPosH(cm.doc, range.head, dir, unit, cm.options.rtlMoveVisually); + else + return dir < 0 ? range.from() : range.to(); + }, sel_move); + }), + + deleteH: methodOp(function(dir, unit) { + var sel = this.doc.sel, doc = this.doc; + if (sel.somethingSelected()) + doc.replaceSelection("", null, "+delete"); + else + deleteNearSelection(this, function(range) { + var other = findPosH(doc, range.head, dir, unit, false); + return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}; + }); + }), + + findPosV: function(from, amount, unit, goalColumn) { + var dir = 1, x = goalColumn; + if (amount < 0) { dir = -1; amount = -amount; } + for (var i = 0, cur = clipPos(this.doc, from); i < amount; ++i) { + var coords = cursorCoords(this, cur, "div"); + if (x == null) x = coords.left; + else coords.left = x; + cur = findPosV(this, coords, dir, unit); + if (cur.hitSide) break; + } + return cur; + }, + + moveV: methodOp(function(dir, unit) { + var cm = this, doc = this.doc, goals = []; + var collapse = !cm.display.shift && !doc.extend && doc.sel.somethingSelected(); + doc.extendSelectionsBy(function(range) { + if (collapse) + return dir < 0 ? range.from() : range.to(); + var headPos = cursorCoords(cm, range.head, "div"); + if (range.goalColumn != null) headPos.left = range.goalColumn; + goals.push(headPos.left); + var pos = findPosV(cm, headPos, dir, unit); + if (unit == "page" && range == doc.sel.primary()) + addToScrollPos(cm, null, charCoords(cm, pos, "div").top - headPos.top); + return pos; + }, sel_move); + if (goals.length) for (var i = 0; i < doc.sel.ranges.length; i++) + doc.sel.ranges[i].goalColumn = goals[i]; + }), + + // Find the word at the given position (as returned by coordsChar). + findWordAt: function(pos) { + var doc = this.doc, line = getLine(doc, pos.line).text; + var start = pos.ch, end = pos.ch; + if (line) { + var helper = this.getHelper(pos, "wordChars"); + if ((pos.xRel < 0 || end == line.length) && start) --start; else ++end; + var startChar = line.charAt(start); + var check = isWordChar(startChar, helper) + ? function(ch) { return isWordChar(ch, helper); } + : /\s/.test(startChar) ? function(ch) {return /\s/.test(ch);} + : function(ch) {return !/\s/.test(ch) && !isWordChar(ch);}; + while (start > 0 && check(line.charAt(start - 1))) --start; + while (end < line.length && check(line.charAt(end))) ++end; + } + return new Range(Pos(pos.line, start), Pos(pos.line, end)); + }, + + toggleOverwrite: function(value) { + if (value != null && value == this.state.overwrite) return; + if (this.state.overwrite = !this.state.overwrite) + addClass(this.display.cursorDiv, "CodeMirror-overwrite"); + else + rmClass(this.display.cursorDiv, "CodeMirror-overwrite"); + + signal(this, "overwriteToggle", this, this.state.overwrite); + }, + hasFocus: function() { return this.display.input.getField() == activeElt(); }, + + scrollTo: methodOp(function(x, y) { + if (x != null || y != null) resolveScrollToPos(this); + if (x != null) this.curOp.scrollLeft = x; + if (y != null) this.curOp.scrollTop = y; + }), + getScrollInfo: function() { + var scroller = this.display.scroller; + return {left: scroller.scrollLeft, top: scroller.scrollTop, + height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight, + width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth, + clientHeight: displayHeight(this), clientWidth: displayWidth(this)}; + }, + + scrollIntoView: methodOp(function(range, margin) { + if (range == null) { + range = {from: this.doc.sel.primary().head, to: null}; + if (margin == null) margin = this.options.cursorScrollMargin; + } else if (typeof range == "number") { + range = {from: Pos(range, 0), to: null}; + } else if (range.from == null) { + range = {from: range, to: null}; + } + if (!range.to) range.to = range.from; + range.margin = margin || 0; + + if (range.from.line != null) { + resolveScrollToPos(this); + this.curOp.scrollToPos = range; + } else { + var sPos = calculateScrollPos(this, Math.min(range.from.left, range.to.left), + Math.min(range.from.top, range.to.top) - range.margin, + Math.max(range.from.right, range.to.right), + Math.max(range.from.bottom, range.to.bottom) + range.margin); + this.scrollTo(sPos.scrollLeft, sPos.scrollTop); + } + }), + + setSize: methodOp(function(width, height) { + var cm = this; + function interpret(val) { + return typeof val == "number" || /^\d+$/.test(String(val)) ? val + "px" : val; + } + if (width != null) cm.display.wrapper.style.width = interpret(width); + if (height != null) cm.display.wrapper.style.height = interpret(height); + if (cm.options.lineWrapping) clearLineMeasurementCache(this); + var lineNo = cm.display.viewFrom; + cm.doc.iter(lineNo, cm.display.viewTo, function(line) { + if (line.widgets) for (var i = 0; i < line.widgets.length; i++) + if (line.widgets[i].noHScroll) { regLineChange(cm, lineNo, "widget"); break; } + ++lineNo; + }); + cm.curOp.forceUpdate = true; + signal(cm, "refresh", this); + }), + + operation: function(f){return runInOp(this, f);}, + + refresh: methodOp(function() { + var oldHeight = this.display.cachedTextHeight; + regChange(this); + this.curOp.forceUpdate = true; + clearCaches(this); + this.scrollTo(this.doc.scrollLeft, this.doc.scrollTop); + updateGutterSpace(this); + if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5) + estimateLineHeights(this); + signal(this, "refresh", this); + }), + + swapDoc: methodOp(function(doc) { + var old = this.doc; + old.cm = null; + attachDoc(this, doc); + clearCaches(this); + this.display.input.reset(); + this.scrollTo(doc.scrollLeft, doc.scrollTop); + this.curOp.forceScroll = true; + signalLater(this, "swapDoc", this, old); + return old; + }), + + getInputField: function(){return this.display.input.getField();}, + getWrapperElement: function(){return this.display.wrapper;}, + getScrollerElement: function(){return this.display.scroller;}, + getGutterElement: function(){return this.display.gutters;} + }; + eventMixin(CodeMirror); + + // OPTION DEFAULTS + + // The default configuration options. + var defaults = CodeMirror.defaults = {}; + // Functions to run when options are changed. + var optionHandlers = CodeMirror.optionHandlers = {}; + + function option(name, deflt, handle, notOnInit) { + CodeMirror.defaults[name] = deflt; + if (handle) optionHandlers[name] = + notOnInit ? function(cm, val, old) {if (old != Init) handle(cm, val, old);} : handle; + } + + // Passed to option handlers when there is no old value. + var Init = CodeMirror.Init = {toString: function(){return "CodeMirror.Init";}}; + + // These two are, on init, called from the constructor because they + // have to be initialized before the editor can start at all. + option("value", "", function(cm, val) { + cm.setValue(val); + }, true); + option("mode", null, function(cm, val) { + cm.doc.modeOption = val; + loadMode(cm); + }, true); + + option("indentUnit", 2, loadMode, true); + option("indentWithTabs", false); + option("smartIndent", true); + option("tabSize", 4, function(cm) { + resetModeState(cm); + clearCaches(cm); + regChange(cm); + }, true); + option("specialChars", /[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g, function(cm, val, old) { + cm.state.specialChars = new RegExp(val.source + (val.test("\t") ? "" : "|\t"), "g"); + if (old != CodeMirror.Init) cm.refresh(); + }); + option("specialCharPlaceholder", defaultSpecialCharPlaceholder, function(cm) {cm.refresh();}, true); + option("electricChars", true); + option("inputStyle", mobile ? "contenteditable" : "textarea", function() { + throw new Error("inputStyle can not (yet) be changed in a running editor"); // FIXME + }, true); + option("rtlMoveVisually", !windows); + option("wholeLineUpdateBefore", true); + + option("theme", "default", function(cm) { + themeChanged(cm); + guttersChanged(cm); + }, true); + option("keyMap", "default", function(cm, val, old) { + var next = getKeyMap(val); + var prev = old != CodeMirror.Init && getKeyMap(old); + if (prev && prev.detach) prev.detach(cm, next); + if (next.attach) next.attach(cm, prev || null); + }); + option("extraKeys", null); + + option("lineWrapping", false, wrappingChanged, true); + option("gutters", [], function(cm) { + setGuttersForLineNumbers(cm.options); + guttersChanged(cm); + }, true); + option("fixedGutter", true, function(cm, val) { + cm.display.gutters.style.left = val ? compensateForHScroll(cm.display) + "px" : "0"; + cm.refresh(); + }, true); + option("coverGutterNextToScrollbar", false, function(cm) {updateScrollbars(cm);}, true); + option("scrollbarStyle", "native", function(cm) { + initScrollbars(cm); + updateScrollbars(cm); + cm.display.scrollbars.setScrollTop(cm.doc.scrollTop); + cm.display.scrollbars.setScrollLeft(cm.doc.scrollLeft); + }, true); + option("lineNumbers", false, function(cm) { + setGuttersForLineNumbers(cm.options); + guttersChanged(cm); + }, true); + option("firstLineNumber", 1, guttersChanged, true); + option("lineNumberFormatter", function(integer) {return integer;}, guttersChanged, true); + option("showCursorWhenSelecting", false, updateSelection, true); + + option("resetSelectionOnContextMenu", true); + option("lineWiseCopyCut", true); + + option("readOnly", false, function(cm, val) { + if (val == "nocursor") { + onBlur(cm); + cm.display.input.blur(); + cm.display.disabled = true; + } else { + cm.display.disabled = false; + if (!val) cm.display.input.reset(); + } + }); + option("disableInput", false, function(cm, val) {if (!val) cm.display.input.reset();}, true); + option("dragDrop", true, dragDropChanged); + + option("cursorBlinkRate", 530); + option("cursorScrollMargin", 0); + option("cursorHeight", 1, updateSelection, true); + option("singleCursorHeightPerLine", true, updateSelection, true); + option("workTime", 100); + option("workDelay", 100); + option("flattenSpans", true, resetModeState, true); + option("addModeClass", false, resetModeState, true); + option("pollInterval", 100); + option("undoDepth", 200, function(cm, val){cm.doc.history.undoDepth = val;}); + option("historyEventDelay", 1250); + option("viewportMargin", 10, function(cm){cm.refresh();}, true); + option("maxHighlightLength", 10000, resetModeState, true); + option("moveInputWithCursor", true, function(cm, val) { + if (!val) cm.display.input.resetPosition(); + }); + + option("tabindex", null, function(cm, val) { + cm.display.input.getField().tabIndex = val || ""; + }); + option("autofocus", null); + + // MODE DEFINITION AND QUERYING + + // Known modes, by name and by MIME + var modes = CodeMirror.modes = {}, mimeModes = CodeMirror.mimeModes = {}; + + // Extra arguments are stored as the mode's dependencies, which is + // used by (legacy) mechanisms like loadmode.js to automatically + // load a mode. (Preferred mechanism is the require/define calls.) + CodeMirror.defineMode = function(name, mode) { + if (!CodeMirror.defaults.mode && name != "null") CodeMirror.defaults.mode = name; + if (arguments.length > 2) + mode.dependencies = Array.prototype.slice.call(arguments, 2); + modes[name] = mode; + }; + + CodeMirror.defineMIME = function(mime, spec) { + mimeModes[mime] = spec; + }; + + // Given a MIME type, a {name, ...options} config object, or a name + // string, return a mode config object. + CodeMirror.resolveMode = function(spec) { + if (typeof spec == "string" && mimeModes.hasOwnProperty(spec)) { + spec = mimeModes[spec]; + } else if (spec && typeof spec.name == "string" && mimeModes.hasOwnProperty(spec.name)) { + var found = mimeModes[spec.name]; + if (typeof found == "string") found = {name: found}; + spec = createObj(found, spec); + spec.name = found.name; + } else if (typeof spec == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(spec)) { + return CodeMirror.resolveMode("application/xml"); + } + if (typeof spec == "string") return {name: spec}; + else return spec || {name: "null"}; + }; + + // Given a mode spec (anything that resolveMode accepts), find and + // initialize an actual mode object. + CodeMirror.getMode = function(options, spec) { + var spec = CodeMirror.resolveMode(spec); + var mfactory = modes[spec.name]; + if (!mfactory) return CodeMirror.getMode(options, "text/plain"); + var modeObj = mfactory(options, spec); + if (modeExtensions.hasOwnProperty(spec.name)) { + var exts = modeExtensions[spec.name]; + for (var prop in exts) { + if (!exts.hasOwnProperty(prop)) continue; + if (modeObj.hasOwnProperty(prop)) modeObj["_" + prop] = modeObj[prop]; + modeObj[prop] = exts[prop]; + } + } + modeObj.name = spec.name; + if (spec.helperType) modeObj.helperType = spec.helperType; + if (spec.modeProps) for (var prop in spec.modeProps) + modeObj[prop] = spec.modeProps[prop]; + + return modeObj; + }; + + // Minimal default mode. + CodeMirror.defineMode("null", function() { + return {token: function(stream) {stream.skipToEnd();}}; + }); + CodeMirror.defineMIME("text/plain", "null"); + + // This can be used to attach properties to mode objects from + // outside the actual mode definition. + var modeExtensions = CodeMirror.modeExtensions = {}; + CodeMirror.extendMode = function(mode, properties) { + var exts = modeExtensions.hasOwnProperty(mode) ? modeExtensions[mode] : (modeExtensions[mode] = {}); + copyObj(properties, exts); + }; + + // EXTENSIONS + + CodeMirror.defineExtension = function(name, func) { + CodeMirror.prototype[name] = func; + }; + CodeMirror.defineDocExtension = function(name, func) { + Doc.prototype[name] = func; + }; + CodeMirror.defineOption = option; + + var initHooks = []; + CodeMirror.defineInitHook = function(f) {initHooks.push(f);}; + + var helpers = CodeMirror.helpers = {}; + CodeMirror.registerHelper = function(type, name, value) { + if (!helpers.hasOwnProperty(type)) helpers[type] = CodeMirror[type] = {_global: []}; + helpers[type][name] = value; + }; + CodeMirror.registerGlobalHelper = function(type, name, predicate, value) { + CodeMirror.registerHelper(type, name, value); + helpers[type]._global.push({pred: predicate, val: value}); + }; + + // MODE STATE HANDLING + + // Utility functions for working with state. Exported because nested + // modes need to do this for their inner modes. + + var copyState = CodeMirror.copyState = function(mode, state) { + if (state === true) return state; + if (mode.copyState) return mode.copyState(state); + var nstate = {}; + for (var n in state) { + var val = state[n]; + if (val instanceof Array) val = val.concat([]); + nstate[n] = val; + } + return nstate; + }; + + var startState = CodeMirror.startState = function(mode, a1, a2) { + return mode.startState ? mode.startState(a1, a2) : true; + }; + + // Given a mode and a state (for that mode), find the inner mode and + // state at the position that the state refers to. + CodeMirror.innerMode = function(mode, state) { + while (mode.innerMode) { + var info = mode.innerMode(state); + if (!info || info.mode == mode) break; + state = info.state; + mode = info.mode; + } + return info || {mode: mode, state: state}; + }; + + // STANDARD COMMANDS + + // Commands are parameter-less actions that can be performed on an + // editor, mostly used for keybindings. + var commands = CodeMirror.commands = { + selectAll: function(cm) {cm.setSelection(Pos(cm.firstLine(), 0), Pos(cm.lastLine()), sel_dontScroll);}, + singleSelection: function(cm) { + cm.setSelection(cm.getCursor("anchor"), cm.getCursor("head"), sel_dontScroll); + }, + killLine: function(cm) { + deleteNearSelection(cm, function(range) { + if (range.empty()) { + var len = getLine(cm.doc, range.head.line).text.length; + if (range.head.ch == len && range.head.line < cm.lastLine()) + return {from: range.head, to: Pos(range.head.line + 1, 0)}; + else + return {from: range.head, to: Pos(range.head.line, len)}; + } else { + return {from: range.from(), to: range.to()}; + } + }); + }, + deleteLine: function(cm) { + deleteNearSelection(cm, function(range) { + return {from: Pos(range.from().line, 0), + to: clipPos(cm.doc, Pos(range.to().line + 1, 0))}; + }); + }, + delLineLeft: function(cm) { + deleteNearSelection(cm, function(range) { + return {from: Pos(range.from().line, 0), to: range.from()}; + }); + }, + delWrappedLineLeft: function(cm) { + deleteNearSelection(cm, function(range) { + var top = cm.charCoords(range.head, "div").top + 5; + var leftPos = cm.coordsChar({left: 0, top: top}, "div"); + return {from: leftPos, to: range.from()}; + }); + }, + delWrappedLineRight: function(cm) { + deleteNearSelection(cm, function(range) { + var top = cm.charCoords(range.head, "div").top + 5; + var rightPos = cm.coordsChar({left: cm.display.lineDiv.offsetWidth + 100, top: top}, "div"); + return {from: range.from(), to: rightPos }; + }); + }, + undo: function(cm) {cm.undo();}, + redo: function(cm) {cm.redo();}, + undoSelection: function(cm) {cm.undoSelection();}, + redoSelection: function(cm) {cm.redoSelection();}, + goDocStart: function(cm) {cm.extendSelection(Pos(cm.firstLine(), 0));}, + goDocEnd: function(cm) {cm.extendSelection(Pos(cm.lastLine()));}, + goLineStart: function(cm) { + cm.extendSelectionsBy(function(range) { return lineStart(cm, range.head.line); }, + {origin: "+move", bias: 1}); + }, + goLineStartSmart: function(cm) { + cm.extendSelectionsBy(function(range) { + return lineStartSmart(cm, range.head); + }, {origin: "+move", bias: 1}); + }, + goLineEnd: function(cm) { + cm.extendSelectionsBy(function(range) { return lineEnd(cm, range.head.line); }, + {origin: "+move", bias: -1}); + }, + goLineRight: function(cm) { + cm.extendSelectionsBy(function(range) { + var top = cm.charCoords(range.head, "div").top + 5; + return cm.coordsChar({left: cm.display.lineDiv.offsetWidth + 100, top: top}, "div"); + }, sel_move); + }, + goLineLeft: function(cm) { + cm.extendSelectionsBy(function(range) { + var top = cm.charCoords(range.head, "div").top + 5; + return cm.coordsChar({left: 0, top: top}, "div"); + }, sel_move); + }, + goLineLeftSmart: function(cm) { + cm.extendSelectionsBy(function(range) { + var top = cm.charCoords(range.head, "div").top + 5; + var pos = cm.coordsChar({left: 0, top: top}, "div"); + if (pos.ch < cm.getLine(pos.line).search(/\S/)) return lineStartSmart(cm, range.head); + return pos; + }, sel_move); + }, + goLineUp: function(cm) {cm.moveV(-1, "line");}, + goLineDown: function(cm) {cm.moveV(1, "line");}, + goPageUp: function(cm) {cm.moveV(-1, "page");}, + goPageDown: function(cm) {cm.moveV(1, "page");}, + goCharLeft: function(cm) {cm.moveH(-1, "char");}, + goCharRight: function(cm) {cm.moveH(1, "char");}, + goColumnLeft: function(cm) {cm.moveH(-1, "column");}, + goColumnRight: function(cm) {cm.moveH(1, "column");}, + goWordLeft: function(cm) {cm.moveH(-1, "word");}, + goGroupRight: function(cm) {cm.moveH(1, "group");}, + goGroupLeft: function(cm) {cm.moveH(-1, "group");}, + goWordRight: function(cm) {cm.moveH(1, "word");}, + delCharBefore: function(cm) {cm.deleteH(-1, "char");}, + delCharAfter: function(cm) {cm.deleteH(1, "char");}, + delWordBefore: function(cm) {cm.deleteH(-1, "word");}, + delWordAfter: function(cm) {cm.deleteH(1, "word");}, + delGroupBefore: function(cm) {cm.deleteH(-1, "group");}, + delGroupAfter: function(cm) {cm.deleteH(1, "group");}, + indentAuto: function(cm) {cm.indentSelection("smart");}, + indentMore: function(cm) {cm.indentSelection("add");}, + indentLess: function(cm) {cm.indentSelection("subtract");}, + insertTab: function(cm) {cm.replaceSelection("\t");}, + insertSoftTab: function(cm) { + var spaces = [], ranges = cm.listSelections(), tabSize = cm.options.tabSize; + for (var i = 0; i < ranges.length; i++) { + var pos = ranges[i].from(); + var col = countColumn(cm.getLine(pos.line), pos.ch, tabSize); + spaces.push(new Array(tabSize - col % tabSize + 1).join(" ")); + } + cm.replaceSelections(spaces); + }, + defaultTab: function(cm) { + if (cm.somethingSelected()) cm.indentSelection("add"); + else cm.execCommand("insertTab"); + }, + transposeChars: function(cm) { + runInOp(cm, function() { + var ranges = cm.listSelections(), newSel = []; + for (var i = 0; i < ranges.length; i++) { + var cur = ranges[i].head, line = getLine(cm.doc, cur.line).text; + if (line) { + if (cur.ch == line.length) cur = new Pos(cur.line, cur.ch - 1); + if (cur.ch > 0) { + cur = new Pos(cur.line, cur.ch + 1); + cm.replaceRange(line.charAt(cur.ch - 1) + line.charAt(cur.ch - 2), + Pos(cur.line, cur.ch - 2), cur, "+transpose"); + } else if (cur.line > cm.doc.first) { + var prev = getLine(cm.doc, cur.line - 1).text; + if (prev) + cm.replaceRange(line.charAt(0) + "\n" + prev.charAt(prev.length - 1), + Pos(cur.line - 1, prev.length - 1), Pos(cur.line, 1), "+transpose"); + } + } + newSel.push(new Range(cur, cur)); + } + cm.setSelections(newSel); + }); + }, + newlineAndIndent: function(cm) { + runInOp(cm, function() { + var len = cm.listSelections().length; + for (var i = 0; i < len; i++) { + var range = cm.listSelections()[i]; + cm.replaceRange("\n", range.anchor, range.head, "+input"); + cm.indentLine(range.from().line + 1, null, true); + ensureCursorVisible(cm); + } + }); + }, + toggleOverwrite: function(cm) {cm.toggleOverwrite();} + }; + + + // STANDARD KEYMAPS + + var keyMap = CodeMirror.keyMap = {}; + + keyMap.basic = { + "Left": "goCharLeft", "Right": "goCharRight", "Up": "goLineUp", "Down": "goLineDown", + "End": "goLineEnd", "Home": "goLineStartSmart", "PageUp": "goPageUp", "PageDown": "goPageDown", + "Delete": "delCharAfter", "Backspace": "delCharBefore", "Shift-Backspace": "delCharBefore", + "Tab": "defaultTab", "Shift-Tab": "indentAuto", + "Enter": "newlineAndIndent", "Insert": "toggleOverwrite", + "Esc": "singleSelection" + }; + // Note that the save and find-related commands aren't defined by + // default. User code or addons can define them. Unknown commands + // are simply ignored. + keyMap.pcDefault = { + "Ctrl-A": "selectAll", "Ctrl-D": "deleteLine", "Ctrl-Z": "undo", "Shift-Ctrl-Z": "redo", "Ctrl-Y": "redo", + "Ctrl-Home": "goDocStart", "Ctrl-End": "goDocEnd", "Ctrl-Up": "goLineUp", "Ctrl-Down": "goLineDown", + "Ctrl-Left": "goGroupLeft", "Ctrl-Right": "goGroupRight", "Alt-Left": "goLineStart", "Alt-Right": "goLineEnd", + "Ctrl-Backspace": "delGroupBefore", "Ctrl-Delete": "delGroupAfter", "Ctrl-S": "save", "Ctrl-F": "find", + "Ctrl-G": "findNext", "Shift-Ctrl-G": "findPrev", "Shift-Ctrl-F": "replace", "Shift-Ctrl-R": "replaceAll", + "Ctrl-[": "indentLess", "Ctrl-]": "indentMore", + "Ctrl-U": "undoSelection", "Shift-Ctrl-U": "redoSelection", "Alt-U": "redoSelection", + fallthrough: "basic" + }; + // Very basic readline/emacs-style bindings, which are standard on Mac. + keyMap.emacsy = { + "Ctrl-F": "goCharRight", "Ctrl-B": "goCharLeft", "Ctrl-P": "goLineUp", "Ctrl-N": "goLineDown", + "Alt-F": "goWordRight", "Alt-B": "goWordLeft", "Ctrl-A": "goLineStart", "Ctrl-E": "goLineEnd", + "Ctrl-V": "goPageDown", "Shift-Ctrl-V": "goPageUp", "Ctrl-D": "delCharAfter", "Ctrl-H": "delCharBefore", + "Alt-D": "delWordAfter", "Alt-Backspace": "delWordBefore", "Ctrl-K": "killLine", "Ctrl-T": "transposeChars" + }; + keyMap.macDefault = { + "Cmd-A": "selectAll", "Cmd-D": "deleteLine", "Cmd-Z": "undo", "Shift-Cmd-Z": "redo", "Cmd-Y": "redo", + "Cmd-Home": "goDocStart", "Cmd-Up": "goDocStart", "Cmd-End": "goDocEnd", "Cmd-Down": "goDocEnd", "Alt-Left": "goGroupLeft", + "Alt-Right": "goGroupRight", "Cmd-Left": "goLineLeft", "Cmd-Right": "goLineRight", "Alt-Backspace": "delGroupBefore", + "Ctrl-Alt-Backspace": "delGroupAfter", "Alt-Delete": "delGroupAfter", "Cmd-S": "save", "Cmd-F": "find", + "Cmd-G": "findNext", "Shift-Cmd-G": "findPrev", "Cmd-Alt-F": "replace", "Shift-Cmd-Alt-F": "replaceAll", + "Cmd-[": "indentLess", "Cmd-]": "indentMore", "Cmd-Backspace": "delWrappedLineLeft", "Cmd-Delete": "delWrappedLineRight", + "Cmd-U": "undoSelection", "Shift-Cmd-U": "redoSelection", "Ctrl-Up": "goDocStart", "Ctrl-Down": "goDocEnd", + fallthrough: ["basic", "emacsy"] + }; + keyMap["default"] = mac ? keyMap.macDefault : keyMap.pcDefault; + + // KEYMAP DISPATCH + + function normalizeKeyName(name) { + var parts = name.split(/-(?!$)/), name = parts[parts.length - 1]; + var alt, ctrl, shift, cmd; + for (var i = 0; i < parts.length - 1; i++) { + var mod = parts[i]; + if (/^(cmd|meta|m)$/i.test(mod)) cmd = true; + else if (/^a(lt)?$/i.test(mod)) alt = true; + else if (/^(c|ctrl|control)$/i.test(mod)) ctrl = true; + else if (/^s(hift)$/i.test(mod)) shift = true; + else throw new Error("Unrecognized modifier name: " + mod); + } + if (alt) name = "Alt-" + name; + if (ctrl) name = "Ctrl-" + name; + if (cmd) name = "Cmd-" + name; + if (shift) name = "Shift-" + name; + return name; + } + + // This is a kludge to keep keymaps mostly working as raw objects + // (backwards compatibility) while at the same time support features + // like normalization and multi-stroke key bindings. It compiles a + // new normalized keymap, and then updates the old object to reflect + // this. + CodeMirror.normalizeKeyMap = function(keymap) { + var copy = {}; + for (var keyname in keymap) if (keymap.hasOwnProperty(keyname)) { + var value = keymap[keyname]; + if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) continue; + if (value == "...") { delete keymap[keyname]; continue; } + + var keys = map(keyname.split(" "), normalizeKeyName); + for (var i = 0; i < keys.length; i++) { + var val, name; + if (i == keys.length - 1) { + name = keyname; + val = value; + } else { + name = keys.slice(0, i + 1).join(" "); + val = "..."; + } + var prev = copy[name]; + if (!prev) copy[name] = val; + else if (prev != val) throw new Error("Inconsistent bindings for " + name); + } + delete keymap[keyname]; + } + for (var prop in copy) keymap[prop] = copy[prop]; + return keymap; + }; + + var lookupKey = CodeMirror.lookupKey = function(key, map, handle, context) { + map = getKeyMap(map); + var found = map.call ? map.call(key, context) : map[key]; + if (found === false) return "nothing"; + if (found === "...") return "multi"; + if (found != null && handle(found)) return "handled"; + + if (map.fallthrough) { + if (Object.prototype.toString.call(map.fallthrough) != "[object Array]") + return lookupKey(key, map.fallthrough, handle, context); + for (var i = 0; i < map.fallthrough.length; i++) { + var result = lookupKey(key, map.fallthrough[i], handle, context); + if (result) return result; + } + } + }; + + // Modifier key presses don't count as 'real' key presses for the + // purpose of keymap fallthrough. + var isModifierKey = CodeMirror.isModifierKey = function(value) { + var name = typeof value == "string" ? value : keyNames[value.keyCode]; + return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod"; + }; + + // Look up the name of a key as indicated by an event object. + var keyName = CodeMirror.keyName = function(event, noShift) { + if (presto && event.keyCode == 34 && event["char"]) return false; + var base = keyNames[event.keyCode], name = base; + if (name == null || event.altGraphKey) return false; + if (event.altKey && base != "Alt") name = "Alt-" + name; + if ((flipCtrlCmd ? event.metaKey : event.ctrlKey) && base != "Ctrl") name = "Ctrl-" + name; + if ((flipCtrlCmd ? event.ctrlKey : event.metaKey) && base != "Cmd") name = "Cmd-" + name; + if (!noShift && event.shiftKey && base != "Shift") name = "Shift-" + name; + return name; + }; + + function getKeyMap(val) { + return typeof val == "string" ? keyMap[val] : val; + } + + // FROMTEXTAREA + + CodeMirror.fromTextArea = function(textarea, options) { + options = options ? copyObj(options) : {}; + options.value = textarea.value; + if (!options.tabindex && textarea.tabIndex) + options.tabindex = textarea.tabIndex; + if (!options.placeholder && textarea.placeholder) + options.placeholder = textarea.placeholder; + // Set autofocus to true if this textarea is focused, or if it has + // autofocus and no other element is focused. + if (options.autofocus == null) { + var hasFocus = activeElt(); + options.autofocus = hasFocus == textarea || + textarea.getAttribute("autofocus") != null && hasFocus == document.body; + } + + function save() {textarea.value = cm.getValue();} + if (textarea.form) { + on(textarea.form, "submit", save); + // Deplorable hack to make the submit method do the right thing. + if (!options.leaveSubmitMethodAlone) { + var form = textarea.form, realSubmit = form.submit; + try { + var wrappedSubmit = form.submit = function() { + save(); + form.submit = realSubmit; + form.submit(); + form.submit = wrappedSubmit; + }; + } catch(e) {} + } + } + + options.finishInit = function(cm) { + cm.save = save; + cm.getTextArea = function() { return textarea; }; + cm.toTextArea = function() { + cm.toTextArea = isNaN; // Prevent this from being ran twice + save(); + textarea.parentNode.removeChild(cm.getWrapperElement()); + textarea.style.display = ""; + if (textarea.form) { + off(textarea.form, "submit", save); + if (typeof textarea.form.submit == "function") + textarea.form.submit = realSubmit; + } + }; + }; + + textarea.style.display = "none"; + var cm = CodeMirror(function(node) { + textarea.parentNode.insertBefore(node, textarea.nextSibling); + }, options); + return cm; + }; + + // STRING STREAM + + // Fed to the mode parsers, provides helper functions to make + // parsers more succinct. + + var StringStream = CodeMirror.StringStream = function(string, tabSize) { + this.pos = this.start = 0; + this.string = string; + this.tabSize = tabSize || 8; + this.lastColumnPos = this.lastColumnValue = 0; + this.lineStart = 0; + }; + + StringStream.prototype = { + eol: function() {return this.pos >= this.string.length;}, + sol: function() {return this.pos == this.lineStart;}, + peek: function() {return this.string.charAt(this.pos) || undefined;}, + next: function() { + if (this.pos < this.string.length) + return this.string.charAt(this.pos++); + }, + eat: function(match) { + var ch = this.string.charAt(this.pos); + if (typeof match == "string") var ok = ch == match; + else var ok = ch && (match.test ? match.test(ch) : match(ch)); + if (ok) {++this.pos; return ch;} + }, + eatWhile: function(match) { + var start = this.pos; + while (this.eat(match)){} + return this.pos > start; + }, + eatSpace: function() { + var start = this.pos; + while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) ++this.pos; + return this.pos > start; + }, + skipToEnd: function() {this.pos = this.string.length;}, + skipTo: function(ch) { + var found = this.string.indexOf(ch, this.pos); + if (found > -1) {this.pos = found; return true;} + }, + backUp: function(n) {this.pos -= n;}, + column: function() { + if (this.lastColumnPos < this.start) { + this.lastColumnValue = countColumn(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue); + this.lastColumnPos = this.start; + } + return this.lastColumnValue - (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0); + }, + indentation: function() { + return countColumn(this.string, null, this.tabSize) - + (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0); + }, + match: function(pattern, consume, caseInsensitive) { + if (typeof pattern == "string") { + var cased = function(str) {return caseInsensitive ? str.toLowerCase() : str;}; + var substr = this.string.substr(this.pos, pattern.length); + if (cased(substr) == cased(pattern)) { + if (consume !== false) this.pos += pattern.length; + return true; + } + } else { + var match = this.string.slice(this.pos).match(pattern); + if (match && match.index > 0) return null; + if (match && consume !== false) this.pos += match[0].length; + return match; + } + }, + current: function(){return this.string.slice(this.start, this.pos);}, + hideFirstChars: function(n, inner) { + this.lineStart += n; + try { return inner(); } + finally { this.lineStart -= n; } + } + }; + + // TEXTMARKERS + + // Created with markText and setBookmark methods. A TextMarker is a + // handle that can be used to clear or find a marked position in the + // document. Line objects hold arrays (markedSpans) containing + // {from, to, marker} object pointing to such marker objects, and + // indicating that such a marker is present on that line. Multiple + // lines may point to the same marker when it spans across lines. + // The spans will have null for their from/to properties when the + // marker continues beyond the start/end of the line. Markers have + // links back to the lines they currently touch. + + var nextMarkerId = 0; + + var TextMarker = CodeMirror.TextMarker = function(doc, type) { + this.lines = []; + this.type = type; + this.doc = doc; + this.id = ++nextMarkerId; + }; + eventMixin(TextMarker); + + // Clear the marker. + TextMarker.prototype.clear = function() { + if (this.explicitlyCleared) return; + var cm = this.doc.cm, withOp = cm && !cm.curOp; + if (withOp) startOperation(cm); + if (hasHandler(this, "clear")) { + var found = this.find(); + if (found) signalLater(this, "clear", found.from, found.to); + } + var min = null, max = null; + for (var i = 0; i < this.lines.length; ++i) { + var line = this.lines[i]; + var span = getMarkedSpanFor(line.markedSpans, this); + if (cm && !this.collapsed) regLineChange(cm, lineNo(line), "text"); + else if (cm) { + if (span.to != null) max = lineNo(line); + if (span.from != null) min = lineNo(line); + } + line.markedSpans = removeMarkedSpan(line.markedSpans, span); + if (span.from == null && this.collapsed && !lineIsHidden(this.doc, line) && cm) + updateLineHeight(line, textHeight(cm.display)); + } + if (cm && this.collapsed && !cm.options.lineWrapping) for (var i = 0; i < this.lines.length; ++i) { + var visual = visualLine(this.lines[i]), len = lineLength(visual); + if (len > cm.display.maxLineLength) { + cm.display.maxLine = visual; + cm.display.maxLineLength = len; + cm.display.maxLineChanged = true; + } + } + + if (min != null && cm && this.collapsed) regChange(cm, min, max + 1); + this.lines.length = 0; + this.explicitlyCleared = true; + if (this.atomic && this.doc.cantEdit) { + this.doc.cantEdit = false; + if (cm) reCheckSelection(cm.doc); + } + if (cm) signalLater(cm, "markerCleared", cm, this); + if (withOp) endOperation(cm); + if (this.parent) this.parent.clear(); + }; + + // Find the position of the marker in the document. Returns a {from, + // to} object by default. Side can be passed to get a specific side + // -- 0 (both), -1 (left), or 1 (right). When lineObj is true, the + // Pos objects returned contain a line object, rather than a line + // number (used to prevent looking up the same line twice). + TextMarker.prototype.find = function(side, lineObj) { + if (side == null && this.type == "bookmark") side = 1; + var from, to; + for (var i = 0; i < this.lines.length; ++i) { + var line = this.lines[i]; + var span = getMarkedSpanFor(line.markedSpans, this); + if (span.from != null) { + from = Pos(lineObj ? line : lineNo(line), span.from); + if (side == -1) return from; + } + if (span.to != null) { + to = Pos(lineObj ? line : lineNo(line), span.to); + if (side == 1) return to; + } + } + return from && {from: from, to: to}; + }; + + // Signals that the marker's widget changed, and surrounding layout + // should be recomputed. + TextMarker.prototype.changed = function() { + var pos = this.find(-1, true), widget = this, cm = this.doc.cm; + if (!pos || !cm) return; + runInOp(cm, function() { + var line = pos.line, lineN = lineNo(pos.line); + var view = findViewForLine(cm, lineN); + if (view) { + clearLineMeasurementCacheFor(view); + cm.curOp.selectionChanged = cm.curOp.forceUpdate = true; + } + cm.curOp.updateMaxLine = true; + if (!lineIsHidden(widget.doc, line) && widget.height != null) { + var oldHeight = widget.height; + widget.height = null; + var dHeight = widgetHeight(widget) - oldHeight; + if (dHeight) + updateLineHeight(line, line.height + dHeight); + } + }); + }; + + TextMarker.prototype.attachLine = function(line) { + if (!this.lines.length && this.doc.cm) { + var op = this.doc.cm.curOp; + if (!op.maybeHiddenMarkers || indexOf(op.maybeHiddenMarkers, this) == -1) + (op.maybeUnhiddenMarkers || (op.maybeUnhiddenMarkers = [])).push(this); + } + this.lines.push(line); + }; + TextMarker.prototype.detachLine = function(line) { + this.lines.splice(indexOf(this.lines, line), 1); + if (!this.lines.length && this.doc.cm) { + var op = this.doc.cm.curOp; + (op.maybeHiddenMarkers || (op.maybeHiddenMarkers = [])).push(this); + } + }; + + // Collapsed markers have unique ids, in order to be able to order + // them, which is needed for uniquely determining an outer marker + // when they overlap (they may nest, but not partially overlap). + var nextMarkerId = 0; + + // Create a marker, wire it up to the right lines, and + function markText(doc, from, to, options, type) { + // Shared markers (across linked documents) are handled separately + // (markTextShared will call out to this again, once per + // document). + if (options && options.shared) return markTextShared(doc, from, to, options, type); + // Ensure we are in an operation. + if (doc.cm && !doc.cm.curOp) return operation(doc.cm, markText)(doc, from, to, options, type); + + var marker = new TextMarker(doc, type), diff = cmp(from, to); + if (options) copyObj(options, marker, false); + // Don't connect empty markers unless clearWhenEmpty is false + if (diff > 0 || diff == 0 && marker.clearWhenEmpty !== false) + return marker; + if (marker.replacedWith) { + // Showing up as a widget implies collapsed (widget replaces text) + marker.collapsed = true; + marker.widgetNode = elt("span", [marker.replacedWith], "CodeMirror-widget"); + if (!options.handleMouseEvents) marker.widgetNode.setAttribute("cm-ignore-events", "true"); + if (options.insertLeft) marker.widgetNode.insertLeft = true; + } + if (marker.collapsed) { + if (conflictingCollapsedRange(doc, from.line, from, to, marker) || + from.line != to.line && conflictingCollapsedRange(doc, to.line, from, to, marker)) + throw new Error("Inserting collapsed marker partially overlapping an existing one"); + sawCollapsedSpans = true; + } + + if (marker.addToHistory) + addChangeToHistory(doc, {from: from, to: to, origin: "markText"}, doc.sel, NaN); + + var curLine = from.line, cm = doc.cm, updateMaxLine; + doc.iter(curLine, to.line + 1, function(line) { + if (cm && marker.collapsed && !cm.options.lineWrapping && visualLine(line) == cm.display.maxLine) + updateMaxLine = true; + if (marker.collapsed && curLine != from.line) updateLineHeight(line, 0); + addMarkedSpan(line, new MarkedSpan(marker, + curLine == from.line ? from.ch : null, + curLine == to.line ? to.ch : null)); + ++curLine; + }); + // lineIsHidden depends on the presence of the spans, so needs a second pass + if (marker.collapsed) doc.iter(from.line, to.line + 1, function(line) { + if (lineIsHidden(doc, line)) updateLineHeight(line, 0); + }); + + if (marker.clearOnEnter) on(marker, "beforeCursorEnter", function() { marker.clear(); }); + + if (marker.readOnly) { + sawReadOnlySpans = true; + if (doc.history.done.length || doc.history.undone.length) + doc.clearHistory(); + } + if (marker.collapsed) { + marker.id = ++nextMarkerId; + marker.atomic = true; + } + if (cm) { + // Sync editor state + if (updateMaxLine) cm.curOp.updateMaxLine = true; + if (marker.collapsed) + regChange(cm, from.line, to.line + 1); + else if (marker.className || marker.title || marker.startStyle || marker.endStyle || marker.css) + for (var i = from.line; i <= to.line; i++) regLineChange(cm, i, "text"); + if (marker.atomic) reCheckSelection(cm.doc); + signalLater(cm, "markerAdded", cm, marker); + } + return marker; + } + + // SHARED TEXTMARKERS + + // A shared marker spans multiple linked documents. It is + // implemented as a meta-marker-object controlling multiple normal + // markers. + var SharedTextMarker = CodeMirror.SharedTextMarker = function(markers, primary) { + this.markers = markers; + this.primary = primary; + for (var i = 0; i < markers.length; ++i) + markers[i].parent = this; + }; + eventMixin(SharedTextMarker); + + SharedTextMarker.prototype.clear = function() { + if (this.explicitlyCleared) return; + this.explicitlyCleared = true; + for (var i = 0; i < this.markers.length; ++i) + this.markers[i].clear(); + signalLater(this, "clear"); + }; + SharedTextMarker.prototype.find = function(side, lineObj) { + return this.primary.find(side, lineObj); + }; + + function markTextShared(doc, from, to, options, type) { + options = copyObj(options); + options.shared = false; + var markers = [markText(doc, from, to, options, type)], primary = markers[0]; + var widget = options.widgetNode; + linkedDocs(doc, function(doc) { + if (widget) options.widgetNode = widget.cloneNode(true); + markers.push(markText(doc, clipPos(doc, from), clipPos(doc, to), options, type)); + for (var i = 0; i < doc.linked.length; ++i) + if (doc.linked[i].isParent) return; + primary = lst(markers); + }); + return new SharedTextMarker(markers, primary); + } + + function findSharedMarkers(doc) { + return doc.findMarks(Pos(doc.first, 0), doc.clipPos(Pos(doc.lastLine())), + function(m) { return m.parent; }); + } + + function copySharedMarkers(doc, markers) { + for (var i = 0; i < markers.length; i++) { + var marker = markers[i], pos = marker.find(); + var mFrom = doc.clipPos(pos.from), mTo = doc.clipPos(pos.to); + if (cmp(mFrom, mTo)) { + var subMark = markText(doc, mFrom, mTo, marker.primary, marker.primary.type); + marker.markers.push(subMark); + subMark.parent = marker; + } + } + } + + function detachSharedMarkers(markers) { + for (var i = 0; i < markers.length; i++) { + var marker = markers[i], linked = [marker.primary.doc];; + linkedDocs(marker.primary.doc, function(d) { linked.push(d); }); + for (var j = 0; j < marker.markers.length; j++) { + var subMarker = marker.markers[j]; + if (indexOf(linked, subMarker.doc) == -1) { + subMarker.parent = null; + marker.markers.splice(j--, 1); + } + } + } + } + + // TEXTMARKER SPANS + + function MarkedSpan(marker, from, to) { + this.marker = marker; + this.from = from; this.to = to; + } + + // Search an array of spans for a span matching the given marker. + function getMarkedSpanFor(spans, marker) { + if (spans) for (var i = 0; i < spans.length; ++i) { + var span = spans[i]; + if (span.marker == marker) return span; + } + } + // Remove a span from an array, returning undefined if no spans are + // left (we don't store arrays for lines without spans). + function removeMarkedSpan(spans, span) { + for (var r, i = 0; i < spans.length; ++i) + if (spans[i] != span) (r || (r = [])).push(spans[i]); + return r; + } + // Add a span to a line. + function addMarkedSpan(line, span) { + line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span]; + span.marker.attachLine(line); + } + + // Used for the algorithm that adjusts markers for a change in the + // document. These functions cut an array of spans at a given + // character position, returning an array of remaining chunks (or + // undefined if nothing remains). + function markedSpansBefore(old, startCh, isInsert) { + if (old) for (var i = 0, nw; i < old.length; ++i) { + var span = old[i], marker = span.marker; + var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= startCh : span.from < startCh); + if (startsBefore || span.from == startCh && marker.type == "bookmark" && (!isInsert || !span.marker.insertLeft)) { + var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh); + (nw || (nw = [])).push(new MarkedSpan(marker, span.from, endsAfter ? null : span.to)); + } + } + return nw; + } + function markedSpansAfter(old, endCh, isInsert) { + if (old) for (var i = 0, nw; i < old.length; ++i) { + var span = old[i], marker = span.marker; + var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh); + if (endsAfter || span.from == endCh && marker.type == "bookmark" && (!isInsert || span.marker.insertLeft)) { + var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh); + (nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh, + span.to == null ? null : span.to - endCh)); + } + } + return nw; + } + + // Given a change object, compute the new set of marker spans that + // cover the line in which the change took place. Removes spans + // entirely within the change, reconnects spans belonging to the + // same marker that appear on both sides of the change, and cuts off + // spans partially within the change. Returns an array of span + // arrays with one element for each line in (after) the change. + function stretchSpansOverChange(doc, change) { + if (change.full) return null; + var oldFirst = isLine(doc, change.from.line) && getLine(doc, change.from.line).markedSpans; + var oldLast = isLine(doc, change.to.line) && getLine(doc, change.to.line).markedSpans; + if (!oldFirst && !oldLast) return null; + + var startCh = change.from.ch, endCh = change.to.ch, isInsert = cmp(change.from, change.to) == 0; + // Get the spans that 'stick out' on both sides + var first = markedSpansBefore(oldFirst, startCh, isInsert); + var last = markedSpansAfter(oldLast, endCh, isInsert); + + // Next, merge those two ends + var sameLine = change.text.length == 1, offset = lst(change.text).length + (sameLine ? startCh : 0); + if (first) { + // Fix up .to properties of first + for (var i = 0; i < first.length; ++i) { + var span = first[i]; + if (span.to == null) { + var found = getMarkedSpanFor(last, span.marker); + if (!found) span.to = startCh; + else if (sameLine) span.to = found.to == null ? null : found.to + offset; + } + } + } + if (last) { + // Fix up .from in last (or move them into first in case of sameLine) + for (var i = 0; i < last.length; ++i) { + var span = last[i]; + if (span.to != null) span.to += offset; + if (span.from == null) { + var found = getMarkedSpanFor(first, span.marker); + if (!found) { + span.from = offset; + if (sameLine) (first || (first = [])).push(span); + } + } else { + span.from += offset; + if (sameLine) (first || (first = [])).push(span); + } + } + } + // Make sure we didn't create any zero-length spans + if (first) first = clearEmptySpans(first); + if (last && last != first) last = clearEmptySpans(last); + + var newMarkers = [first]; + if (!sameLine) { + // Fill gap with whole-line-spans + var gap = change.text.length - 2, gapMarkers; + if (gap > 0 && first) + for (var i = 0; i < first.length; ++i) + if (first[i].to == null) + (gapMarkers || (gapMarkers = [])).push(new MarkedSpan(first[i].marker, null, null)); + for (var i = 0; i < gap; ++i) + newMarkers.push(gapMarkers); + newMarkers.push(last); + } + return newMarkers; + } + + // Remove spans that are empty and don't have a clearWhenEmpty + // option of false. + function clearEmptySpans(spans) { + for (var i = 0; i < spans.length; ++i) { + var span = spans[i]; + if (span.from != null && span.from == span.to && span.marker.clearWhenEmpty !== false) + spans.splice(i--, 1); + } + if (!spans.length) return null; + return spans; + } + + // Used for un/re-doing changes from the history. Combines the + // result of computing the existing spans with the set of spans that + // existed in the history (so that deleting around a span and then + // undoing brings back the span). + function mergeOldSpans(doc, change) { + var old = getOldSpans(doc, change); + var stretched = stretchSpansOverChange(doc, change); + if (!old) return stretched; + if (!stretched) return old; + + for (var i = 0; i < old.length; ++i) { + var oldCur = old[i], stretchCur = stretched[i]; + if (oldCur && stretchCur) { + spans: for (var j = 0; j < stretchCur.length; ++j) { + var span = stretchCur[j]; + for (var k = 0; k < oldCur.length; ++k) + if (oldCur[k].marker == span.marker) continue spans; + oldCur.push(span); + } + } else if (stretchCur) { + old[i] = stretchCur; + } + } + return old; + } + + // Used to 'clip' out readOnly ranges when making a change. + function removeReadOnlyRanges(doc, from, to) { + var markers = null; + doc.iter(from.line, to.line + 1, function(line) { + if (line.markedSpans) for (var i = 0; i < line.markedSpans.length; ++i) { + var mark = line.markedSpans[i].marker; + if (mark.readOnly && (!markers || indexOf(markers, mark) == -1)) + (markers || (markers = [])).push(mark); + } + }); + if (!markers) return null; + var parts = [{from: from, to: to}]; + for (var i = 0; i < markers.length; ++i) { + var mk = markers[i], m = mk.find(0); + for (var j = 0; j < parts.length; ++j) { + var p = parts[j]; + if (cmp(p.to, m.from) < 0 || cmp(p.from, m.to) > 0) continue; + var newParts = [j, 1], dfrom = cmp(p.from, m.from), dto = cmp(p.to, m.to); + if (dfrom < 0 || !mk.inclusiveLeft && !dfrom) + newParts.push({from: p.from, to: m.from}); + if (dto > 0 || !mk.inclusiveRight && !dto) + newParts.push({from: m.to, to: p.to}); + parts.splice.apply(parts, newParts); + j += newParts.length - 1; + } + } + return parts; + } + + // Connect or disconnect spans from a line. + function detachMarkedSpans(line) { + var spans = line.markedSpans; + if (!spans) return; + for (var i = 0; i < spans.length; ++i) + spans[i].marker.detachLine(line); + line.markedSpans = null; + } + function attachMarkedSpans(line, spans) { + if (!spans) return; + for (var i = 0; i < spans.length; ++i) + spans[i].marker.attachLine(line); + line.markedSpans = spans; + } + + // Helpers used when computing which overlapping collapsed span + // counts as the larger one. + function extraLeft(marker) { return marker.inclusiveLeft ? -1 : 0; } + function extraRight(marker) { return marker.inclusiveRight ? 1 : 0; } + + // Returns a number indicating which of two overlapping collapsed + // spans is larger (and thus includes the other). Falls back to + // comparing ids when the spans cover exactly the same range. + function compareCollapsedMarkers(a, b) { + var lenDiff = a.lines.length - b.lines.length; + if (lenDiff != 0) return lenDiff; + var aPos = a.find(), bPos = b.find(); + var fromCmp = cmp(aPos.from, bPos.from) || extraLeft(a) - extraLeft(b); + if (fromCmp) return -fromCmp; + var toCmp = cmp(aPos.to, bPos.to) || extraRight(a) - extraRight(b); + if (toCmp) return toCmp; + return b.id - a.id; + } + + // Find out whether a line ends or starts in a collapsed span. If + // so, return the marker for that span. + function collapsedSpanAtSide(line, start) { + var sps = sawCollapsedSpans && line.markedSpans, found; + if (sps) for (var sp, i = 0; i < sps.length; ++i) { + sp = sps[i]; + if (sp.marker.collapsed && (start ? sp.from : sp.to) == null && + (!found || compareCollapsedMarkers(found, sp.marker) < 0)) + found = sp.marker; + } + return found; + } + function collapsedSpanAtStart(line) { return collapsedSpanAtSide(line, true); } + function collapsedSpanAtEnd(line) { return collapsedSpanAtSide(line, false); } + + // Test whether there exists a collapsed span that partially + // overlaps (covers the start or end, but not both) of a new span. + // Such overlap is not allowed. + function conflictingCollapsedRange(doc, lineNo, from, to, marker) { + var line = getLine(doc, lineNo); + var sps = sawCollapsedSpans && line.markedSpans; + if (sps) for (var i = 0; i < sps.length; ++i) { + var sp = sps[i]; + if (!sp.marker.collapsed) continue; + var found = sp.marker.find(0); + var fromCmp = cmp(found.from, from) || extraLeft(sp.marker) - extraLeft(marker); + var toCmp = cmp(found.to, to) || extraRight(sp.marker) - extraRight(marker); + if (fromCmp >= 0 && toCmp <= 0 || fromCmp <= 0 && toCmp >= 0) continue; + if (fromCmp <= 0 && (cmp(found.to, from) > 0 || (sp.marker.inclusiveRight && marker.inclusiveLeft)) || + fromCmp >= 0 && (cmp(found.from, to) < 0 || (sp.marker.inclusiveLeft && marker.inclusiveRight))) + return true; + } + } + + // A visual line is a line as drawn on the screen. Folding, for + // example, can cause multiple logical lines to appear on the same + // visual line. This finds the start of the visual line that the + // given line is part of (usually that is the line itself). + function visualLine(line) { + var merged; + while (merged = collapsedSpanAtStart(line)) + line = merged.find(-1, true).line; + return line; + } + + // Returns an array of logical lines that continue the visual line + // started by the argument, or undefined if there are no such lines. + function visualLineContinued(line) { + var merged, lines; + while (merged = collapsedSpanAtEnd(line)) { + line = merged.find(1, true).line; + (lines || (lines = [])).push(line); + } + return lines; + } + + // Get the line number of the start of the visual line that the + // given line number is part of. + function visualLineNo(doc, lineN) { + var line = getLine(doc, lineN), vis = visualLine(line); + if (line == vis) return lineN; + return lineNo(vis); + } + // Get the line number of the start of the next visual line after + // the given line. + function visualLineEndNo(doc, lineN) { + if (lineN > doc.lastLine()) return lineN; + var line = getLine(doc, lineN), merged; + if (!lineIsHidden(doc, line)) return lineN; + while (merged = collapsedSpanAtEnd(line)) + line = merged.find(1, true).line; + return lineNo(line) + 1; + } + + // Compute whether a line is hidden. Lines count as hidden when they + // are part of a visual line that starts with another line, or when + // they are entirely covered by collapsed, non-widget span. + function lineIsHidden(doc, line) { + var sps = sawCollapsedSpans && line.markedSpans; + if (sps) for (var sp, i = 0; i < sps.length; ++i) { + sp = sps[i]; + if (!sp.marker.collapsed) continue; + if (sp.from == null) return true; + if (sp.marker.widgetNode) continue; + if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp)) + return true; + } + } + function lineIsHiddenInner(doc, line, span) { + if (span.to == null) { + var end = span.marker.find(1, true); + return lineIsHiddenInner(doc, end.line, getMarkedSpanFor(end.line.markedSpans, span.marker)); + } + if (span.marker.inclusiveRight && span.to == line.text.length) + return true; + for (var sp, i = 0; i < line.markedSpans.length; ++i) { + sp = line.markedSpans[i]; + if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to && + (sp.to == null || sp.to != span.from) && + (sp.marker.inclusiveLeft || span.marker.inclusiveRight) && + lineIsHiddenInner(doc, line, sp)) return true; + } + } + + // LINE WIDGETS + + // Line widgets are block elements displayed above or below a line. + + var LineWidget = CodeMirror.LineWidget = function(doc, node, options) { + if (options) for (var opt in options) if (options.hasOwnProperty(opt)) + this[opt] = options[opt]; + this.doc = doc; + this.node = node; + }; + eventMixin(LineWidget); + + function adjustScrollWhenAboveVisible(cm, line, diff) { + if (heightAtLine(line) < ((cm.curOp && cm.curOp.scrollTop) || cm.doc.scrollTop)) + addToScrollPos(cm, null, diff); + } + + LineWidget.prototype.clear = function() { + var cm = this.doc.cm, ws = this.line.widgets, line = this.line, no = lineNo(line); + if (no == null || !ws) return; + for (var i = 0; i < ws.length; ++i) if (ws[i] == this) ws.splice(i--, 1); + if (!ws.length) line.widgets = null; + var height = widgetHeight(this); + updateLineHeight(line, Math.max(0, line.height - height)); + if (cm) runInOp(cm, function() { + adjustScrollWhenAboveVisible(cm, line, -height); + regLineChange(cm, no, "widget"); + }); + }; + LineWidget.prototype.changed = function() { + var oldH = this.height, cm = this.doc.cm, line = this.line; + this.height = null; + var diff = widgetHeight(this) - oldH; + if (!diff) return; + updateLineHeight(line, line.height + diff); + if (cm) runInOp(cm, function() { + cm.curOp.forceUpdate = true; + adjustScrollWhenAboveVisible(cm, line, diff); + }); + }; + + function widgetHeight(widget) { + if (widget.height != null) return widget.height; + var cm = widget.doc.cm; + if (!cm) return 0; + if (!contains(document.body, widget.node)) { + var parentStyle = "position: relative;"; + if (widget.coverGutter) + parentStyle += "margin-left: -" + cm.display.gutters.offsetWidth + "px;"; + if (widget.noHScroll) + parentStyle += "width: " + cm.display.wrapper.clientWidth + "px;"; + removeChildrenAndAdd(cm.display.measure, elt("div", [widget.node], null, parentStyle)); + } + return widget.height = widget.node.offsetHeight; + } + + function addLineWidget(doc, handle, node, options) { + var widget = new LineWidget(doc, node, options); + var cm = doc.cm; + if (cm && widget.noHScroll) cm.display.alignWidgets = true; + changeLine(doc, handle, "widget", function(line) { + var widgets = line.widgets || (line.widgets = []); + if (widget.insertAt == null) widgets.push(widget); + else widgets.splice(Math.min(widgets.length - 1, Math.max(0, widget.insertAt)), 0, widget); + widget.line = line; + if (cm && !lineIsHidden(doc, line)) { + var aboveVisible = heightAtLine(line) < doc.scrollTop; + updateLineHeight(line, line.height + widgetHeight(widget)); + if (aboveVisible) addToScrollPos(cm, null, widget.height); + cm.curOp.forceUpdate = true; + } + return true; + }); + return widget; + } + + // LINE DATA STRUCTURE + + // Line objects. These hold state related to a line, including + // highlighting info (the styles array). + var Line = CodeMirror.Line = function(text, markedSpans, estimateHeight) { + this.text = text; + attachMarkedSpans(this, markedSpans); + this.height = estimateHeight ? estimateHeight(this) : 1; + }; + eventMixin(Line); + Line.prototype.lineNo = function() { return lineNo(this); }; + + // Change the content (text, markers) of a line. Automatically + // invalidates cached information and tries to re-estimate the + // line's height. + function updateLine(line, text, markedSpans, estimateHeight) { + line.text = text; + if (line.stateAfter) line.stateAfter = null; + if (line.styles) line.styles = null; + if (line.order != null) line.order = null; + detachMarkedSpans(line); + attachMarkedSpans(line, markedSpans); + var estHeight = estimateHeight ? estimateHeight(line) : 1; + if (estHeight != line.height) updateLineHeight(line, estHeight); + } + + // Detach a line from the document tree and its markers. + function cleanUpLine(line) { + line.parent = null; + detachMarkedSpans(line); + } + + function extractLineClasses(type, output) { + if (type) for (;;) { + var lineClass = type.match(/(?:^|\s+)line-(background-)?(\S+)/); + if (!lineClass) break; + type = type.slice(0, lineClass.index) + type.slice(lineClass.index + lineClass[0].length); + var prop = lineClass[1] ? "bgClass" : "textClass"; + if (output[prop] == null) + output[prop] = lineClass[2]; + else if (!(new RegExp("(?:^|\s)" + lineClass[2] + "(?:$|\s)")).test(output[prop])) + output[prop] += " " + lineClass[2]; + } + return type; + } + + function callBlankLine(mode, state) { + if (mode.blankLine) return mode.blankLine(state); + if (!mode.innerMode) return; + var inner = CodeMirror.innerMode(mode, state); + if (inner.mode.blankLine) return inner.mode.blankLine(inner.state); + } + + function readToken(mode, stream, state, inner) { + for (var i = 0; i < 10; i++) { + if (inner) inner[0] = CodeMirror.innerMode(mode, state).mode; + var style = mode.token(stream, state); + if (stream.pos > stream.start) return style; + } + throw new Error("Mode " + mode.name + " failed to advance stream."); + } + + // Utility for getTokenAt and getLineTokens + function takeToken(cm, pos, precise, asArray) { + function getObj(copy) { + return {start: stream.start, end: stream.pos, + string: stream.current(), + type: style || null, + state: copy ? copyState(doc.mode, state) : state}; + } + + var doc = cm.doc, mode = doc.mode, style; + pos = clipPos(doc, pos); + var line = getLine(doc, pos.line), state = getStateBefore(cm, pos.line, precise); + var stream = new StringStream(line.text, cm.options.tabSize), tokens; + if (asArray) tokens = []; + while ((asArray || stream.pos < pos.ch) && !stream.eol()) { + stream.start = stream.pos; + style = readToken(mode, stream, state); + if (asArray) tokens.push(getObj(true)); + } + return asArray ? tokens : getObj(); + } + + // Run the given mode's parser over a line, calling f for each token. + function runMode(cm, text, mode, state, f, lineClasses, forceToEnd) { + var flattenSpans = mode.flattenSpans; + if (flattenSpans == null) flattenSpans = cm.options.flattenSpans; + var curStart = 0, curStyle = null; + var stream = new StringStream(text, cm.options.tabSize), style; + var inner = cm.options.addModeClass && [null]; + if (text == "") extractLineClasses(callBlankLine(mode, state), lineClasses); + while (!stream.eol()) { + if (stream.pos > cm.options.maxHighlightLength) { + flattenSpans = false; + if (forceToEnd) processLine(cm, text, state, stream.pos); + stream.pos = text.length; + style = null; + } else { + style = extractLineClasses(readToken(mode, stream, state, inner), lineClasses); + } + if (inner) { + var mName = inner[0].name; + if (mName) style = "m-" + (style ? mName + " " + style : mName); + } + if (!flattenSpans || curStyle != style) { + while (curStart < stream.start) { + curStart = Math.min(stream.start, curStart + 50000); + f(curStart, curStyle); + } + curStyle = style; + } + stream.start = stream.pos; + } + while (curStart < stream.pos) { + // Webkit seems to refuse to render text nodes longer than 57444 characters + var pos = Math.min(stream.pos, curStart + 50000); + f(pos, curStyle); + curStart = pos; + } + } + + // Compute a style array (an array starting with a mode generation + // -- for invalidation -- followed by pairs of end positions and + // style strings), which is used to highlight the tokens on the + // line. + function highlightLine(cm, line, state, forceToEnd) { + // A styles array always starts with a number identifying the + // mode/overlays that it is based on (for easy invalidation). + var st = [cm.state.modeGen], lineClasses = {}; + // Compute the base array of styles + runMode(cm, line.text, cm.doc.mode, state, function(end, style) { + st.push(end, style); + }, lineClasses, forceToEnd); + + // Run overlays, adjust style array. + for (var o = 0; o < cm.state.overlays.length; ++o) { + var overlay = cm.state.overlays[o], i = 1, at = 0; + runMode(cm, line.text, overlay.mode, true, function(end, style) { + var start = i; + // Ensure there's a token end at the current position, and that i points at it + while (at < end) { + var i_end = st[i]; + if (i_end > end) + st.splice(i, 1, end, st[i+1], i_end); + i += 2; + at = Math.min(end, i_end); + } + if (!style) return; + if (overlay.opaque) { + st.splice(start, i - start, end, "cm-overlay " + style); + i = start + 2; + } else { + for (; start < i; start += 2) { + var cur = st[start+1]; + st[start+1] = (cur ? cur + " " : "") + "cm-overlay " + style; + } + } + }, lineClasses); + } + + return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}; + } + + function getLineStyles(cm, line, updateFrontier) { + if (!line.styles || line.styles[0] != cm.state.modeGen) { + var result = highlightLine(cm, line, line.stateAfter = getStateBefore(cm, lineNo(line))); + line.styles = result.styles; + if (result.classes) line.styleClasses = result.classes; + else if (line.styleClasses) line.styleClasses = null; + if (updateFrontier === cm.doc.frontier) cm.doc.frontier++; + } + return line.styles; + } + + // Lightweight form of highlight -- proceed over this line and + // update state, but don't save a style array. Used for lines that + // aren't currently visible. + function processLine(cm, text, state, startAt) { + var mode = cm.doc.mode; + var stream = new StringStream(text, cm.options.tabSize); + stream.start = stream.pos = startAt || 0; + if (text == "") callBlankLine(mode, state); + while (!stream.eol() && stream.pos <= cm.options.maxHighlightLength) { + readToken(mode, stream, state); + stream.start = stream.pos; + } + } + + // Convert a style as returned by a mode (either null, or a string + // containing one or more styles) to a CSS style. This is cached, + // and also looks for line-wide styles. + var styleToClassCache = {}, styleToClassCacheWithMode = {}; + function interpretTokenStyle(style, options) { + if (!style || /^\s*$/.test(style)) return null; + var cache = options.addModeClass ? styleToClassCacheWithMode : styleToClassCache; + return cache[style] || + (cache[style] = style.replace(/\S+/g, "cm-$&")); + } + + // Render the DOM representation of the text of a line. Also builds + // up a 'line map', which points at the DOM nodes that represent + // specific stretches of text, and is used by the measuring code. + // The returned object contains the DOM node, this map, and + // information about line-wide styles that were set by the mode. + function buildLineContent(cm, lineView) { + // The padding-right forces the element to have a 'border', which + // is needed on Webkit to be able to get line-level bounding + // rectangles for it (in measureChar). + var content = elt("span", null, null, webkit ? "padding-right: .1px" : null); + var builder = {pre: elt("pre", [content]), content: content, + col: 0, pos: 0, cm: cm, + splitSpaces: (ie || webkit) && cm.getOption("lineWrapping")}; + lineView.measure = {}; + + // Iterate over the logical lines that make up this visual line. + for (var i = 0; i <= (lineView.rest ? lineView.rest.length : 0); i++) { + var line = i ? lineView.rest[i - 1] : lineView.line, order; + builder.pos = 0; + builder.addToken = buildToken; + // Optionally wire in some hacks into the token-rendering + // algorithm, to deal with browser quirks. + if (hasBadBidiRects(cm.display.measure) && (order = getOrder(line))) + builder.addToken = buildTokenBadBidi(builder.addToken, order); + builder.map = []; + var allowFrontierUpdate = lineView != cm.display.externalMeasured && lineNo(line); + insertLineContent(line, builder, getLineStyles(cm, line, allowFrontierUpdate)); + if (line.styleClasses) { + if (line.styleClasses.bgClass) + builder.bgClass = joinClasses(line.styleClasses.bgClass, builder.bgClass || ""); + if (line.styleClasses.textClass) + builder.textClass = joinClasses(line.styleClasses.textClass, builder.textClass || ""); + } + + // Ensure at least a single node is present, for measuring. + if (builder.map.length == 0) + builder.map.push(0, 0, builder.content.appendChild(zeroWidthElement(cm.display.measure))); + + // Store the map and a cache object for the current logical line + if (i == 0) { + lineView.measure.map = builder.map; + lineView.measure.cache = {}; + } else { + (lineView.measure.maps || (lineView.measure.maps = [])).push(builder.map); + (lineView.measure.caches || (lineView.measure.caches = [])).push({}); + } + } + + // See issue #2901 + if (webkit && /\bcm-tab\b/.test(builder.content.lastChild.className)) + builder.content.className = "cm-tab-wrap-hack"; + + signal(cm, "renderLine", cm, lineView.line, builder.pre); + if (builder.pre.className) + builder.textClass = joinClasses(builder.pre.className, builder.textClass || ""); + + return builder; + } + + function defaultSpecialCharPlaceholder(ch) { + var token = elt("span", "\u2022", "cm-invalidchar"); + token.title = "\\u" + ch.charCodeAt(0).toString(16); + token.setAttribute("aria-label", token.title); + return token; + } + + // Build up the DOM representation for a single token, and add it to + // the line map. Takes care to render special characters separately. + function buildToken(builder, text, style, startStyle, endStyle, title, css) { + if (!text) return; + var displayText = builder.splitSpaces ? text.replace(/ {3,}/g, splitSpaces) : text; + var special = builder.cm.state.specialChars, mustWrap = false; + if (!special.test(text)) { + builder.col += text.length; + var content = document.createTextNode(displayText); + builder.map.push(builder.pos, builder.pos + text.length, content); + if (ie && ie_version < 9) mustWrap = true; + builder.pos += text.length; + } else { + var content = document.createDocumentFragment(), pos = 0; + while (true) { + special.lastIndex = pos; + var m = special.exec(text); + var skipped = m ? m.index - pos : text.length - pos; + if (skipped) { + var txt = document.createTextNode(displayText.slice(pos, pos + skipped)); + if (ie && ie_version < 9) content.appendChild(elt("span", [txt])); + else content.appendChild(txt); + builder.map.push(builder.pos, builder.pos + skipped, txt); + builder.col += skipped; + builder.pos += skipped; + } + if (!m) break; + pos += skipped + 1; + if (m[0] == "\t") { + var tabSize = builder.cm.options.tabSize, tabWidth = tabSize - builder.col % tabSize; + var txt = content.appendChild(elt("span", spaceStr(tabWidth), "cm-tab")); + txt.setAttribute("role", "presentation"); + txt.setAttribute("cm-text", "\t"); + builder.col += tabWidth; + } else { + var txt = builder.cm.options.specialCharPlaceholder(m[0]); + txt.setAttribute("cm-text", m[0]); + if (ie && ie_version < 9) content.appendChild(elt("span", [txt])); + else content.appendChild(txt); + builder.col += 1; + } + builder.map.push(builder.pos, builder.pos + 1, txt); + builder.pos++; + } + } + if (style || startStyle || endStyle || mustWrap || css) { + var fullStyle = style || ""; + if (startStyle) fullStyle += startStyle; + if (endStyle) fullStyle += endStyle; + var token = elt("span", [content], fullStyle, css); + if (title) token.title = title; + return builder.content.appendChild(token); + } + builder.content.appendChild(content); + } + + function splitSpaces(old) { + var out = " "; + for (var i = 0; i < old.length - 2; ++i) out += i % 2 ? " " : "\u00a0"; + out += " "; + return out; + } + + // Work around nonsense dimensions being reported for stretches of + // right-to-left text. + function buildTokenBadBidi(inner, order) { + return function(builder, text, style, startStyle, endStyle, title, css) { + style = style ? style + " cm-force-border" : "cm-force-border"; + var start = builder.pos, end = start + text.length; + for (;;) { + // Find the part that overlaps with the start of this text + for (var i = 0; i < order.length; i++) { + var part = order[i]; + if (part.to > start && part.from <= start) break; + } + if (part.to >= end) return inner(builder, text, style, startStyle, endStyle, title, css); + inner(builder, text.slice(0, part.to - start), style, startStyle, null, title, css); + startStyle = null; + text = text.slice(part.to - start); + start = part.to; + } + }; + } + + function buildCollapsedSpan(builder, size, marker, ignoreWidget) { + var widget = !ignoreWidget && marker.widgetNode; + if (widget) builder.map.push(builder.pos, builder.pos + size, widget); + if (!ignoreWidget && builder.cm.display.input.needsContentAttribute) { + if (!widget) + widget = builder.content.appendChild(document.createElement("span")); + widget.setAttribute("cm-marker", marker.id); + } + if (widget) { + builder.cm.display.input.setUneditable(widget); + builder.content.appendChild(widget); + } + builder.pos += size; + } + + // Outputs a number of spans to make up a line, taking highlighting + // and marked text into account. + function insertLineContent(line, builder, styles) { + var spans = line.markedSpans, allText = line.text, at = 0; + if (!spans) { + for (var i = 1; i < styles.length; i+=2) + builder.addToken(builder, allText.slice(at, at = styles[i]), interpretTokenStyle(styles[i+1], builder.cm.options)); + return; + } + + var len = allText.length, pos = 0, i = 1, text = "", style, css; + var nextChange = 0, spanStyle, spanEndStyle, spanStartStyle, title, collapsed; + for (;;) { + if (nextChange == pos) { // Update current marker set + spanStyle = spanEndStyle = spanStartStyle = title = css = ""; + collapsed = null; nextChange = Infinity; + var foundBookmarks = []; + for (var j = 0; j < spans.length; ++j) { + var sp = spans[j], m = sp.marker; + if (m.type == "bookmark" && sp.from == pos && m.widgetNode) { + foundBookmarks.push(m); + } else if (sp.from <= pos && (sp.to == null || sp.to > pos || m.collapsed && sp.to == pos && sp.from == pos)) { + if (sp.to != null && sp.to != pos && nextChange > sp.to) { + nextChange = sp.to; + spanEndStyle = ""; + } + if (m.className) spanStyle += " " + m.className; + if (m.css) css = m.css; + if (m.startStyle && sp.from == pos) spanStartStyle += " " + m.startStyle; + if (m.endStyle && sp.to == nextChange) spanEndStyle += " " + m.endStyle; + if (m.title && !title) title = m.title; + if (m.collapsed && (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0)) + collapsed = sp; + } else if (sp.from > pos && nextChange > sp.from) { + nextChange = sp.from; + } + } + if (collapsed && (collapsed.from || 0) == pos) { + buildCollapsedSpan(builder, (collapsed.to == null ? len + 1 : collapsed.to) - pos, + collapsed.marker, collapsed.from == null); + if (collapsed.to == null) return; + if (collapsed.to == pos) collapsed = false; + } + if (!collapsed && foundBookmarks.length) for (var j = 0; j < foundBookmarks.length; ++j) + buildCollapsedSpan(builder, 0, foundBookmarks[j]); + } + if (pos >= len) break; + + var upto = Math.min(len, nextChange); + while (true) { + if (text) { + var end = pos + text.length; + if (!collapsed) { + var tokenText = end > upto ? text.slice(0, upto - pos) : text; + builder.addToken(builder, tokenText, style ? style + spanStyle : spanStyle, + spanStartStyle, pos + tokenText.length == nextChange ? spanEndStyle : "", title, css); + } + if (end >= upto) {text = text.slice(upto - pos); pos = upto; break;} + pos = end; + spanStartStyle = ""; + } + text = allText.slice(at, at = styles[i++]); + style = interpretTokenStyle(styles[i++], builder.cm.options); + } + } + } + + // DOCUMENT DATA STRUCTURE + + // By default, updates that start and end at the beginning of a line + // are treated specially, in order to make the association of line + // widgets and marker elements with the text behave more intuitive. + function isWholeLineUpdate(doc, change) { + return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == "" && + (!doc.cm || doc.cm.options.wholeLineUpdateBefore); + } + + // Perform a change on the document data structure. + function updateDoc(doc, change, markedSpans, estimateHeight) { + function spansFor(n) {return markedSpans ? markedSpans[n] : null;} + function update(line, text, spans) { + updateLine(line, text, spans, estimateHeight); + signalLater(line, "change", line, change); + } + function linesFor(start, end) { + for (var i = start, result = []; i < end; ++i) + result.push(new Line(text[i], spansFor(i), estimateHeight)); + return result; + } + + var from = change.from, to = change.to, text = change.text; + var firstLine = getLine(doc, from.line), lastLine = getLine(doc, to.line); + var lastText = lst(text), lastSpans = spansFor(text.length - 1), nlines = to.line - from.line; + + // Adjust the line structure + if (change.full) { + doc.insert(0, linesFor(0, text.length)); + doc.remove(text.length, doc.size - text.length); + } else if (isWholeLineUpdate(doc, change)) { + // This is a whole-line replace. Treated specially to make + // sure line objects move the way they are supposed to. + var added = linesFor(0, text.length - 1); + update(lastLine, lastLine.text, lastSpans); + if (nlines) doc.remove(from.line, nlines); + if (added.length) doc.insert(from.line, added); + } else if (firstLine == lastLine) { + if (text.length == 1) { + update(firstLine, firstLine.text.slice(0, from.ch) + lastText + firstLine.text.slice(to.ch), lastSpans); + } else { + var added = linesFor(1, text.length - 1); + added.push(new Line(lastText + firstLine.text.slice(to.ch), lastSpans, estimateHeight)); + update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0)); + doc.insert(from.line + 1, added); + } + } else if (text.length == 1) { + update(firstLine, firstLine.text.slice(0, from.ch) + text[0] + lastLine.text.slice(to.ch), spansFor(0)); + doc.remove(from.line + 1, nlines); + } else { + update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0)); + update(lastLine, lastText + lastLine.text.slice(to.ch), lastSpans); + var added = linesFor(1, text.length - 1); + if (nlines > 1) doc.remove(from.line + 1, nlines - 1); + doc.insert(from.line + 1, added); + } + + signalLater(doc, "change", doc, change); + } + + // The document is represented as a BTree consisting of leaves, with + // chunk of lines in them, and branches, with up to ten leaves or + // other branch nodes below them. The top node is always a branch + // node, and is the document object itself (meaning it has + // additional methods and properties). + // + // All nodes have parent links. The tree is used both to go from + // line numbers to line objects, and to go from objects to numbers. + // It also indexes by height, and is used to convert between height + // and line object, and to find the total height of the document. + // + // See also http://marijnhaverbeke.nl/blog/codemirror-line-tree.html + + function LeafChunk(lines) { + this.lines = lines; + this.parent = null; + for (var i = 0, height = 0; i < lines.length; ++i) { + lines[i].parent = this; + height += lines[i].height; + } + this.height = height; + } + + LeafChunk.prototype = { + chunkSize: function() { return this.lines.length; }, + // Remove the n lines at offset 'at'. + removeInner: function(at, n) { + for (var i = at, e = at + n; i < e; ++i) { + var line = this.lines[i]; + this.height -= line.height; + cleanUpLine(line); + signalLater(line, "delete"); + } + this.lines.splice(at, n); + }, + // Helper used to collapse a small branch into a single leaf. + collapse: function(lines) { + lines.push.apply(lines, this.lines); + }, + // Insert the given array of lines at offset 'at', count them as + // having the given height. + insertInner: function(at, lines, height) { + this.height += height; + this.lines = this.lines.slice(0, at).concat(lines).concat(this.lines.slice(at)); + for (var i = 0; i < lines.length; ++i) lines[i].parent = this; + }, + // Used to iterate over a part of the tree. + iterN: function(at, n, op) { + for (var e = at + n; at < e; ++at) + if (op(this.lines[at])) return true; + } + }; + + function BranchChunk(children) { + this.children = children; + var size = 0, height = 0; + for (var i = 0; i < children.length; ++i) { + var ch = children[i]; + size += ch.chunkSize(); height += ch.height; + ch.parent = this; + } + this.size = size; + this.height = height; + this.parent = null; + } + + BranchChunk.prototype = { + chunkSize: function() { return this.size; }, + removeInner: function(at, n) { + this.size -= n; + for (var i = 0; i < this.children.length; ++i) { + var child = this.children[i], sz = child.chunkSize(); + if (at < sz) { + var rm = Math.min(n, sz - at), oldHeight = child.height; + child.removeInner(at, rm); + this.height -= oldHeight - child.height; + if (sz == rm) { this.children.splice(i--, 1); child.parent = null; } + if ((n -= rm) == 0) break; + at = 0; + } else at -= sz; + } + // If the result is smaller than 25 lines, ensure that it is a + // single leaf node. + if (this.size - n < 25 && + (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))) { + var lines = []; + this.collapse(lines); + this.children = [new LeafChunk(lines)]; + this.children[0].parent = this; + } + }, + collapse: function(lines) { + for (var i = 0; i < this.children.length; ++i) this.children[i].collapse(lines); + }, + insertInner: function(at, lines, height) { + this.size += lines.length; + this.height += height; + for (var i = 0; i < this.children.length; ++i) { + var child = this.children[i], sz = child.chunkSize(); + if (at <= sz) { + child.insertInner(at, lines, height); + if (child.lines && child.lines.length > 50) { + while (child.lines.length > 50) { + var spilled = child.lines.splice(child.lines.length - 25, 25); + var newleaf = new LeafChunk(spilled); + child.height -= newleaf.height; + this.children.splice(i + 1, 0, newleaf); + newleaf.parent = this; + } + this.maybeSpill(); + } + break; + } + at -= sz; + } + }, + // When a node has grown, check whether it should be split. + maybeSpill: function() { + if (this.children.length <= 10) return; + var me = this; + do { + var spilled = me.children.splice(me.children.length - 5, 5); + var sibling = new BranchChunk(spilled); + if (!me.parent) { // Become the parent node + var copy = new BranchChunk(me.children); + copy.parent = me; + me.children = [copy, sibling]; + me = copy; + } else { + me.size -= sibling.size; + me.height -= sibling.height; + var myIndex = indexOf(me.parent.children, me); + me.parent.children.splice(myIndex + 1, 0, sibling); + } + sibling.parent = me.parent; + } while (me.children.length > 10); + me.parent.maybeSpill(); + }, + iterN: function(at, n, op) { + for (var i = 0; i < this.children.length; ++i) { + var child = this.children[i], sz = child.chunkSize(); + if (at < sz) { + var used = Math.min(n, sz - at); + if (child.iterN(at, used, op)) return true; + if ((n -= used) == 0) break; + at = 0; + } else at -= sz; + } + } + }; + + var nextDocId = 0; + var Doc = CodeMirror.Doc = function(text, mode, firstLine) { + if (!(this instanceof Doc)) return new Doc(text, mode, firstLine); + if (firstLine == null) firstLine = 0; + + BranchChunk.call(this, [new LeafChunk([new Line("", null)])]); + this.first = firstLine; + this.scrollTop = this.scrollLeft = 0; + this.cantEdit = false; + this.cleanGeneration = 1; + this.frontier = firstLine; + var start = Pos(firstLine, 0); + this.sel = simpleSelection(start); + this.history = new History(null); + this.id = ++nextDocId; + this.modeOption = mode; + + if (typeof text == "string") text = splitLines(text); + updateDoc(this, {from: start, to: start, text: text}); + setSelection(this, simpleSelection(start), sel_dontScroll); + }; + + Doc.prototype = createObj(BranchChunk.prototype, { + constructor: Doc, + // Iterate over the document. Supports two forms -- with only one + // argument, it calls that for each line in the document. With + // three, it iterates over the range given by the first two (with + // the second being non-inclusive). + iter: function(from, to, op) { + if (op) this.iterN(from - this.first, to - from, op); + else this.iterN(this.first, this.first + this.size, from); + }, + + // Non-public interface for adding and removing lines. + insert: function(at, lines) { + var height = 0; + for (var i = 0; i < lines.length; ++i) height += lines[i].height; + this.insertInner(at - this.first, lines, height); + }, + remove: function(at, n) { this.removeInner(at - this.first, n); }, + + // From here, the methods are part of the public interface. Most + // are also available from CodeMirror (editor) instances. + + getValue: function(lineSep) { + var lines = getLines(this, this.first, this.first + this.size); + if (lineSep === false) return lines; + return lines.join(lineSep || "\n"); + }, + setValue: docMethodOp(function(code) { + var top = Pos(this.first, 0), last = this.first + this.size - 1; + makeChange(this, {from: top, to: Pos(last, getLine(this, last).text.length), + text: splitLines(code), origin: "setValue", full: true}, true); + setSelection(this, simpleSelection(top)); + }), + replaceRange: function(code, from, to, origin) { + from = clipPos(this, from); + to = to ? clipPos(this, to) : from; + replaceRange(this, code, from, to, origin); + }, + getRange: function(from, to, lineSep) { + var lines = getBetween(this, clipPos(this, from), clipPos(this, to)); + if (lineSep === false) return lines; + return lines.join(lineSep || "\n"); + }, + + getLine: function(line) {var l = this.getLineHandle(line); return l && l.text;}, + + getLineHandle: function(line) {if (isLine(this, line)) return getLine(this, line);}, + getLineNumber: function(line) {return lineNo(line);}, + + getLineHandleVisualStart: function(line) { + if (typeof line == "number") line = getLine(this, line); + return visualLine(line); + }, + + lineCount: function() {return this.size;}, + firstLine: function() {return this.first;}, + lastLine: function() {return this.first + this.size - 1;}, + + clipPos: function(pos) {return clipPos(this, pos);}, + + getCursor: function(start) { + var range = this.sel.primary(), pos; + if (start == null || start == "head") pos = range.head; + else if (start == "anchor") pos = range.anchor; + else if (start == "end" || start == "to" || start === false) pos = range.to(); + else pos = range.from(); + return pos; + }, + listSelections: function() { return this.sel.ranges; }, + somethingSelected: function() {return this.sel.somethingSelected();}, + + setCursor: docMethodOp(function(line, ch, options) { + setSimpleSelection(this, clipPos(this, typeof line == "number" ? Pos(line, ch || 0) : line), null, options); + }), + setSelection: docMethodOp(function(anchor, head, options) { + setSimpleSelection(this, clipPos(this, anchor), clipPos(this, head || anchor), options); + }), + extendSelection: docMethodOp(function(head, other, options) { + extendSelection(this, clipPos(this, head), other && clipPos(this, other), options); + }), + extendSelections: docMethodOp(function(heads, options) { + extendSelections(this, clipPosArray(this, heads, options)); + }), + extendSelectionsBy: docMethodOp(function(f, options) { + extendSelections(this, map(this.sel.ranges, f), options); + }), + setSelections: docMethodOp(function(ranges, primary, options) { + if (!ranges.length) return; + for (var i = 0, out = []; i < ranges.length; i++) + out[i] = new Range(clipPos(this, ranges[i].anchor), + clipPos(this, ranges[i].head)); + if (primary == null) primary = Math.min(ranges.length - 1, this.sel.primIndex); + setSelection(this, normalizeSelection(out, primary), options); + }), + addSelection: docMethodOp(function(anchor, head, options) { + var ranges = this.sel.ranges.slice(0); + ranges.push(new Range(clipPos(this, anchor), clipPos(this, head || anchor))); + setSelection(this, normalizeSelection(ranges, ranges.length - 1), options); + }), + + getSelection: function(lineSep) { + var ranges = this.sel.ranges, lines; + for (var i = 0; i < ranges.length; i++) { + var sel = getBetween(this, ranges[i].from(), ranges[i].to()); + lines = lines ? lines.concat(sel) : sel; + } + if (lineSep === false) return lines; + else return lines.join(lineSep || "\n"); + }, + getSelections: function(lineSep) { + var parts = [], ranges = this.sel.ranges; + for (var i = 0; i < ranges.length; i++) { + var sel = getBetween(this, ranges[i].from(), ranges[i].to()); + if (lineSep !== false) sel = sel.join(lineSep || "\n"); + parts[i] = sel; + } + return parts; + }, + replaceSelection: function(code, collapse, origin) { + var dup = []; + for (var i = 0; i < this.sel.ranges.length; i++) + dup[i] = code; + this.replaceSelections(dup, collapse, origin || "+input"); + }, + replaceSelections: docMethodOp(function(code, collapse, origin) { + var changes = [], sel = this.sel; + for (var i = 0; i < sel.ranges.length; i++) { + var range = sel.ranges[i]; + changes[i] = {from: range.from(), to: range.to(), text: splitLines(code[i]), origin: origin}; + } + var newSel = collapse && collapse != "end" && computeReplacedSel(this, changes, collapse); + for (var i = changes.length - 1; i >= 0; i--) + makeChange(this, changes[i]); + if (newSel) setSelectionReplaceHistory(this, newSel); + else if (this.cm) ensureCursorVisible(this.cm); + }), + undo: docMethodOp(function() {makeChangeFromHistory(this, "undo");}), + redo: docMethodOp(function() {makeChangeFromHistory(this, "redo");}), + undoSelection: docMethodOp(function() {makeChangeFromHistory(this, "undo", true);}), + redoSelection: docMethodOp(function() {makeChangeFromHistory(this, "redo", true);}), + + setExtending: function(val) {this.extend = val;}, + getExtending: function() {return this.extend;}, + + historySize: function() { + var hist = this.history, done = 0, undone = 0; + for (var i = 0; i < hist.done.length; i++) if (!hist.done[i].ranges) ++done; + for (var i = 0; i < hist.undone.length; i++) if (!hist.undone[i].ranges) ++undone; + return {undo: done, redo: undone}; + }, + clearHistory: function() {this.history = new History(this.history.maxGeneration);}, + + markClean: function() { + this.cleanGeneration = this.changeGeneration(true); + }, + changeGeneration: function(forceSplit) { + if (forceSplit) + this.history.lastOp = this.history.lastSelOp = this.history.lastOrigin = null; + return this.history.generation; + }, + isClean: function (gen) { + return this.history.generation == (gen || this.cleanGeneration); + }, + + getHistory: function() { + return {done: copyHistoryArray(this.history.done), + undone: copyHistoryArray(this.history.undone)}; + }, + setHistory: function(histData) { + var hist = this.history = new History(this.history.maxGeneration); + hist.done = copyHistoryArray(histData.done.slice(0), null, true); + hist.undone = copyHistoryArray(histData.undone.slice(0), null, true); + }, + + addLineClass: docMethodOp(function(handle, where, cls) { + return changeLine(this, handle, where == "gutter" ? "gutter" : "class", function(line) { + var prop = where == "text" ? "textClass" + : where == "background" ? "bgClass" + : where == "gutter" ? "gutterClass" : "wrapClass"; + if (!line[prop]) line[prop] = cls; + else if (classTest(cls).test(line[prop])) return false; + else line[prop] += " " + cls; + return true; + }); + }), + removeLineClass: docMethodOp(function(handle, where, cls) { + return changeLine(this, handle, where == "gutter" ? "gutter" : "class", function(line) { + var prop = where == "text" ? "textClass" + : where == "background" ? "bgClass" + : where == "gutter" ? "gutterClass" : "wrapClass"; + var cur = line[prop]; + if (!cur) return false; + else if (cls == null) line[prop] = null; + else { + var found = cur.match(classTest(cls)); + if (!found) return false; + var end = found.index + found[0].length; + line[prop] = cur.slice(0, found.index) + (!found.index || end == cur.length ? "" : " ") + cur.slice(end) || null; + } + return true; + }); + }), + + addLineWidget: docMethodOp(function(handle, node, options) { + return addLineWidget(this, handle, node, options); + }), + removeLineWidget: function(widget) { widget.clear(); }, + + markText: function(from, to, options) { + return markText(this, clipPos(this, from), clipPos(this, to), options, "range"); + }, + setBookmark: function(pos, options) { + var realOpts = {replacedWith: options && (options.nodeType == null ? options.widget : options), + insertLeft: options && options.insertLeft, + clearWhenEmpty: false, shared: options && options.shared, + handleMouseEvents: options && options.handleMouseEvents}; + pos = clipPos(this, pos); + return markText(this, pos, pos, realOpts, "bookmark"); + }, + findMarksAt: function(pos) { + pos = clipPos(this, pos); + var markers = [], spans = getLine(this, pos.line).markedSpans; + if (spans) for (var i = 0; i < spans.length; ++i) { + var span = spans[i]; + if ((span.from == null || span.from <= pos.ch) && + (span.to == null || span.to >= pos.ch)) + markers.push(span.marker.parent || span.marker); + } + return markers; + }, + findMarks: function(from, to, filter) { + from = clipPos(this, from); to = clipPos(this, to); + var found = [], lineNo = from.line; + this.iter(from.line, to.line + 1, function(line) { + var spans = line.markedSpans; + if (spans) for (var i = 0; i < spans.length; i++) { + var span = spans[i]; + if (!(lineNo == from.line && from.ch > span.to || + span.from == null && lineNo != from.line|| + lineNo == to.line && span.from > to.ch) && + (!filter || filter(span.marker))) + found.push(span.marker.parent || span.marker); + } + ++lineNo; + }); + return found; + }, + getAllMarks: function() { + var markers = []; + this.iter(function(line) { + var sps = line.markedSpans; + if (sps) for (var i = 0; i < sps.length; ++i) + if (sps[i].from != null) markers.push(sps[i].marker); + }); + return markers; + }, + + posFromIndex: function(off) { + var ch, lineNo = this.first; + this.iter(function(line) { + var sz = line.text.length + 1; + if (sz > off) { ch = off; return true; } + off -= sz; + ++lineNo; + }); + return clipPos(this, Pos(lineNo, ch)); + }, + indexFromPos: function (coords) { + coords = clipPos(this, coords); + var index = coords.ch; + if (coords.line < this.first || coords.ch < 0) return 0; + this.iter(this.first, coords.line, function (line) { + index += line.text.length + 1; + }); + return index; + }, + + copy: function(copyHistory) { + var doc = new Doc(getLines(this, this.first, this.first + this.size), this.modeOption, this.first); + doc.scrollTop = this.scrollTop; doc.scrollLeft = this.scrollLeft; + doc.sel = this.sel; + doc.extend = false; + if (copyHistory) { + doc.history.undoDepth = this.history.undoDepth; + doc.setHistory(this.getHistory()); + } + return doc; + }, + + linkedDoc: function(options) { + if (!options) options = {}; + var from = this.first, to = this.first + this.size; + if (options.from != null && options.from > from) from = options.from; + if (options.to != null && options.to < to) to = options.to; + var copy = new Doc(getLines(this, from, to), options.mode || this.modeOption, from); + if (options.sharedHist) copy.history = this.history; + (this.linked || (this.linked = [])).push({doc: copy, sharedHist: options.sharedHist}); + copy.linked = [{doc: this, isParent: true, sharedHist: options.sharedHist}]; + copySharedMarkers(copy, findSharedMarkers(this)); + return copy; + }, + unlinkDoc: function(other) { + if (other instanceof CodeMirror) other = other.doc; + if (this.linked) for (var i = 0; i < this.linked.length; ++i) { + var link = this.linked[i]; + if (link.doc != other) continue; + this.linked.splice(i, 1); + other.unlinkDoc(this); + detachSharedMarkers(findSharedMarkers(this)); + break; + } + // If the histories were shared, split them again + if (other.history == this.history) { + var splitIds = [other.id]; + linkedDocs(other, function(doc) {splitIds.push(doc.id);}, true); + other.history = new History(null); + other.history.done = copyHistoryArray(this.history.done, splitIds); + other.history.undone = copyHistoryArray(this.history.undone, splitIds); + } + }, + iterLinkedDocs: function(f) {linkedDocs(this, f);}, + + getMode: function() {return this.mode;}, + getEditor: function() {return this.cm;} + }); + + // Public alias. + Doc.prototype.eachLine = Doc.prototype.iter; + + // Set up methods on CodeMirror's prototype to redirect to the editor's document. + var dontDelegate = "iter insert remove copy getEditor".split(" "); + for (var prop in Doc.prototype) if (Doc.prototype.hasOwnProperty(prop) && indexOf(dontDelegate, prop) < 0) + CodeMirror.prototype[prop] = (function(method) { + return function() {return method.apply(this.doc, arguments);}; + })(Doc.prototype[prop]); + + eventMixin(Doc); + + // Call f for all linked documents. + function linkedDocs(doc, f, sharedHistOnly) { + function propagate(doc, skip, sharedHist) { + if (doc.linked) for (var i = 0; i < doc.linked.length; ++i) { + var rel = doc.linked[i]; + if (rel.doc == skip) continue; + var shared = sharedHist && rel.sharedHist; + if (sharedHistOnly && !shared) continue; + f(rel.doc, shared); + propagate(rel.doc, doc, shared); + } + } + propagate(doc, null, true); + } + + // Attach a document to an editor. + function attachDoc(cm, doc) { + if (doc.cm) throw new Error("This document is already in use."); + cm.doc = doc; + doc.cm = cm; + estimateLineHeights(cm); + loadMode(cm); + if (!cm.options.lineWrapping) findMaxLine(cm); + cm.options.mode = doc.modeOption; + regChange(cm); + } + + // LINE UTILITIES + + // Find the line object corresponding to the given line number. + function getLine(doc, n) { + n -= doc.first; + if (n < 0 || n >= doc.size) throw new Error("There is no line " + (n + doc.first) + " in the document."); + for (var chunk = doc; !chunk.lines;) { + for (var i = 0;; ++i) { + var child = chunk.children[i], sz = child.chunkSize(); + if (n < sz) { chunk = child; break; } + n -= sz; + } + } + return chunk.lines[n]; + } + + // Get the part of a document between two positions, as an array of + // strings. + function getBetween(doc, start, end) { + var out = [], n = start.line; + doc.iter(start.line, end.line + 1, function(line) { + var text = line.text; + if (n == end.line) text = text.slice(0, end.ch); + if (n == start.line) text = text.slice(start.ch); + out.push(text); + ++n; + }); + return out; + } + // Get the lines between from and to, as array of strings. + function getLines(doc, from, to) { + var out = []; + doc.iter(from, to, function(line) { out.push(line.text); }); + return out; + } + + // Update the height of a line, propagating the height change + // upwards to parent nodes. + function updateLineHeight(line, height) { + var diff = height - line.height; + if (diff) for (var n = line; n; n = n.parent) n.height += diff; + } + + // Given a line object, find its line number by walking up through + // its parent links. + function lineNo(line) { + if (line.parent == null) return null; + var cur = line.parent, no = indexOf(cur.lines, line); + for (var chunk = cur.parent; chunk; cur = chunk, chunk = chunk.parent) { + for (var i = 0;; ++i) { + if (chunk.children[i] == cur) break; + no += chunk.children[i].chunkSize(); + } + } + return no + cur.first; + } + + // Find the line at the given vertical position, using the height + // information in the document tree. + function lineAtHeight(chunk, h) { + var n = chunk.first; + outer: do { + for (var i = 0; i < chunk.children.length; ++i) { + var child = chunk.children[i], ch = child.height; + if (h < ch) { chunk = child; continue outer; } + h -= ch; + n += child.chunkSize(); + } + return n; + } while (!chunk.lines); + for (var i = 0; i < chunk.lines.length; ++i) { + var line = chunk.lines[i], lh = line.height; + if (h < lh) break; + h -= lh; + } + return n + i; + } + + + // Find the height above the given line. + function heightAtLine(lineObj) { + lineObj = visualLine(lineObj); + + var h = 0, chunk = lineObj.parent; + for (var i = 0; i < chunk.lines.length; ++i) { + var line = chunk.lines[i]; + if (line == lineObj) break; + else h += line.height; + } + for (var p = chunk.parent; p; chunk = p, p = chunk.parent) { + for (var i = 0; i < p.children.length; ++i) { + var cur = p.children[i]; + if (cur == chunk) break; + else h += cur.height; + } + } + return h; + } + + // Get the bidi ordering for the given line (and cache it). Returns + // false for lines that are fully left-to-right, and an array of + // BidiSpan objects otherwise. + function getOrder(line) { + var order = line.order; + if (order == null) order = line.order = bidiOrdering(line.text); + return order; + } + + // HISTORY + + function History(startGen) { + // Arrays of change events and selections. Doing something adds an + // event to done and clears undo. Undoing moves events from done + // to undone, redoing moves them in the other direction. + this.done = []; this.undone = []; + this.undoDepth = Infinity; + // Used to track when changes can be merged into a single undo + // event + this.lastModTime = this.lastSelTime = 0; + this.lastOp = this.lastSelOp = null; + this.lastOrigin = this.lastSelOrigin = null; + // Used by the isClean() method + this.generation = this.maxGeneration = startGen || 1; + } + + // Create a history change event from an updateDoc-style change + // object. + function historyChangeFromChange(doc, change) { + var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)}; + attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); + linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true); + return histChange; + } + + // Pop all selection events off the end of a history array. Stop at + // a change event. + function clearSelectionEvents(array) { + while (array.length) { + var last = lst(array); + if (last.ranges) array.pop(); + else break; + } + } + + // Find the top change event in the history. Pop off selection + // events that are in the way. + function lastChangeEvent(hist, force) { + if (force) { + clearSelectionEvents(hist.done); + return lst(hist.done); + } else if (hist.done.length && !lst(hist.done).ranges) { + return lst(hist.done); + } else if (hist.done.length > 1 && !hist.done[hist.done.length - 2].ranges) { + hist.done.pop(); + return lst(hist.done); + } + } + + // Register a change in the history. Merges changes that are within + // a single operation, ore are close together with an origin that + // allows merging (starting with "+") into a single event. + function addChangeToHistory(doc, change, selAfter, opId) { + var hist = doc.history; + hist.undone.length = 0; + var time = +new Date, cur; + + if ((hist.lastOp == opId || + hist.lastOrigin == change.origin && change.origin && + ((change.origin.charAt(0) == "+" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) || + change.origin.charAt(0) == "*")) && + (cur = lastChangeEvent(hist, hist.lastOp == opId))) { + // Merge this change into the last event + var last = lst(cur.changes); + if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) { + // Optimized case for simple insertion -- don't want to add + // new changesets for every character typed + last.to = changeEnd(change); + } else { + // Add new sub-event + cur.changes.push(historyChangeFromChange(doc, change)); + } + } else { + // Can not be merged, start a new event. + var before = lst(hist.done); + if (!before || !before.ranges) + pushSelectionToHistory(doc.sel, hist.done); + cur = {changes: [historyChangeFromChange(doc, change)], + generation: hist.generation}; + hist.done.push(cur); + while (hist.done.length > hist.undoDepth) { + hist.done.shift(); + if (!hist.done[0].ranges) hist.done.shift(); + } + } + hist.done.push(selAfter); + hist.generation = ++hist.maxGeneration; + hist.lastModTime = hist.lastSelTime = time; + hist.lastOp = hist.lastSelOp = opId; + hist.lastOrigin = hist.lastSelOrigin = change.origin; + + if (!last) signal(doc, "historyAdded"); + } + + function selectionEventCanBeMerged(doc, origin, prev, sel) { + var ch = origin.charAt(0); + return ch == "*" || + ch == "+" && + prev.ranges.length == sel.ranges.length && + prev.somethingSelected() == sel.somethingSelected() && + new Date - doc.history.lastSelTime <= (doc.cm ? doc.cm.options.historyEventDelay : 500); + } + + // Called whenever the selection changes, sets the new selection as + // the pending selection in the history, and pushes the old pending + // selection into the 'done' array when it was significantly + // different (in number of selected ranges, emptiness, or time). + function addSelectionToHistory(doc, sel, opId, options) { + var hist = doc.history, origin = options && options.origin; + + // A new event is started when the previous origin does not match + // the current, or the origins don't allow matching. Origins + // starting with * are always merged, those starting with + are + // merged when similar and close together in time. + if (opId == hist.lastSelOp || + (origin && hist.lastSelOrigin == origin && + (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin || + selectionEventCanBeMerged(doc, origin, lst(hist.done), sel)))) + hist.done[hist.done.length - 1] = sel; + else + pushSelectionToHistory(sel, hist.done); + + hist.lastSelTime = +new Date; + hist.lastSelOrigin = origin; + hist.lastSelOp = opId; + if (options && options.clearRedo !== false) + clearSelectionEvents(hist.undone); + } + + function pushSelectionToHistory(sel, dest) { + var top = lst(dest); + if (!(top && top.ranges && top.equals(sel))) + dest.push(sel); + } + + // Used to store marked span information in the history. + function attachLocalSpans(doc, change, from, to) { + var existing = change["spans_" + doc.id], n = 0; + doc.iter(Math.max(doc.first, from), Math.min(doc.first + doc.size, to), function(line) { + if (line.markedSpans) + (existing || (existing = change["spans_" + doc.id] = {}))[n] = line.markedSpans; + ++n; + }); + } + + // When un/re-doing restores text containing marked spans, those + // that have been explicitly cleared should not be restored. + function removeClearedSpans(spans) { + if (!spans) return null; + for (var i = 0, out; i < spans.length; ++i) { + if (spans[i].marker.explicitlyCleared) { if (!out) out = spans.slice(0, i); } + else if (out) out.push(spans[i]); + } + return !out ? spans : out.length ? out : null; + } + + // Retrieve and filter the old marked spans stored in a change event. + function getOldSpans(doc, change) { + var found = change["spans_" + doc.id]; + if (!found) return null; + for (var i = 0, nw = []; i < change.text.length; ++i) + nw.push(removeClearedSpans(found[i])); + return nw; + } + + // Used both to provide a JSON-safe object in .getHistory, and, when + // detaching a document, to split the history in two + function copyHistoryArray(events, newGroup, instantiateSel) { + for (var i = 0, copy = []; i < events.length; ++i) { + var event = events[i]; + if (event.ranges) { + copy.push(instantiateSel ? Selection.prototype.deepCopy.call(event) : event); + continue; + } + var changes = event.changes, newChanges = []; + copy.push({changes: newChanges}); + for (var j = 0; j < changes.length; ++j) { + var change = changes[j], m; + newChanges.push({from: change.from, to: change.to, text: change.text}); + if (newGroup) for (var prop in change) if (m = prop.match(/^spans_(\d+)$/)) { + if (indexOf(newGroup, Number(m[1])) > -1) { + lst(newChanges)[prop] = change[prop]; + delete change[prop]; + } + } + } + } + return copy; + } + + // Rebasing/resetting history to deal with externally-sourced changes + + function rebaseHistSelSingle(pos, from, to, diff) { + if (to < pos.line) { + pos.line += diff; + } else if (from < pos.line) { + pos.line = from; + pos.ch = 0; + } + } + + // Tries to rebase an array of history events given a change in the + // document. If the change touches the same lines as the event, the + // event, and everything 'behind' it, is discarded. If the change is + // before the event, the event's positions are updated. Uses a + // copy-on-write scheme for the positions, to avoid having to + // reallocate them all on every rebase, but also avoid problems with + // shared position objects being unsafely updated. + function rebaseHistArray(array, from, to, diff) { + for (var i = 0; i < array.length; ++i) { + var sub = array[i], ok = true; + if (sub.ranges) { + if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; } + for (var j = 0; j < sub.ranges.length; j++) { + rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff); + rebaseHistSelSingle(sub.ranges[j].head, from, to, diff); + } + continue; + } + for (var j = 0; j < sub.changes.length; ++j) { + var cur = sub.changes[j]; + if (to < cur.from.line) { + cur.from = Pos(cur.from.line + diff, cur.from.ch); + cur.to = Pos(cur.to.line + diff, cur.to.ch); + } else if (from <= cur.to.line) { + ok = false; + break; + } + } + if (!ok) { + array.splice(0, i + 1); + i = 0; + } + } + } + + function rebaseHist(hist, change) { + var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1; + rebaseHistArray(hist.done, from, to, diff); + rebaseHistArray(hist.undone, from, to, diff); + } + + // EVENT UTILITIES + + // Due to the fact that we still support jurassic IE versions, some + // compatibility wrappers are needed. + + var e_preventDefault = CodeMirror.e_preventDefault = function(e) { + if (e.preventDefault) e.preventDefault(); + else e.returnValue = false; + }; + var e_stopPropagation = CodeMirror.e_stopPropagation = function(e) { + if (e.stopPropagation) e.stopPropagation(); + else e.cancelBubble = true; + }; + function e_defaultPrevented(e) { + return e.defaultPrevented != null ? e.defaultPrevented : e.returnValue == false; + } + var e_stop = CodeMirror.e_stop = function(e) {e_preventDefault(e); e_stopPropagation(e);}; + + function e_target(e) {return e.target || e.srcElement;} + function e_button(e) { + var b = e.which; + if (b == null) { + if (e.button & 1) b = 1; + else if (e.button & 2) b = 3; + else if (e.button & 4) b = 2; + } + if (mac && e.ctrlKey && b == 1) b = 3; + return b; + } + + // EVENT HANDLING + + // Lightweight event framework. on/off also work on DOM nodes, + // registering native DOM handlers. + + var on = CodeMirror.on = function(emitter, type, f) { + if (emitter.addEventListener) + emitter.addEventListener(type, f, false); + else if (emitter.attachEvent) + emitter.attachEvent("on" + type, f); + else { + var map = emitter._handlers || (emitter._handlers = {}); + var arr = map[type] || (map[type] = []); + arr.push(f); + } + }; + + var off = CodeMirror.off = function(emitter, type, f) { + if (emitter.removeEventListener) + emitter.removeEventListener(type, f, false); + else if (emitter.detachEvent) + emitter.detachEvent("on" + type, f); + else { + var arr = emitter._handlers && emitter._handlers[type]; + if (!arr) return; + for (var i = 0; i < arr.length; ++i) + if (arr[i] == f) { arr.splice(i, 1); break; } + } + }; + + var signal = CodeMirror.signal = function(emitter, type /*, values...*/) { + var arr = emitter._handlers && emitter._handlers[type]; + if (!arr) return; + var args = Array.prototype.slice.call(arguments, 2); + for (var i = 0; i < arr.length; ++i) arr[i].apply(null, args); + }; + + var orphanDelayedCallbacks = null; + + // Often, we want to signal events at a point where we are in the + // middle of some work, but don't want the handler to start calling + // other methods on the editor, which might be in an inconsistent + // state or simply not expect any other events to happen. + // signalLater looks whether there are any handlers, and schedules + // them to be executed when the last operation ends, or, if no + // operation is active, when a timeout fires. + function signalLater(emitter, type /*, values...*/) { + var arr = emitter._handlers && emitter._handlers[type]; + if (!arr) return; + var args = Array.prototype.slice.call(arguments, 2), list; + if (operationGroup) { + list = operationGroup.delayedCallbacks; + } else if (orphanDelayedCallbacks) { + list = orphanDelayedCallbacks; + } else { + list = orphanDelayedCallbacks = []; + setTimeout(fireOrphanDelayed, 0); + } + function bnd(f) {return function(){f.apply(null, args);};}; + for (var i = 0; i < arr.length; ++i) + list.push(bnd(arr[i])); + } + + function fireOrphanDelayed() { + var delayed = orphanDelayedCallbacks; + orphanDelayedCallbacks = null; + for (var i = 0; i < delayed.length; ++i) delayed[i](); + } + + // The DOM events that CodeMirror handles can be overridden by + // registering a (non-DOM) handler on the editor for the event name, + // and preventDefault-ing the event in that handler. + function signalDOMEvent(cm, e, override) { + if (typeof e == "string") + e = {type: e, preventDefault: function() { this.defaultPrevented = true; }}; + signal(cm, override || e.type, cm, e); + return e_defaultPrevented(e) || e.codemirrorIgnore; + } + + function signalCursorActivity(cm) { + var arr = cm._handlers && cm._handlers.cursorActivity; + if (!arr) return; + var set = cm.curOp.cursorActivityHandlers || (cm.curOp.cursorActivityHandlers = []); + for (var i = 0; i < arr.length; ++i) if (indexOf(set, arr[i]) == -1) + set.push(arr[i]); + } + + function hasHandler(emitter, type) { + var arr = emitter._handlers && emitter._handlers[type]; + return arr && arr.length > 0; + } + + // Add on and off methods to a constructor's prototype, to make + // registering events on such objects more convenient. + function eventMixin(ctor) { + ctor.prototype.on = function(type, f) {on(this, type, f);}; + ctor.prototype.off = function(type, f) {off(this, type, f);}; + } + + // MISC UTILITIES + + // Number of pixels added to scroller and sizer to hide scrollbar + var scrollerGap = 30; + + // Returned or thrown by various protocols to signal 'I'm not + // handling this'. + var Pass = CodeMirror.Pass = {toString: function(){return "CodeMirror.Pass";}}; + + // Reused option objects for setSelection & friends + var sel_dontScroll = {scroll: false}, sel_mouse = {origin: "*mouse"}, sel_move = {origin: "+move"}; + + function Delayed() {this.id = null;} + Delayed.prototype.set = function(ms, f) { + clearTimeout(this.id); + this.id = setTimeout(f, ms); + }; + + // Counts the column offset in a string, taking tabs into account. + // Used mostly to find indentation. + var countColumn = CodeMirror.countColumn = function(string, end, tabSize, startIndex, startValue) { + if (end == null) { + end = string.search(/[^\s\u00a0]/); + if (end == -1) end = string.length; + } + for (var i = startIndex || 0, n = startValue || 0;;) { + var nextTab = string.indexOf("\t", i); + if (nextTab < 0 || nextTab >= end) + return n + (end - i); + n += nextTab - i; + n += tabSize - (n % tabSize); + i = nextTab + 1; + } + }; + + // The inverse of countColumn -- find the offset that corresponds to + // a particular column. + function findColumn(string, goal, tabSize) { + for (var pos = 0, col = 0;;) { + var nextTab = string.indexOf("\t", pos); + if (nextTab == -1) nextTab = string.length; + var skipped = nextTab - pos; + if (nextTab == string.length || col + skipped >= goal) + return pos + Math.min(skipped, goal - col); + col += nextTab - pos; + col += tabSize - (col % tabSize); + pos = nextTab + 1; + if (col >= goal) return pos; + } + } + + var spaceStrs = [""]; + function spaceStr(n) { + while (spaceStrs.length <= n) + spaceStrs.push(lst(spaceStrs) + " "); + return spaceStrs[n]; + } + + function lst(arr) { return arr[arr.length-1]; } + + var selectInput = function(node) { node.select(); }; + if (ios) // Mobile Safari apparently has a bug where select() is broken. + selectInput = function(node) { node.selectionStart = 0; node.selectionEnd = node.value.length; }; + else if (ie) // Suppress mysterious IE10 errors + selectInput = function(node) { try { node.select(); } catch(_e) {} }; + + function indexOf(array, elt) { + for (var i = 0; i < array.length; ++i) + if (array[i] == elt) return i; + return -1; + } + function map(array, f) { + var out = []; + for (var i = 0; i < array.length; i++) out[i] = f(array[i], i); + return out; + } + + function nothing() {} + + function createObj(base, props) { + var inst; + if (Object.create) { + inst = Object.create(base); + } else { + nothing.prototype = base; + inst = new nothing(); + } + if (props) copyObj(props, inst); + return inst; + }; + + function copyObj(obj, target, overwrite) { + if (!target) target = {}; + for (var prop in obj) + if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop))) + target[prop] = obj[prop]; + return target; + } + + function bind(f) { + var args = Array.prototype.slice.call(arguments, 1); + return function(){return f.apply(null, args);}; + } + + var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; + var isWordCharBasic = CodeMirror.isWordChar = function(ch) { + return /\w/.test(ch) || ch > "\x80" && + (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch)); + }; + function isWordChar(ch, helper) { + if (!helper) return isWordCharBasic(ch); + if (helper.source.indexOf("\\w") > -1 && isWordCharBasic(ch)) return true; + return helper.test(ch); + } + + function isEmpty(obj) { + for (var n in obj) if (obj.hasOwnProperty(n) && obj[n]) return false; + return true; + } + + // Extending unicode characters. A series of a non-extending char + + // any number of extending chars is treated as a single unit as far + // as editing and measuring is concerned. This is not fully correct, + // since some scripts/fonts/browsers also treat other configurations + // of code points as a group. + var extendingChars = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/; + function isExtendingChar(ch) { return ch.charCodeAt(0) >= 768 && extendingChars.test(ch); } + + // DOM UTILITIES + + function elt(tag, content, className, style) { + var e = document.createElement(tag); + if (className) e.className = className; + if (style) e.style.cssText = style; + if (typeof content == "string") e.appendChild(document.createTextNode(content)); + else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]); + return e; + } + + var range; + if (document.createRange) range = function(node, start, end, endNode) { + var r = document.createRange(); + r.setEnd(endNode || node, end); + r.setStart(node, start); + return r; + }; + else range = function(node, start, end) { + var r = document.body.createTextRange(); + try { r.moveToElementText(node.parentNode); } + catch(e) { return r; } + r.collapse(true); + r.moveEnd("character", end); + r.moveStart("character", start); + return r; + }; + + function removeChildren(e) { + for (var count = e.childNodes.length; count > 0; --count) + e.removeChild(e.firstChild); + return e; + } + + function removeChildrenAndAdd(parent, e) { + return removeChildren(parent).appendChild(e); + } + + var contains = CodeMirror.contains = function(parent, child) { + if (child.nodeType == 3) // Android browser always returns false when child is a textnode + child = child.parentNode; + if (parent.contains) + return parent.contains(child); + do { + if (child.nodeType == 11) child = child.host; + if (child == parent) return true; + } while (child = child.parentNode); + }; + + function activeElt() { return document.activeElement; } + // Older versions of IE throws unspecified error when touching + // document.activeElement in some cases (during loading, in iframe) + if (ie && ie_version < 11) activeElt = function() { + try { return document.activeElement; } + catch(e) { return document.body; } + }; + + function classTest(cls) { return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*"); } + var rmClass = CodeMirror.rmClass = function(node, cls) { + var current = node.className; + var match = classTest(cls).exec(current); + if (match) { + var after = current.slice(match.index + match[0].length); + node.className = current.slice(0, match.index) + (after ? match[1] + after : ""); + } + }; + var addClass = CodeMirror.addClass = function(node, cls) { + var current = node.className; + if (!classTest(cls).test(current)) node.className += (current ? " " : "") + cls; + }; + function joinClasses(a, b) { + var as = a.split(" "); + for (var i = 0; i < as.length; i++) + if (as[i] && !classTest(as[i]).test(b)) b += " " + as[i]; + return b; + } + + // WINDOW-WIDE EVENTS + + // These must be handled carefully, because naively registering a + // handler for each editor will cause the editors to never be + // garbage collected. + + function forEachCodeMirror(f) { + if (!document.body.getElementsByClassName) return; + var byClass = document.body.getElementsByClassName("CodeMirror"); + for (var i = 0; i < byClass.length; i++) { + var cm = byClass[i].CodeMirror; + if (cm) f(cm); + } + } + + var globalsRegistered = false; + function ensureGlobalHandlers() { + if (globalsRegistered) return; + registerGlobalHandlers(); + globalsRegistered = true; + } + function registerGlobalHandlers() { + // When the window resizes, we need to refresh active editors. + var resizeTimer; + on(window, "resize", function() { + if (resizeTimer == null) resizeTimer = setTimeout(function() { + resizeTimer = null; + forEachCodeMirror(onResize); + }, 100); + }); + // When the window loses focus, we want to show the editor as blurred + on(window, "blur", function() { + forEachCodeMirror(onBlur); + }); + } + + // FEATURE DETECTION + + // Detect drag-and-drop + var dragAndDrop = function() { + // There is *some* kind of drag-and-drop support in IE6-8, but I + // couldn't get it to work yet. + if (ie && ie_version < 9) return false; + var div = elt('div'); + return "draggable" in div || "dragDrop" in div; + }(); + + var zwspSupported; + function zeroWidthElement(measure) { + if (zwspSupported == null) { + var test = elt("span", "\u200b"); + removeChildrenAndAdd(measure, elt("span", [test, document.createTextNode("x")])); + if (measure.firstChild.offsetHeight != 0) + zwspSupported = test.offsetWidth <= 1 && test.offsetHeight > 2 && !(ie && ie_version < 8); + } + var node = zwspSupported ? elt("span", "\u200b") : + elt("span", "\u00a0", null, "display: inline-block; width: 1px; margin-right: -1px"); + node.setAttribute("cm-text", ""); + return node; + } + + // Feature-detect IE's crummy client rect reporting for bidi text + var badBidiRects; + function hasBadBidiRects(measure) { + if (badBidiRects != null) return badBidiRects; + var txt = removeChildrenAndAdd(measure, document.createTextNode("A\u062eA")); + var r0 = range(txt, 0, 1).getBoundingClientRect(); + if (!r0 || r0.left == r0.right) return false; // Safari returns null in some cases (#2780) + var r1 = range(txt, 1, 2).getBoundingClientRect(); + return badBidiRects = (r1.right - r0.right < 3); + } + + // See if "".split is the broken IE version, if so, provide an + // alternative way to split lines. + var splitLines = CodeMirror.splitLines = "\n\nb".split(/\n/).length != 3 ? function(string) { + var pos = 0, result = [], l = string.length; + while (pos <= l) { + var nl = string.indexOf("\n", pos); + if (nl == -1) nl = string.length; + var line = string.slice(pos, string.charAt(nl - 1) == "\r" ? nl - 1 : nl); + var rt = line.indexOf("\r"); + if (rt != -1) { + result.push(line.slice(0, rt)); + pos += rt + 1; + } else { + result.push(line); + pos = nl + 1; + } + } + return result; + } : function(string){return string.split(/\r\n?|\n/);}; + + var hasSelection = window.getSelection ? function(te) { + try { return te.selectionStart != te.selectionEnd; } + catch(e) { return false; } + } : function(te) { + try {var range = te.ownerDocument.selection.createRange();} + catch(e) {} + if (!range || range.parentElement() != te) return false; + return range.compareEndPoints("StartToEnd", range) != 0; + }; + + var hasCopyEvent = (function() { + var e = elt("div"); + if ("oncopy" in e) return true; + e.setAttribute("oncopy", "return;"); + return typeof e.oncopy == "function"; + })(); + + var badZoomedRects = null; + function hasBadZoomedRects(measure) { + if (badZoomedRects != null) return badZoomedRects; + var node = removeChildrenAndAdd(measure, elt("span", "x")); + var normal = node.getBoundingClientRect(); + var fromRange = range(node, 0, 1).getBoundingClientRect(); + return badZoomedRects = Math.abs(normal.left - fromRange.left) > 1; + } + + // KEY NAMES + + var keyNames = {3: "Enter", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt", + 19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End", + 36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert", + 46: "Delete", 59: ";", 61: "=", 91: "Mod", 92: "Mod", 93: "Mod", 107: "=", 109: "-", 127: "Delete", + 173: "-", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", + 221: "]", 222: "'", 63232: "Up", 63233: "Down", 63234: "Left", 63235: "Right", 63272: "Delete", + 63273: "Home", 63275: "End", 63276: "PageUp", 63277: "PageDown", 63302: "Insert"}; + CodeMirror.keyNames = keyNames; + (function() { + // Number keys + for (var i = 0; i < 10; i++) keyNames[i + 48] = keyNames[i + 96] = String(i); + // Alphabetic keys + for (var i = 65; i <= 90; i++) keyNames[i] = String.fromCharCode(i); + // Function keys + for (var i = 1; i <= 12; i++) keyNames[i + 111] = keyNames[i + 63235] = "F" + i; + })(); + + // BIDI HELPERS + + function iterateBidiSections(order, from, to, f) { + if (!order) return f(from, to, "ltr"); + var found = false; + for (var i = 0; i < order.length; ++i) { + var part = order[i]; + if (part.from < to && part.to > from || from == to && part.to == from) { + f(Math.max(part.from, from), Math.min(part.to, to), part.level == 1 ? "rtl" : "ltr"); + found = true; + } + } + if (!found) f(from, to, "ltr"); + } + + function bidiLeft(part) { return part.level % 2 ? part.to : part.from; } + function bidiRight(part) { return part.level % 2 ? part.from : part.to; } + + function lineLeft(line) { var order = getOrder(line); return order ? bidiLeft(order[0]) : 0; } + function lineRight(line) { + var order = getOrder(line); + if (!order) return line.text.length; + return bidiRight(lst(order)); + } + + function lineStart(cm, lineN) { + var line = getLine(cm.doc, lineN); + var visual = visualLine(line); + if (visual != line) lineN = lineNo(visual); + var order = getOrder(visual); + var ch = !order ? 0 : order[0].level % 2 ? lineRight(visual) : lineLeft(visual); + return Pos(lineN, ch); + } + function lineEnd(cm, lineN) { + var merged, line = getLine(cm.doc, lineN); + while (merged = collapsedSpanAtEnd(line)) { + line = merged.find(1, true).line; + lineN = null; + } + var order = getOrder(line); + var ch = !order ? line.text.length : order[0].level % 2 ? lineLeft(line) : lineRight(line); + return Pos(lineN == null ? lineNo(line) : lineN, ch); + } + function lineStartSmart(cm, pos) { + var start = lineStart(cm, pos.line); + var line = getLine(cm.doc, start.line); + var order = getOrder(line); + if (!order || order[0].level == 0) { + var firstNonWS = Math.max(0, line.text.search(/\S/)); + var inWS = pos.line == start.line && pos.ch <= firstNonWS && pos.ch; + return Pos(start.line, inWS ? 0 : firstNonWS); + } + return start; + } + + function compareBidiLevel(order, a, b) { + var linedir = order[0].level; + if (a == linedir) return true; + if (b == linedir) return false; + return a < b; + } + var bidiOther; + function getBidiPartAt(order, pos) { + bidiOther = null; + for (var i = 0, found; i < order.length; ++i) { + var cur = order[i]; + if (cur.from < pos && cur.to > pos) return i; + if ((cur.from == pos || cur.to == pos)) { + if (found == null) { + found = i; + } else if (compareBidiLevel(order, cur.level, order[found].level)) { + if (cur.from != cur.to) bidiOther = found; + return i; + } else { + if (cur.from != cur.to) bidiOther = i; + return found; + } + } + } + return found; + } + + function moveInLine(line, pos, dir, byUnit) { + if (!byUnit) return pos + dir; + do pos += dir; + while (pos > 0 && isExtendingChar(line.text.charAt(pos))); + return pos; + } + + // This is needed in order to move 'visually' through bi-directional + // text -- i.e., pressing left should make the cursor go left, even + // when in RTL text. The tricky part is the 'jumps', where RTL and + // LTR text touch each other. This often requires the cursor offset + // to move more than one unit, in order to visually move one unit. + function moveVisually(line, start, dir, byUnit) { + var bidi = getOrder(line); + if (!bidi) return moveLogically(line, start, dir, byUnit); + var pos = getBidiPartAt(bidi, start), part = bidi[pos]; + var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit); + + for (;;) { + if (target > part.from && target < part.to) return target; + if (target == part.from || target == part.to) { + if (getBidiPartAt(bidi, target) == pos) return target; + part = bidi[pos += dir]; + return (dir > 0) == part.level % 2 ? part.to : part.from; + } else { + part = bidi[pos += dir]; + if (!part) return null; + if ((dir > 0) == part.level % 2) + target = moveInLine(line, part.to, -1, byUnit); + else + target = moveInLine(line, part.from, 1, byUnit); + } + } + } + + function moveLogically(line, start, dir, byUnit) { + var target = start + dir; + if (byUnit) while (target > 0 && isExtendingChar(line.text.charAt(target))) target += dir; + return target < 0 || target > line.text.length ? null : target; + } + + // Bidirectional ordering algorithm + // See http://unicode.org/reports/tr9/tr9-13.html for the algorithm + // that this (partially) implements. + + // One-char codes used for character types: + // L (L): Left-to-Right + // R (R): Right-to-Left + // r (AL): Right-to-Left Arabic + // 1 (EN): European Number + // + (ES): European Number Separator + // % (ET): European Number Terminator + // n (AN): Arabic Number + // , (CS): Common Number Separator + // m (NSM): Non-Spacing Mark + // b (BN): Boundary Neutral + // s (B): Paragraph Separator + // t (S): Segment Separator + // w (WS): Whitespace + // N (ON): Other Neutrals + + // Returns null if characters are ordered as they appear + // (left-to-right), or an array of sections ({from, to, level} + // objects) in the order in which they occur visually. + var bidiOrdering = (function() { + // Character types for codepoints 0 to 0xff + var lowTypes = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN"; + // Character types for codepoints 0x600 to 0x6ff + var arabicTypes = "rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm"; + function charType(code) { + if (code <= 0xf7) return lowTypes.charAt(code); + else if (0x590 <= code && code <= 0x5f4) return "R"; + else if (0x600 <= code && code <= 0x6ed) return arabicTypes.charAt(code - 0x600); + else if (0x6ee <= code && code <= 0x8ac) return "r"; + else if (0x2000 <= code && code <= 0x200b) return "w"; + else if (code == 0x200c) return "b"; + else return "L"; + } + + var bidiRE = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/; + var isNeutral = /[stwN]/, isStrong = /[LRr]/, countsAsLeft = /[Lb1n]/, countsAsNum = /[1n]/; + // Browsers seem to always treat the boundaries of block elements as being L. + var outerType = "L"; + + function BidiSpan(level, from, to) { + this.level = level; + this.from = from; this.to = to; + } + + return function(str) { + if (!bidiRE.test(str)) return false; + var len = str.length, types = []; + for (var i = 0, type; i < len; ++i) + types.push(type = charType(str.charCodeAt(i))); + + // W1. Examine each non-spacing mark (NSM) in the level run, and + // change the type of the NSM to the type of the previous + // character. If the NSM is at the start of the level run, it will + // get the type of sor. + for (var i = 0, prev = outerType; i < len; ++i) { + var type = types[i]; + if (type == "m") types[i] = prev; + else prev = type; + } + + // W2. Search backwards from each instance of a European number + // until the first strong type (R, L, AL, or sor) is found. If an + // AL is found, change the type of the European number to Arabic + // number. + // W3. Change all ALs to R. + for (var i = 0, cur = outerType; i < len; ++i) { + var type = types[i]; + if (type == "1" && cur == "r") types[i] = "n"; + else if (isStrong.test(type)) { cur = type; if (type == "r") types[i] = "R"; } + } + + // W4. A single European separator between two European numbers + // changes to a European number. A single common separator between + // two numbers of the same type changes to that type. + for (var i = 1, prev = types[0]; i < len - 1; ++i) { + var type = types[i]; + if (type == "+" && prev == "1" && types[i+1] == "1") types[i] = "1"; + else if (type == "," && prev == types[i+1] && + (prev == "1" || prev == "n")) types[i] = prev; + prev = type; + } + + // W5. A sequence of European terminators adjacent to European + // numbers changes to all European numbers. + // W6. Otherwise, separators and terminators change to Other + // Neutral. + for (var i = 0; i < len; ++i) { + var type = types[i]; + if (type == ",") types[i] = "N"; + else if (type == "%") { + for (var end = i + 1; end < len && types[end] == "%"; ++end) {} + var replace = (i && types[i-1] == "!") || (end < len && types[end] == "1") ? "1" : "N"; + for (var j = i; j < end; ++j) types[j] = replace; + i = end - 1; + } + } + + // W7. Search backwards from each instance of a European number + // until the first strong type (R, L, or sor) is found. If an L is + // found, then change the type of the European number to L. + for (var i = 0, cur = outerType; i < len; ++i) { + var type = types[i]; + if (cur == "L" && type == "1") types[i] = "L"; + else if (isStrong.test(type)) cur = type; + } + + // N1. A sequence of neutrals takes the direction of the + // surrounding strong text if the text on both sides has the same + // direction. European and Arabic numbers act as if they were R in + // terms of their influence on neutrals. Start-of-level-run (sor) + // and end-of-level-run (eor) are used at level run boundaries. + // N2. Any remaining neutrals take the embedding direction. + for (var i = 0; i < len; ++i) { + if (isNeutral.test(types[i])) { + for (var end = i + 1; end < len && isNeutral.test(types[end]); ++end) {} + var before = (i ? types[i-1] : outerType) == "L"; + var after = (end < len ? types[end] : outerType) == "L"; + var replace = before || after ? "L" : "R"; + for (var j = i; j < end; ++j) types[j] = replace; + i = end - 1; + } + } + + // Here we depart from the documented algorithm, in order to avoid + // building up an actual levels array. Since there are only three + // levels (0, 1, 2) in an implementation that doesn't take + // explicit embedding into account, we can build up the order on + // the fly, without following the level-based algorithm. + var order = [], m; + for (var i = 0; i < len;) { + if (countsAsLeft.test(types[i])) { + var start = i; + for (++i; i < len && countsAsLeft.test(types[i]); ++i) {} + order.push(new BidiSpan(0, start, i)); + } else { + var pos = i, at = order.length; + for (++i; i < len && types[i] != "L"; ++i) {} + for (var j = pos; j < i;) { + if (countsAsNum.test(types[j])) { + if (pos < j) order.splice(at, 0, new BidiSpan(1, pos, j)); + var nstart = j; + for (++j; j < i && countsAsNum.test(types[j]); ++j) {} + order.splice(at, 0, new BidiSpan(2, nstart, j)); + pos = j; + } else ++j; + } + if (pos < i) order.splice(at, 0, new BidiSpan(1, pos, i)); + } + } + if (order[0].level == 1 && (m = str.match(/^\s+/))) { + order[0].from = m[0].length; + order.unshift(new BidiSpan(0, 0, m[0].length)); + } + if (lst(order).level == 1 && (m = str.match(/\s+$/))) { + lst(order).to -= m[0].length; + order.push(new BidiSpan(0, len - m[0].length, len)); + } + if (order[0].level == 2) + order.unshift(new BidiSpan(1, order[0].to, order[0].to)); + if (order[0].level != lst(order).level) + order.push(new BidiSpan(order[0].level, len, len)); + + return order; + }; + })(); + + // THE END + + CodeMirror.version = "5.2.0"; + + return CodeMirror; +}); diff --git a/sources/samples/toolbarconfigurator/lib/codemirror/javascript.js b/sources/samples/toolbarconfigurator/lib/codemirror/javascript.js new file mode 100644 index 00000000..ef018478 --- /dev/null +++ b/sources/samples/toolbarconfigurator/lib/codemirror/javascript.js @@ -0,0 +1,701 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// TODO actually recognize syntax of TypeScript constructs + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("javascript", function(config, parserConfig) { + var indentUnit = config.indentUnit; + var statementIndent = parserConfig.statementIndent; + var jsonldMode = parserConfig.jsonld; + var jsonMode = parserConfig.json || jsonldMode; + var isTS = parserConfig.typescript; + var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/; + + // Tokenizer + + var keywords = function(){ + function kw(type) {return {type: type, style: "keyword"};} + var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"); + var operator = kw("operator"), atom = {type: "atom", style: "atom"}; + + var jsKeywords = { + "if": kw("if"), "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B, + "return": C, "break": C, "continue": C, "new": C, "delete": C, "throw": C, "debugger": C, + "var": kw("var"), "const": kw("var"), "let": kw("var"), + "function": kw("function"), "catch": kw("catch"), + "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"), + "in": operator, "typeof": operator, "instanceof": operator, + "true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom, + "this": kw("this"), "module": kw("module"), "class": kw("class"), "super": kw("atom"), + "yield": C, "export": kw("export"), "import": kw("import"), "extends": C + }; + + // Extend the 'normal' keywords with the TypeScript language extensions + if (isTS) { + var type = {type: "variable", style: "variable-3"}; + var tsKeywords = { + // object-like things + "interface": kw("interface"), + "extends": kw("extends"), + "constructor": kw("constructor"), + + // scope modifiers + "public": kw("public"), + "private": kw("private"), + "protected": kw("protected"), + "static": kw("static"), + + // types + "string": type, "number": type, "bool": type, "any": type + }; + + for (var attr in tsKeywords) { + jsKeywords[attr] = tsKeywords[attr]; + } + } + + return jsKeywords; + }(); + + var isOperatorChar = /[+\-*&%=<>!?|~^]/; + var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/; + + function readRegexp(stream) { + var escaped = false, next, inSet = false; + while ((next = stream.next()) != null) { + if (!escaped) { + if (next == "/" && !inSet) return; + if (next == "[") inSet = true; + else if (inSet && next == "]") inSet = false; + } + escaped = !escaped && next == "\\"; + } + } + + // Used as scratch variables to communicate multiple values without + // consing up tons of objects. + var type, content; + function ret(tp, style, cont) { + type = tp; content = cont; + return style; + } + function tokenBase(stream, state) { + var ch = stream.next(); + if (ch == '"' || ch == "'") { + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } else if (ch == "." && stream.match(/^\d+(?:[eE][+\-]?\d+)?/)) { + return ret("number", "number"); + } else if (ch == "." && stream.match("..")) { + return ret("spread", "meta"); + } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) { + return ret(ch); + } else if (ch == "=" && stream.eat(">")) { + return ret("=>", "operator"); + } else if (ch == "0" && stream.eat(/x/i)) { + stream.eatWhile(/[\da-f]/i); + return ret("number", "number"); + } else if (/\d/.test(ch)) { + stream.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/); + return ret("number", "number"); + } else if (ch == "/") { + if (stream.eat("*")) { + state.tokenize = tokenComment; + return tokenComment(stream, state); + } else if (stream.eat("/")) { + stream.skipToEnd(); + return ret("comment", "comment"); + } else if (state.lastType == "operator" || state.lastType == "keyword c" || + state.lastType == "sof" || /^[\[{}\(,;:]$/.test(state.lastType)) { + readRegexp(stream); + stream.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/); + return ret("regexp", "string-2"); + } else { + stream.eatWhile(isOperatorChar); + return ret("operator", "operator", stream.current()); + } + } else if (ch == "`") { + state.tokenize = tokenQuasi; + return tokenQuasi(stream, state); + } else if (ch == "#") { + stream.skipToEnd(); + return ret("error", "error"); + } else if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return ret("operator", "operator", stream.current()); + } else if (wordRE.test(ch)) { + stream.eatWhile(wordRE); + var word = stream.current(), known = keywords.propertyIsEnumerable(word) && keywords[word]; + return (known && state.lastType != ".") ? ret(known.type, known.style, word) : + ret("variable", "variable", word); + } + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next; + if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)){ + state.tokenize = tokenBase; + return ret("jsonld-keyword", "meta"); + } + while ((next = stream.next()) != null) { + if (next == quote && !escaped) break; + escaped = !escaped && next == "\\"; + } + if (!escaped) state.tokenize = tokenBase; + return ret("string", "string"); + }; + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return ret("comment", "comment"); + } + + function tokenQuasi(stream, state) { + var escaped = false, next; + while ((next = stream.next()) != null) { + if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) { + state.tokenize = tokenBase; + break; + } + escaped = !escaped && next == "\\"; + } + return ret("quasi", "string-2", stream.current()); + } + + var brackets = "([{}])"; + // This is a crude lookahead trick to try and notice that we're + // parsing the argument patterns for a fat-arrow function before we + // actually hit the arrow token. It only works if the arrow is on + // the same line as the arguments and there's no strange noise + // (comments) in between. Fallback is to only notice when we hit the + // arrow, and not declare the arguments as locals for the arrow + // body. + function findFatArrow(stream, state) { + if (state.fatArrowAt) state.fatArrowAt = null; + var arrow = stream.string.indexOf("=>", stream.start); + if (arrow < 0) return; + + var depth = 0, sawSomething = false; + for (var pos = arrow - 1; pos >= 0; --pos) { + var ch = stream.string.charAt(pos); + var bracket = brackets.indexOf(ch); + if (bracket >= 0 && bracket < 3) { + if (!depth) { ++pos; break; } + if (--depth == 0) break; + } else if (bracket >= 3 && bracket < 6) { + ++depth; + } else if (wordRE.test(ch)) { + sawSomething = true; + } else if (/["'\/]/.test(ch)) { + return; + } else if (sawSomething && !depth) { + ++pos; + break; + } + } + if (sawSomething && !depth) state.fatArrowAt = pos; + } + + // Parser + + var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true, "this": true, "jsonld-keyword": true}; + + function JSLexical(indented, column, type, align, prev, info) { + this.indented = indented; + this.column = column; + this.type = type; + this.prev = prev; + this.info = info; + if (align != null) this.align = align; + } + + function inScope(state, varname) { + for (var v = state.localVars; v; v = v.next) + if (v.name == varname) return true; + for (var cx = state.context; cx; cx = cx.prev) { + for (var v = cx.vars; v; v = v.next) + if (v.name == varname) return true; + } + } + + function parseJS(state, style, type, content, stream) { + var cc = state.cc; + // Communicate our context to the combinators. + // (Less wasteful than consing up a hundred closures on every call.) + cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; cx.style = style; + + if (!state.lexical.hasOwnProperty("align")) + state.lexical.align = true; + + while(true) { + var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement; + if (combinator(type, content)) { + while(cc.length && cc[cc.length - 1].lex) + cc.pop()(); + if (cx.marked) return cx.marked; + if (type == "variable" && inScope(state, content)) return "variable-2"; + return style; + } + } + } + + // Combinator utils + + var cx = {state: null, column: null, marked: null, cc: null}; + function pass() { + for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]); + } + function cont() { + pass.apply(null, arguments); + return true; + } + function register(varname) { + function inList(list) { + for (var v = list; v; v = v.next) + if (v.name == varname) return true; + return false; + } + var state = cx.state; + if (state.context) { + cx.marked = "def"; + if (inList(state.localVars)) return; + state.localVars = {name: varname, next: state.localVars}; + } else { + if (inList(state.globalVars)) return; + if (parserConfig.globalVars) + state.globalVars = {name: varname, next: state.globalVars}; + } + } + + // Combinators + + var defaultVars = {name: "this", next: {name: "arguments"}}; + function pushcontext() { + cx.state.context = {prev: cx.state.context, vars: cx.state.localVars}; + cx.state.localVars = defaultVars; + } + function popcontext() { + cx.state.localVars = cx.state.context.vars; + cx.state.context = cx.state.context.prev; + } + function pushlex(type, info) { + var result = function() { + var state = cx.state, indent = state.indented; + if (state.lexical.type == "stat") indent = state.lexical.indented; + else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev) + indent = outer.indented; + state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info); + }; + result.lex = true; + return result; + } + function poplex() { + var state = cx.state; + if (state.lexical.prev) { + if (state.lexical.type == ")") + state.indented = state.lexical.indented; + state.lexical = state.lexical.prev; + } + } + poplex.lex = true; + + function expect(wanted) { + function exp(type) { + if (type == wanted) return cont(); + else if (wanted == ";") return pass(); + else return cont(exp); + }; + return exp; + } + + function statement(type, value) { + if (type == "var") return cont(pushlex("vardef", value.length), vardef, expect(";"), poplex); + if (type == "keyword a") return cont(pushlex("form"), expression, statement, poplex); + if (type == "keyword b") return cont(pushlex("form"), statement, poplex); + if (type == "{") return cont(pushlex("}"), block, poplex); + if (type == ";") return cont(); + if (type == "if") { + if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex) + cx.state.cc.pop()(); + return cont(pushlex("form"), expression, statement, poplex, maybeelse); + } + if (type == "function") return cont(functiondef); + if (type == "for") return cont(pushlex("form"), forspec, statement, poplex); + if (type == "variable") return cont(pushlex("stat"), maybelabel); + if (type == "switch") return cont(pushlex("form"), expression, pushlex("}", "switch"), expect("{"), + block, poplex, poplex); + if (type == "case") return cont(expression, expect(":")); + if (type == "default") return cont(expect(":")); + if (type == "catch") return cont(pushlex("form"), pushcontext, expect("("), funarg, expect(")"), + statement, poplex, popcontext); + if (type == "module") return cont(pushlex("form"), pushcontext, afterModule, popcontext, poplex); + if (type == "class") return cont(pushlex("form"), className, poplex); + if (type == "export") return cont(pushlex("form"), afterExport, poplex); + if (type == "import") return cont(pushlex("form"), afterImport, poplex); + return pass(pushlex("stat"), expression, expect(";"), poplex); + } + function expression(type) { + return expressionInner(type, false); + } + function expressionNoComma(type) { + return expressionInner(type, true); + } + function expressionInner(type, noComma) { + if (cx.state.fatArrowAt == cx.stream.start) { + var body = noComma ? arrowBodyNoComma : arrowBody; + if (type == "(") return cont(pushcontext, pushlex(")"), commasep(pattern, ")"), poplex, expect("=>"), body, popcontext); + else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext); + } + + var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma; + if (atomicTypes.hasOwnProperty(type)) return cont(maybeop); + if (type == "function") return cont(functiondef, maybeop); + if (type == "keyword c") return cont(noComma ? maybeexpressionNoComma : maybeexpression); + if (type == "(") return cont(pushlex(")"), maybeexpression, comprehension, expect(")"), poplex, maybeop); + if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression); + if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop); + if (type == "{") return contCommasep(objprop, "}", null, maybeop); + if (type == "quasi") { return pass(quasi, maybeop); } + return cont(); + } + function maybeexpression(type) { + if (type.match(/[;\}\)\],]/)) return pass(); + return pass(expression); + } + function maybeexpressionNoComma(type) { + if (type.match(/[;\}\)\],]/)) return pass(); + return pass(expressionNoComma); + } + + function maybeoperatorComma(type, value) { + if (type == ",") return cont(expression); + return maybeoperatorNoComma(type, value, false); + } + function maybeoperatorNoComma(type, value, noComma) { + var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma; + var expr = noComma == false ? expression : expressionNoComma; + if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext); + if (type == "operator") { + if (/\+\+|--/.test(value)) return cont(me); + if (value == "?") return cont(expression, expect(":"), expr); + return cont(expr); + } + if (type == "quasi") { return pass(quasi, me); } + if (type == ";") return; + if (type == "(") return contCommasep(expressionNoComma, ")", "call", me); + if (type == ".") return cont(property, me); + if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me); + } + function quasi(type, value) { + if (type != "quasi") return pass(); + if (value.slice(value.length - 2) != "${") return cont(quasi); + return cont(expression, continueQuasi); + } + function continueQuasi(type) { + if (type == "}") { + cx.marked = "string-2"; + cx.state.tokenize = tokenQuasi; + return cont(quasi); + } + } + function arrowBody(type) { + findFatArrow(cx.stream, cx.state); + return pass(type == "{" ? statement : expression); + } + function arrowBodyNoComma(type) { + findFatArrow(cx.stream, cx.state); + return pass(type == "{" ? statement : expressionNoComma); + } + function maybelabel(type) { + if (type == ":") return cont(poplex, statement); + return pass(maybeoperatorComma, expect(";"), poplex); + } + function property(type) { + if (type == "variable") {cx.marked = "property"; return cont();} + } + function objprop(type, value) { + if (type == "variable" || cx.style == "keyword") { + cx.marked = "property"; + if (value == "get" || value == "set") return cont(getterSetter); + return cont(afterprop); + } else if (type == "number" || type == "string") { + cx.marked = jsonldMode ? "property" : (cx.style + " property"); + return cont(afterprop); + } else if (type == "jsonld-keyword") { + return cont(afterprop); + } else if (type == "[") { + return cont(expression, expect("]"), afterprop); + } + } + function getterSetter(type) { + if (type != "variable") return pass(afterprop); + cx.marked = "property"; + return cont(functiondef); + } + function afterprop(type) { + if (type == ":") return cont(expressionNoComma); + if (type == "(") return pass(functiondef); + } + function commasep(what, end) { + function proceed(type) { + if (type == ",") { + var lex = cx.state.lexical; + if (lex.info == "call") lex.pos = (lex.pos || 0) + 1; + return cont(what, proceed); + } + if (type == end) return cont(); + return cont(expect(end)); + } + return function(type) { + if (type == end) return cont(); + return pass(what, proceed); + }; + } + function contCommasep(what, end, info) { + for (var i = 3; i < arguments.length; i++) + cx.cc.push(arguments[i]); + return cont(pushlex(end, info), commasep(what, end), poplex); + } + function block(type) { + if (type == "}") return cont(); + return pass(statement, block); + } + function maybetype(type) { + if (isTS && type == ":") return cont(typedef); + } + function typedef(type) { + if (type == "variable"){cx.marked = "variable-3"; return cont();} + } + function vardef() { + return pass(pattern, maybetype, maybeAssign, vardefCont); + } + function pattern(type, value) { + if (type == "variable") { register(value); return cont(); } + if (type == "[") return contCommasep(pattern, "]"); + if (type == "{") return contCommasep(proppattern, "}"); + } + function proppattern(type, value) { + if (type == "variable" && !cx.stream.match(/^\s*:/, false)) { + register(value); + return cont(maybeAssign); + } + if (type == "variable") cx.marked = "property"; + return cont(expect(":"), pattern, maybeAssign); + } + function maybeAssign(_type, value) { + if (value == "=") return cont(expressionNoComma); + } + function vardefCont(type) { + if (type == ",") return cont(vardef); + } + function maybeelse(type, value) { + if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex); + } + function forspec(type) { + if (type == "(") return cont(pushlex(")"), forspec1, expect(")"), poplex); + } + function forspec1(type) { + if (type == "var") return cont(vardef, expect(";"), forspec2); + if (type == ";") return cont(forspec2); + if (type == "variable") return cont(formaybeinof); + return pass(expression, expect(";"), forspec2); + } + function formaybeinof(_type, value) { + if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression); } + return cont(maybeoperatorComma, forspec2); + } + function forspec2(type, value) { + if (type == ";") return cont(forspec3); + if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression); } + return pass(expression, expect(";"), forspec3); + } + function forspec3(type) { + if (type != ")") cont(expression); + } + function functiondef(type, value) { + if (value == "*") {cx.marked = "keyword"; return cont(functiondef);} + if (type == "variable") {register(value); return cont(functiondef);} + if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, statement, popcontext); + } + function funarg(type) { + if (type == "spread") return cont(funarg); + return pass(pattern, maybetype); + } + function className(type, value) { + if (type == "variable") {register(value); return cont(classNameAfter);} + } + function classNameAfter(type, value) { + if (value == "extends") return cont(expression, classNameAfter); + if (type == "{") return cont(pushlex("}"), classBody, poplex); + } + function classBody(type, value) { + if (type == "variable" || cx.style == "keyword") { + if (value == "static") { + cx.marked = "keyword"; + return cont(classBody); + } + cx.marked = "property"; + if (value == "get" || value == "set") return cont(classGetterSetter, functiondef, classBody); + return cont(functiondef, classBody); + } + if (value == "*") { + cx.marked = "keyword"; + return cont(classBody); + } + if (type == ";") return cont(classBody); + if (type == "}") return cont(); + } + function classGetterSetter(type) { + if (type != "variable") return pass(); + cx.marked = "property"; + return cont(); + } + function afterModule(type, value) { + if (type == "string") return cont(statement); + if (type == "variable") { register(value); return cont(maybeFrom); } + } + function afterExport(_type, value) { + if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); } + if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); } + return pass(statement); + } + function afterImport(type) { + if (type == "string") return cont(); + return pass(importSpec, maybeFrom); + } + function importSpec(type, value) { + if (type == "{") return contCommasep(importSpec, "}"); + if (type == "variable") register(value); + if (value == "*") cx.marked = "keyword"; + return cont(maybeAs); + } + function maybeAs(_type, value) { + if (value == "as") { cx.marked = "keyword"; return cont(importSpec); } + } + function maybeFrom(_type, value) { + if (value == "from") { cx.marked = "keyword"; return cont(expression); } + } + function arrayLiteral(type) { + if (type == "]") return cont(); + return pass(expressionNoComma, maybeArrayComprehension); + } + function maybeArrayComprehension(type) { + if (type == "for") return pass(comprehension, expect("]")); + if (type == ",") return cont(commasep(maybeexpressionNoComma, "]")); + return pass(commasep(expressionNoComma, "]")); + } + function comprehension(type) { + if (type == "for") return cont(forspec, comprehension); + if (type == "if") return cont(expression, comprehension); + } + + function isContinuedStatement(state, textAfter) { + return state.lastType == "operator" || state.lastType == "," || + isOperatorChar.test(textAfter.charAt(0)) || + /[,.]/.test(textAfter.charAt(0)); + } + + // Interface + + return { + startState: function(basecolumn) { + var state = { + tokenize: tokenBase, + lastType: "sof", + cc: [], + lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false), + localVars: parserConfig.localVars, + context: parserConfig.localVars && {vars: parserConfig.localVars}, + indented: 0 + }; + if (parserConfig.globalVars && typeof parserConfig.globalVars == "object") + state.globalVars = parserConfig.globalVars; + return state; + }, + + token: function(stream, state) { + if (stream.sol()) { + if (!state.lexical.hasOwnProperty("align")) + state.lexical.align = false; + state.indented = stream.indentation(); + findFatArrow(stream, state); + } + if (state.tokenize != tokenComment && stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + if (type == "comment") return style; + state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type; + return parseJS(state, style, type, content, stream); + }, + + indent: function(state, textAfter) { + if (state.tokenize == tokenComment) return CodeMirror.Pass; + if (state.tokenize != tokenBase) return 0; + var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical; + // Kludge to prevent 'maybelse' from blocking lexical scope pops + if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) { + var c = state.cc[i]; + if (c == poplex) lexical = lexical.prev; + else if (c != maybeelse) break; + } + if (lexical.type == "stat" && firstChar == "}") lexical = lexical.prev; + if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat") + lexical = lexical.prev; + var type = lexical.type, closing = firstChar == type; + + if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info + 1 : 0); + else if (type == "form" && firstChar == "{") return lexical.indented; + else if (type == "form") return lexical.indented + indentUnit; + else if (type == "stat") + return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || indentUnit : 0); + else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false) + return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit); + else if (lexical.align) return lexical.column + (closing ? 0 : 1); + else return lexical.indented + (closing ? 0 : indentUnit); + }, + + electricInput: /^\s*(?:case .*?:|default:|\{|\})$/, + blockCommentStart: jsonMode ? null : "/*", + blockCommentEnd: jsonMode ? null : "*/", + lineComment: jsonMode ? null : "//", + fold: "brace", + closeBrackets: "()[]{}''\"\"``", + + helperType: jsonMode ? "json" : "javascript", + jsonldMode: jsonldMode, + jsonMode: jsonMode + }; +}); + +CodeMirror.registerHelper("wordChars", "javascript", /[\w$]/); + +CodeMirror.defineMIME("text/javascript", "javascript"); +CodeMirror.defineMIME("text/ecmascript", "javascript"); +CodeMirror.defineMIME("application/javascript", "javascript"); +CodeMirror.defineMIME("application/x-javascript", "javascript"); +CodeMirror.defineMIME("application/ecmascript", "javascript"); +CodeMirror.defineMIME("application/json", {name: "javascript", json: true}); +CodeMirror.defineMIME("application/x-json", {name: "javascript", json: true}); +CodeMirror.defineMIME("application/ld+json", {name: "javascript", jsonld: true}); +CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true }); +CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true }); + +}); diff --git a/sources/samples/toolbarconfigurator/lib/codemirror/neo.css b/sources/samples/toolbarconfigurator/lib/codemirror/neo.css new file mode 100644 index 00000000..d019aab8 --- /dev/null +++ b/sources/samples/toolbarconfigurator/lib/codemirror/neo.css @@ -0,0 +1,36 @@ +/* neo theme for codemirror */ + +/* Color scheme */ + +.cm-s-neo.CodeMirror { + background-color:#ffffff; + color:#2e383c; + line-height:1.4375; +} +.cm-s-neo .cm-comment {color:#75787b} +.cm-s-neo .cm-keyword, .cm-s-neo .cm-property {color:#1d75b3} +.cm-s-neo .cm-atom,.cm-s-neo .cm-number {color:#75438a} +.cm-s-neo .cm-node,.cm-s-neo .cm-tag {color:#9c3328} +.cm-s-neo .cm-string {color:#b35e14} +.cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier {color:#047d65} + + +/* Editor styling */ + +.cm-s-neo pre { + padding:0; +} + +.cm-s-neo .CodeMirror-gutters { + border:none; + border-right:10px solid transparent; + background-color:transparent; +} + +.cm-s-neo .CodeMirror-linenumber { + padding:0; + color:#e0e2e5; +} + +.cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; } +.cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; } diff --git a/sources/samples/toolbarconfigurator/lib/codemirror/show-hint.css b/sources/samples/toolbarconfigurator/lib/codemirror/show-hint.css new file mode 100644 index 00000000..924e638f --- /dev/null +++ b/sources/samples/toolbarconfigurator/lib/codemirror/show-hint.css @@ -0,0 +1,38 @@ +.CodeMirror-hints { + position: absolute; + z-index: 10; + overflow: hidden; + list-style: none; + + margin: 0; + padding: 2px; + + -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2); + -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2); + box-shadow: 2px 3px 5px rgba(0,0,0,.2); + border-radius: 3px; + border: 1px solid silver; + + background: white; + font-size: 90%; + font-family: monospace; + + max-height: 20em; + overflow-y: auto; +} + +.CodeMirror-hint { + margin: 0; + padding: 0 4px; + border-radius: 2px; + max-width: 19em; + overflow: hidden; + white-space: pre; + color: black; + cursor: pointer; +} + +li.CodeMirror-hint-active { + background: #08f; + color: white; +} diff --git a/sources/samples/toolbarconfigurator/lib/codemirror/show-hint.js b/sources/samples/toolbarconfigurator/lib/codemirror/show-hint.js new file mode 100644 index 00000000..539181fd --- /dev/null +++ b/sources/samples/toolbarconfigurator/lib/codemirror/show-hint.js @@ -0,0 +1,392 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + var HINT_ELEMENT_CLASS = "CodeMirror-hint"; + var ACTIVE_HINT_ELEMENT_CLASS = "CodeMirror-hint-active"; + + // This is the old interface, kept around for now to stay + // backwards-compatible. + CodeMirror.showHint = function(cm, getHints, options) { + if (!getHints) return cm.showHint(options); + if (options && options.async) getHints.async = true; + var newOpts = {hint: getHints}; + if (options) for (var prop in options) newOpts[prop] = options[prop]; + return cm.showHint(newOpts); + }; + + CodeMirror.defineExtension("showHint", function(options) { + // We want a single cursor position. + if (this.listSelections().length > 1 || this.somethingSelected()) return; + + if (this.state.completionActive) this.state.completionActive.close(); + var completion = this.state.completionActive = new Completion(this, options); + if (!completion.options.hint) return; + + CodeMirror.signal(this, "startCompletion", this); + completion.update(); + }); + + function Completion(cm, options) { + this.cm = cm; + this.options = this.buildOptions(options); + this.widget = null; + this.debounce = 0; + this.tick = 0; + this.startPos = this.cm.getCursor(); + this.startLen = this.cm.getLine(this.startPos.line).length; + + var self = this; + cm.on("cursorActivity", this.activityFunc = function() { self.cursorActivity(); }); + } + + var requestAnimationFrame = window.requestAnimationFrame || function(fn) { + return setTimeout(fn, 1000/60); + }; + var cancelAnimationFrame = window.cancelAnimationFrame || clearTimeout; + + Completion.prototype = { + close: function() { + if (!this.active()) return; + this.cm.state.completionActive = null; + this.tick = null; + this.cm.off("cursorActivity", this.activityFunc); + + if (this.widget) this.widget.close(); + CodeMirror.signal(this.cm, "endCompletion", this.cm); + }, + + active: function() { + return this.cm.state.completionActive == this; + }, + + pick: function(data, i) { + var completion = data.list[i]; + if (completion.hint) completion.hint(this.cm, data, completion); + else this.cm.replaceRange(getText(completion), completion.from || data.from, + completion.to || data.to, "complete"); + CodeMirror.signal(data, "pick", completion); + this.close(); + }, + + showHints: function(data) { + if (!data || !data.list.length || !this.active()) return this.close(); + + if (this.options.completeSingle && data.list.length == 1) + this.pick(data, 0); + else + this.showWidget(data); + }, + + cursorActivity: function() { + if (this.debounce) { + cancelAnimationFrame(this.debounce); + this.debounce = 0; + } + + var pos = this.cm.getCursor(), line = this.cm.getLine(pos.line); + if (pos.line != this.startPos.line || line.length - pos.ch != this.startLen - this.startPos.ch || + pos.ch < this.startPos.ch || this.cm.somethingSelected() || + (pos.ch && this.options.closeCharacters.test(line.charAt(pos.ch - 1)))) { + this.close(); + } else { + var self = this; + this.debounce = requestAnimationFrame(function() {self.update();}); + if (this.widget) this.widget.disable(); + } + }, + + update: function() { + if (this.tick == null) return; + if (this.data) CodeMirror.signal(this.data, "update"); + if (!this.options.hint.async) { + this.finishUpdate(this.options.hint(this.cm, this.options), myTick); + } else { + var myTick = ++this.tick, self = this; + this.options.hint(this.cm, function(data) { + if (self.tick == myTick) self.finishUpdate(data); + }, this.options); + } + }, + + finishUpdate: function(data) { + this.data = data; + var picked = this.widget && this.widget.picked; + if (this.widget) this.widget.close(); + if (data && data.list.length) { + if (picked && data.list.length == 1) this.pick(data, 0); + else this.widget = new Widget(this, data); + } + }, + + showWidget: function(data) { + this.data = data; + this.widget = new Widget(this, data); + CodeMirror.signal(data, "shown"); + }, + + buildOptions: function(options) { + var editor = this.cm.options.hintOptions; + var out = {}; + for (var prop in defaultOptions) out[prop] = defaultOptions[prop]; + if (editor) for (var prop in editor) + if (editor[prop] !== undefined) out[prop] = editor[prop]; + if (options) for (var prop in options) + if (options[prop] !== undefined) out[prop] = options[prop]; + return out; + } + }; + + function getText(completion) { + if (typeof completion == "string") return completion; + else return completion.text; + } + + function buildKeyMap(completion, handle) { + var baseMap = { + Up: function() {handle.moveFocus(-1);}, + Down: function() {handle.moveFocus(1);}, + PageUp: function() {handle.moveFocus(-handle.menuSize() + 1, true);}, + PageDown: function() {handle.moveFocus(handle.menuSize() - 1, true);}, + Home: function() {handle.setFocus(0);}, + End: function() {handle.setFocus(handle.length - 1);}, + Enter: handle.pick, + Tab: handle.pick, + Esc: handle.close + }; + var custom = completion.options.customKeys; + var ourMap = custom ? {} : baseMap; + function addBinding(key, val) { + var bound; + if (typeof val != "string") + bound = function(cm) { return val(cm, handle); }; + // This mechanism is deprecated + else if (baseMap.hasOwnProperty(val)) + bound = baseMap[val]; + else + bound = val; + ourMap[key] = bound; + } + if (custom) + for (var key in custom) if (custom.hasOwnProperty(key)) + addBinding(key, custom[key]); + var extra = completion.options.extraKeys; + if (extra) + for (var key in extra) if (extra.hasOwnProperty(key)) + addBinding(key, extra[key]); + return ourMap; + } + + function getHintElement(hintsElement, el) { + while (el && el != hintsElement) { + if (el.nodeName.toUpperCase() === "LI" && el.parentNode == hintsElement) return el; + el = el.parentNode; + } + } + + function Widget(completion, data) { + this.completion = completion; + this.data = data; + this.picked = false; + var widget = this, cm = completion.cm; + + var hints = this.hints = document.createElement("ul"); + hints.className = "CodeMirror-hints"; + this.selectedHint = data.selectedHint || 0; + + var completions = data.list; + for (var i = 0; i < completions.length; ++i) { + var elt = hints.appendChild(document.createElement("li")), cur = completions[i]; + var className = HINT_ELEMENT_CLASS + (i != this.selectedHint ? "" : " " + ACTIVE_HINT_ELEMENT_CLASS); + if (cur.className != null) className = cur.className + " " + className; + elt.className = className; + if (cur.render) cur.render(elt, data, cur); + else elt.appendChild(document.createTextNode(cur.displayText || getText(cur))); + elt.hintId = i; + } + + var pos = cm.cursorCoords(completion.options.alignWithWord ? data.from : null); + var left = pos.left, top = pos.bottom, below = true; + hints.style.left = left + "px"; + hints.style.top = top + "px"; + // If we're at the edge of the screen, then we want the menu to appear on the left of the cursor. + var winW = window.innerWidth || Math.max(document.body.offsetWidth, document.documentElement.offsetWidth); + var winH = window.innerHeight || Math.max(document.body.offsetHeight, document.documentElement.offsetHeight); + (completion.options.container || document.body).appendChild(hints); + var box = hints.getBoundingClientRect(), overlapY = box.bottom - winH; + if (overlapY > 0) { + var height = box.bottom - box.top, curTop = pos.top - (pos.bottom - box.top); + if (curTop - height > 0) { // Fits above cursor + hints.style.top = (top = pos.top - height) + "px"; + below = false; + } else if (height > winH) { + hints.style.height = (winH - 5) + "px"; + hints.style.top = (top = pos.bottom - box.top) + "px"; + var cursor = cm.getCursor(); + if (data.from.ch != cursor.ch) { + pos = cm.cursorCoords(cursor); + hints.style.left = (left = pos.left) + "px"; + box = hints.getBoundingClientRect(); + } + } + } + var overlapX = box.right - winW; + if (overlapX > 0) { + if (box.right - box.left > winW) { + hints.style.width = (winW - 5) + "px"; + overlapX -= (box.right - box.left) - winW; + } + hints.style.left = (left = pos.left - overlapX) + "px"; + } + + cm.addKeyMap(this.keyMap = buildKeyMap(completion, { + moveFocus: function(n, avoidWrap) { widget.changeActive(widget.selectedHint + n, avoidWrap); }, + setFocus: function(n) { widget.changeActive(n); }, + menuSize: function() { return widget.screenAmount(); }, + length: completions.length, + close: function() { completion.close(); }, + pick: function() { widget.pick(); }, + data: data + })); + + if (completion.options.closeOnUnfocus) { + var closingOnBlur; + cm.on("blur", this.onBlur = function() { closingOnBlur = setTimeout(function() { completion.close(); }, 100); }); + cm.on("focus", this.onFocus = function() { clearTimeout(closingOnBlur); }); + } + + var startScroll = cm.getScrollInfo(); + cm.on("scroll", this.onScroll = function() { + var curScroll = cm.getScrollInfo(), editor = cm.getWrapperElement().getBoundingClientRect(); + var newTop = top + startScroll.top - curScroll.top; + var point = newTop - (window.pageYOffset || (document.documentElement || document.body).scrollTop); + if (!below) point += hints.offsetHeight; + if (point <= editor.top || point >= editor.bottom) return completion.close(); + hints.style.top = newTop + "px"; + hints.style.left = (left + startScroll.left - curScroll.left) + "px"; + }); + + CodeMirror.on(hints, "dblclick", function(e) { + var t = getHintElement(hints, e.target || e.srcElement); + if (t && t.hintId != null) {widget.changeActive(t.hintId); widget.pick();} + }); + + CodeMirror.on(hints, "click", function(e) { + var t = getHintElement(hints, e.target || e.srcElement); + if (t && t.hintId != null) { + widget.changeActive(t.hintId); + if (completion.options.completeOnSingleClick) widget.pick(); + } + }); + + CodeMirror.on(hints, "mousedown", function() { + setTimeout(function(){cm.focus();}, 20); + }); + + CodeMirror.signal(data, "select", completions[0], hints.firstChild); + return true; + } + + Widget.prototype = { + close: function() { + if (this.completion.widget != this) return; + this.completion.widget = null; + this.hints.parentNode.removeChild(this.hints); + this.completion.cm.removeKeyMap(this.keyMap); + + var cm = this.completion.cm; + if (this.completion.options.closeOnUnfocus) { + cm.off("blur", this.onBlur); + cm.off("focus", this.onFocus); + } + cm.off("scroll", this.onScroll); + }, + + disable: function() { + this.completion.cm.removeKeyMap(this.keyMap); + var widget = this; + this.keyMap = {Enter: function() { widget.picked = true; }}; + this.completion.cm.addKeyMap(this.keyMap); + }, + + pick: function() { + this.completion.pick(this.data, this.selectedHint); + }, + + changeActive: function(i, avoidWrap) { + if (i >= this.data.list.length) + i = avoidWrap ? this.data.list.length - 1 : 0; + else if (i < 0) + i = avoidWrap ? 0 : this.data.list.length - 1; + if (this.selectedHint == i) return; + var node = this.hints.childNodes[this.selectedHint]; + node.className = node.className.replace(" " + ACTIVE_HINT_ELEMENT_CLASS, ""); + node = this.hints.childNodes[this.selectedHint = i]; + node.className += " " + ACTIVE_HINT_ELEMENT_CLASS; + if (node.offsetTop < this.hints.scrollTop) + this.hints.scrollTop = node.offsetTop - 3; + else if (node.offsetTop + node.offsetHeight > this.hints.scrollTop + this.hints.clientHeight) + this.hints.scrollTop = node.offsetTop + node.offsetHeight - this.hints.clientHeight + 3; + CodeMirror.signal(this.data, "select", this.data.list[this.selectedHint], node); + }, + + screenAmount: function() { + return Math.floor(this.hints.clientHeight / this.hints.firstChild.offsetHeight) || 1; + } + }; + + CodeMirror.registerHelper("hint", "auto", function(cm, options) { + var helpers = cm.getHelpers(cm.getCursor(), "hint"), words; + if (helpers.length) { + for (var i = 0; i < helpers.length; i++) { + var cur = helpers[i](cm, options); + if (cur && cur.list.length) return cur; + } + } else if (words = cm.getHelper(cm.getCursor(), "hintWords")) { + if (words) return CodeMirror.hint.fromList(cm, {words: words}); + } else if (CodeMirror.hint.anyword) { + return CodeMirror.hint.anyword(cm, options); + } + }); + + CodeMirror.registerHelper("hint", "fromList", function(cm, options) { + var cur = cm.getCursor(), token = cm.getTokenAt(cur); + var found = []; + for (var i = 0; i < options.words.length; i++) { + var word = options.words[i]; + if (word.slice(0, token.string.length) == token.string) + found.push(word); + } + + if (found.length) return { + list: found, + from: CodeMirror.Pos(cur.line, token.start), + to: CodeMirror.Pos(cur.line, token.end) + }; + }); + + CodeMirror.commands.autocomplete = CodeMirror.showHint; + + var defaultOptions = { + hint: CodeMirror.hint.auto, + completeSingle: true, + alignWithWord: true, + closeCharacters: /[\s()\[\]{};:>,]/, + closeOnUnfocus: true, + completeOnSingleClick: false, + container: null, + customKeys: null, + extraKeys: null + }; + + CodeMirror.defineOption("hintOptions", null); +}); diff --git a/sources/samples/toolbarconfigurator/package.json b/sources/samples/toolbarconfigurator/package.json new file mode 100644 index 00000000..1fceff9c --- /dev/null +++ b/sources/samples/toolbarconfigurator/package.json @@ -0,0 +1,12 @@ +{ + "name": "ckeditor-toolbarconfigurator", + "version": "0.0.0", + "description": "", + "author": "CKSource (http://cksource.com/)", + "license": "For licensing, see LICENSE.md or http://ckeditor.com/license.", + "devDependencies": { + "benderjs": "~0.2.1", + "benderjs-chai": "~0.2.0", + "benderjs-mocha": "~0.1.2" + } +} diff --git a/sources/samples/toolbarconfigurator/tests/one.js b/sources/samples/toolbarconfigurator/tests/one.js new file mode 100644 index 00000000..1d3837f5 --- /dev/null +++ b/sources/samples/toolbarconfigurator/tests/one.js @@ -0,0 +1,9 @@ +/* global describe, it, expect, ToolbarConfigurator */ + +describe( 'Full toolbar configurator', function() { + var FTE = ToolbarConfigurator.FullToolbarEditor; + + it( 'exists', function() { + expect( FTE ).to.be.a( 'function' ); + } ); +} ); diff --git a/sources/skins/moono/colorpanel.css b/sources/skins/moono/colorpanel.css new file mode 100644 index 00000000..72923710 --- /dev/null +++ b/sources/skins/moono/colorpanel.css @@ -0,0 +1,127 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +colorpanel.css (part of editor.css) +===================================== + +The color panel is related to the contents part of the panels that are +displayed when clicking the color buttons of the toolbar. See panels.css for +styles related to the outer part of panels. + +The following is the visual representation of the color panel contents: + ++-- .cke_panel_block.cke_colorblock --+ +| +-- a.cke_colorauto --------------+ | +| | | | +| | AUTOMATIC COLOR | | +| | | | +| +---------------------------------+ | +| +-- table ------------------------+ | +| | | | +| | COLOR PALETTE | | +| | | | +| |---------------------------------| | +| | "More Colors" | | +| +---------------------------------+ | ++-------------------------------------+ + +The AUTOMATIC COLOR section is an containing a table with two cells with +the following contents: + ++-- TD -----------------+ +-- TD -----------------+ +| +-- .cke_colorbox --+ | | | +| | | | | "Automatic" | +| +-------------------+ | | | ++-----------------------+ +-----------------------+ + +The COLOR PALETTE section instead is a table with a variable number of cells +(by default 8). Each cell represents a color box, with the following structure: + ++-- A.cke_colorbox ---------+ +| +-- SPAN.cke_colorbox --+ | +| | | | +| +-----------------------+ | ++---------------------------+ +*/ + +/* The container of the color palette. */ +.cke_colorblock +{ + padding: 3px; + font-size: 11px; + font-family: 'Microsoft Sans Serif', Tahoma, Arial, Verdana, Sans-Serif; +} + +.cke_colorblock, +.cke_colorblock a +{ + text-decoration: none; + color: #000; +} + +/* The box which is to represent a single color on the color palette. + It is a small, square-shaped element which can be selected from the palette. */ +span.cke_colorbox +{ + width: 10px; + height: 10px; + border: #808080 1px solid; + float: left; +} + +.cke_rtl span.cke_colorbox +{ + float: right; +} + +/* The wrapper of the span.cke_colorbox. It provides an extra border and padding. */ +a.cke_colorbox +{ + border: #fff 1px solid; + padding: 2px; + float: left; + width: 12px; + height: 12px; +} + +.cke_rtl a.cke_colorbox +{ + float: right; +} + +/* Different states of the a.cke_colorbox wrapper. */ +a:hover.cke_colorbox, +a:focus.cke_colorbox, +a:active.cke_colorbox +{ + border: #b6b6b6 1px solid; + background-color: #e5e5e5; +} + +/* Buttons which are visible at the top/bottom of the color palette: + - cke_colorauto (TOP) applies the automatic color. + - cke_colormore (BOTTOM) executes the color dialog. +*/ +a.cke_colorauto, +a.cke_colormore +{ + border: #fff 1px solid; + padding: 2px; + display: block; + cursor: pointer; +} + +/* Different states of cke_colorauto/cke_colormore buttons. */ +a:hover.cke_colorauto, +a:hover.cke_colormore, +a:focus.cke_colorauto, +a:focus.cke_colormore, +a:active.cke_colorauto, +a:active.cke_colormore +{ + border: #b6b6b6 1px solid; + background-color: #e5e5e5; +} diff --git a/sources/skins/moono/dev/icons16.png b/sources/skins/moono/dev/icons16.png new file mode 100644 index 0000000000000000000000000000000000000000..a9197420660fb94b418b64b852818690676710b5 GIT binary patch literal 29947 zcmcG$byQXD*9E!>36)T~K|w-9L8MbbN}F?{hH_c`qS?DecQ*PL_h_fM4Nh%VAzL=c2XL0(1;L9o{0j~xLX zydy`?DFHul9q%h>5Ws(41Sap`HKCont|J^jeEtXPK1ZAzyh-CEtK+0@Yv$zo+`$xa zb#>*juzBf-dTwXRW9#rDZdHsHL6{K*8EFl-_~l7=FEZyt{PiAIi~da4l6#p~Cvo0009(GO4-XZ|*x z0WBpbzI$U*q<-vJCO8CzW*<6`l3SD=L5i(~g(v9a4Y@~g0@nUn;|*dy(G3kuKKs)5 ztjE4C5>=gTiAj2I%r=)3Gl<9+Zpj5xr))V9`weQzV#Tr&1{ZV5#fbH=-!iQCTHD{4 zqx#M0gLZJ(tS* zsmG@2tk<^d4W@k>Yplb=!`I=`;v1e8xQH5(H_yNdNa9OvU>oQkRoG5TSezaoBt1@& zm`sz^i(qZ+nl=m|W~jdX^sD)c2jup!@{y5|S@2SRwKwGrGIL4Lozjy_g2h=g$G7GO zwP?$h*Wu=T$DYLL{v6{8DFrS|jcG@WddzJ@A2t>imdVM07mur^@*5kaTJd!htYhF3 z=PwxYPT8Ps%T7Y3_OwRM=v`LE?$I?`AwxTxide^Qcr)FWKaVvyV!B9{Zy71pNs1+KHl$}tmrMhjv?YcbD*GcW@>Cvg);CbK1|L2Abd9x*zaWI3Dyu7?& zv2kU?+R=;Yvre`tsRTTxo&0E~cBGeuRuQ)V`x~&pqifb9}t97ei$~ z8hLaU61W$#$(o*`IgUex`}|e2@h2O;Pn3+}9!}Lmmg2BP9*-V%s;aP&k&)rF24sCR znu&;vr1~>IFTT>2QLVSsvGLoKpEhl4YYUxYp_|r6Jy};{oK=5w!aR;%Tves4!Et=} ztKNg1M)<9Ux-q3#U$N}o%~dXc|NecuvQj8)1r4zQ*DSB1pkTq)v5AKnsj8}?xS+l$ zApiJr*JUE2f&md&vQ7=YfU#wCf~af#5A`EMd;5(WnBg0di-ondwJHg-YbztgX~H*d zEDYqn95#IP=<)=G?XZ~M7Hd;nF1g*CZ^;YpKBjtl6Y|Kw-0Wb!sPJ?26iIy85HWOB9cD)nV<$eA7^piE|%z<={qS4%)yV zv6(l7w|w}=QNzm(%KHxHL< zMdb>2VnYV0gphu>zrQc25--%pdj0y`?Zm&{BADq97mC>J9YGFJ9dJ8NG2!y7?k!Sem$;$o%DN1sxCW?tc+Vi~of z!o*!*Kl?o2`8T9AR$+UVD0dapt=u3WhiIX5@A zCh7c7BZj^EmFF|-igr3oGM$Kzj?Tvv{TdgQJ1qvclfLH522u9G@4x%z_3MWotXPP& zv~f{RV(BMohb3ljvmxtA$i;X2*VP{GzqBgNNmJpQ~53C?>AtC2m) z%fV=|KSQ4yH7-_GBx0-XEN(YEA9eN0mFJ|gS6(w)Y2|421g7p=wT3eMURyIXWld$- zL!;4W-4U$cO!%yyXMZs;n4?Y+vUJ>9V?AC@yLO>rZ^~2Lfyo^856e^3$IDCXVKDWpiYbpg5jCzA?VKrKE zkm$K8dPiCbPi`lN(O#zZnq^CrwyzENE0{n#z- zDJp?lo|~%klpL#ZU9&p3_2xgG-(;Jxq$NY9H(>i67`k)nM8tr=gA_rmVuNYmX4vsqPP&lO!emAw3IuK zO+^Ur!kSI>ecrm$y#|MQ#e3(x$7=1~H26cKL5knurdP2VoBM z5NuzD;9@Mr)*FA!RI%9o_-Vy@UQ(l6Y%#xcix*^VtTh@50pK&GS8rScoKIk3mF-J* zpMXW;-9;gIfA-D);YRZai|Yz9(Vem=*4dmaFcOGci!ycp*lg^sm&0n-9nWby@+GDJ>v`Akr|kpPrAwC# zZQfnuA-FH%+l+;UVfA|M>Ca5V@i5hYug}Vs9HVo*(VBHYMJtDuyMMHu)+&W9%*-dzW0)i;J##w&L}ikp>tus)dS{&i}|EU6Lspn z4wM6n@{^O3waiMZm{9r4ldjVR0`;R-KE}VlzeQK?7xLY``+!y9sadg(zlVs{V_a#s zXBldb+uGZ!oNhMTa<8b!Kh7mz2ZViWJ6-Q>K3VPDu?B(b{pMRQlW$Z+L`nVQH~|Z; z=!?*E9VoQ3%BVVtPO3KTtxkGI@n)K|acz5uQ=^z-TMKr**ip-vWJ&cpFZ_)=={hVaNDpxU*~F}__`&JW#sQ~ zL1Pmk*czCXifR9TeDbMK!`QuirNYGZ-vLZq^(TpLJ=J{Fmn{=9XN>gpVl{w&ECGoW zE#M%JKl4i)85#9|xGs09Lh6UU({gH2_H>fT{>bfkb2o{Bp8j~RrT>48$qe>zI?eeVpV=qMSN#44C3Q#*96OUAd^Vqc>RasfO3*V$nPHk zDpzo^5;sOaq1XQX;o9ow zH{Xof^y&3d-O`p9+wG+(B4xlUa@V{StWRVr)hc` zP1Cc*0+=&;Opuq?-pj&*6A<3Ft>Z9Qn$d}giGswoA65d>ty{;ny}iA=kQ{m!ouY|< z85*vAVc}@^0BCg_Mtq1GQOTSjU|E2_xH)MB}aa;gkVka4ITdX70dMx?ixVpvi9rkK` zWV3M&M`7r2;+T(0t3ww0?9@7pNfHnP?a0cm;udr`Hxpx{qQ0KvjS7O->&eZ=2Ne;* z@HZ)Q^S}6zQS2B+T)JAPr#B<|oBHcjLAB2o)l@0t2A0%DqV%dX15i(nX_vUup;cN;lKr zd$-mW_f;eg(vN3@ZaWO!Dw0_qgHva53J|a!8{8k$MhSb)M{DQHL7tI-c0eI!p16C< zNn{ek#>Vz7g0&e|YJGp-t*zwPpP2w3mhuYQ?4{Se*H~HqguwfV6jb^TiWwqvYisDL zuV1%aFs8zxN5AJ|4YkCJa)J>lHP2?+Hm@v9yC)Ts4nm42ZU++vrNH}`* zFRw^oXKRZr$!+$%xPpQL&D*zcg>OV!q!<)UmwO-W^07so^c19h4?&Y7GKW$wigoDM*dShUfOH5O zTiKn3PcMf7rXu#WhGt_*Sk4jNRxFXkZl!X?Vi@fug#bDW>5$)zcVdW0Z}n6i_@osQ+< zqG__Cy4|tWp*-y@P6|VUdSs8p(emxZ#l<76 zPP5?As6ecY7Bu>Q|-RB zpahpUK!ds~rYcs)F#YY>ib`8o?%!8QV($GtCVaYCDoLk5nuDlf-v$H}0jM=?rpkC> zVnWU!;Z^Alae)Urev$@i0BRuf@l^X5j{jwv%>n2xzQ~aJQFcH0Gqlqf%`-F9?CQ2s zHq15uyB)|qZfVj#fTyoN@V~6O9pr_~Kvg+i1mu@D;?ug#rWB(ghQ=hgmi+!^`=>_r z{Ad6R*U!Inc6=?Ew;T{%;(1Bsa>cmQpz>OSY0|X*(XW5xMLE!*Y#JDMPxhwIC>p(k zd1Z?{Ego&?-*fs;;9V3#E%&Rdh&%5mogKfZc{yCTqAV}Je_q&M&~HKW<6#NSi{$cT z%^pt8q>szr-juVIiK;DLm6fJ@#{qn-Y;2s2x5dT1mjOXj;tcovXl-hW&*coLS*>0g zOk(q~Mn#{^#a%)&IZr%QR8*LtiQNP{RS|9No8>D{Ki-STS3JX=W?zX|zhH2XzF ztmjD6wJ;~s{XgiI+UC+Zti4ZL!F5Iw4|ta)go(lqel+2qqhlbtN&oL(TGS@^G86D2 zI^2}qbQ_m0Ui=fMFL>|X&`sfUqzzQn+387KRCII~UN~_wo9`LcNZyd;Suv_L)G<+> zSy*_K%vOnj#qT&rliW_4wEyJzSRf-kT_(Wa|9;W%9I#UQJO;HR^FU0aui!q15;B_S zgl$Tu%YoRehQ zIfY67u7XiK1m6iHB^#*HQd7S_x-ozkIwx_7fItUg2C}rHT`QSvwFq#zT6tyU$Ys1Y zR!}S>+x?<%YHNL7sHI2lw9sCZ+7h0)R>x#)6`OhkB znt*HD1q@hFy$Upcv524 z^_dEJq`?>V_7atr$7Hy;ohtb^>YMgru41%6rpz3EBSPi(J3!RgSkoc|L`2q{3Ri&@ zuW!k5!$GJ~J>R=D+f2a10!nk(SItL`w9&n~+%bW($`C^4h*W_V6NPMX-Kdp>b+Jw^ z_aMj()1t1cmw`^hQDlc@6utN{tzxl}`X=_e`GKRTZ^jRQBGHuXgK7U|`x*zHU+{83 zI5WjdBNZ?~v+@9ZZTQj!y`tf>9<$Q2;YFuW&1W ze2{Z8^f}15b|IhF>%*meu8Y7`p)k|zcRQ!RAdPy6m_=V&xnO#9TRaU$zBB=pg84Bz##HpHgy^7A{rbZ{u) z;p5wkg#B%UoBa0`Ipm}1R4k-rWDQvV1LXvfTXBHfq#=6QIvnD)@^00xl#dsZQ&QeI z-5s}8fNKtCwFqSC{cGGhW{p-XlZ1|m3?aq+Mov#(dyAL1PZGGLVIb_o5S?b~ zEggyTL@C(~y+Q4ayTrvtJ-st7O~ytH;$l$irn>VdQbk$Bap938BILSC-<=>D3lX)z z^#M58rU*GkcNq?D?%+t)MX9A<1)k*OEqc;}j=dD4xS^cl}cM$<`uNSKk7*h(m z`>w06fbWckdU#}l8Quv|r-KAm3J`z^SbW2CFeYBY?FjN3(~TQ9@Bkrrl~@ktVk2`o zZjecHw)Ou87ndT8_yBo?G53qj`%*7KsyaGa9LS0b2ncu(Gr!!~+1UjFfWH(cqoXs@ z876U<-EmHQk5||x>8Yu`?(Kad4D=`w0wiLdvFgkrsfRbJ+JS-6mE2x#W5K;Xm^ahe z8zh_8ud#!n)fvuF&+<5@ksl!Mf`Tr+3k)19gLAt7WaEY(saoL}n*HBXj=;b`ElAP( zNr30GWL0I%&9jXa?z9x<4*d&;?z~}p>}3%HApyZiozr4}Dr5^vWZ3qedft#xaP*xP zMfxJTh%}uV2`+`SJ{_$>y><{3Tmhc`MHw4!gA5Tmdm=<(3yG6B+Q0YZb-0Oxh59uH zB5vz5(@Y+JQ?$iCkoRn@As;)bkLr${+biwooZQ{r5hSu57x^gR?NJv{p0}jyi6W>I zV~S=~$a@&Z*oD&wac`rUqk;O*;@WFruvdxZD?aPnC7iyf3;C(qgq2+DrZm<4p7g%_ z+$`Az`fQH|p(iKeb7(xVo;<`iP!Iy!)hqKqbkZM^A%mue=c%G4=>MKr`Y%T%KevJl zm0a7z%xpJ;)q<+k-qXR+(bHX&$>C)hHsrsu^x>sa2&2Hx&PRumolQ&GzBPBKFY7rt zY?_D8l^{->Nyj1F9pljJ9D+y~UH2)eA6Hr){|mKLg-GEco390Bkg2WrEL}*;Dt&8R zll=sPvz~KCtaHrfjc3XjmB)iMWO!y~5Ow^3A7OoE0&MJ$emWoQ8L1-?`# zX1=pJzs+7x*~Z4kFym^@52lD~Z+|2J&D{(-LqlXlL_c&R_S*de12|YlKofVtJr};v zI0Huzjn;YYeZN|T|G!=Unhax)8eagTw|rKsFip@;MEx?YgRqv52gq!UOfJ!&e}e|p z6u{__ozAnQ%T2kln3ZIJos9CH^{hFmV>r{w0_mt>{rjb|v9kaoIv1S`HD`JtPqc%J zkAYWrYSDR+uJG;|En*I=jv4Ik1T8W2saL|q(-5HJZzV#SSAkz>ZvVKW?qDIVmGZWM z-rD!yKcSb)$;nwWF*R+!M9E#5t(8ZGy-$fSdaZv`26b?H00_KTC_ks6-;DmIX{bz$ zU*HD`aoiURXH`i-;nU3y2f4DRCyPL+bP7JTZS=+Z1es*~Y0?N#!_?IP#xLWn{|26C1o%PQ9wUIM*b#->7h{2lblQT%a zYopMT#LvvktN|%L@!qQ1WL?|!>W?#E7Xj37YIQ6{YGp{aY5>fBO`a zVz@u~dQjS7ytAuMgzw%h)dpgWPe%3FW~T9#t!QBRH=}b%cId~RZorQKL5!HtUG~=x zr2$|phzO}TCbBE2MKA6=uNeQ$F$E=%TT=22+pf+{(4zlOT~ri#7Zjai8dU1lw?8yt z5vUR|?7S`MU%q@HeEStsKhT!%)6|SmVgI`@?v5o8NEy}nd>-4|e6{fw@|Xg3 zvTo6N={gtJzjEL)M2dha49?EZ9wV;O&O0t8k=j{VTw6z@)dL-UuVoq2r>=#K2-f$2Z`ObrdU^l; z{i%cP0hLHMQm;NT$ws^Y89Lr$b>tpEQ$CM(FrWupV;flT?v(BOi&)qgR}b$61gn^kOrXo(g{gO z&@Vs@l|~pH4YU-vqW=NrRHj4P+S-JmY{aAa`1ptssq^fqwI^{dH2h$!T@h8W%l5mcXd(z5KkSt&!V z?J?a>qqB&T#nx+1nl`>gPvl=nY%vbd+=U5r;l^D;=#Jx2XU!cdgLEU7GYEWX$axfY6EB#st$g z6)5OUF`#Y;EIyQ-uo6IX2c{|)XstPP*Gbq6`Ue-^gedTMO6uqRnt6F?FlS%@-YV0r z;MsWjKX+RzPuvB*B93e7X~C|J_nhm>nDZGJm7bS9EruoXI$X>Wa{fmS9o^g84aX(M zPu<*vK&_ba+Ip;0pk*~xO9S2Dq~Y|w@^!T4?irv=gTB5#iaOh2XK;X>1Rw-C0f8(| zh#k#+eB|rP;qH|{MJm-Sk~v-IV#n@yZ2xsdjD~VGqXR2CN&tRdmK1yFl>!Tq%A<45Wp}kgvYWVDn&&i>}YvxAdVs6(8 zEBFMX6d_WhmZfI7#TZ=7)Dp(j(7sX2v-FG2$JySpbhYc}&z~Nm;E0$2j{v1^?9R38 z*U=rFo%w2m|NgbJCv_S&_;`O;x?MLYQ=nBrL_&g(fY0Q2h~SiOQWDcS#m ze7xLRvrzd(FsDSYb?IpRU9c#D03r#i@_X12?fu{&U$J@ooGDaLI8g4J0n5P7XXxK| z>3EH07Sa_WJsjxwib_gKYR)A$mq^otNHE6u!V!#`c|$Lw0&gnxOSifVXTB4G#jFQL zRxDe}t98JqvR<-MoQo9qxe45iL|R_sri1y8*eqh|J2Smt=b_1vIfm6_0J=nTsV_~A zsvZE*J&KJfdDKep}bm)g*X{w)A#CM#{c7>KsUX+vUScl&^NLo1(sD~ z&k-f8{32VdOP4Quz4-1&_?ZwKRo{2K8w8e-DeQISy4N_=qAtr}fDTS#zZuzWYgA*0 zV==R^U`4P#2cCc;~q*6u|_WOGiVF-s8f9|3ZNFBkNDhh{sLU%MGSj+%Yd>xoA%0TM*vB~!MXcI%ym^SAUvE@uhI?+Y%P^u2M!sRKIwt-!SETlffV@8%lRr^ z|GCDx`S{FLYJ zf~NO#MiInU6;N^)&KcJYX)arKsq2R` zBoUynN1@82Tp#uP{Miq!l;%*n0-60>ONhXlsXYANO3oP|ac;KS?}!yDxT~~+)uuXEt_W7m^hu_@vBER3(DgRE{yg`Pq646oJx%cxZ|aPbmur(QpTO=6;>Pg1q= z;_@_dZ-iRly^)>-GKWKzJY`@}tYmVYDp0ffdp)?XroHzVV!@LKpdkDrf{l&+2X@IA zmb~Jw;!AZY8k7r%UL^z2Y$OB(Zs+3(y=J8p?IoS|^i<{0I}J~{V-mgtnR8q0$}rq^ z3MY{SMRHm5vavNBZ0!0?r$_e*s&qB$-*@r)*;I^wqh9Kuu2Cw`k`uI@@+x9g07iC` zOtv^WiwwvR@s0pK5(tuef1WIy$*9VJCk!3g&I*K~fFSkd9!U7$0Qm6nquX~fX&MyR z;Kv{?1%i2Rp&rqZl9D>KGPrKX@uFJrBqb#gDOJ@gLZJh^EgoDnhNOPmFbq+P&3u0L z(b3WR2x-ar*@N-Rl?_z|?uRoMnD_{X$T>UcK{I}W(|Zn5D~o`D06#PH%;T9u@4ujp z%}cgMbxY?BnThad1&4-C^-z-$;o-0o+%NAle}wHT{RZ!V@b#T(D*-`u5eXK*LD|RR zcH2OHyyxyP&B(~G22Z?aYjd-7%zO#pq_(*|7W@krOd$iGLokzI{S7Cv0O)(q5$cdW zKnoW5Qw4>E;L;@=SP5QV zXw(P!Nko<09=bc0*UU~OI@}E6S9@gv0oFjBqB%dEXwcc@bz|NPS?&};Rt*?BdnCc>m_^wKHs`vUXVm)pl3KZ0fulW zLCk$qN<%|qbo%Uc&lbefd)4gmq_dB0JZD^vb_U{s*a>G{q;0itc=_Kw+)L$1tbqY3#g-8R+1F(E z+aAy6YrV`M6zj3YH*)!$j%SC}D2Qm?ZIM{l;1lbC7Lmrcp(DR6xR@|8aOp`GzB@%I ziHpjg#w{SQ_ruUCQZt-UFTrTdJ1`hQPz#>Q3A~XjF2dz=>R0voEe@qTLNW5E;9Zwk~ zdr&^afknDv=JDou?>5FUU(jevBP@!y9H)^uthOo)>^-qrs}I)j_t2MI5|p#R{TAf8 z+0Ncj4Pw<41@3cTR%g<@$_`-D1WC=GrFrutk!!(6A?ddDn1qCZ&Bi;`R#Jmhuyn@TZ&^Wsp zdp=k=RsBbksqDR~zE9%0KS5rlHJh+!ivhSr0;Gsy9p1|Hyy^0wh3TGU)B?a{-4bpp zkQ`5DY(7C>4)kIf3HXG1&dGg7MYhYxqZ{hQ0aMcjpFMWqTwlJU2g?5HJ=(55T1w6f zGt;D12+{ZrX9i7+chl|3(r=DI$@9nlh|CD6v^0$BfOP}t66^JuZ|}Q{?7g$>O;N!^ zw^3AOA(}cmI($xldu0SWhLrwyauIp*C|<>VUeRp4IPZ4(@@1z-4Ft?h zrW;D2DT6-`9E@uKH@8$0#e}a*Nchwn6uCB`=^9C6o5TDA0xC38!wFu0p=wOviQI#w zbIKBEE7##34Q)Mau`=1HaiFib2Sj2y)Zf?4fB0Gsq496G_~d$ga>7J-@!~9SNUp!E z1W3BOx=v);#aI=vQTa_96O(YaGfYf0gnf1c!P}EJ=I&BchjrItM8JZ3Wi20c5_2b~ z?Xi&&9T??8fqgUMx?E_!i(eC6v0gwgxZ@5qy_hpIGcDN^ayM^qMJvWdMy5%Pp|c<4 zpTce55Eqt^Fqqr_5*!v*WFG5p{${Kxn@5rjSpD17D2lL962-isYNkd8o}jh8M(Oy^ zyk;18gD&dQ^O3D9lEj)McA;P*UA*wLK+6^Xi9oDCc*podEsq))MS&vv3DR}bKc`{W zZ>g!*O1V355G#Bznt8ndk_}Jr<*&=g6D=)DXJFy05b|3ysT^AFtA~FN^*Et%C~z@< zy0}}|4XM<$QZn3?!y;SH*WWtwv++F{FW1lf7JMvhY!{@OC8%x$8gIbJno@Kqy0n;! z0=wno(7^g3oQ=?MZPkmcM=v@DTsL?N!IDD_@F#B=vzfE;Wq}5w# zX>Kr1!-LS{Q^!K=-bDhLWO!Q^L?nN1?x>c*lZQ%aEz4uDh?RreCpCbIo<6v-u`!Y3_6#6k3!q*pwlujY zAf#8@Iy(nB-IdETvFkxaS9|k~8OL|XQu7#R(CE(K;CK#yZQk~JPM^6|hFXqKZgZ-L z98V(k{lbnr<;}*b{JTVB({me>AyzOgt1(xr!Uvjkvu59nbMSop%jm@TNt?4@i>8vU z9gR3lQ_k;Afsu1A)vKETJLF4HB@@}^Zx0K3OYzIlP271%bTIS`1QZSEnbE-65p@qR zh(--rp5URk8yoB|J9@kxwK9MdaC zoCDQcsPoLnZn^e;i$|aXWMOW?UzjB^polpH` zO!sHadWz!P+M;39l3tp0Mz3jLV1NXC*(4U-9iuBQZnIlO<;5@v5E>K|hr>)~r_K)& z>JxjXrF|n+5nb1RS388|F3hdr^%hIG4_)6SLTSV%T~$<4YEY4vf9D{A-2e&nJ_A!C zkNCPl<ka7^mH75FLmb4`eQidj?sDxxDSYy*;Wm zNJV8xpdJRcW|g<4rR7)UtZ_l_L#Lqrx@5>&%AmqA=~p`~N+OI{h$?w0*qq0SnIyc1 zBiNJ{yf&JthC9t1&kYfV(ZQ2&9&|i&IqGu3yo8N!;mt2VQ)xeI`&rbl?KJp)zh+sdo6M5zCG@!sT_1U`pY^6Zc-ZCT?f^=u8Ql`fFb*naue%QA6Pr7A8|(|aSRu$6|T z!kTWd4@qnQT~!nE5S0WCu3=PQ126`3#J@cbe_}v}?|>o6Oq@uy43e>ljfc+$Z)CF1 zRlr~{8lDbd$lH==FE~9pNt&pp&)qU|cMH>leh!`liUF>RZqN(la(7h2EeUkw4OtQ3 za~0;w011h{*QNp|(#~62Jo#{eM=s+SObDXeFg9RG-?J2ZYVaQPXZL7BPQhTmCS)^F>HQ#pSig&UywJohsCl-GWumD5 zP_bluCF@^FH)KolAQCs%Bf1C2PYE2|t;mao@`f%VGw!DxzSKw(Ukh%}yvvpsORFSV zBIeeV)eGBJ+sndkqCO91-4k)XkT;e=9luH6`gmy32}OgVb5GpEUuV*jbn|Y-DPDqA zR5ZZ$zWm9C7!yGwNuz9Q zIEX&+OY0IW6(xcHQ5Q(3Q#M_oJp*!D^#4EE;lJP9?0576$=ahq?|BcxM9^I2c`>Mdy|MSRcyAuVQ&>pJ$lkQI$!BW} z_c*nc-vzi#1G3*!AOMsf2>)KpCze$FEfu@j140(Fq6?xXFvBa?y7>DsKmOQ zbgk-hAg>uY6GQj%SB})7Xa0|!`@CJd0ji1a7bEF)aF1*K`#1`N9l|BtC@6yz1NATt zoe9__$zgef7tzU*xjGd}0#+m~4=Z!$kfj1Kup{#m(;~nveZ1qi(0N@wOF2Xm09kYU zByjdP=Pvec-dh3!yH+kPyX`c0%^vyQzc4ty@oH?ZQ9Ps29?VT}EdoRc|I1&?0%?8w z!ypm)?7|Q>dH`l5TvjQkVBfrg!sZG|R~<0G?k6>ciATqfQ0vn)ynH>*r7~XIokPovr8B=g;7v)TdjKb8vmSR1O+B8F|l4Vj}^QcTDmcHRQgV; zTl<0VjFn!fuFk+Giodk9l%NF&jDg^qr~x(O2cVf=uD3Vt+7%5yGrL3W;vtsEk)Rx# zt{d*sBq=*>1H~n>bxr}sHGd6+uwP3xl)yoNu*WRH)Na+ere$VgGB}GNYYk6Gu*UWU z|NlMuHwL97?U^77Vr$wsa)T7|>4_;f~1>VWcHMph_ zp`ba`52B%k$Af6#fsZ}mnL+O(SY>l_Jz(q>ZE9x5b?!g#Fg8vlmU`^$?7RaI_;f(X z@Y=OQXFjCy4T(gh1Pe>b@Spa`kfEU=qSiRu%HRIiklZe_(xb6Xv(k+o^r>T)A0gQ< zFbkPSG@XB<9%deH&9bwx&7VJk$QgEc8?1>a%+50oEIN_FuEbfZUgEKSJ-pRrKJ7La zaupdSVBtcfV&Gv~+DOjQRDP((ZCkt1a-RkF#f*$hgG0pl3Rs@NsgCpUVzO)6srydP09_fN zv1`79Z%IGvwG2HxUPKJG+{DmKV5$!T2xDkjtizQE_DiPoCpO5jG@0F+#c715qEO=O zc*}Zf^ihoIC0`q4;%VKU*%Aq2gk#rRfo0FN(jNQnolg}s?1sSx7uEsH+%U`{oyA39 z&QN|!;8p_9DIlj83K1IQjEsfZxt5=R^UeByO8fF?s`|I@Ekz|FG?`KwO$m{)TZUxl zCWp*Y=6RO6J4K{HMG=Zh9U){Mjs{6W2uX&>lzAr8^V#>a*1OjG&+}XF`~1_&bk06| z@9*`!uFtfYwuyXw=}SK%`^>~#uTAJBkIt(9w~oZDhnLvdmWy%=o}P7BS0o-W`$FPo zuX~}RU#S8OP+rPT(KZ9j1LyC?xGg!U4!JCBVY{7IyXdm#j@2>V@#asYy}bAR z`%?+ej=J(|;o;ApPOWU0#z3F@evP)W@~^P7JrY-|hsTU~eW-mUl_|7f6ORbkvb^6gut8O;xEBi=7^-1&DWPjz0L3+#f^ z?+x~!Go@xOSG7}%*AgXWV>B2*;~)dtM(XCCTFHgIb5p&NQ;0fluE+0HXtFi4B_8V3 zt5oVX`VawiEtqjZBb;3YPF1Vr=5WuqDrLMY? z&qEYvzn!Or?^Tz=4Q{ zFWdO|Xn&v{6Ji{H0qw*z3ZxinQZOPAQj)e7PwlMyeaiG0eO+xWOVo`UD~ljfJ=}r3 zO0DN_mgLf1`^XkwXe42T-)!^w{)9I6<8?-(4Yl}v=8YST;t~^iVZkpUjmHWC>J2qY z;epvg#z>R6*v}+d@+kkT&;xS$zxnCv2r%f|Bg#@=MnQK(t&vykdpixxI<7!|k};NN z)K*s)zk--2slxIvkp8pINIY>NRvyO3FaE$$yIhNm6#tB!{G6)lhh3xEFn}<0_3z#n zD$NGxHR+@7MvjY57;E>7yscle$HC`lYH4ZR8?qOV}P+#3uDV zc_M(>F_}uWhdRf@adT!%L1Ag>`3#4Q!VeE`-*%&% zIu${oG|3Y&AenwJ5iDUn8;J9J)#FN_8H>*-?2D^Yz#Ujjd~P_zc(c;uw4a|}gm!8g zIJfW3Q21z#&uqZ{@i|e#uHib8f{Id6!c*?#;Pm*iJh9GWM(i0y)eKN`?>2tUTB$F=Xb{VTO>8DBV*|m$PVZ!Wo zVg)ke`Q!TfF$Zyu77&87uiBQaIH;%M%S$aMm-wy6JV_W8=<^*Khtf-R4UNUO7mmyb z2@1xGAs#J^*mdxr-BmdKNLhyh|9eibgyz7lJ2o*h`FeVKS|d8-_wV1{Pg7GBg+gt` zKG;gsg7Y{5H2z?9w%nJWuAz`y-1U+0*41tBq)>`MLM?Sha0+U#DF>F)nsMS(dhf-3 zwGxo=YFj|!Zwvx2h0a#D9Ket&Jj=1sjEp4mL758PTK-%0BFBdhA6AUh z$TC=Zb%!(|_h%r*fo{{fS9uG;nz)em#5TP36755^?HkK1lZJpm-kX(VONi;AjzsrZ zIXQbTE=^P_c7hIZ?L1=i-np#)OMPBWebaun=H}*o2ohOZM~s#&j{b(?hq}!?AnSsvDd~TO)!&$Ff9T&-Dm4!P zmxI>6JKCv@%*rX^6DUVx*)R_1!c~~mFX1LZh-^j>M_|8*_Go~IreG`@BGhB2v zTV9~w%Ob_Y*^HsAtBwjQ+0`P80jOvmk{Ti5wWoT{ zcd;tT(RV%QyG&|Ex#82uYjtGtkV#mr0=yQcU%^D6m_O+oD#i;*F)%QQ(1k$Qd5838 zh67^BBz?)Ru5ZmUZetxh+15JHUYx&g=$Nr}&ap1?vdO{P4>3ST(t`&Z2)?glM=K!j zUqwR302kd4(a>_K&VU?P{~2vL%_)?@qM;1IDZf%T>ij?>&4W^H2;M^IGL@==OPlMD0;~h?;o#}0N*AoIQvD>w-7@}K)?GxG zr_6rhV~l{EJ=(+imoJ6x)Y~pSLb=h0{R6jhzKKXn7o52Ev7v8XozS`K+vz}|^m6o50gkim$-WL4O_Oh zo(V*RWg3_Gx;?0|_J3YhxG=V$mnln?7kf!q~YUvK-Fj^GbH z6nZw#Z^j<*EtMa-FCVazJ}4_=WfL$~=3})iJu+OQ?5V%gx(jHJq_I%U9O65cqdGk&W(+1c;d z9$pF_95>hF1qQ2#r1N2PFf(~CP=(aOgzO(m_C)b+Ysfv!ytLS({c za?vJ17A{^rG(*i6;sf~XpGH@XUxA|U0?^YHH{qaF1-P954I^<-T=;e8Iwp009u~D* ztlipBi>(915On6`$&Z#;1hA?wV?iyJSW7!R}WYlUR|9dmTm`o!8+0ig{+j{e?V4#d72Q}G%;9!D`8wo-viaw&n`l-KuT>#j2kvy>F zeNgjw0G*x6U0P(Xf8Zd^z{|lgts4-qbfv5%T7X|fgr%${YQg%g5wds!d%!V$#9~ej zBmeo0%noiUwTzXIFZiBzszdg~BP!JgW0T_h4_{^ZRl&Uex*&H5Kz0dxxgNjr zyVuP=4@+|r?6~=ruLxDQl%d#)+RrS)gC017U8Q&lD#nY|I3MPyMZZZwJn4`v0z6Wn zM`>S1TbkOkioj307?Omi>N=ccx!g?n@KcTMW zQj3f2>yHbL8~AUS2hKDFGqbRa9z)`ligs$w-;^fK{C4j)wTR^FLv8tEk73uF0UiH` z21t7twxWQ+*x7|WlWPAxYVWVLKF1$AIGytSbc~fh8oGZ{6a9Xd!x>_u5VTaVi2%)O z3879C^i;!S9+lSm$E~FW`?cbpjCPb3s~hX;Zu#Dp=lb)l`RCRGT=o~wpZlK2{npKmr=xzsE}NO8%dFimHwGJDFw7%9uDf+FKs>;E{E-+G+JPU4}72h74IU$LM4M&t(vu4y)x{SfKP(WSuSATzJhoL&+LKUE}3*zG8VOEd+&Yec3 zPC$ypeub5Ab+GBhe&nej+biOk+Suv?;X|yAwY5@AZznU4%-0`=>L0TMJTx^mr@BW9 zyCVekZLF*UA0IgNG!qCgs?KgPv5CIgPhsKV0|7ptcKBkPcET+;?pKNh%j{9yoI|q_z&n zS)rI<^=M=&gjXfp3&qx&d_apA$v6wKtd@^iyJygG2DFtV;muoKHm%{^vc+8kcaaLE zDG({EL%J$DcL55Rf*V})QQd;MvMMDn&wCDgi2*=^vtjSpV9K7lSyWV%UQ-F^WZ5X! z2;KLP6XCivKans8b;7mp-@h+g=j_177d(7jAg(UsjIQocC^ObzUVa3y!(e?DKT>b@ z*!;wKRCLfOAMsv%iuy>;sqz;xobRDfT+GVI5Yf@$!0EbC4N$*X=GuoGd(2dp4Nug~ zks=@{07Jgzg$uvFqA6>HPiDo?z`)?m4nQ|Lg8Q>}M15$xuDVB$A|H46?sO-nJz{(X zw#Phl$uM;B(sxM;-?5d8XW6h}q1ie|xE)zbMJUZ57VU!<39!^ECGV z)7Tyq>B_;bJ3~?*JcQ=fIN$ZB(!a0Sgx5q*=o?wF<=2d#Ll~ltkPXRXo>XJa1e(ZS z6(xJGNUVbe>ixd-=<%9z3Z-4ld-&T;-7{yR^wVZUfwgfH5T`OC->!m6UFjjMH#4|u zq9lg394C3O3m8z55`}_^Vi_n*Fn+rL+Rqr?Nvy=b`P z^(dt>KoSr=LQe|0{(*N_aqnI$8!*=_EnmM*Q#hXLS99b3T2jBWhL@Gqb@>HDOiYXd zIXX%Z(?cz%8wFr+Z;ripj~M|kA30H!47Nw9o{awbD&8cu@r`}1f{}qi7!CoG)~+K* z+%G>e`VH2y6oXXDqao%9)IqTf0AfUFNMtrMncYD^~yfnX*3zse+FQkjxvo` zuCVTZt*IK*OAvn=H=PM(^)mXf7jT~xGg+R(mnsj^wD00SwdO*qZ(9-wf=4Fb6nXVaryrMYw37UTe=1{kkyPd>M_ zb;!vDsHL*$ZaRb zkQpsV{)h8iK@^u1%c+wm4>TOQ)>va5xEwJ_lV6Mq9)13QKEyvPL`Tr#2p=)c(B)a& zK1Uu%nG(yANx@L$Tp;m~@M{rGxi(wtUD~lavfXycLoGMYtQJV`K)^G4g8#h)e<))) zA91$bdG1JlTVRe04xocup=#^Jw9*8m=}~KC#IJr34Q1UJ;vc_xi&Dwv zuI1WOZ%4e-l)@WllZJNq`n&&oQqns#sM3 ziI?&PaqP(%kLV#WmIgsCCDI{EH_&8jlKJPTiQnK;xLy(wfSqc%1ykZE`fSepHq*8x zF~m_+0HIk|J0dbY+lO22E9cG|m(zsSpaC)g|6b!@$;NVh<}F?`ZJB>a482)TJB7q z)W4r^7XV@Gyvc@(Q24e+aa}M>jIxfszky%VNPxfEeP2jF@g%pQl)jutDZDA_!<&|8 zZcA6mKNju=s-JMsoX*88oWif{)WcvH6GgZ8Fc=C%@q6()nQY*q_vgR0|E6S^XMlI#5cl`;nmso6WMJe`m*Bu zvDH=+ex-%c0#?tdeqzMQ=+}Qynj~csoP*5F%&x>taI>hrTLgf33qtzlzD1_Zn`7fd zQ>+wH#Vy~5AGlfBs6lBmgMls6+cOaND=3;RX3Rnw}_E%`v0kW#;%LeViW=szSZ>_tva!Jg9G z>`)tS%#FbKbFIb9Ukmf{TKHkUT55WENrLZiC28Uid?3OC`f@*EciWP`zTD3|F2jAp zfNolsl51dL@rVNh9N@(l+{eS13P72mvrW1d{@mg9fv#u)d3lTSkPd7#yrpI|l9D)9 z2va!*nxluIqp>G~*Nhvav%AS8klDXe*tbP6I&8p@Q5L|8UxdA z{{H^p3>9pEO#GpbgZk3fz)SBifDEpJ`R>Tu2?}R&)>&|5bcn>`Ot2jg3v1s+yW;RZY!3 zpj)gwJW-hRGApDpiBC^^lH`U4JXB}&(~Z1JQnENz?CQNMI1LB_MFQ!K8xU1+9uBQ< zMP7oWy9-|?xwndYQCofFb00lAUW81nj^HJ2ibpsg3O85wUzfVa0 za6NIS7e&lL;$Rp0MTdt-D?s>wTceg#`c|bS+MkSAWSE%C`;J?zLUzZLtG)Zc0o$w9 zy%ES5r6WSa!r*k`{g&@y9+~A=%9|}z=?F0pLr5!6RJ#$|tgjpqf}DfL&z>=G9d#^+ z3^2>1UmLXX(OCI2sd0ge>-l$u4vc3^p0Sg=<6P4JQx6Y#=(IeB(mWT(F%A{LA!7C` zEg*GbQyT0Ra>ByQ@FD9B2|&}SIs-OVJ^tO#@?@1rBOVutows9Rj&9t^0p`3dxyGQJ zl>2bV`%Q;b_WXs$(hhG)nk~NaPN4B2oOH?JM#1t= zH&gBF@s#ODDmEjS6N{{~j}Cmw#~eGCUzU@VYk4%D-rm9C92l_IFfZl$>H9i42_x-e z+as0XJnJqv{Vtnjs$pG&_U>{o{4!taAV$xqZ7Pj0#a*Gca@G3rrK7KAYs-OGpOe_B zV{9A=PpB({w({4C??PQafBuXG=zW~h)Pr7bd7qS&6l*!V(YA4*T}9B<1VXKUBEDrv z1^yS$qL{h3gQB8pFv28k&1#FgM4Cs45U5*BfEGz3-DY;Iv$HSTrpMFfvCp%{n(`r^ zo-jQ3=N<{n-b%|T`YlMI2t#C3!tgNsIa97-IlQ;9ti1vI-tw!jFJtX^GON;*Lpfp+ z-$O_)iUG{g776)kX%$=q=;c1(19H(^2YgP7p}?-U)-*5_T_7jD~!JwgI@;WSzE-10l7YLzV@NHjo_I!Kx%Q z@=|~db(qd59{m%HsPW@S;MOrUjY5IbXYxge@~7%*v7n{-r|_}y+-Pq$93WhOeSG0? zS6|$oZD6`ix3(0}QgAdwo<(<|e}{zaye^l0jn(DU`@v-?P_t$Ec51z^mJx0oI|e#05SF<*2V48v6Ms|*)1exkUy$i7u z757%V3*%pgq$A)IRD#*5p%>-^$v_ zyR2;Yi##uHuN1eq5hX^WjxQC?`AONC7lYL#%Giyk{1b}XM^9j=S*|+f(YKu!&Ljh} zdEkYb*)I<+)8Bh;%IP-3MY$#MqpI>(NgN_Iz9>NeqTMcG%Zd}|u?t~?|FCu^8C75odVG8<2ggY~2SjeQ+NlgRFiasCOx-)X_CpUG#jG$DkFn~^{~t~}bCGXNL3mBNF4q=ACS z2SlST27>}O9#xm{zaisEP*Lp!ZQ4+6wYJ%0Gmu^`{2fcwYv;m z6$djDg{rfZ!rx^J&2cCVkNggRBxD53`QKK?ep$(Zgk>`S-;@sjL;v!BX)2DqZaz@$ zE)$|alyNEz%j6%#1W-S?orIiD6Bt2u5Q877l#G<5z^k^gOp_mPchdWAE=PZjqfKq5 zDeMZ}-fH!r@fd=bz`GXh$L5}hdY7M(Hib2ir0$&0l`WKZG@cp%;mRo6Svfh`rNeO& zlJH&5)3zpu{f~Y=YJ9OOjL%5_#?HN3)4pX4xN+)6g6RB8^L$@(rlUBH^`0K7B0 zA$E`rktH_Kz3MTkoU8iu2|}-bm{>OOH~Y&a)+4a1xXz0OZL#hgl82|XZ?zWetNta^fcq#x^*@mRlfx~Wg{qD zhoA%u2Ippw5IHXrJ0yiKMZpr#V5!GkcKIUw(6fRqTTrc8)p#5;kTMHD3b_g|he znTp%clj^jgJ@+4qbl1fe8$9s$JEBxO>{a-Bfd@5sOveFv?@ev9qa$}OJk;)=qEh=# zMoWk*Dh3kV@_yS+RQ^BjX8DcCaR=^*Yim&O*<=@c7+NSFq(A-uh&D z@M9KtRngIw{r0HE$NmUff)s|$yg$TcWd87ky_+yLFMjuP-U+COEQ}SS5ANQTpq{xy z+`4~X8p?p~gbz;O1jkUZScZqcrMioBBj0NdGObkb$r@NTy+EAI(JVMcBp=t|cuqCi zV6iDuicP1*;Xqf1b#X;;ch~GhPo>T889&LrdsX;&c$S}$Zx}ccB#y5$TZWpzAJ+{J z%Rx`y1#0UMSAIGkE7SmP(%XCZ%;4}m(&8*no%+;-+9i!t1*T3!6)nM#6T5&Rg=NmK z^f{IKodl91;qojRo_5%?JGr*`6;r9a_;_vJg{o+&;JM1?yk-@qclm;9gndp zZ5g6~LY2RWC&RdS>j$JZEKJo~6*wrWsAxXbQ(rcp`g`p2Jcgjt zxJ=R*xPLlimNvVFL(8y{q?k*9>Qn(Er{u_BT@D72Lco2$w;)33>$EoM48Zl89isVtot zd^ryTg#>W9*%`l54F7i7mtI5e^$x3n)_8;$6TL~~j`_amEld3aI%`jDVM&s^CU0eR zQlIisb&t}xhufGVHo$uj@lgek(T4Ly?qiA0g*P^`usF9Qh9d>gTyF_S69z1)?#Y3T zm@HP>3hE$?7`}#?nU8n{%G(GUoT<2de_>8}QXw{;9k)|c#{Jhf<(sJ%r>v|hLWVNc z3M((aH7$PiYjJF1=FQ~+>m0iBZ3(w;;fkjt{O*hn2Lc%Emrp<;)ZrLlX>2o|@UqvR z8?;9&9%1-+5u&~%r;a&|2y=k)`UVF1bwe{qhTiPp^chc?N(Ntfn+%nNL++7Y<63lr z*K?(r0)N$~nC}2yxRL*%OwO^%?75EO$-c=+pH<(b0-JB`KIgj=<@dV?i3Bm1dl~IV z_f`qORtis#n~q3+j`LXRg>a7iLlMazDk=uSgCZQy<9f4OV2PQ_9W~f#en6nfBP1-G z&{i@QyOmZ_vc#mKgU)Z%wa`TC2H*9al827#+%-U(wFzXR7tw5+NT64|y|ofuDzo@u z66~-i(yR=R&Mj1%Umzem;7quEz11;s8y8m^Zs6be+%ADo>~Eth*OF=v1tn$xQPE69 z@@M*2uf@Bil3EW%9NB|MHf7Y?K6De&o*eo#j~%;27L*uue0=;lv?;l;k6R^Z=j&6N zqzQIXDB3wR(+$@D=1Zu#d{XzFP*zTD8qN7~g|&&u^Rzw!;K2%eu@_>W8xyKyMT4tb zR`BR7(IQBRj={^jRW^> zs-q*8{_L4`+#3rrI1(^0TCk4qug<+=Pl#I&wVy^BTFiUMKx)TKwlaXZO&|xR>U@X} zyPN;Kb_b9xm(%*g^{Nm49Ox>Ygm4B_r59=M=ke5_`5%Lxvr!QdevrN}<5>z>7fU;O zkXf^|0>Fz2PlH?uvU$H39a;b45%$jf+vyxiChbk?^$X`fi}j(fHA^V4CjeU9yvjGi XC2qIekM( literal 0 HcmV?d00001 diff --git a/sources/skins/moono/dev/icons16.svg b/sources/skins/moono/dev/icons16.svg new file mode 100644 index 00000000..5719d3eb --- /dev/null +++ b/sources/skins/moono/dev/icons16.svg @@ -0,0 +1,2374 @@ + + + +image/svg+xml + + + \ No newline at end of file diff --git a/sources/skins/moono/dev/icons32.png b/sources/skins/moono/dev/icons32.png new file mode 100644 index 0000000000000000000000000000000000000000..a74c093b361747e977178b6a821f8a9c9c0c88c7 GIT binary patch literal 75488 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'^(JF>gP$c0kc&o_I9 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 + + +image/svg+xml + + + + \ No newline at end of file diff --git a/sources/skins/moono/dev/locations.json b/sources/skins/moono/dev/locations.json new file mode 100644 index 00000000..e2fc62ec --- /dev/null +++ b/sources/skins/moono/dev/locations.json @@ -0,0 +1,144 @@ +{ + "0": [ + [ + "plugins/sourcearea/icons/source.png", + "plugins/sourcedialog/icons/sourcedialog.png" + ], + [ + "plugins/sourcearea/icons/source-rtl.png", + "plugins/sourcedialog/icons/sourcedialog-rtl.png" + ], + "plugins/save/icons/save.png", + "plugins/newpage/icons/newpage.png", + "plugins/newpage/icons/newpage-rtl.png", + "plugins/preview/icons/preview.png", + "plugins/preview/icons/preview-rtl.png", + "plugins/print/icons/print.png", + [ + "plugins/templates/icons/templates.png", + "plugins/templates/icons/templates-rtl.png" + ], + "plugins/docprops/icons/docprops.png", + "plugins/docprops/icons/docprops-rtl.png" + ], + "1": [ + [ + "plugins/clipboard/icons/cut-rtl.png", + "plugins/clipboard/icons/cut.png" + ], + [ + "plugins/clipboard/icons/copy.png", + "plugins/clipboard/icons/copy-rtl.png" + ], + [ + "plugins/clipboard/icons/paste.png", + "plugins/clipboard/icons/paste-rtl.png" + ], + "plugins/pastetext/icons/pastetext.png", + "plugins/pastetext/icons/pastetext-rtl.png", + "plugins/pastefromword/icons/pastefromword.png", + "plugins/pastefromword/icons/pastefromword-rtl.png", + "plugins/undo/icons/undo.png", + "plugins/undo/icons/undo-rtl.png", + "plugins/undo/icons/redo.png", + "plugins/undo/icons/redo-rtl.png" + ], + "2": [ + [ + "plugins/find/icons/find-rtl.png", + "plugins/find/icons/find.png" + ], + "plugins/find/icons/replace.png", + "plugins/selectall/icons/selectall.png", + [ + "plugins/wsc/icons/spellchecker.png", + "plugins/scayt/icons/scayt.png" + ] + ], + "3": [ + "plugins/forms/icons/form.png", + "plugins/forms/icons/checkbox.png", + "plugins/forms/icons/radio.png", + [ + "plugins/forms/icons/textfield-rtl.png", + "plugins/forms/icons/textfield.png" + ], + "plugins/forms/icons/textarea.png", + "plugins/forms/icons/textarea-rtl.png", + "plugins/forms/icons/select.png", + "plugins/forms/icons/select-rtl.png", + "plugins/forms/icons/button.png", + "plugins/forms/icons/imagebutton.png", + "plugins/forms/icons/hiddenfield.png" + ], + "4": [ + "plugins/basicstyles/icons/bold.png", + "plugins/basicstyles/icons/italic.png", + "plugins/basicstyles/icons/underline.png", + "plugins/basicstyles/icons/strike.png", + "plugins/basicstyles/icons/superscript.png", + "plugins/basicstyles/icons/subscript.png", + "plugins/removeformat/icons/removeformat.png" + ], + "5": [ + "plugins/list/icons/numberedlist.png", + "plugins/list/icons/numberedlist-rtl.png", + "plugins/list/icons/bulletedlist.png", + "plugins/list/icons/bulletedlist-rtl.png", + "plugins/indent/icons/outdent.png", + "plugins/indent/icons/indent.png", + "plugins/indent/icons/indent-rtl.png", + "plugins/indent/icons/outdent-rtl.png", + "plugins/blockquote/icons/blockquote.png", + "plugins/div/icons/creatediv.png", + "plugins/justify/icons/justifyleft.png", + "plugins/justify/icons/justifycenter.png", + "plugins/justify/icons/justifyright.png", + "plugins/justify/icons/justifyblock.png", + "plugins/bidi/icons/bidiltr.png", + "plugins/bidi/icons/bidirtl.png" + ], + "6": [ + "plugins/link/icons/link.png", + "plugins/link/icons/unlink.png", + "plugins/link/icons/anchor.png", + "plugins/link/icons/anchor-rtl.png" + ], + "7": [ + [ + "plugins/image/icons/image.png", + "plugins/image2/icons/image.png" + ], + "plugins/flash/icons/flash.png", + "plugins/table/icons/table.png", + "plugins/horizontalrule/icons/horizontalrule.png", + "plugins/smiley/icons/smiley.png", + "plugins/specialchar/icons/specialchar.png", + "plugins/pagebreak/icons/pagebreak.png", + "plugins/pagebreak/icons/pagebreak-rtl.png", + "plugins/iframe/icons/iframe.png" + ], + "8": [ + "plugins/colorbutton/icons/textcolor.png", + "plugins/colorbutton/icons/bgcolor.png" + ], + "9": [ + "plugins/maximize/icons/maximize.png", + "plugins/showblocks/icons/showblocks.png", + "plugins/showblocks/icons/showblocks-rtl.png" + ], + "10": [ + "plugins/about/icons/about.png", + "plugins/uicolor/icons/uicolor.png", + "plugins/placeholder/icons/placeholder.png", + "plugins/language/icons/language.png", + "plugins/codesnippet/icons/codesnippet.png" + ], + "11": [ + "plugins/link/images/anchor.png", + "skins/moono/images/close.png", + "skins/moono/images/lock.png", + "skins/moono/images/lock-open.png", + "skins/moono/images/refresh.png" + ] +} \ No newline at end of file diff --git a/sources/skins/moono/dialog.css b/sources/skins/moono/dialog.css new file mode 100644 index 00000000..2e5eb018 --- /dev/null +++ b/sources/skins/moono/dialog.css @@ -0,0 +1,1060 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +dialog.css +============ + +This file styles dialogs and all widgets available inside of it (tabs, buttons, +fields, etc.). + +Dialogs are a complex system because they're very flexible. The CKEditor API +makes it easy to create and customize dialogs by code, by making use of several +different widgets inside its contents. + +All dialogs share a main dialog strucuture, which can be visually represented +as follows: + ++-- .cke_dialog -------------------------------------------------+ +| +-- .cke_dialog_body ----------------------------------------+ | +| | +-- .cke_dialog_title --+ +-- .cke_dialog_close_button --+ | | +| | | | | | | | +| | +-----------------------+ +------------------------------+ | | +| | +-- .cke_dialog_tabs ------------------------------------+ | | +| | | | | | +| | +--------------------------------------------------------+ | | +| | +-- .cke_dialog_contents --------------------------------+ | | +| | | +-- .cke_dialog_contents_body -----------------------+ | | | +| | | | | | | | +| | | +----------------------------------------------------+ | | | +| | | +-- .cke_dialog_footer ------------------------------+ | | | +| | | | | | | | +| | | +----------------------------------------------------+ | | | +| | +--------------------------------------------------------+ | | +| +------------------------------------------------------------+ | ++----------------------------------------------------------------+ + +Comments in this file will give more details about each of the above blocks. +*/ + +/* The outer container of the dialog. */ +.cke_dialog +{ + /* Mandatory: Because the dialog.css file is loaded on demand, we avoid + showing an unstyled dialog by hidding it. Here, we restore its visibility. */ + visibility: visible; +} + +/* The inner boundary container. */ +.cke_dialog_body +{ + z-index: 1; + background: #eaeaea; + border: 1px solid #b2b2b2; + border-bottom-color: #999; + border-radius: 3px; + box-shadow: 0 0 3px rgba(0, 0, 0, .15); +} + +/* Due to our reset we have to recover the styles of some elements. */ +.cke_dialog strong +{ + font-weight: bold; +} + +/* The dialog title. */ +.cke_dialog_title +{ + font-weight: bold; + font-size: 13px; + cursor: move; + position: relative; + + color: #474747; + text-shadow: 0 1px 0 rgba(255,255,255,.75); + + border-bottom: 1px solid #999; + padding: 6px 10px; + + border-radius: 2px 2px 0 0; + box-shadow: 0 1px 0 #fff inset; + + background: #cfd1cf; + background-image: linear-gradient(to bottom, #f5f5f5, #cfd1cf); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#f5f5f5', endColorstr='#cfd1cf'); +} + +.cke_dialog_spinner +{ + border-radius: 50%; + + width: 12px; + height: 12px; + overflow: hidden; + + text-indent: -9999em; + + border-top: 2px solid rgba(102, 102, 102, 0.2); + border-right: 2px solid rgba(102, 102, 102, 0.2); + border-bottom: 2px solid rgba(102, 102, 102, 0.2); + border-left: 2px solid rgba(102, 102, 102, 1); + + -webkit-animation: dialog_spinner 1s infinite linear; + animation: dialog_spinner 1s infinite linear; +} + +/* A GIF fallback for IE8 and IE9 which does not support CSS animations. */ +.cke_browser_ie8 .cke_dialog_spinner, +.cke_browser_ie9 .cke_dialog_spinner +{ + background: url(images/spinner.gif) center top no-repeat; + width: 16px; + height: 16px; + border: 0; +} + +@-webkit-keyframes dialog_spinner +{ + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes dialog_spinner +{ + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +/* The outer part of the dialog contants, which contains the contents body + and the footer. */ +.cke_dialog_contents +{ + background-color: #fff; + overflow: auto; + padding: 15px 10px 5px 10px; + margin-top: 30px; + border-top: 1px solid #bfbfbf; + border-radius: 0 0 3px 3px; +} + +/* The contents body part, which will hold all elements available in the dialog. */ +.cke_dialog_contents_body +{ + overflow: auto; + padding: 17px 10px 5px 10px; + margin-top: 22px; +} + +/* The dialog footer, which usually contains the "Ok" and "Cancel" buttons as + well as a resize handler. */ +.cke_dialog_footer +{ + text-align: right; + position: relative; + border: none; + outline: 1px solid #bfbfbf; + box-shadow: 0 1px 0 #fff inset; + border-radius: 0 0 2px 2px; + background: #cfd1cf; + background-image: linear-gradient(to bottom, #ebebeb, #cfd1cf); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#ebebeb', endColorstr='#cfd1cf'); +} + +.cke_rtl .cke_dialog_footer +{ + text-align: left; +} + +.cke_hc .cke_dialog_footer +{ + outline: none; + border-top: 1px solid #fff; +} + +.cke_dialog .cke_resizer +{ + margin-top: 22px; +} + +.cke_dialog .cke_resizer_rtl +{ + margin-left: 5px; +} + +.cke_dialog .cke_resizer_ltr +{ + margin-right: 5px; +} + +/* +Dialog tabs +------------- + +Tabs are presented on some of the dialogs to make it possible to have its +contents split on different groups, visible one after the other. + +The main element that holds the tabs can be made hidden, in case of no tabs +available. + +The following is the visual representation of the tabs block: + ++-- .cke_dialog_tabs ------------------------------------+ +| +-- .cke_dialog_tab --+ +-- .cke_dialog_tab --+ ... | +| | | | | | +| +---------------------+ +---------------------+ | ++--------------------------------------------------------+ + +The .cke_dialog_tab_selected class is appended to the active tab. +*/ + +/* The main tabs container. */ +.cke_dialog_tabs +{ + height: 24px; + display: inline-block; + margin: 5px 0 0; + position: absolute; + z-index: 2; + left: 10px; +} + +.cke_rtl .cke_dialog_tabs +{ + right: 10px; +} + +/* A single tab (an element). */ +a.cke_dialog_tab +{ + + height: 16px; + padding: 4px 8px; + margin-right: 3px; + display: inline-block; + cursor: pointer; + line-height: 16px; + outline: none; + color: #595959; + border: 1px solid #bfbfbf; + + border-radius: 3px 3px 0 0; + + background: #d4d4d4; + background-image: linear-gradient(to bottom, #fafafa, #ededed); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#fafafa', endColorstr='#ededed'); +} + +.cke_rtl a.cke_dialog_tab +{ + margin-right: 0; + margin-left: 3px; +} + +/* A hover state of a regular inactive tab. */ +a.cke_dialog_tab:hover, +a.cke_dialog_tab:focus +{ + background: #ebebeb; + background: linear-gradient(to bottom, #ebebeb 0%,#dfdfdf 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ebebeb', endColorstr='#dfdfdf',GradientType=0 ); +} + +a.cke_dialog_tab_selected +{ + background: #fff; + color: #383838; + border-bottom-color: #fff; + cursor: default; + filter: none; +} + +/* A hover state for selected tab. */ +a.cke_dialog_tab_selected:hover, +a.cke_dialog_tab_selected:focus, +{ + background: #ededed; + background: linear-gradient(to bottom, #ededed 0%,#ffffff 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ededed', endColorstr='#ffffff',GradientType=0 ); +} + +.cke_hc a.cke_dialog_tab:hover, +.cke_hc a.cke_dialog_tab:focus, +.cke_hc a.cke_dialog_tab_selected +{ + border: 3px solid; + padding: 2px 6px; +} + +a.cke_dialog_tab_disabled +{ + color: #bababa; + cursor: default; +} + +/* The .cke_single_page class is appended to the dialog outer element in case + of dialogs that has no tabs. */ +.cke_single_page .cke_dialog_tabs +{ + display: none; +} + +.cke_single_page .cke_dialog_contents +{ + padding-top: 5px; + margin-top: 0; + border-top: none; +} + +/* The close button at the top of the dialog. */ + +a.cke_dialog_close_button +{ + background-image: url(images/close.png); + background-repeat: no-repeat; + background-position: 50%; + position: absolute; + cursor: pointer; + text-align: center; + height: 20px; + width: 20px; + top: 4px; + z-index: 5; + opacity: 0.8; + filter: alpha(opacity = 80); +} + +.cke_dialog_close_button:hover +{ + opacity: 1; + filter: alpha(opacity = 100); +} + +.cke_hidpi .cke_dialog_close_button +{ + background-image: url(images/hidpi/close.png); + background-size: 16px; +} + +.cke_dialog_close_button span +{ + display: none; +} + +.cke_hc .cke_dialog_close_button span +{ + display: inline; + cursor: pointer; + font-weight: bold; + position: relative; + top: 3px; +} + +.cke_ltr .cke_dialog_close_button +{ + right: 5px; +} + +.cke_rtl .cke_dialog_close_button +{ + left: 6px; +} + +.cke_dialog_close_button +{ + top: 4px; +} + +/* +Dialog UI Elements +-------------------- + +The remaining styles define the UI elements that can be used inside dialog +contents. + +Most of the UI elements on dialogs contain a textual label. All of them share +the same labelling structure, having the label text inside an element with +.cke_dialog_ui_labeled_label and the element specific part inside the +.cke_dialog_ui_labeled_content class. +*/ + +/* If an element is supposed to be disabled, the .cke_disabled class is + appended to it. */ +div.cke_disabled .cke_dialog_ui_labeled_content div * +{ + background-color: #ddd; + cursor: default; +} + +/* +Horizontal-Box and Vertical-Box +--------------------------------- + +There are basic layou element used by the editor to properly align elements in +the dialog. They're basically tables that have each cell filled by UI elements. + +The following is the visual representation of a H-Box: + ++-- .cke_dialog_ui_hbox --------------------------------------------------------------------------------+ +| +-- .cke_dialog_ui_hbox_first --+ +-- .cke_dialog_ui_hbox_child --+ +-- .cke_dialog_ui_hbox_last --+ | +| + + + + + + | +| +-------------------------------+ +-------------------------------+ +------------------------------+ | ++-------------------------------------------------------------------------------------------------------+ + +It is possible to have nested V/H-Boxes. +*/ + +.cke_dialog_ui_vbox table, +.cke_dialog_ui_hbox table +{ + margin: auto; +} + +.cke_dialog_ui_vbox_child +{ + padding: 5px 0px; +} + +.cke_dialog_ui_hbox +{ + width: 100%; +} + +.cke_dialog_ui_hbox_first, +.cke_dialog_ui_hbox_child, +.cke_dialog_ui_hbox_last +{ + vertical-align: top; +} + +.cke_ltr .cke_dialog_ui_hbox_first, +.cke_ltr .cke_dialog_ui_hbox_child +{ + padding-right: 10px; +} + +.cke_rtl .cke_dialog_ui_hbox_first, +.cke_rtl .cke_dialog_ui_hbox_child +{ + padding-left: 10px; +} + +.cke_ltr .cke_dialog_footer_buttons .cke_dialog_ui_hbox_first, +.cke_ltr .cke_dialog_footer_buttons .cke_dialog_ui_hbox_child +{ + padding-right: 5px; +} + +.cke_rtl .cke_dialog_footer_buttons .cke_dialog_ui_hbox_first, +.cke_rtl .cke_dialog_footer_buttons .cke_dialog_ui_hbox_child +{ + padding-left: 5px; + padding-right: 0; +} + +/* Applies to all labeled dialog fields */ +.cke_hc div.cke_dialog_ui_input_text, +.cke_hc div.cke_dialog_ui_input_password, +.cke_hc div.cke_dialog_ui_input_textarea, +.cke_hc div.cke_dialog_ui_input_select, +.cke_hc div.cke_dialog_ui_input_file +{ + border: 1px solid; +} + +/* +Text Input +------------ + +The basic text field to input text. + ++-- .cke_dialog_ui_text --------------------------+ +| +-- .cke_dialog_ui_labeled_label ------------+ | +| | | | +| +--------------------------------------------+ | +| +-- .cke_dialog_ui_labeled_content ----------+ | +| | +-- div.cke_dialog_ui_input_text --------+ | | +| | | +-- input.cke_dialog_ui_input_text --+ | | | +| | | | | | | | +| | | +------------------------------------+ | | | +| | +----------------------------------------+ | | +| +--------------------------------------------+ | ++-------------------------------------------------+ +*/ + +/* +Textarea +---------- + +The textarea field to input larger text. + ++-- .cke_dialog_ui_textarea --------------------------+ +| +-- .cke_dialog_ui_labeled_label ----------------+ | +| | | | +| +------------------------------------------------+ | +| +-- .cke_dialog_ui_labeled_content --------------+ | +| | +-- div.cke_dialog_ui_input_textarea --------+ | | +| | | +-- input.cke_dialog_ui_input_textarea --+ | | | +| | | | | | | | +| | | +----------------------------------------+ | | | +| | +--------------------------------------------+ | | +| +------------------------------------------------+ | ++-----------------------------------------------------+ +*/ + +textarea.cke_dialog_ui_input_textarea +{ + overflow: auto; + resize: none; +} + +input.cke_dialog_ui_input_text, +input.cke_dialog_ui_input_password, +textarea.cke_dialog_ui_input_textarea +{ + background-color: #fff; + border: 1px solid #c9cccf; + border-top-color: #aeb3b9; + padding: 4px 6px; + outline: none; + width: 100%; + *width: 95%; + + box-sizing: border-box; + + border-radius: 3px; + + box-shadow: 0 1px 2px rgba(0,0,0,.15) inset; +} + +input.cke_dialog_ui_input_text:hover, +input.cke_dialog_ui_input_password:hover, +textarea.cke_dialog_ui_input_textarea:hover +{ + border: 1px solid #aeb3b9; + border-top-color: #a0a6ad; +} + +input.cke_dialog_ui_input_text:focus, +input.cke_dialog_ui_input_password:focus, +textarea.cke_dialog_ui_input_textarea:focus, +select.cke_dialog_ui_input_select:focus +{ + outline: none; + border: 1px solid #139ff7; + border-top-color: #1392e9; +} + +/* +Button +-------- + +The buttons used in the dialog footer or inside the contents. + ++-- a.cke_dialog_ui_button -----------+ +| +-- span.cke_dialog_ui_button --+ | +| | | | +| +-------------------------------+ | ++-------------------------------------+ +*/ + +/* The outer part of the button. */ +a.cke_dialog_ui_button +{ + display: inline-block; + *display: inline; + *zoom: 1; + + padding: 4px 0; + margin: 0; + + text-align: center; + color: #333; + vertical-align: middle; + cursor: pointer; + + border: 1px solid #b6b6b6; + border-bottom-color: #999; + border-radius: 3px; + box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 0 2px rgba(255,255,255,.15) inset, 0 1px 0 rgba(255,255,255,.15) inset; + + background: #e4e4e4; + background-image: linear-gradient(to bottom, #ffffff, #e4e4e4); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#ffffff', endColorstr='#e4e4e4'); + +} + +span.cke_dialog_ui_button +{ + padding: 0 10px; +} + +a.cke_dialog_ui_button:hover +{ + border-color: #9e9e9e; + + background: #ccc; + background-image: linear-gradient(to bottom, #f2f2f2, #ccc); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#f2f2f2', endColorstr='#cccccc'); +} + +/* :focus/:active styles for dialog buttons: regular and footer. */ +a.cke_dialog_ui_button:focus, +a.cke_dialog_ui_button:active +{ + border-color: #969696; + outline: none; + box-shadow: 0 0 6px rgba(0,0,0,.4) inset; +} + +.cke_hc a.cke_dialog_ui_button:hover, +.cke_hc a.cke_dialog_ui_button:focus, +.cke_hc a.cke_dialog_ui_button:active +{ + border: 3px solid; + padding-top: 1px; + padding-bottom: 1px; +} + +.cke_hc a.cke_dialog_ui_button:hover span, +.cke_hc a.cke_dialog_ui_button:focus span, +.cke_hc a.cke_dialog_ui_button:active span +{ + padding-left: 10px; + padding-right: 10px; +} + +/* +a.cke_dialog_ui_button[style*="width"] +{ + display: block !important; + width: auto !important; +} +*/ +/* The inner part of the button (both in dialog tabs and dialog footer). */ +.cke_dialog_footer_buttons a.cke_dialog_ui_button span +{ + color: inherit; + font-size: 12px; + font-weight: bold; + line-height: 18px; + padding: 0 12px; +} + +/* Special class appended to the Ok button. */ +a.cke_dialog_ui_button_ok +{ + color: #fff; + text-shadow: 0 -1px 0 #55830c; + border-color: #62a60a #62a60a #4d9200; + + background: #69b10b; + background-image: linear-gradient(to bottom, #9ad717, #69b10b); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#9ad717', endColorstr='#69b10b'); +} + +a.cke_dialog_ui_button_ok:hover +{ + border-color: #5b9909 #5b9909 #478500; + + background: #88be14; + background: linear-gradient(to bottom, #88be14 0%,#5d9c0a 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#88be14', endColorstr='#5d9c0a',GradientType=0 ); +} + +a.cke_dialog_ui_button_ok.cke_disabled { + border-color: #7D9F51; + + background: #8DAD62; + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#B3D271), to(#8DAD62)); + background-image: -webkit-linear-gradient(top, #B3D271, #8DAD62); + background-image: -o-linear-gradient(top, #B3D271, #8DAD62); + background-image: linear-gradient(to bottom, #B3D271, #8DAD62); + background-image: -moz-linear-gradient(top, #B3D271, #8DAD62); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#B3D271', endColorstr='#8DAD62'); +} + +a.cke_dialog_ui_button_ok.cke_disabled span { + color: #E0E8D1; +} + +/* Default text shadow used for inner parts of all dialog buttons (both in dialog tabs and dialog footer). */ +a.cke_dialog_ui_button span +{ + text-shadow: 0 1px 0 #fff; +} + +/* Text shadow used for inner part of OK dialog button in footer. */ +a.cke_dialog_ui_button_ok span +{ + text-shadow: 0 -1px 0 #55830c; +} + +span.cke_dialog_ui_button +{ + cursor: pointer; +} + +/* :focus/:active styles for dialog footer buttons (ok & cancel) */ +a.cke_dialog_ui_button_ok:focus, +a.cke_dialog_ui_button_ok:active, +a.cke_dialog_ui_button_cancel:focus, +a.cke_dialog_ui_button_cancel:active +{ + border-width: 2px; + padding: 3px 0; +} + +a.cke_dialog_ui_button_ok:focus, +a.cke_dialog_ui_button_ok:active +{ + border-color: #568C0A; +} + +a.cke_dialog_ui_button_ok.cke_disabled:focus, +a.cke_dialog_ui_button_ok.cke_disabled:active +{ + border-color: #6F8C49; +} + +/* :focus/:active styles for dialog footer buttons (ok & cancel) spans */ +a.cke_dialog_ui_button_ok:focus span, +a.cke_dialog_ui_button_ok:active span, +a.cke_dialog_ui_button_cancel:focus span, +a.cke_dialog_ui_button_cancel:active span +{ + padding: 0 11px; /* Thick button border must be compensated. */ +} + +/* A special container that holds the footer buttons. */ +.cke_dialog_footer_buttons +{ + display: inline-table; + margin: 5px; + width: auto; + position: relative; + vertical-align: middle; +} + +/* +Styles for other dialog element types. +*/ + +div.cke_dialog_ui_input_select +{ + display: table; +} + +select.cke_dialog_ui_input_select +{ + height: 25px; + line-height: 25px; + + background-color: #fff; + border: 1px solid #c9cccf; + border-top-color: #aeb3b9; + padding: 3px 3px 3px 6px; + outline: none; + border-radius: 3px; + box-shadow: 0 1px 2px rgba(0,0,0,.15) inset; +} + +.cke_dialog_ui_input_file +{ + width: 100%; + height: 25px; +} + +.cke_hc .cke_dialog_ui_labeled_content input:focus, +.cke_hc .cke_dialog_ui_labeled_content select:focus, +.cke_hc .cke_dialog_ui_labeled_content textarea:focus +{ + outline: 1px dotted; +} + +/* + * Some utility CSS classes for dialog authors. + */ +.cke_dialog .cke_dark_background +{ + background-color: #DEDEDE; +} + +.cke_dialog .cke_light_background +{ + background-color: #EBEBEB; +} + +.cke_dialog .cke_centered +{ + text-align: center; +} + +.cke_dialog a.cke_btn_reset +{ + float: right; + background: url(images/refresh.png) top left no-repeat; + width: 16px; + height: 16px; + border: 1px none; + font-size: 1px; +} + +.cke_hidpi .cke_dialog a.cke_btn_reset { + background-size: 16px; + background-image: url(images/hidpi/refresh.png); +} + +.cke_rtl .cke_dialog a.cke_btn_reset +{ + float: left; +} + +.cke_dialog a.cke_btn_locked, +.cke_dialog a.cke_btn_unlocked +{ + float: left; + width: 16px; + height: 16px; + background-repeat: no-repeat; + border: none 1px; + font-size: 1px; +} + +.cke_dialog a.cke_btn_locked .cke_icon +{ + display: none; +} + +.cke_rtl .cke_dialog a.cke_btn_locked, +.cke_rtl .cke_dialog a.cke_btn_unlocked +{ + float: right; +} + +.cke_dialog a.cke_btn_locked +{ + background-image: url(images/lock.png); +} + +.cke_dialog a.cke_btn_unlocked +{ + background-image: url(images/lock-open.png); +} + +.cke_hidpi .cke_dialog a.cke_btn_unlocked, +.cke_hidpi .cke_dialog a.cke_btn_locked { + background-size: 16px; +} + +.cke_hidpi .cke_dialog a.cke_btn_locked { + background-image: url(images/hidpi/lock.png); +} + +.cke_hidpi .cke_dialog a.cke_btn_unlocked { + background-image: url(images/hidpi/lock-open.png); +} + +.cke_dialog .cke_btn_over +{ + border: outset 1px; + cursor: pointer; +} + +/* +The rest of the file contains style used on several common plugins. There is a +tendency that these will be moved to the plugins code in the future. +*/ + +.cke_dialog .ImagePreviewBox +{ + border: 2px ridge black; + overflow: scroll; + height: 200px; + width: 300px; + padding: 2px; + background-color: white; +} + +.cke_dialog .ImagePreviewBox table td +{ + white-space: normal; +} + +.cke_dialog .ImagePreviewLoader +{ + position: absolute; + white-space: normal; + overflow: hidden; + height: 160px; + width: 230px; + margin: 2px; + padding: 2px; + opacity: 0.9; + filter: alpha(opacity = 90); + + background-color: #e4e4e4; +} + +.cke_dialog .FlashPreviewBox +{ + white-space: normal; + border: 2px ridge black; + overflow: auto; + height: 160px; + width: 390px; + padding: 2px; + background-color: white; +} + +.cke_dialog .cke_pastetext +{ + width: 346px; + height: 170px; +} + +.cke_dialog .cke_pastetext textarea +{ + width: 340px; + height: 170px; + resize: none; +} + +.cke_dialog iframe.cke_pasteframe +{ + width: 346px; + height: 130px; + background-color: white; + border: 1px solid #aeb3b9; + border-radius: 3px; +} + +.cke_dialog .cke_hand +{ + cursor: pointer; +} + +.cke_disabled +{ + color: #a0a0a0; +} + +.cke_dialog_body .cke_label +{ + display: none; +} + +.cke_dialog_body label +{ + display: inline; + margin-bottom: auto; + cursor: default; +} + +.cke_dialog_body label.cke_required +{ + font-weight: bold; +} + +a.cke_smile +{ + overflow: hidden; + display: block; + text-align: center; + padding: 0.3em 0; +} + +a.cke_smile img +{ + vertical-align: middle; +} + +a.cke_specialchar +{ + cursor: inherit; + display: block; + height: 1.25em; + padding: 0.2em 0.3em; + text-align: center; +} + +a.cke_smile, +a.cke_specialchar +{ + border: 1px solid transparent; +} + +a.cke_smile:hover, +a.cke_smile:focus, +a.cke_smile:active, +a.cke_specialchar:hover, +a.cke_specialchar:focus, +a.cke_specialchar:active +{ + background: #fff; + outline: 0; +} + +a.cke_smile:hover, +a.cke_specialchar:hover +{ + border-color: #888; +} + +a.cke_smile:focus, +a.cke_smile:active, +a.cke_specialchar:focus, +a.cke_specialchar:active +{ + border-color: #139FF7; +} + +/** + * Styles specific to "cellProperties" dialog. + */ + +.cke_dialog_contents a.colorChooser +{ + display: block; + margin-top: 6px; + margin-left: 10px; + width: 80px; +} + +.cke_rtl .cke_dialog_contents a.colorChooser +{ + margin-right: 10px; +} + +/* Compensate focus outline for some input elements. (#6200) */ +.cke_dialog_ui_checkbox_input:focus, +.cke_dialog_ui_radio_input:focus, +.cke_btn_over +{ + outline: 1px dotted #696969; +} + +.cke_iframe_shim +{ + display: block; + position: absolute; + top: 0; + left: 0; + z-index: -1; + filter: alpha(opacity = 0); + width: 100%; + height: 100%; +} diff --git a/sources/skins/moono/dialog_ie.css b/sources/skins/moono/dialog_ie.css new file mode 100644 index 00000000..ca02a477 --- /dev/null +++ b/sources/skins/moono/dialog_ie.css @@ -0,0 +1,62 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +dialog_ie.css +=============== + +This file contains styles to used by all versions of Internet Explorer only. +*/ + +/* Base it on dialog.css, overriding it with styles defined in this file. */ +@import url("dialog.css"); + +/* IE doesn't leave enough padding in text input for cursor to blink in RTL. (#6087) */ +.cke_rtl input.cke_dialog_ui_input_text, +.cke_rtl input.cke_dialog_ui_input_password +{ + padding-right: 2px; +} +/* Compensate the padding added above on container. */ +.cke_rtl div.cke_dialog_ui_input_text, +.cke_rtl div.cke_dialog_ui_input_password +{ + padding-left: 2px; +} +.cke_rtl div.cke_dialog_ui_input_text { + padding-right: 1px; +} + +.cke_rtl .cke_dialog_ui_vbox_child, +.cke_rtl .cke_dialog_ui_hbox_child, +.cke_rtl .cke_dialog_ui_hbox_first, +.cke_rtl .cke_dialog_ui_hbox_last +{ + padding-right: 2px !important; +} + + +/* Disable filters for HC mode. */ +.cke_hc .cke_dialog_title, +.cke_hc .cke_dialog_footer, +.cke_hc a.cke_dialog_tab, +.cke_hc a.cke_dialog_ui_button, +.cke_hc a.cke_dialog_ui_button:hover, +.cke_hc a.cke_dialog_ui_button_ok, +.cke_hc a.cke_dialog_ui_button_ok:hover +{ + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); +} + +/* Remove border from dialog field wrappers in HC + to avoid double borders. */ +.cke_hc div.cke_dialog_ui_input_text, +.cke_hc div.cke_dialog_ui_input_password, +.cke_hc div.cke_dialog_ui_input_textarea, +.cke_hc div.cke_dialog_ui_input_select, +.cke_hc div.cke_dialog_ui_input_file +{ + border: 0; +} diff --git a/sources/skins/moono/dialog_ie7.css b/sources/skins/moono/dialog_ie7.css new file mode 100644 index 00000000..29ac5d0a --- /dev/null +++ b/sources/skins/moono/dialog_ie7.css @@ -0,0 +1,68 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +dialog_ie7.css +=============== + +This file contains styles to used by Internet Explorer 7 only. +*/ + +/* Base it on dialog_ie.css, overriding it with styles defined in this file. */ +@import url("dialog_ie.css"); + +.cke_dialog_title +{ + /* gradient fix */ + zoom: 1; +} + +.cke_dialog_footer +{ + /* IE7 ignores footer's outline. Use border instead. */ + border-top: 1px solid #bfbfbf; +} + +/* IE7 needs position static #6806 */ +.cke_dialog_footer_buttons +{ + position: static; +} + +/* IE7 crops the bottom pixels of footer buttons (#9491) */ +.cke_dialog_footer_buttons a.cke_dialog_ui_button +{ + vertical-align: top; +} + +/* IE7 margin loose on float. */ +.cke_dialog .cke_resizer_ltr +{ + padding-left: 4px; +} +.cke_dialog .cke_resizer_rtl +{ + padding-right: 4px; +} + +/* IE7 doesn't support box-sizing and therefore we cannot + have sexy inputs which go well with the layout. */ +.cke_dialog_ui_input_text, +.cke_dialog_ui_input_password, +.cke_dialog_ui_input_textarea, +.cke_dialog_ui_input_select +{ + padding: 0 !important; +} + +/* Predefined border to avoid visual size change impact. */ +.cke_dialog_ui_checkbox_input, +.cke_dialog_ui_ratio_input, +.cke_btn_reset, +.cke_btn_locked, +.cke_btn_unlocked +{ + border: 1px solid transparent !important; +} diff --git a/sources/skins/moono/dialog_ie8.css b/sources/skins/moono/dialog_ie8.css new file mode 100644 index 00000000..1a7a36cd --- /dev/null +++ b/sources/skins/moono/dialog_ie8.css @@ -0,0 +1,24 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +dialog_ie8.css +=============== + +This file contains styles to used by Internet Explorer 8 only. +*/ + +/* Base it on dialog_ie.css, overriding it with styles defined in this file. */ +@import url("dialog_ie.css"); + +/* Without the following, IE8 cannot compensate footer button thick borders + on :focus/:active. */ +a.cke_dialog_ui_button_ok:focus span, +a.cke_dialog_ui_button_ok:active span, +a.cke_dialog_ui_button_cancel:focus span, +a.cke_dialog_ui_button_cancel:active span +{ + display: block; +} diff --git a/sources/skins/moono/dialog_iequirks.css b/sources/skins/moono/dialog_iequirks.css new file mode 100644 index 00000000..9f27a99b --- /dev/null +++ b/sources/skins/moono/dialog_iequirks.css @@ -0,0 +1,21 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +dialog_ie7.css +=============== + +This file contains styles to used by Internet Explorer in +Quirks mode only. +*/ + +/* Base it on dialog_ie.css, overriding it with styles defined in this file. */ +@import url("dialog_ie.css"); + +/* [IE7-8] Filter on footer causes background artifacts when opening dialog. */ +.cke_dialog_footer +{ + filter: ""; +} diff --git a/sources/skins/moono/editor.css b/sources/skins/moono/editor.css new file mode 100644 index 00000000..9d329845 --- /dev/null +++ b/sources/skins/moono/editor.css @@ -0,0 +1,69 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +editor.css +============ + +This is he heart of the skin system. This is the file loaded by the editor to +style all elements inside its main interface. + +To make it easier to maintain, instead of including all styles here, we import +other files. +*/ + +/* "Reset" styles, necessary to avoid the editor UI being broken by external CSS. */ +@import url("reset.css"); + +/* Styles the main interface structure (holding box). */ +@import url("mainui.css"); + +/* Styles all "panels", which are the floating elements that appear when + opening toolbar combos, menu buttons, context menus, etc. */ +@import url("panel.css"); + +/* Styles the color panel displayed by the color buttons. */ +@import url("colorpanel.css"); + +/* Styles to toolbar. */ +@import url("toolbar.css"); + +/* Styles menus, which are lists of selectable items (context menu, menu button). */ +@import url("menu.css"); + +/* Styles toolbar combos. */ +@import url("richcombo.css"); + +/* Styles the elements path bar, available at the bottom of the editor UI.*/ +@import url("elementspath.css"); + +/* Contains hard-coded presets for "configurable-like" options of the UI + (e.g. display labels on specific buttons) */ +@import url("presets.css"); + +/* Styles for notifications. */ +@import url("notification.css"); + +/* Important! + To avoid showing the editor UI while its styles are still not available, the + editor creates it with visibility:hidden. Here, we restore the UI visibility. */ +.cke_chrome +{ + visibility: inherit; +} + +/* For accessibility purposes, several "voice labels" are present in the UI. + These are usually elements that show not be visible, but that are + used by screen-readers to announce other elements. Here, we hide these + , in fact. */ +.cke_voice_label +{ + display: none; +} + +legend.cke_voice_label +{ + display: none; +} diff --git a/sources/skins/moono/editor_gecko.css b/sources/skins/moono/editor_gecko.css new file mode 100644 index 00000000..af244889 --- /dev/null +++ b/sources/skins/moono/editor_gecko.css @@ -0,0 +1,25 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +editor_gecko.css +================== + +This file contains styles to used by all Gecko based browsers (Firefox) only. +*/ + +/* Base it on editor.css, overriding it with styles defined in this file. */ +@import url("editor.css"); + +.cke_bottom +{ + padding-bottom: 3px; +} + +.cke_combo_text +{ + margin-bottom: -1px; + margin-top: 1px; +} diff --git a/sources/skins/moono/editor_ie.css b/sources/skins/moono/editor_ie.css new file mode 100644 index 00000000..756098e2 --- /dev/null +++ b/sources/skins/moono/editor_ie.css @@ -0,0 +1,71 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +editor_ie.css +=============== + +This file contains styles to used by all versions of Internet Explorer only. +*/ + +/* Base it on editor.css, overriding it with styles defined in this file. */ +@import url("editor.css"); + +a.cke_button_disabled, + +/* Those two are to overwrite the gradient filter since we cannot have both of them. */ +a.cke_button_disabled:hover, +a.cke_button_disabled:focus, +a.cke_button_disabled:active +{ + filter: alpha(opacity = 30); +} + +/* PNG Alpha Transparency Fix For IE<9 */ +.cke_button_disabled .cke_button_icon +{ + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00ffffff, endColorstr=#00ffffff); +} + +.cke_button_off:hover, +.cke_button_off:focus, +.cke_button_off:active +{ + filter: alpha(opacity = 100); +} + +.cke_combo_disabled .cke_combo_inlinelabel, +.cke_combo_disabled .cke_combo_open +{ + filter: alpha(opacity = 30); +} + +.cke_toolbox_collapser +{ + border: 1px solid #a6a6a6; +} + +.cke_toolbox_collapser .cke_arrow +{ + margin-top: 1px; +} + +/* Gradient filters must be removed for HC mode to reveal the background. */ +.cke_hc .cke_top, +.cke_hc .cke_bottom, +.cke_hc .cke_combo_button, +.cke_hc a.cke_combo_button:hover, +.cke_hc a.cke_combo_button:focus, +.cke_hc .cke_toolgroup, +.cke_hc .cke_button_on, +.cke_hc a.cke_button_off:hover, +.cke_hc a.cke_button_off:focus, +.cke_hc a.cke_button_off:active, +.cke_hc .cke_toolbox_collapser, +.cke_hc .cke_toolbox_collapser:hover, +.cke_hc .cke_panel_grouptitle +{ + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); +} diff --git a/sources/skins/moono/editor_ie7.css b/sources/skins/moono/editor_ie7.css new file mode 100644 index 00000000..8d50ebc1 --- /dev/null +++ b/sources/skins/moono/editor_ie7.css @@ -0,0 +1,213 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +editor_ie7.css +=============== + +This file contains styles to used by Internet Explorer 7 only. +*/ + +/* Base it on editor_ie.css, overriding it with styles defined in this file. */ +@import url("editor_ie.css"); + +.cke_rtl .cke_toolgroup, +.cke_rtl .cke_toolbar_separator, +.cke_rtl .cke_button, +.cke_rtl .cke_button *, +.cke_rtl .cke_combo, +.cke_rtl .cke_combo *, +.cke_rtl .cke_path_item, +.cke_rtl .cke_path_item *, +.cke_rtl .cke_path_empty +{ + float: none; +} + +.cke_rtl .cke_toolgroup, +.cke_rtl .cke_toolbar_separator, +.cke_rtl .cke_combo_button, +.cke_rtl .cke_combo_button *, +.cke_rtl .cke_button, +.cke_rtl .cke_button_icon +{ + display: inline-block; + vertical-align: top; +} + +.cke_toolbox +{ + display:inline-block; + padding-bottom: 5px; + height: 100%; +} +.cke_rtl .cke_toolbox +{ + padding-bottom: 0; +} + +.cke_toolbar +{ + margin-bottom: 5px; +} +.cke_rtl .cke_toolbar +{ + margin-bottom: 0; +} + +/* IE7: toolgroup must be adapted to toolbar items height. */ +.cke_toolgroup +{ + height: 26px; +} + +/* Avoid breaking elements that use background gradient when page zoom > 1 (#9548) */ +.cke_toolgroup, +.cke_combo +{ + position: relative; +} + +a.cke_button +{ + /* IE7: buttons must not float to wrap the toolbar in a whole. */ + float:none; + + /* IE7: buttons have to be aligned to top. Otherwise, some buttons like + * source and scayt are displayed a few pixels below the base line. + */ + vertical-align:top; +} + +.cke_toolbar_separator +{ + display: inline-block; + float: none; + vertical-align: top; + background-color: #c0c0c0; +} + +.cke_toolbox_collapser .cke_arrow +{ + margin-top: 0; +} +.cke_toolbox_collapser .cke_arrow +{ + border-width:4px; +} +.cke_toolbox_collapser.cke_toolbox_collapser_min .cke_arrow +{ + border-width:3px; +} + +.cke_rtl .cke_button_arrow +{ + padding-top: 8px; + margin-right: 2px; +} + +.cke_rtl .cke_combo_inlinelabel +{ + display: table-cell; + vertical-align: middle; +} + +/* + * Editor menus are display:table-driven. IE7 doesn't support this approach, + * hence this position&float hybrid fall-back. + */ +.cke_menubutton +{ + display: block; + height: 24px; +} + +.cke_menubutton_inner +{ + display: block; + position: relative; +} + +.cke_menubutton_icon +{ + height: 16px; + width: 16px; +} + +.cke_menubutton_icon, +.cke_menubutton_label, +.cke_menuarrow +{ + display: inline-block; +} + +.cke_menubutton_label +{ + width: auto; + vertical-align: top; + line-height: 24px; + height: 24px; + margin: 0 10px 0 0; +} + +.cke_menuarrow +{ + width: 5px; + height: 6px; + padding: 0; + position: absolute; + right: 8px; + top: 10px; + + background-position: 0 0; +} + +/* Menus in RTL mode. */ +.cke_rtl .cke_menubutton_icon +{ + position: absolute; + right: 0px; + top: 0px; +} + +.cke_rtl .cke_menubutton_label +{ + float: right; + clear: both; + margin: 0 24px 0 10px; +} + +.cke_hc .cke_rtl .cke_menubutton_label +{ + margin-right: 0; +} + + +.cke_rtl .cke_menuarrow +{ + left: 8px; + right: auto; + background-position: 0 -24px; +} + +.cke_hc .cke_menuarrow +{ + top: 5px; + padding: 0 5px; +} + +.cke_rtl input.cke_dialog_ui_input_text, +.cke_rtl input.cke_dialog_ui_input_password +{ + /* Positioning is required for IE7 on text inputs not to stretch dialog horizontally. (#8971)*/ + position: relative; +} + +/* Reset vertical paddings which put editing area under bottom UI space. (#9721) */ +.cke_wysiwyg_div +{ + padding-top: 0 !important; + padding-bottom: 0 !important; +} diff --git a/sources/skins/moono/editor_ie8.css b/sources/skins/moono/editor_ie8.css new file mode 100644 index 00000000..864a5426 --- /dev/null +++ b/sources/skins/moono/editor_ie8.css @@ -0,0 +1,27 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +editor_ie8.css +=============== + +This file contains styles to used by Internet Explorer 8 only. +*/ + +/* Base it on editor_ie.css, overriding it with styles defined in this file. */ +@import url("editor_ie.css"); + +.cke_toolbox_collapser .cke_arrow +{ + border-width:4px; +} +.cke_toolbox_collapser.cke_toolbox_collapser_min .cke_arrow +{ + border-width:3px; +} +.cke_toolbox_collapser .cke_arrow +{ + margin-top: 0; +} diff --git a/sources/skins/moono/editor_iequirks.css b/sources/skins/moono/editor_iequirks.css new file mode 100644 index 00000000..b4efa0f2 --- /dev/null +++ b/sources/skins/moono/editor_iequirks.css @@ -0,0 +1,79 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +editor_iequirks.css +=============== + +This file contains styles to used by all versions of Internet Explorer +in Quirks mode only. +*/ + +/* Base it on editor_ie.css, overriding it with styles defined in this file. */ +@import url("editor_ie.css"); + +.cke_top, +.cke_contents, +.cke_bottom +{ + width: 100%; /* hasLayout = true */ +} + +.cke_button_arrow +{ + font-size: 0; /* Set minimal font size, so arrow won't be streched by the text that doesn't exist. */ +} + +/* Bring back toolbar buttons in RTL. */ + +.cke_rtl .cke_toolgroup, +.cke_rtl .cke_toolbar_separator, +.cke_rtl .cke_button, +.cke_rtl .cke_button *, +.cke_rtl .cke_combo, +.cke_rtl .cke_combo *, +.cke_rtl .cke_path_item, +.cke_rtl .cke_path_item *, +.cke_rtl .cke_path_empty +{ + float: none; +} + +.cke_rtl .cke_toolgroup, +.cke_rtl .cke_toolbar_separator, +.cke_rtl .cke_combo_button, +.cke_rtl .cke_combo_button *, +.cke_rtl .cke_button, +.cke_rtl .cke_button_icon +{ + display: inline-block; + vertical-align: top; +} + +/* Otherwise formatting toolbar breaks when editing a mixed content (#9893). */ +.cke_rtl .cke_button_icon +{ + float: none; +} + +.cke_resizer +{ + width: 10px; +} + +.cke_source +{ + white-space: normal; +} + +.cke_bottom +{ + position: static; /* Without this bottom space doesn't move when resizing editor. */ +} + +.cke_colorbox +{ + font-size: 0; /* Set minimal font size, so button won't be streched by the text that doesn't exist. */ +} diff --git a/sources/skins/moono/elementspath.css b/sources/skins/moono/elementspath.css new file mode 100644 index 00000000..ccf579cd --- /dev/null +++ b/sources/skins/moono/elementspath.css @@ -0,0 +1,76 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +elementspath.css (part of editor.css) +======================================= + +This file styles the "Elements Path", whith is the list of element names +present at the the bottom bar of the CKEditor interface. + +The following is a visual representation of its main elements: + ++-- .cke_path ---------------------------------------------------------------+ +| +-- .cke_path_item ----+ +-- .cke_path_item ----+ +-- .cke_path_empty ---+ | +| | | | | | | | +| +----------------------+ +----------------------+ +----------------------+ | ++----------------------------------------------------------------------------+ +*/ + +/* The box that holds the entire elements path. */ +.cke_path +{ + float: left; + margin: -2px 0 2px; +} + +/* Each item of the elements path. */ +a.cke_path_item, +/* Empty element available at the end of the elements path, to help us keeping + the proper box size when the elements path is empty. */ +span.cke_path_empty +{ + display: inline-block; + float: left; + padding: 3px 4px; + margin-right: 2px; + cursor: default; + text-decoration: none; + outline: 0; + border: 0; + color: #4c4c4c; + text-shadow: 0 1px 0 #fff; + font-weight: bold; + font-size: 11px; +} + +.cke_rtl .cke_path, +.cke_rtl .cke_path_item, +.cke_rtl .cke_path_empty +{ + float: right; +} + +/* The items are elements, so we define its hover states here. */ +a.cke_path_item:hover, +a.cke_path_item:focus, +a.cke_path_item:active +{ + background-color: #bfbfbf; + color: #333; + text-shadow: 0 1px 0 rgba(255,255,255,.5); + + border-radius: 2px; + + box-shadow: 0 0 4px rgba(0,0,0,.5) inset, 0 1px 0 rgba(255,255,255,.5); +} + +.cke_hc a.cke_path_item:hover, +.cke_hc a.cke_path_item:focus, +.cke_hc a.cke_path_item:active +{ + border: 2px solid; + padding: 1px 2px; +} diff --git a/sources/skins/moono/images/arrow.png b/sources/skins/moono/images/arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..d72b5f3b8808bd89996ef62f845164d459957a1b GIT binary patch literal 191 zcmeAS@N?(olHy`uVBq!ia0vp^Y(Ol>!VDz;rWf@BDXjpX5LX~=X=(ZY|9>EfAH1#& z-3wIBTN30K45T@Ev~-ix<}bSOt=nC)A1Gk%>Eal|aXtBhiAd6gyIe=gyBczF}qKQ%F0(mNbo(!7G$6ystm-3eX4!Pgg&ebxsLQ E09R-@$^ZZW literal 0 HcmV?d00001 diff --git a/sources/skins/moono/images/close.png b/sources/skins/moono/images/close.png new file mode 100644 index 0000000000000000000000000000000000000000..6a04ab5275b321ce911c4e1416df7e0184d05f51 GIT binary patch literal 468 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 literal 0 HcmV?d00001 diff --git a/sources/skins/moono/images/hidpi/lock.png b/sources/skins/moono/images/hidpi/lock.png new file mode 100644 index 0000000000000000000000000000000000000000..1b87bbb7a14ceac0e259d75bdbc03365f01e9acf GIT binary patch literal 1299 zcmcK2YfO_@7zgl|J7XgE`xuonh01Nvjr*nTTY7<(-l(*+SfqVRg|f}S7??s;78ztp zX0k1txJ4X+B9|7(76PTE8=#;ILmd?4R;B^j!~z2x+8z9CvQPWvf6jSwzMPXM&u0ue z$=S)@34$PJ3K?dB6Lqj0ZNLuSs2_nKYbQn)hj_2G^*%^j+k>{Y-&LyV_V$_fcH_;P zvmhNEa~&NIJ3AM;yO-4JC5>iTtzPNveFW0ix8C2sF)(1(YB#mot---<5UuuakfEU+ z5S?yEuiw?_cJ=x_oo)~8!^6)(42FLUhW+7T%gBgjY|L`|wq<0OglbH=L7z`GR!Dcf!945ee zh0SJhIBXy%hXcap<^bFSCwRPEK0j9|AC{QP{8=%iRI0uZF2u&_`pE|f?L5kw3~ zBx0#lf*=y96hROvP*fz9$%ApWdo)va&{wTvRRW0uB zs>XO!=Uk-==9!?5@ZAN6#Syn!*AzSWhcB_^{#}C$haF~V#>Iw??d;fVlersm!!7;Uj>SJmi_hG5 zZ#pk-HW(_ix=qMW}A|^1`E2(SBSAdU|Li>Y8G$tCm(@1~=H6 z6ag5$lC;o&ImGX(B0jJPRk>h;_7e6O1LgJZU)YLj?I~aT3umymFustv(yj67&=Dm^ z?g_V&m3kVp*&AiWs4odWC9^_H_CGgi5Nm8H&$p$wuM4(gUDumDCrs~Z2E6SyLW!%& zP!I0Lm2aTnAU?{vkv)U$mKU^^qb1M{1k-Ofb_PyW@s~9{B7WB6vn4NitEC!2g!?Sd p*{oO(6}kOo)YtW8d<-4USq^e@@n6;8y}(pJ5QRvGJMp6P{{r75P22zg literal 0 HcmV?d00001 diff --git a/sources/skins/moono/images/hidpi/refresh.png b/sources/skins/moono/images/hidpi/refresh.png new file mode 100644 index 0000000000000000000000000000000000000000..c6c2b86e6d1cd21bd352a54321ae13100b78e581 GIT binary patch literal 1842 zcmV-22hI42P)Uv6m4vp)}&37zI6HlHEH|eLsJKw zXPbapXPgxfwV)P793GstvOQgEa}Gh|da2&z%em*Az4y1i^^HedShGgFt+Ybg*R2zm zHf#`AHf|J`acy6}UbL=VJK{6My8xi_>sz;qNBj1Pmq(9^=LZjpo?W}drN+h)gLo(F zY57Aa$8Q?sYlx$E_N=(Qd-sSzytQ&3{`aO$;^mPe1Q0PRF;P00On>6Pzjo$~xU+Y! zdVkT5Oa8Y~9(Wo4?!@6YcI*(^i4zLI7b{oF^0{-Rqsep=_eolNyXXVBTXtMxUoke) z*9@?(&6~yTJ$uCSLx+Uc(jv6er-jzlr2u@oVuf73e7US&v`CJdIPnFZeG75Y&Ye?x zY=L;AVp>ZYX~ok62l|zEbWouKWHKZNVs&zLO>1aqkP8wGArqDmY*7YZsMbE%Zd`JDI20zZ;&$jQr70cBWLQeG}U zoH1h$-UTxE`%rc@1}O4fI6FtsS_QJALKc^m$w}eiKVz+l%6V>wy)=HThMz7$GJOG{NA!{^U%XfQ1zl^690Hb4^;0R&H*wi;J=7Aq=e z9U;ipL1GiYfd7$t?@yW1Ra{acXCwLxi;Lw)QBfyYa#Y3`b*|-mKbmU#l6RnJqvR zLskuu@vH>|X^R2hOr&2yVWBL9uCBTQAq64%{GvMl6L# zMz*lRQcwHPN@!#OeeFGA!XH^VIWiAS5CA3}_I4`+)YhnFC|5lMM&Os4n3}5g=R;W3 zJj~`*%(9`e^h!#-U`n~Te3l6SxnzML3JTb#z!Y4+|A0)mN@`I3o^2@q_dk_Bi@bSKqBE| zQhf~(O-i3}Sm`g}?>W1>@6OiuaX;C_dEErYEMUCZ>;){FsmhM%Z$uSNg!lm z7G?oAFRyEOm#L=TOPBgbGAQ;74Ryw|BDc|_dtxyOaeWp*bALigio~8A7AThRc3aJ; zRWB^PY{#H7AS7fp-$~Hb^loojzlRj7vxuP|WvS$Mq?Y z$mnQJtUjD4ZPk%szjg*(A%xi+6x0|UA1{+ZWg5Vw>3}j|ogut8-X$aYW3b*F9L(O} zqo_xv97?_InUJnPgwtP7!GxNQoSaIh&z#vCpOhpMAc+tHN`*3B6ZPj9Ok_k|0>J@waRKV zCf0-zx8paJR-z{xOd;km%Pc=O@NDSkmoT{Z?N_#wR$75Obe_YAED= g=g^ir!ms2106T%iXz%*nVE_OC07*qoM6N<$f=_o+lmGw# literal 0 HcmV?d00001 diff --git a/sources/skins/moono/images/lock-open.png b/sources/skins/moono/images/lock-open.png new file mode 100644 index 0000000000000000000000000000000000000000..04769877aa6d074e476f9560638d06cb158aaf1b GIT binary patch literal 349 zcmV-j0iyniP)Hc z&n^Q25XbTF&7uB8h{F<*UK$c{6bF(DX-V5yq<8{P)2DIiBX|hAR<{~TY$9o%h5mZ)AKROqT}ICn1K2gcrVZ2a4<}@gIzkdJz{m-92fBpLP=g*)2|NjHELI68EJ2y8s zkS!=EC?q7r%gd{)s|%6hQrC zQ&USzOJ85#+}zyO*4EC>&e74)$;rvp)z#hI-P6<4$H&Ll*VoU_FCZWwFfcGEC@3T( zBrGf}JUl!iA|f&}GAb%c^3n-Mpfw65L4F`_p#mOBpv4~P>Ak%>PCWYb^I+EhUqA)R zJzX3_BqUi68WtTk;Bh_3F0dqH=?3-5S9bp27<4=JnDRuWx-#Aadn}%KH8O@(F~l4f zV%6B5u|000zF>k}?(D_64^}eFG4tcw`tZRF@ly(tt&g5n<9kM zsLu=gzW%*|vFG*AU-=fqr?FkSs@QPm>HfukQ`A@#Ix8h7DKMl)rKBuVXo%cucmMZ^ rIRclgQu1>9uIx;p5dj z%lP`u&v$=J<2z5)lzAD*kbFD5EhFb!&D-m^J6co(0xLU+qr3iEV3kgyVg?12G;; z{1S&}Zs+utOA*o9X7*lg?dXjK7KQHXDU Qp#T5?07*qoM6N<$g14l=!TOwP=T3e-=BBi$4DkQN?thHqk38A4vt5G2&WJ5X+EFD9YT0*sI89FsZ>!72Q&ifkPB@Bi+&U~74=F2=EpXZ$4bKTc<{qMhnlf9`~ zkQ^Wfd;|ajfe;xP85bAFX0snWcpwxChlhv9#>S$eqLP!78yXs3ym*1f!KBV7>b5C(sIPDd$9=)eU}Lyb1T(C|L~Y+d zitR+2qa5i~Maw@~h|4LnKu1*BpT|0%7X#@Us zYG0c%Rw%8s#h!qURb_nB6CDm#w0$Lm!+p6v)M1kPS6XTpYCGb>$ zrTSFsgjs@7;L=ZNHr`*n_AE1e5P&%x;-F-v(5M@!yeHIV8(Mr6q{Znl>TQf94KE)T z7jK=}M@8CeE4Ft!n|nH5@PMzW$tdgUYdov%J=p^p227dAuVV6QXd{etFA&=)=JQj9v_;&SKsh|xZYiyHz`t} zO$T;SEw-s42kOby%|^F=j7GM_Km1qqEqlBw5OJV|i6ea(-8^72y3DWglIPp>Okf(v zPU7=mxfODI5iS2nYy$E81{Tzpng{R3ssh~8E%-KLGq=WZNxhi=qK3lRWk{V+skb`$ z_YH4Mpe6Q-$#UD#5Xp6su8QKBCf}FKvW&5|sa??W>3ww)t)A@tg{= z4o0RHDJ(?yK(NOaa@X8eyH!FJTiQ<)&aDb3%WU`M7CbZUJQ`@^2f5v$)*qu`nO=86 z2yqIGQJez9lZfJlU&Za6{O@(z&?&~7-h`Hp$_ftsz|BZ{J#11GYBDqi zshW{Rt5*`7xQm|tt~XBey@J|SM|X}7wQpgd;&cwOY|_D9hgHO%mMy{7bV~b)UQMM? zFwCH?Vl7QzTg?nUV?0JZk%dU~l8LTFi*Nk-qMK?`Ro(H69NCLUL|R=5JoD(s6R+s~??G-dIB&9( zjE0(rADgtz-YFY$_P5l6Z;HHtk~qz+Iq+yIJJXieBm+B*sPKAR)c1I;p}-|a>KH;T z{k*1vuNaxPZ$$8M&a8M!TYqb(>|{cnMOHZKWvi6%jd*BtRy(j%nE}1-R27v5q^S(n zeB&fb0Md+~9W)Bg^wzQgvGku#O{?6C*#Gp3owR!rT3qT1ITjV{8WUx+rycepJN{jH zom;~1e}pn;IWXEkc-VtF^?uPS!tlMr+@))CvZoeQy6pAyRh-8R)z99iekfQRJaQHm zZ-e&p^dozb($k!`&^wna)Yd8qr7Dr9$7(}iD-CY9mB0YT@zQH0&#TlhoZgC>A{I zAwv8OyXVfJbKzcCm`9QKJe{sg8!wMYFoleOl258#R=>&($9e~ZCnu33m~K(1C?=O} z6CH26C4J{2-zW+3YdiK${&l?^le*q1!^Y>G_MO_=kph+BFBYR%aRo5ay9QagY!jpt6z#}jj1 zdmRs6#V7hQ{S#SNsYjiu2`N<9y{v{6cZG?6u3KQ|`A9m=&`l*3wQ}*CCo*^$qZLqZ5gL)PX88H^eiH-Hy@B{Ysn8b_ literal 0 HcmV?d00001 diff --git a/sources/skins/moono/mainui.css b/sources/skins/moono/mainui.css new file mode 100644 index 00000000..73ab4df0 --- /dev/null +++ b/sources/skins/moono/mainui.css @@ -0,0 +1,214 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +mainui.css (part of editor.css) +================================= + +This file styles the basic structure of the CKEditor user interface - the box +that holds everything. + +CKEditor offers two main editing modes. The main UI blocks that compose these +modes are: + + For "Theme UI" mode, the one most generally used: + + +-- .cke_chrome ----------------------+ + |+-- .cke_inner ---------------------+| + || +-- .cke_top -------------------+ || + || | | || + || +-------------------------------+ || + || +-- .cke_contents --------------+ || + || | | || + || +-------------------------------+ || + || +-- .cke_bottom ----------------+ || + || | | || + || +-------------------------------+ || + |+-----------------------------------+| + +-------------------------------------+ + + For "Inline Editing" mode: + + +-- .cke_chrome .cke_float------------+ + |+-- .cke_inner ---------------------+| + || +-- .cke_top -------------------+ || + || | | || + || +-------------------------------+ || + |+-----------------------------------+| + +-------------------------------------+ + +Special outer level classes used in this file: + + .cke_hc: Available when the editor is rendered on "High Contrast". + +*/ + +/* The outer boundary of the interface. */ +.cke_chrome +{ + /* This is , so transform it into a block.*/ + display: block; + border: 1px solid #b6b6b6; + padding: 0; + + box-shadow: 0 0 3px rgba(0,0,0,.15); +} + +/* The inner boundary of the interface. */ +.cke_inner +{ + /* This is , so transform it into a block.*/ + display: block; + + -webkit-touch-callout: none; + + background: #fff; + padding: 0; +} + +/* Added to the outer boundary of the UI when in inline editing, + when the UI is floating. */ +.cke_float +{ + /* Make white the space between the outer and the inner borders. */ + border: none; +} + +.cke_float .cke_inner +{ + /* As we don't have blocks following top (toolbar) we suppress the padding + as the toolbar defines its own margin. */ + padding-bottom: 0; +} + +/* Make the main spaces enlarge to hold potentially floated content. */ +.cke_top, +.cke_contents, +.cke_bottom +{ + /* These are s, so transform them into blocks.*/ + display: block; + + /* Ideally this should be "auto", but it shows scrollbars in IE7. */ + overflow: hidden; +} + +.cke_top +{ + /*border: 1px solid #b2b2b2;*/ + border-bottom: 1px solid #b6b6b6; + padding: 6px 8px 2px; + + /* Allow breaking toolbars when in a narrow editor. (#9947) */ + white-space: normal; + + box-shadow: 0 1px 0 #fff inset; + + background: #cfd1cf; + background-image: linear-gradient(to bottom, #f5f5f5, #cfd1cf); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#f5f5f5', endColorstr='#cfd1cf'); +} + +.cke_float .cke_top +{ + border: 1px solid #b6b6b6; + border-bottom-color: #999; +} + +.cke_bottom +{ + padding: 6px 8px 2px; + position: relative; + + border-top: 1px solid #bfbfbf; + + box-shadow: 0 1px 0 #fff inset; + + background: #cfd1cf; + background-image: linear-gradient(to bottom, #ebebeb, #cfd1cf); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#ebebeb', endColorstr='#cfd1cf'); +} + +/* On iOS we need to manually enable scrolling in the contents block. (#9945) */ +.cke_browser_ios .cke_contents +{ + overflow-y: auto; + -webkit-overflow-scrolling: touch; +} + +/* The resizer is the small UI element that is rendered at the bottom right + part of the editor. It makes is possible to resize the editor UI. */ +.cke_resizer +{ + /* To avoid using images for the resizer, we create a small triangle, + using some CSS magic. */ + width: 0; + height: 0; + overflow: hidden; + width: 0; + height: 0; + overflow: hidden; + border-width: 10px 10px 0 0; + border-color: transparent #666 transparent transparent; + border-style: dashed solid dashed dashed; + + font-size: 0; + vertical-align: bottom; + + margin-top: 6px; + + /* A margin in case of no other element in the same container + to keep a distance to the bottom edge. */ + margin-bottom: 2px; + + box-shadow: 0 1px 0 rgba(255,255,255,.3); +} + +.cke_hc .cke_resizer +{ + font-size: 15px; + width: auto; + height: auto; + border-width: 0; +} + +.cke_resizer_ltr +{ + cursor: se-resize; + + float: right; + margin-right: -4px; +} + +/* This class is added in RTL mode. This is a special case for the resizer + (usually the .cke_rtl class is used), because it may not necessarily be in + RTL mode if the main UI is RTL. It depends instead on the context where the + editor is inserted on. */ +.cke_resizer_rtl +{ + border-width: 10px 0 0 10px; + border-color: transparent transparent transparent #A5A5A5; + border-style: dashed dashed dashed solid; + + cursor: sw-resize; + + float: left; + margin-left: -4px; + right: auto; +} + +/* The editing area (where users type) can be rendered as an editable
    + element (e.g. divarea plugin). In that case, this is the class applied to + that element. */ +.cke_wysiwyg_div +{ + display: block; + height: 100%; + overflow: auto; + padding: 0 8px; + outline-style: none; + + box-sizing: border-box; +} diff --git a/sources/skins/moono/menu.css b/sources/skins/moono/menu.css new file mode 100644 index 00000000..bbaa2136 --- /dev/null +++ b/sources/skins/moono/menu.css @@ -0,0 +1,201 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +menu.css (part of editor.css) +=============================== + +This file styles menus used in the editor UI. These menus are the list of +options available inside some "floating panels", like menu buttons of the +toolbar or the context menu. + +Note that the menu itself doesn't include the floating element that holds it. +That element is styles in the panel.css file. + +The following is a visual representation of the main elements of a menu: + ++-- .cke_menu -----------------+ +| +-- .cke_menuitem --------+ | +| | +-- .cke_menubutton ---+ | | +| | | | | | +| | +----------------------+ | | +| +--------------------------+ | +| +-- .cke_menuseparator ----+ | +| ... | ++------------------------------+ + +This is the .cke_menubutton structure: +(Note that the menu button icon shares with toolbar button the common class .cke_button_icon to achieve the same outlook.) + ++-- .cke_menubutton -------------------------------------------------------------------------+ +| +-- .cke_menubutton_inner ---------------------------------------------------------------+ | +| | +-- .cke_menubutton_icon ---+ +-- .cke_menubutton_label --+ +-- .cke_cke_menuarrow --+ | | +| | | +-- .cke_button_icon ---+ | | | | | | | +| | | | | | | | | | | | +| | | +-----------------------+ | | | | | | | +| | +---------------------------+ +---------------------------+ +------------------------+ | | +| +----------------------------------------------------------------------------------------+ | ++--------------------------------------------------------------------------------------------+ + +Special outer level classes used in this file: + + .cke_hc: Available when the editor is rendered on "High Contrast". + .cke_rtl: Available when the editor UI is on RTL. +*/ + +/* .cke_menuitem is the element that holds the entire structure of each of the + menu items. */ + +.cke_menubutton +{ + /* The "button" inside a menu item is a element. + Transforms it into a block. */ + display: block; +} + +.cke_menuitem span +{ + /* Avoid the text selection cursor inside menu items. */ + cursor: default; +} + +.cke_menubutton:hover, +.cke_menubutton:focus, +.cke_menubutton:active +{ + background-color: #D3D3D3; + display: block; +} + +.cke_hc .cke_menubutton +{ + padding: 2px; +} + +.cke_hc .cke_menubutton:hover, +.cke_hc .cke_menubutton:focus, +.cke_hc .cke_menubutton:active +{ + border: 2px solid; + padding: 0; +} + +.cke_menubutton_inner { + display: table-row; +} + +.cke_menubutton_icon, +.cke_menubutton_label, +.cke_menuarrow { + display: table-cell; +} + +/* The menu item icon. */ +.cke_menubutton_icon +{ + background-color: #D7D8D7; + opacity: 0.70; /* Safari, Opera and Mozilla */ + filter: alpha(opacity=70); /* IE */ + padding: 4px; +} + +.cke_hc .cke_menubutton_icon +{ + height: 16px; + width: 0; + padding: 4px 0; +} + +.cke_menubutton:hover .cke_menubutton_icon, +.cke_menubutton:focus .cke_menubutton_icon, +.cke_menubutton:active .cke_menubutton_icon +{ + background-color: #D0D2D0; +} + +.cke_menubutton_disabled:hover .cke_menubutton_icon, +.cke_menubutton_disabled:focus .cke_menubutton_icon, +.cke_menubutton_disabled:active .cke_menubutton_icon +{ + /* The icon will get opacity as well when hovered. */ + opacity: 0.3; + filter: alpha(opacity=30); +} + +/* The textual part of each menu item. */ +.cke_menubutton_label +{ + padding: 0 5px; + background-color: transparent; + width: 100%; + vertical-align: middle; +} + +.cke_menubutton_disabled .cke_menubutton_label +{ + /* Greyed label text indicates a disabled menu item. */ + opacity: 0.3; + filter: alpha(opacity=30); +} + +.cke_menubutton_on +{ + border: 1px solid #dedede; + background-color: #f2f2f2; + + box-shadow: 0 0 2px rgba(0,0,0,.1) inset; +} + +.cke_menubutton_on .cke_menubutton_icon +{ + padding-right: 3px; +} + +.cke_menubutton:hover, +.cke_menubutton:focus, +.cke_menubutton:active +{ + background-color: #EFF0EF; +} + +.cke_panel_frame .cke_menubutton_label +{ + display: none; +} + +/* The separator used to separate menu item groups. */ +.cke_menuseparator +{ + background-color: #D3D3D3; + height: 1px; + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +/* The small arrow shown for item with sub-menus. */ +.cke_menuarrow +{ + background-image: url(images/arrow.png); + background-position: 0 10px; + background-repeat: no-repeat; + padding: 0 5px; +} + +.cke_rtl .cke_menuarrow +{ + background-position: 5px -13px; + background-repeat: no-repeat; +} + +.cke_menuarrow span +{ + display: none; +} + +.cke_hc .cke_menuarrow span +{ + vertical-align: middle; + display: inline; +} diff --git a/sources/skins/moono/notification.css b/sources/skins/moono/notification.css new file mode 100644 index 00000000..c6292d3a --- /dev/null +++ b/sources/skins/moono/notification.css @@ -0,0 +1,168 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/** + * Progress notification structure: + * + * +---div.cke_notification cke_notification_info--------------------------+ + * | | + * | +---div.cke_notification_progress-----------------------------------+ | + * | | | | + * | +-------------------------------------------------------------------+ | + * | | + * | +---p.cke_notification_message--------------------------------------+ | + * | | Foo | | + * | +-------------------------------------------------------------------+ | + * | | + * | +---a.cke_notification_close----------------------------------------+ | + * | | +---span.cke_label----------------------------------------------+ | | + * | | | X | | | + * | | +---------------------------------------------------------------+ | | + * | +-------------------------------------------------------------------+ | + * | | + * +-----------------------------------------------------------------------+ + * + * + * Warning notification structure: + * + * +---div.cke_notification cke_notification_warning-----------------------+ + * | | + * | +---p.cke_notification_message--------------------------------------+ | + * | | Foo | | + * | +-------------------------------------------------------------------+ | + * | | + * | +---a.cke_notification_close----------------------------------------+ | + * | | +---span.cke_label----------------------------------------------+ | | + * | | | X | | | + * | | +---------------------------------------------------------------+ | | + * | +-------------------------------------------------------------------+ | + * | | + * +-----------------------------------------------------------------------+ + * + * Success and info notifications have the same structure as warning, but use + * `cke_notification_success` and `cke_notification_info` instead of `cke_notification_warning`. + */ +.cke_notifications_area +{ + /* Prevent notification margin capture clicking. */ + pointer-events: none; +} +.cke_notification +{ + pointer-events: auto; + position: relative; + margin: 10px; + width: 300px; + color: white; + border-radius: 3px; + text-align: center; + opacity: 0.95; + filter: alpha(opacity = 95); + box-shadow: 2px 2px 3px 0px rgba(50, 50, 50, 0.3); + + -webkit-animation: fadeIn 0.7s; + animation: fadeIn 0.7s; +} + +.cke_notification_message a +{ + color: #12306F; +} + +@-webkit-keyframes fadeIn +{ + from { opacity: 0.4; } + to { opacity: 0.95; } +} + +@keyframes fadeIn +{ + from { opacity: 0.4; } + to { opacity: 0.95; } +} + +.cke_notification_success +{ + background: #72B572; + border: 1px solid #63A563; +} + +.cke_notification_warning +{ + background: #C83939; + border: 1px solid #902B2B; +} + +.cke_notification_info +{ + background: #2E9AD0; + border: 1px solid #0F74A8; +} + +.cke_notification_info span.cke_notification_progress +{ + background-color: #0F74A8; + display: block; + padding: 0; + margin: 0; + height: 100%; + overflow: hidden; + position: absolute; + z-index: 1; +} + +.cke_notification_message +{ + position: relative; + margin: 4px 23px 3px; + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; + line-height: 18px; + z-index: 4; + text-overflow: ellipsis; + overflow: hidden; +} + +.cke_notification_close +{ + background-image: url(images/close.png); + background-repeat: no-repeat; + background-position: 50%; + position: absolute; + cursor: pointer; + text-align: center; + height: 20px; + width: 20px; + top: 1px; + right: 1px; + padding: 0; + margin: 0; + z-index: 5; + opacity: 0.6; + filter: alpha(opacity = 60); +} + +.cke_notification_close:hover +{ + opacity: 1; + filter: alpha(opacity = 100); +} + +.cke_notification_close span +{ + display: none; +} + +.cke_notification_warning a.cke_notification_close +{ + opacity: 0.8; + filter: alpha(opacity = 80); +} + +.cke_notification_warning a.cke_notification_close:hover +{ + opacity: 1; + filter: alpha(opacity = 100); +} diff --git a/sources/skins/moono/panel.css b/sources/skins/moono/panel.css new file mode 100644 index 00000000..8743d198 --- /dev/null +++ b/sources/skins/moono/panel.css @@ -0,0 +1,237 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +panel.css (part of editor.css) +================================ + +Panels are floating elements that can hold different types of contents. +The following are common uses of it: + + - The element that toolbar combos display when opening them. + - The context menu. + - The list of items displayed by "menu buttons" (e.g. scayt). + - The panel shown when opening "panel buttons" (e.g. color buttons). + +Panel contents are wrapped into an iframe, so it is possible to have additional +CSS loaded inside them (e.g. to have more accurate preview on the styles combo). + +The following is a visual representation of the outer elements of a panel: + ++-- .cke_panel(*) ---------------------+ +| +-- IFRAME.cke_panel_frame --------+ | +| | +-- HTML.cke_panel_container --+ | | +| | | +-- .cke_panel_block ------+ | | | +| | | | | | | | +| | | | (contents here) | | | | +| | | | | | | | +| | | +--------------------------+ | | | +| | +------------------------------+ | | +| +----------------------------------+ | ++--------------------------------------+ + +(*) All kinds of panel share the above structure. Menu panels adds the + .cke_menu_panel class to the outer element, while toolbar combos add the + .cke_combopanel class. + +This file also defines styles for panel lists (used by combos). For menu-like +panel contents and color panels check menu.css and colorpanel.css. +*/ + +/* The box that holds an IFRAME. It's inserted into a host document and positioned + absolutely by the application. It floats above the host document/editor. */ +.cke_panel +{ + /* Restore the loading hide */ + visibility: visible; + width: 120px; + height: 100px; + overflow: hidden; + + background-color: #fff; + border: 1px solid #b6b6b6; + border-bottom-color: #999; + + border-radius: 3px; + + box-shadow: 0 0 3px rgba(0,0,0,.15); +} + +/* This class represents panels which are used as context menus. */ +.cke_menu_panel +{ + padding: 0; + margin: 0; +} + +/* This class represents panels which are used by rich combos. */ +.cke_combopanel +{ + width: 150px; + height: 170px; +} + +/* The IFRAME the panel is wrapped into. */ +.cke_panel_frame +{ + width: 100%; + height: 100%; + font-size: 12px; + + overflow: auto; + overflow-x: hidden; +} + +/* The HTML document which is a direct descendant of the IFRAME */ +.cke_panel_container +{ + overflow-y: auto; + overflow-x: hidden; +} + +/* +Here we start the definition of panel lists (e.g. combo panels). The following +is its visual representation: + ++-- .cke_panel_block -----------------+ +| +-- .cke_panel_grouptitle --------+ | +| | | | +| +---------------------------------+ | +| +-- .cke_panel_list --------------+ | +| | +-- .cke_panel_listItem ------+ | | +| | | +-- a --------------------+ | | | +| | | | +-- span -------------+ | | | | +| | | | | | | | | | +| | | | +---------------------+ | | | | +| | | +-------------------------+ | | | +| | +-----------------------------+ | | +| | +-- .cke_panel_listItem ------+ | | +| | | +-- a --------------------+ | | | +| | | | +-- span -------------+ | | | | +| | | | | | | | | | +| | | | +---------------------+ | | | | +| | | +-------------------------+ | | | +| | +-----------------------------+ | | +| | ... | | +| +---------------------------------+ | ++-------------------------------------+ +*/ + + +/* The list of panel items. */ +.cke_panel_list +{ + list-style-type: none; + margin: 3px; + padding: 0; + white-space: nowrap; +} + +/* The item of .cke_panel_list */ +.cke_panel_listItem +{ + margin: 0; + padding-bottom: 1px; +} + +/* The child of .cke_panel_listItem. These elements contain spans which are + to display a real name of the property which is visible for an end-user. */ +.cke_panel_listItem a +{ + padding: 3px 4px; + display: block; + border: 1px solid #fff; + color: inherit !important; + text-decoration: none; + overflow: hidden; + text-overflow: ellipsis; + + border-radius: 2px; +} + +/* IE6 */ +* html .cke_panel_listItem a +{ + width : 100%; + + /* IE is not able to inherit the color, so we must force it to black */ + color: #000; +} + +/* IE7 */ +*:first-child+html .cke_panel_listItem a +{ + /* IE is not able to inherit the color, so we must force it to black */ + color: #000; +} + +.cke_panel_listItem.cke_selected a +{ + border: 1px solid #dedede; + background-color: #f2f2f2; + + box-shadow: 0 0 2px rgba(0,0,0,.1) inset; +} + +.cke_panel_listItem a:hover, +.cke_panel_listItem a:focus, +.cke_panel_listItem a:active +{ + border-color: #dedede; + background-color: #f2f2f2; + + box-shadow: 0 0 2px rgba(0,0,0,.1) inset; +} + +.cke_hc .cke_panel_listItem a +{ + border-style: none; +} + +.cke_hc .cke_panel_listItem a:hover, +.cke_hc .cke_panel_listItem a:focus, +.cke_hc .cke_panel_listItem a:active +{ + border: 2px solid; + padding: 1px 2px; +} + +/* The title of the entire panel which is visible on top of the list. */ +.cke_panel_grouptitle +{ + cursor: default; + font-size: 11px; + font-weight: bold; + white-space: nowrap; + margin: 0; + padding: 4px 6px; + + color: #474747; + text-shadow: 0 1px 0 rgba(255,255,255,.75); + border-bottom: 1px solid #b6b6b6; + + border-radius: 2px 2px 0 0; + + box-shadow: 0 1px 0 #fff inset; + + background: #cfd1cf; + background-image: linear-gradient(to bottom, #f5f5f5, #cfd1cf); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#f5f5f5', endColorstr='#cfd1cf'); +} + +/* The following styles set defaults of the elements used by the Paragraph + Format panel. */ +.cke_panel_listItem p, +.cke_panel_listItem h1, +.cke_panel_listItem h2, +.cke_panel_listItem h3, +.cke_panel_listItem h4, +.cke_panel_listItem h5, +.cke_panel_listItem h6, +.cke_panel_listItem pre +{ + margin-top: 0px; + margin-bottom: 0px; +} diff --git a/sources/skins/moono/presets.css b/sources/skins/moono/presets.css new file mode 100644 index 00000000..a4e554b9 --- /dev/null +++ b/sources/skins/moono/presets.css @@ -0,0 +1,41 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* "Source" button label */ +.cke_button__source_label, +.cke_button__sourcedialog_label +{ + display: inline; +} + +/* "Font Size" combo width */ +.cke_combo__fontsize .cke_combo_text +{ + width: 30px; +} + +/* "Font Size" panel size */ +.cke_combopanel__fontsize +{ + width: 120px; +} + +/* Editable regions */ +textarea.cke_source +{ + font-family: 'Courier New', Monospace; + font-size: small; + background-color: #fff; + white-space: pre-wrap; + border: none; + padding: 0; + margin: 0; + display: block; +} + +.cke_wysiwyg_frame, .cke_wysiwyg_div +{ + background-color: #fff; +} diff --git a/sources/skins/moono/readme.md b/sources/skins/moono/readme.md new file mode 100644 index 00000000..1d88da52 --- /dev/null +++ b/sources/skins/moono/readme.md @@ -0,0 +1,49 @@ +"Moono" Skin +==================== + +This skin has been chosen for the **default skin** of CKEditor 4.x, elected from the CKEditor +[skin contest](http://ckeditor.com/blog/new_ckeditor_4_skin) and further shaped by +the CKEditor team. "Moono" is maintained by the core developers. + +For more information about skins, please check the [CKEditor Skin SDK](http://docs.cksource.com/CKEditor_4.x/Skin_SDK) +documentation. + +Features +------------------- +"Moono" is a monochromatic skin, which offers a modern look coupled with gradients and transparency. +It comes with the following features: + +- Chameleon feature with brightness, +- high-contrast compatibility, +- graphics source provided in SVG. + +Directory Structure +------------------- + +CSS parts: +- **editor.css**: the main CSS file. It's simply loading several other files, for easier maintenance, +- **mainui.css**: the file contains styles of entire editor outline structures, +- **toolbar.css**: the file contains styles of the editor toolbar space (top), +- **richcombo.css**: the file contains styles of the rich combo ui elements on toolbar, +- **panel.css**: the file contains styles of the rich combo drop-down, it's not loaded +until the first panel open up, +- **elementspath.css**: the file contains styles of the editor elements path bar (bottom), +- **menu.css**: the file contains styles of all editor menus including context menu and button drop-down, +it's not loaded until the first menu open up, +- **dialog.css**: the CSS files for the dialog UI, it's not loaded until the first dialog open, +- **reset.css**: the file defines the basis of style resets among all editor UI spaces, +- **preset.css**: the file defines the default styles of some UI elements reflecting the skin preference, +- **editor_XYZ.css** and **dialog_XYZ.css**: browser specific CSS hacks. + +Other parts: +- **skin.js**: the only JavaScript part of the skin that registers the skin, its browser specific files and its icons and defines the Chameleon feature, +- **icons/**: contains all skin defined icons, +- **images/**: contains a fill general used images, +- **dev/**: contains SVG source of the skin icons. + +License +------- + +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + +For licensing, see LICENSE.md or [http://ckeditor.com/license](http://ckeditor.com/license) diff --git a/sources/skins/moono/reset.css b/sources/skins/moono/reset.css new file mode 100644 index 00000000..32ddf98e --- /dev/null +++ b/sources/skins/moono/reset.css @@ -0,0 +1,115 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +reset.css (part of editor.css) +================================ + +This file holds the "reset" requirements of CKEditor, as well as define the +default interface styles. + +CKEditor includes two main "reset" class names in the DOM structure created for +editors: + + * .cke_reset: Intended to reset a specific element, but not its children. + Because of this, only styles that will not be inherited can be defined. + + * .cke_reset_all: Intended to reset not only the element holding it, but + also its child elements. + +To understand why "reset" is needed, check the CKEditor Skin SDK: +http://docs.cksource.com/CKEditor_4.x/Skin_SDK/Reset +*/ + +/* Reset for single elements, not their children. */ +.cke_reset +{ + /* Do not include inheritable rules here. */ + margin: 0; + padding: 0; + border: 0; + background: transparent; + text-decoration: none; + width: auto; + height: auto; + vertical-align: baseline; + box-sizing: content-box; + position: static; + transition: none; +} + +/* Reset for elements and their children. */ +.cke_reset_all, .cke_reset_all *, +.cke_reset_all a, .cke_reset_all textarea +{ + /* The following must be identical to .cke_reset. */ + margin: 0; + padding: 0; + border: 0; + background: transparent; + text-decoration: none; + width: auto; + height: auto; + vertical-align: baseline; + box-sizing: content-box; + position: static; + transition: none; + + /* These are rule inherited by all children elements. */ + border-collapse: collapse; + font: normal normal normal 12px Arial,Helvetica,Tahoma,Verdana,Sans-Serif; + color: #000; + text-align: left; + white-space: nowrap; + cursor: auto; + float: none; +} + +.cke_reset_all .cke_rtl * +{ + text-align: right; +} + +/* Defaults for some elements. */ + +.cke_reset_all iframe +{ + vertical-align: inherit; /** For IE */ +} + +.cke_reset_all textarea +{ + white-space: pre-wrap; +} + +.cke_reset_all textarea, +.cke_reset_all input[type="text"], +.cke_reset_all input[type="password"] +{ + cursor: text; +} + +.cke_reset_all textarea[disabled], +.cke_reset_all input[type="text"][disabled], +.cke_reset_all input[type="password"][disabled] +{ + cursor: default; +} + +.cke_reset_all fieldset +{ + padding: 10px; + border: 2px groove #E0DFE3; +} + +.cke_reset_all select +{ + box-sizing: border-box; +} + +.cke_reset_all table +{ + table-layout: auto; +} diff --git a/sources/skins/moono/richcombo.css b/sources/skins/moono/richcombo.css new file mode 100644 index 00000000..5887f6cc --- /dev/null +++ b/sources/skins/moono/richcombo.css @@ -0,0 +1,210 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +richcombo.css (part of editor.css) +================================= + +This file holds the style set of the "Rich Combo" widget which is commonly used +in the toolbar. It doesn't, however, styles the panel that is displayed when +clicking on the combo, which is instead styled by panel.css. + +The visual representation of a rich combo widget looks as follows: + ++-- .cke_combo----------------------------------------------------------------------+ +| +-- .cke_combo_label --+ +-- .cke_combo_button ---------------------------------+ | +| | | | +-- .cke_combo_text --+ +-- .cke_combo_open -------+ | | +| | | | | | | +-- .cke_combo_arrow --+ | | | +| | | | | | | | | | | | +| | | | | | | +----------------------+ | | | +| | | | +---------------------+ +--------------------------+ | | +| +----------------------+ +------------------------------------------------------+ | ++-----------------------------------------------------------------------------------+ +*/ + +/* The box that hold the entire combo widget */ +.cke_combo +{ + display: inline-block; + float: left; +} + +.cke_rtl .cke_combo +{ + float: right; +} + +.cke_hc .cke_combo +{ + margin-top: -2px; +} + +/* The label of the combo widget. It is invisible by default, yet + it's important for semantics and accessibility. */ +.cke_combo_label +{ + display: none; + float: left; + line-height: 26px; + vertical-align: top; + margin-right: 5px; +} + +.cke_rtl .cke_combo_label +{ + float: right; + margin-left: 5px; + margin-right: 0; +} + +/* The container for combo text and arrow. */ +a.cke_combo_button +{ + cursor: default; + display: inline-block; + float: left; + margin: 0 6px 5px 0; + + border: 1px solid #a6a6a6; + border-bottom-color: #979797; + + border-radius: 3px; + + box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 0 2px rgba(255,255,255,.15) inset, 0 1px 0 rgba(255,255,255,.15) inset; + + background: #e4e4e4; + background-image: linear-gradient(to bottom, #ffffff, #e4e4e4); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#ffffff', endColorstr='#e4e4e4'); +} + +/* Different states of the container. */ +.cke_combo_off a.cke_combo_button:hover, +.cke_combo_off a.cke_combo_button:focus +{ + background: #ccc; + background-image: linear-gradient(to bottom, #f2f2f2, #ccc); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#f2f2f2', endColorstr='#cccccc'); + + outline: none; +} + +.cke_combo_off a.cke_combo_button:active, +.cke_combo_on a.cke_combo_button +{ + border: 1px solid #777; + + box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 1px 5px rgba(0,0,0,.6) inset; + + background: #b5b5b5; + background-image: linear-gradient(to bottom, #aaa, #cacaca); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#aaaaaa', endColorstr='#cacaca'); +} + +.cke_combo_on a.cke_combo_button:hover, +.cke_combo_on a.cke_combo_button:focus, +.cke_combo_on a.cke_combo_button:active +{ + box-shadow: 0 1px 6px rgba(0,0,0,.7) inset, 0 1px 0 rgba(0,0,0,.2); +} + +.cke_rtl .cke_combo_button +{ + float: right; + margin-left: 5px; + margin-right: 0; +} + +.cke_hc a.cke_combo_button +{ + padding: 3px; +} + +.cke_hc .cke_combo_on a.cke_combo_button, +.cke_hc .cke_combo_off a.cke_combo_button:hover, +.cke_hc .cke_combo_off a.cke_combo_button:focus, +.cke_hc .cke_combo_off a.cke_combo_button:active +{ + border-width: 3px; + padding: 1px; +} + +/* The label that shows the current value of the rich combo. + By default, it holds the name of the property. + See: .cke_combo_inlinelabel */ +.cke_combo_text +{ + line-height: 26px; + padding-left: 10px; + text-overflow: ellipsis; + overflow: hidden; + float: left; + cursor: default; + color: #474747; + text-shadow: 0 1px 0 rgba(255,255,255,.5); + width: 60px; +} + +.cke_rtl .cke_combo_text +{ + float: right; + text-align: right; + padding-left: 0; + padding-right: 10px; +} + +.cke_hc .cke_combo_text +{ + line-height: 18px; + font-size: 12px; +} + +/* The handler which opens the panel of rich combo properties. + It holds an arrow as a visual indicator. */ +.cke_combo_open +{ + cursor: default; + display: inline-block; + font-size: 0; + height: 19px; + line-height: 17px; + margin: 1px 7px 1px; + width: 5px; +} + +.cke_hc .cke_combo_open +{ + height: 12px; +} + +/* The arrow which is displayed inside of the .cke_combo_open handler. */ +.cke_combo_arrow +{ + cursor: default; + margin: 11px 0 0; + float: left; + + /* Pure CSS Arrow */ + height: 0; + width: 0; + font-size: 0; + border-left: 3px solid transparent; + border-right: 3px solid transparent; + border-top: 3px solid #474747; +} + +.cke_hc .cke_combo_arrow +{ + font-size: 10px; + width: auto; + border: 0; + margin-top: 3px; +} + +/* Disabled combo button styles. */ +.cke_combo_disabled .cke_combo_inlinelabel, +.cke_combo_disabled .cke_combo_open +{ + opacity: 0.3; +} diff --git a/sources/skins/moono/skin.js b/sources/skins/moono/skin.js new file mode 100644 index 00000000..81a4efd4 --- /dev/null +++ b/sources/skins/moono/skin.js @@ -0,0 +1,319 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/* +skin.js +========= + +In this file we interact with the CKEditor JavaScript API to register the skin +and enable additional skin related features. + +The level of complexity of this file depends on the features available in the +skin. There is only one mandatory line of code to be included here, which is +setting CKEDITOR.skin.name. All the rest is optional, but recommended to be +implemented as they make higher quality skins. + +For this skin, the following tasks are achieved in this file: + + 1. Register the skin. + 2. Register browser specific skin files. + 3. Define the "Chameleon" feature. + 4. Register the skin icons, to have them used on the development version of + the skin. +*/ + +// 1. Register the skin +// ---------------------- +// The CKEDITOR.skin.name property must be set to the skin name. This is a +// lower-cased name, which must match the skin folder name as well as the value +// used on config.skin to tell the editor to use the skin. +// +// This is the only mandatory property to be defined in this file. +CKEDITOR.skin.name = 'moono'; + +// 2. Register browser specific skin files +// ----------------------------------------- +// (http://docs.cksource.com/CKEditor_4.x/Skin_SDK/Browser_Hacks) +// +// To help implementing browser specific "hacks" to the skin files and have it +// easy to maintain, it is possible to have dedicated files for such browsers, +// for both the main skin CSS files: editor.css and dialog.css. +// +// The browser files must be named after the main file names, appended by an +// underscore and the browser name (e.g. editor_ie.css, dialog_ie8.css). +// +// The accepted browser names must match the CKEDITOR.env properties. The most +// common names are: ie, webkit and gecko. Check the documentation for the complete +// list: +// http://docs.ckeditor.com/#!/api/CKEDITOR.env +// +// Internet explorer is an expection and the browser version is also accepted +// (ie7, ie8, ie9, ie10), as well as a special name for IE in Quirks mode (iequirks). +// +// The available browser specific files must be set separately for editor.css +// and dialog.css. +CKEDITOR.skin.ua_editor = 'ie,iequirks,ie7,ie8,gecko'; +CKEDITOR.skin.ua_dialog = 'ie,iequirks,ie7,ie8'; + +// 3. Define the "Chameleon" feature +// ----------------------------------- +// (http://docs.cksource.com/CKEditor_4.x/Skin_SDK/Chameleon) +// +// "Chameleon" is a unique feature available in CKEditor. It makes it possible +// to end users to specify which color to use as the basis for the editor UI. +// It is enough to set config.uiColor to any color value and voila, the UI is +// colored. +// +// The only detail here is that the skin itself must be compatible with the +// Chameleon feature. That's because the skin CSS files are the responsible to +// apply colors in the UI and each skin do that in different way and on +// different places. +// +// Implementing the Chameleon feature requires a bit of JavaScript programming. +// The CKEDITOR.skin.chameleon function must be defined. It must return the CSS +// "template" to be used to change the color of a specific CKEditor instance +// available in the page. When a color change is required, this template is +// appended to the page holding the editor, overriding styles defined in the +// skin files. +// +// The "$color" placeholder can be used in the returned string. It'll be +// replaced with the desired color. +CKEDITOR.skin.chameleon = ( function() { + // This method can be used to adjust colour brightness of various element. + // Colours are accepted in 7-byte hex format, for example: #00ff00. + // Brightness ratio must be a float number within [-1, 1], + // where -1 is black, 1 is white and 0 is the original colour. + var colorBrightness = ( function() { + function channelBrightness( channel, ratio ) { + var brighten = ratio < 0 ? ( + 0 | channel * ( 1 + ratio ) + ) : ( + 0 | channel + ( 255 - channel ) * ratio + ); + + return ( '0' + brighten.toString( 16 ) ).slice( -2 ); + } + + return function( hexColor, ratio ) { + var channels = hexColor.match( /[^#]./g ); + + for ( var i = 0 ; i < 3 ; i++ ) + channels[ i ] = channelBrightness( parseInt( channels[ i ], 16 ), ratio ); + + return '#' + channels.join( '' ); + }; + } )(), + + // Use this function just to avoid having to repeat all these rules on + // several places of our template. + verticalGradient = ( function() { + var template = new CKEDITOR.template( 'background:#{to};' + + 'background-image:linear-gradient(to bottom,{from},{to});' + + 'filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr=\'{from}\',endColorstr=\'{to}\');' ); + + return function( from, to ) { + return template.output( { from: from, to: to } ); + }; + } )(), + + // Style templates for various user interface parts: + // * Default editor template. + // * Default panel template. + templates = { + editor: new CKEDITOR.template( + '{id}.cke_chrome [border-color:{defaultBorder};] ' + + '{id} .cke_top [ ' + + '{defaultGradient}' + + 'border-bottom-color:{defaultBorder};' + + '] ' + + '{id} .cke_bottom [' + + '{defaultGradient}' + + 'border-top-color:{defaultBorder};' + + '] ' + + '{id} .cke_resizer [border-right-color:{ckeResizer}] ' + + + // Dialogs. + '{id} .cke_dialog_title [' + + '{defaultGradient}' + + 'border-bottom-color:{defaultBorder};' + + '] ' + + '{id} .cke_dialog_footer [' + + '{defaultGradient}' + + 'outline-color:{defaultBorder};' + + 'border-top-color:{defaultBorder};' + // IE7 doesn't use outline. + '] ' + + '{id} .cke_dialog_tab [' + + '{lightGradient}' + + 'border-color:{defaultBorder};' + + '] ' + + '{id} .cke_dialog_tab:hover [' + + '{mediumGradient}' + + '] ' + + '{id} .cke_dialog_contents [' + + 'border-top-color:{defaultBorder};' + + '] ' + + '{id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [' + + 'background:{dialogTabSelected};' + + 'border-bottom-color:{dialogTabSelectedBorder};' + + '] ' + + '{id} .cke_dialog_body [' + + 'background:{dialogBody};' + + 'border-color:{defaultBorder};' + + '] ' + + + // Toolbars, buttons. + '{id} .cke_toolgroup [' + + '{lightGradient}' + + 'border-color:{defaultBorder};' + + '] ' + + '{id} a.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:active [' + + '{mediumGradient}' + + '] ' + + '{id} .cke_button_on [' + + '{ckeButtonOn}' + + '] ' + + '{id} .cke_toolbar_separator [' + + 'background-color: {ckeToolbarSeparator};' + + '] ' + + + // Combo buttons. + '{id} .cke_combo_button [' + + 'border-color:{defaultBorder};' + + '{lightGradient}' + + '] ' + + '{id} a.cke_combo_button:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_button [' + + 'border-color:{defaultBorder};' + + '{mediumGradient}' + + '] ' + + + // Elementspath. + '{id} .cke_path_item [' + + 'color:{elementsPathColor};' + + '] ' + + '{id} a.cke_path_item:hover, {id} a.cke_path_item:focus, {id} a.cke_path_item:active [' + + 'background-color:{elementsPathBg};' + + '] ' + + + '{id}.cke_panel [' + + 'border-color:{defaultBorder};' + + '] ' + ), + panel: new CKEDITOR.template( + // Panel drop-downs. + '.cke_panel_grouptitle [' + + '{lightGradient}' + + 'border-color:{defaultBorder};' + + '] ' + + + // Context menus. + '.cke_menubutton_icon [' + + 'background-color:{menubuttonIcon};' + + '] ' + + '.cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [' + + 'background-color:{menubuttonIconHover};' + + '] ' + + '.cke_menuseparator [' + + 'background-color:{menubuttonIcon};' + + '] ' + + + // Color boxes. + 'a:hover.cke_colorbox, a:focus.cke_colorbox, a:active.cke_colorbox [' + + 'border-color:{defaultBorder};' + + '] ' + + 'a:hover.cke_colorauto, a:hover.cke_colormore, a:focus.cke_colorauto, a:focus.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [' + + 'background-color:{ckeColorauto};' + + 'border-color:{defaultBorder};' + + '] ' + ) + }; + + return function( editor, part ) { + var uiColor = editor.uiColor, + // The following are CSS styles used in templates. + // Styles are generated according to current editor.uiColor. + templateStyles = { + // CKEditor instances have a unique ID, which is used as class name into + // the outer container of the editor UI (e.g. ".cke_1"). + // + // The Chameleon feature is available for each CKEditor instance, + // independently. Because of this, we need to prefix all CSS selectors with + // the unique class name of the instance. + id: '.' + editor.id, + + // These styles are used by various UI elements. + defaultBorder: colorBrightness( uiColor, -0.1 ), + defaultGradient: verticalGradient( colorBrightness( uiColor, 0.9 ), uiColor ), + lightGradient: verticalGradient( colorBrightness( uiColor, 1 ), colorBrightness( uiColor, 0.7 ) ), + mediumGradient: verticalGradient( colorBrightness( uiColor, 0.8 ), colorBrightness( uiColor, 0.5 ) ), + + // These are for specific UI elements. + ckeButtonOn: verticalGradient( colorBrightness( uiColor, 0.6 ), colorBrightness( uiColor, 0.7 ) ), + ckeResizer: colorBrightness( uiColor, -0.4 ), + ckeToolbarSeparator: colorBrightness( uiColor, 0.5 ), + ckeColorauto: colorBrightness( uiColor, 0.8 ), + dialogBody: colorBrightness( uiColor, 0.7 ), + // Use gradient instead of simple hex to avoid further filter resetting in IE. + dialogTabSelected: verticalGradient( '#FFFFFF', '#FFFFFF' ), + dialogTabSelectedBorder: '#FFF', + elementsPathColor: colorBrightness( uiColor, -0.6 ), + elementsPathBg: uiColor, + menubuttonIcon: colorBrightness( uiColor, 0.5 ), + menubuttonIconHover: colorBrightness( uiColor, 0.3 ) + }; + + return templates[ part ] + .output( templateStyles ) + .replace( /\[/g, '{' ) // Replace brackets with braces. + .replace( /\]/g, '}' ); + }; +} )(); + +// %REMOVE_START% + +// 4. Register the skin icons for development purposes only +// ---------------------------------------------------------- +// (http://docs.cksource.com/CKEditor_4.x/Skin_SDK/Icons) +// +// Note: As "moono" is the default CKEditor skin, it provides no custom icons, +// thus this code is commented out. +// +// This code is here just to make the skin work fully when using its "source" +// version. Without this, the skin will still work, but its icons will not be +// used (again, on source version only). +// +// This block of code is not necessary on the release version of the skin. +// Because of this it is very important to include it inside the REMOVE_START +// and REMOVE_END comment markers, so the skin builder will properly clean +// things up. +// +// If a required icon is not available here, the plugin defined icon will be +// used instead. This means that a skin is not required to provide all icons. +// Actually, it is not required to provide icons at all. +// +// (function() { +// // The available icons. This list must match the file names (without +// // extension) available inside the "icons" folder. +// var icons = ( 'about,anchor-rtl,anchor,bgcolor,bidiltr,bidirtl,blockquote,' + +// 'bold,bulletedlist-rtl,bulletedlist,button,checkbox,copy-rtl,copy,' + +// 'creatediv,cut-rtl,cut,docprops-rtl,docprops,find-rtl,find,flash,form,' + +// 'hiddenfield,horizontalrule,icons,iframe,image,imagebutton,indent-rtl,' + +// 'indent,italic,justifyblock,justifycenter,justifyleft,justifyright,' + +// 'link,maximize,newpage-rtl,newpage,numberedlist-rtl,numberedlist,' + +// 'outdent-rtl,outdent,pagebreak-rtl,pagebreak,paste-rtl,paste,' + +// 'pastefromword-rtl,pastefromword,pastetext-rtl,pastetext,preview-rtl,' + +// 'preview,print,radio,redo-rtl,redo,removeformat,replace,save,scayt,' + +// 'select-rtl,select,selectall,showblocks-rtl,showblocks,smiley,' + +// 'source-rtl,source,specialchar,spellchecker,strike,subscript,' + +// 'superscript,table,templates-rtl,templates,textarea-rtl,textarea,' + +// 'textcolor,textfield-rtl,textfield,uicolor,underline,undo-rtl,undo,unlink' ).split( ',' ); +// +// var iconsFolder = CKEDITOR.getUrl( CKEDITOR.skin.path() + 'icons/' + ( CKEDITOR.env.hidpi ? 'hidpi/' : '' ) ); +// +// for ( var i = 0; i < icons.length; i++ ) { +// CKEDITOR.skin.addIcon( icons[ i ], iconsFolder + icons[ i ] + '.png' ); +// } +// })(); + +// %REMOVE_END% diff --git a/sources/skins/moono/toolbar.css b/sources/skins/moono/toolbar.css new file mode 100644 index 00000000..afcf117c --- /dev/null +++ b/sources/skins/moono/toolbar.css @@ -0,0 +1,387 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ + +/* +toolbar.css (part of editor.css) +================================== + +This files styles the CKEditor toolbar and its buttons. For toolbar combo +styles, check richcombo.css. + +The toolbar is rendered as a big container (called toolbox), which contains +smaller "toolbars". Each toolbar represents a group of items that cannot be +separated. The following is the visual representation of the toolbox. + ++-- .cke_toolbox ----------------------------------------------------------+ +| +-- .cke_toolbar --+ +-- .cke_toolbar --+ ... +-- .cke_toolbar_break --+ | +| | | | | | | | +| +------------------+ +------------------+ +------------------------+ | +| +-- .cke_toolbar --+ +-- .cke_toolbar --+ ... | +| | | | | | +| +------------------+ +------------------+ | ++--------------------------------------------------------------------------+ + +The following instead is the visual representation of a single toolbar: + ++-- .cke_toolbar ----------------------------------------------------------------+ +| +-- .cke_toolbar_start --+ +-- .cke_toolgroup (*) --+ +-- .cke_toolbar_end --+ | +| | | | | | | | +| +------------------------+ +------------------------+ +----------------------+ | ++--------------------------------------------------------------------------------+ +(*) .cke_toolgroup is available only when the toolbar items can be grouped + (buttons). If the items can't be group (combos), this box is not available + and the items are rendered straight in that place. + +This file also styles toolbar buttons, which are rendered inside the above +.cke_toolgroup containers. This is the visual representation of a button: + ++-- .cke_button -------------------------------------+ +| +-- .cke_button_icon --+ +-- .cke_button_label --+ | +| | | | | | +| +----------------------+ +-----------------------+ | ++----------------------------------------------------+ + +Special outer level classes used in this file: + + .cke_hc: Available when the editor is rendered on "High Contrast". + .cke_rtl: Available when the editor UI is on RTL. +*/ + +/* The box that holds each toolbar. */ +.cke_toolbar +{ + float: left; +} + +.cke_rtl .cke_toolbar +{ + float: right; +} + +/* The box that holds buttons. */ +.cke_toolgroup +{ + float: left; + margin: 0 6px 5px 0; + border: 1px solid #a6a6a6; + border-bottom-color: #979797; + + border-radius: 3px; + + box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 0 2px rgba(255,255,255,.15) inset, 0 1px 0 rgba(255,255,255,.15) inset; + + background: #e4e4e4; + background-image: linear-gradient(to bottom, #ffffff, #e4e4e4); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#ffffff', endColorstr='#e4e4e4'); +} + +.cke_hc .cke_toolgroup +{ + border: 0; + margin-right: 10px; + margin-bottom: 10px; +} + +.cke_rtl .cke_toolgroup +{ + float: right; + margin-left: 6px; + margin-right: 0; +} + +/* A toolbar button . */ +a.cke_button +{ + display: inline-block; + height: 18px; + padding: 4px 6px; + outline: none; + cursor: default; + float: left; + border: 0; +} + +.cke_ltr .cke_button:last-child, +.cke_rtl .cke_button:first-child +{ + /* Don't distort parent's rounded border. */ + border-radius: 0 2px 2px 0; +} + +.cke_ltr .cke_button:first-child, +.cke_rtl .cke_button:last-child +{ + /* Don't distort parent's rounded border. */ + border-radius: 2px 0 0 2px; +} + +.cke_rtl .cke_button +{ + float: right; +} + +.cke_hc .cke_button +{ + border: 1px solid black; + + /* Compensate the added border */ + padding: 3px 5px; + margin: -2px 4px 0 -2px; +} + +/* This class is applied to the button when it is "active" (pushed). + This style indicates that the feature associated with the button is active + i.e. currently writing in bold or when spell checking is enabled. */ +a.cke_button_on +{ + box-shadow: 0 1px 5px rgba(0,0,0,.6) inset, 0 1px 0 rgba(0,0,0,.2); + + background: #b5b5b5; + background-image: linear-gradient(to bottom, #aaa, #cacaca); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#aaaaaa', endColorstr='#cacaca'); +} + +.cke_hc .cke_button_on, +.cke_hc a.cke_button_off:hover, +.cke_hc a.cke_button_off:focus, +.cke_hc a.cke_button_off:active, +.cke_hc a.cke_button_disabled:hover, +.cke_hc a.cke_button_disabled:focus, +.cke_hc a.cke_button_disabled:active +{ + border-width: 3px; + + /* Compensate the border change */ + padding: 1px 3px; +} + +/* This class is applied to the button when the feature associated with the + button cannot be used (grayed-out). + i.e. paste button remains disabled when there is nothing in the clipboard to + be pasted. */ +.cke_button_disabled .cke_button_icon +{ + opacity: 0.3; +} + +.cke_hc .cke_button_disabled +{ + opacity: 0.5; +} + +a.cke_button_on:hover, +a.cke_button_on:focus, +a.cke_button_on:active +{ + box-shadow: 0 1px 6px rgba(0,0,0,.7) inset, 0 1px 0 rgba(0,0,0,.2); +} + +a.cke_button_off:hover, +a.cke_button_off:focus, +a.cke_button_off:active, +a.cke_button_disabled:hover, +a.cke_button_disabled:focus, +a.cke_button_disabled:active +{ + box-shadow: 0 0 1px rgba(0,0,0,.3) inset; + + background: #ccc; + background-image: linear-gradient(to bottom, #f2f2f2, #ccc); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#f2f2f2', endColorstr='#cccccc'); +} + +/* The icon which is a visual representation of the button. */ +.cke_button_icon +{ + cursor: inherit; + background-repeat: no-repeat; + margin-top: 1px; + width: 16px; + height: 16px; + float: left; + display: inline-block; +} + +.cke_rtl .cke_button_icon +{ + float: right; +} + +.cke_hc .cke_button_icon +{ + display: none; +} + +/* The label of the button that stores the name of the feature. By default, + labels are invisible. They can be revealed on demand though. */ +.cke_button_label +{ + display: none; + padding-left: 3px; + margin-top: 1px; + line-height: 17px; + vertical-align: middle; + float: left; + cursor: default; + color: #474747; + text-shadow: 0 1px 0 rgba(255,255,255,.5); +} + +.cke_rtl .cke_button_label +{ + padding-right: 3px; + padding-left: 0; + float: right; +} + +.cke_hc .cke_button_label +{ + padding: 0; + display: inline-block; + font-size: 12px; +} + +/* The small arrow available on buttons that can be expanded + (e.g. the color buttons). */ +.cke_button_arrow +{ + /* Arrow in CSS */ + display: inline-block; + margin: 8px 0 0 1px; + width: 0; + height: 0; + cursor: default; + vertical-align: top; + border-left: 3px solid transparent; + border-right: 3px solid transparent; + border-top: 3px solid #474747; +} + +.cke_rtl .cke_button_arrow +{ + margin-right: 5px; + margin-left: 0; +} + +.cke_hc .cke_button_arrow +{ + font-size: 10px; + margin: 3px -2px 0 3px; + width: auto; + border: 0; +} + +/* The vertical separator which is used within a single toolbar to split + buttons into sub-groups. */ +.cke_toolbar_separator +{ + float: left; + background-color: #c0c0c0; + background-color: rgba(0,0,0,.2); + margin: 5px 2px 0; + height: 18px; + width: 1px; + + box-shadow: 1px 0 1px rgba(255,255,255,.5); +} + +.cke_rtl .cke_toolbar_separator +{ + float: right; + + box-shadow: -1px 0 1px rgba(255,255,255,.1); +} + +.cke_hc .cke_toolbar_separator +{ + width: 0; + border-left: 1px solid; + margin: 1px 5px 0 0px; +} + +/* The dummy element that breaks toolbars. + Once it is placed, the very next toolbar is moved to the new row. */ +.cke_toolbar_break +{ + display: block; + clear: left; +} + +.cke_rtl .cke_toolbar_break +{ + clear: right; +} + +/* The button, which when clicked hides (collapses) all the toolbars. */ +a.cke_toolbox_collapser +{ + width: 12px; + height: 11px; + float: right; + margin: 11px 0 0; + font-size: 0; + cursor: default; + text-align: center; + + border: 1px solid #a6a6a6; + border-bottom-color: #979797; + + border-radius: 3px; + + box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 0 2px rgba(255,255,255,.15) inset, 0 1px 0 rgba(255,255,255,.15) inset; + + background: #e4e4e4; + background-image: linear-gradient(to bottom, #ffffff, #e4e4e4); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#ffffff', endColorstr='#e4e4e4'); +} + +.cke_toolbox_collapser:hover +{ + background: #ccc; + background-image: linear-gradient(to bottom, #f2f2f2, #ccc); + filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#f2f2f2', endColorstr='#cccccc'); +} + +.cke_toolbox_collapser.cke_toolbox_collapser_min +{ + margin: 0 2px 4px; +} + +.cke_rtl .cke_toolbox_collapser +{ + float: left; +} + +/* The CSS arrow, which belongs to the toolbar collapser. */ +.cke_toolbox_collapser .cke_arrow +{ + display: inline-block; + + /* Pure CSS Arrow */ + height: 0; + width: 0; + font-size: 0; + margin-top: 1px; + border-left: 3px solid transparent; + border-right: 3px solid transparent; + border-bottom: 3px solid #474747; + border-top: 3px solid transparent; +} + +.cke_toolbox_collapser.cke_toolbox_collapser_min .cke_arrow +{ + margin-top: 4px; + border-bottom-color: transparent; + border-top-color: #474747; +} + +.cke_hc .cke_toolbox_collapser .cke_arrow +{ + font-size: 8px; + width: auto; + border: 0; + margin-top: 0; + margin-right: 2px; +} diff --git a/sources/styles.js b/sources/styles.js new file mode 100644 index 00000000..dda122f9 --- /dev/null +++ b/sources/styles.js @@ -0,0 +1,112 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +// This file contains style definitions that can be used by CKEditor plugins. +// +// The most common use for it is the "stylescombo" plugin, which shows a combo +// in the editor toolbar, containing all styles. Other plugins instead, like +// the div plugin, use a subset of the styles on their feature. +// +// If you don't have plugins that depend on this file, you can simply ignore it. +// Otherwise it is strongly recommended to customize this file to match your +// website requirements and design properly. + +CKEDITOR.stylesSet.add( 'default', [ + /* Block Styles */ + + // These styles are already available in the "Format" combo ("format" plugin), + // so they are not needed here by default. You may enable them to avoid + // placing the "Format" combo in the toolbar, maintaining the same features. + /* + { name: 'Paragraph', element: 'p' }, + { name: 'Heading 1', element: 'h1' }, + { name: 'Heading 2', element: 'h2' }, + { name: 'Heading 3', element: 'h3' }, + { name: 'Heading 4', element: 'h4' }, + { name: 'Heading 5', element: 'h5' }, + { name: 'Heading 6', element: 'h6' }, + { name: 'Preformatted Text',element: 'pre' }, + { name: 'Address', element: 'address' }, + */ + + { name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } }, + { name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } }, + { + name: 'Special Container', + element: 'div', + styles: { + padding: '5px 10px', + background: '#eee', + border: '1px solid #ccc' + } + }, + + /* Inline Styles */ + + // These are core styles available as toolbar buttons. You may opt enabling + // some of them in the Styles combo, removing them from the toolbar. + // (This requires the "stylescombo" plugin) + /* + { name: 'Strong', element: 'strong', overrides: 'b' }, + { name: 'Emphasis', element: 'em' , overrides: 'i' }, + { name: 'Underline', element: 'u' }, + { name: 'Strikethrough', element: 'strike' }, + { name: 'Subscript', element: 'sub' }, + { name: 'Superscript', element: 'sup' }, + */ + + { name: 'Marker', element: 'span', attributes: { 'class': 'marker' } }, + + { name: 'Big', element: 'big' }, + { name: 'Small', element: 'small' }, + { name: 'Typewriter', element: 'tt' }, + + { name: 'Computer Code', element: 'code' }, + { name: 'Keyboard Phrase', element: 'kbd' }, + { name: 'Sample Text', element: 'samp' }, + { name: 'Variable', element: 'var' }, + + { name: 'Deleted Text', element: 'del' }, + { name: 'Inserted Text', element: 'ins' }, + + { name: 'Cited Work', element: 'cite' }, + { name: 'Inline Quotation', element: 'q' }, + + { name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } }, + { name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } }, + + /* Object Styles */ + + { + name: 'Styled image (left)', + element: 'img', + attributes: { 'class': 'left' } + }, + + { + name: 'Styled image (right)', + element: 'img', + attributes: { 'class': 'right' } + }, + + { + name: 'Compact table', + element: 'table', + attributes: { + cellpadding: '5', + cellspacing: '0', + border: '1', + bordercolor: '#ccc' + }, + styles: { + 'border-collapse': 'collapse' + } + }, + + { name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } }, + { name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } } +] ); + +// %LEAVE_UNMINIFIED% %REMOVE_LINE% -- 2.41.0