From 6446d370c6d209a3b7ba160c9ebd2f075e65f5fc Mon Sep 17 00:00:00 2001 From: manson Date: Mon, 16 Jun 2014 16:03:00 +0800 Subject: [PATCH] Upgrade CKeditor to 4.4.1, support IE 8,9,10,11 --- .../jquery.js} | 4 +- .../javascripts/ckeditor/build-config.js | 105 +- app/assets/javascripts/ckeditor/ckeditor.js | 1816 +++++++++-------- .../javascripts/ckeditor/config.js.coffee.erb | 25 - app/assets/javascripts/ckeditor/config.js.erb | 102 +- app/assets/javascripts/ckeditor/contents.css | 73 +- app/assets/javascripts/ckeditor/lang/en.js | 4 +- app/assets/javascripts/ckeditor/lang/es.js | 5 - app/assets/javascripts/ckeditor/lang/fr.js | 5 - app/assets/javascripts/ckeditor/lang/ja.js | 5 - app/assets/javascripts/ckeditor/lang/ko.js | 5 - app/assets/javascripts/ckeditor/lang/ru.js | 5 - app/assets/javascripts/ckeditor/lang/zh-cn.js | 4 +- app/assets/javascripts/ckeditor/lang/zh.js | 4 +- .../plugins/a11yhelp/dialogs/a11yhelp.js | 14 +- .../dialogs/lang/_translationstatus.txt | 4 +- .../plugins/a11yhelp/dialogs/lang/ar.js | 8 +- .../plugins/a11yhelp/dialogs/lang/bg.js | 8 +- .../plugins/a11yhelp/dialogs/lang/ca.js | 9 +- .../plugins/a11yhelp/dialogs/lang/cs.js | 9 +- .../plugins/a11yhelp/dialogs/lang/cy.js | 12 +- .../plugins/a11yhelp/dialogs/lang/da.js | 8 +- .../plugins/a11yhelp/dialogs/lang/de.js | 8 +- .../plugins/a11yhelp/dialogs/lang/el.js | 19 +- .../plugins/a11yhelp/dialogs/lang/en-gb.js | 11 + .../plugins/a11yhelp/dialogs/lang/en.js | 8 +- .../plugins/a11yhelp/dialogs/lang/eo.js | 11 +- .../plugins/a11yhelp/dialogs/lang/es.js | 8 +- .../plugins/a11yhelp/dialogs/lang/et.js | 10 +- .../plugins/a11yhelp/dialogs/lang/fa.js | 14 +- .../plugins/a11yhelp/dialogs/lang/fi.js | 10 +- .../plugins/a11yhelp/dialogs/lang/fr-ca.js | 8 +- .../plugins/a11yhelp/dialogs/lang/fr.js | 19 +- .../plugins/a11yhelp/dialogs/lang/gl.js | 8 +- .../plugins/a11yhelp/dialogs/lang/gu.js | 8 +- .../plugins/a11yhelp/dialogs/lang/he.js | 10 +- .../plugins/a11yhelp/dialogs/lang/hi.js | 8 +- .../plugins/a11yhelp/dialogs/lang/hr.js | 8 +- .../plugins/a11yhelp/dialogs/lang/hu.js | 9 +- .../plugins/a11yhelp/dialogs/lang/id.js | 11 + .../plugins/a11yhelp/dialogs/lang/it.js | 9 +- .../plugins/a11yhelp/dialogs/lang/ja.js | 14 +- .../plugins/a11yhelp/dialogs/lang/km.js | 14 +- .../plugins/a11yhelp/dialogs/lang/ko.js | 10 + .../plugins/a11yhelp/dialogs/lang/ku.js | 8 +- .../plugins/a11yhelp/dialogs/lang/lt.js | 8 +- .../plugins/a11yhelp/dialogs/lang/lv.js | 8 +- .../plugins/a11yhelp/dialogs/lang/mk.js | 8 +- .../plugins/a11yhelp/dialogs/lang/mn.js | 8 +- .../plugins/a11yhelp/dialogs/lang/nb.js | 9 +- .../plugins/a11yhelp/dialogs/lang/nl.js | 12 +- .../plugins/a11yhelp/dialogs/lang/no.js | 8 +- .../plugins/a11yhelp/dialogs/lang/pl.js | 11 +- .../plugins/a11yhelp/dialogs/lang/pt-br.js | 10 +- .../plugins/a11yhelp/dialogs/lang/pt.js | 17 +- .../plugins/a11yhelp/dialogs/lang/ro.js | 17 +- .../plugins/a11yhelp/dialogs/lang/ru.js | 14 +- .../plugins/a11yhelp/dialogs/lang/si.js | 8 +- .../plugins/a11yhelp/dialogs/lang/sk.js | 8 +- .../plugins/a11yhelp/dialogs/lang/sl.js | 17 +- .../plugins/a11yhelp/dialogs/lang/sq.js | 8 +- .../plugins/a11yhelp/dialogs/lang/sr-latn.js | 11 + .../plugins/a11yhelp/dialogs/lang/sr.js | 11 + .../plugins/a11yhelp/dialogs/lang/sv.js | 12 +- .../plugins/a11yhelp/dialogs/lang/th.js | 8 +- .../plugins/a11yhelp/dialogs/lang/tr.js | 16 +- .../plugins/a11yhelp/dialogs/lang/tt.js | 11 + .../plugins/a11yhelp/dialogs/lang/ug.js | 14 +- .../plugins/a11yhelp/dialogs/lang/uk.js | 17 +- .../plugins/a11yhelp/dialogs/lang/vi.js | 16 +- .../plugins/a11yhelp/dialogs/lang/zh-cn.js | 10 +- .../plugins/a11yhelp/dialogs/lang/zh.js | 10 + .../ckeditor/plugins/about/dialogs/about.js | 9 +- .../about/dialogs/hidpi/logo_ckeditor.png | Bin 0 -> 13339 bytes .../plugins/about/dialogs/logo_ckeditor.png | Bin 2759 -> 6757 bytes .../plugins/clipboard/dialogs/paste.js | 4 +- .../plugins/codemirror/css/codemirror.min.css | 2 +- .../plugins/codemirror/icons/AutoComplete.png | Bin 1181 -> 0 bytes .../plugins/codemirror/icons/AutoFormat.png | Bin 644 -> 0 bytes .../codemirror/icons/CommentSelectedRange.png | Bin 2938 -> 0 bytes .../plugins/codemirror/icons/SearchCode.png | Bin 490 -> 0 bytes .../icons/UncommentSelectedRange.png | Bin 3124 -> 0 bytes .../plugins/codemirror/js/beautify.min.js | 98 +- .../codemirror/js/codemirror.addons.min.js | 86 +- .../js/codemirror.addons.search.min.js | 17 + .../plugins/codemirror/js/codemirror.min.js | 444 ++-- .../js/codemirror.mode.bbcode.min.js | 4 + .../js/codemirror.mode.bbcodemixed.min.js | 4 + .../js/codemirror.mode.htmlmixed.min.js | 60 + .../js/codemirror.mode.javascript.min.js | 22 + .../codemirror/js/codemirror.mode.php.min.js | 83 + .../codemirror/js/codemirror.modes.min.js | 28 - .../js/codemirror.search-addons.min.js | 13 - .../plugins/codemirror/theme/3024-day.css | 34 + .../plugins/codemirror/theme/3024-night.css | 34 + .../plugins/codemirror/theme/ambiance.css | 7 +- .../plugins/codemirror/theme/base16-dark.css | 34 + .../plugins/codemirror/theme/base16-light.css | 34 + .../plugins/codemirror/theme/blackboard.css | 5 +- .../plugins/codemirror/theme/cobalt.css | 5 +- .../plugins/codemirror/theme/eclipse.css | 8 +- .../plugins/codemirror/theme/elegant.css | 5 +- .../plugins/codemirror/theme/erlang-dark.css | 15 +- .../plugins/codemirror/theme/lesser-dark.css | 11 +- .../ckeditor/plugins/codemirror/theme/mbo.css | 37 + .../plugins/codemirror/theme/mdn-like.css | 44 + .../plugins/codemirror/theme/midnight.css | 43 + .../plugins/codemirror/theme/monokai.css | 3 +- .../plugins/codemirror/theme/neat.css | 3 + .../ckeditor/plugins/codemirror/theme/neo.css | 40 + .../plugins/codemirror/theme/night.css | 5 +- .../plugins/codemirror/theme/paraiso-dark.css | 34 + .../codemirror/theme/paraiso-light.css | 34 + .../codemirror/theme/pastel-on-dark.css | 48 + .../plugins/codemirror/theme/rubyblue.css | 6 +- .../plugins/codemirror/theme/solarized.css | 68 +- .../plugins/codemirror/theme/the-matrix.css | 26 + .../theme/tomorrow-night-eighties.css | 34 + .../plugins/codemirror/theme/twilight.css | 5 +- .../plugins/codemirror/theme/vibrant-ink.css | 9 +- .../plugins/codemirror/theme/xq-dark.css | 7 +- .../plugins/codemirror/theme/xq-light.css | 4 +- .../colordialog/dialogs/colordialog.js | 4 +- .../plugins/dialog/dialogDefinition.js | 4 +- .../ckeditor/plugins/div/dialogs/div.js | 9 + .../plugins/fakeobjects/images/spacer.gif | Bin 43 -> 0 bytes .../ckeditor/plugins/filebrowser/plugin.js | 497 ----- .../ckeditor/plugins/find/dialogs/find.js | 18 +- .../ckeditor/plugins/flash/dialogs/flash.js | 24 + .../plugins/flash/images/placeholder.png | Bin 0 -> 256 bytes .../ckeditor/plugins/forms/dialogs/button.js | 8 + .../plugins/forms/dialogs/checkbox.js | 8 + .../ckeditor/plugins/forms/dialogs/form.js | 8 + .../plugins/forms/dialogs/hiddenfield.js | 8 + .../ckeditor/plugins/forms/dialogs/radio.js | 8 + .../ckeditor/plugins/forms/dialogs/select.js | 20 + .../plugins/forms/dialogs/textarea.js | 8 + .../plugins/forms/dialogs/textfield.js | 10 + .../plugins/forms/images/hiddenfield.gif | Bin 0 -> 105 bytes .../javascripts/ckeditor/plugins/icons.png | Bin 20248 -> 22247 bytes .../ckeditor/plugins/icons_hidpi.png | Bin 0 -> 69397 bytes .../ckeditor/plugins/iframe/dialogs/iframe.js | 10 + .../plugins/iframe/images/placeholder.png | Bin 0 -> 449 bytes .../ckeditor/plugins/image/dialogs/image.js | 46 +- .../ckeditor/plugins/link/dialogs/anchor.js | 11 +- .../ckeditor/plugins/link/dialogs/link.js | 58 +- .../ckeditor/plugins/link/images/anchor.png | Bin 566 -> 763 bytes .../plugins/link/images/hidpi/anchor.png | Bin 0 -> 1597 bytes .../plugins/liststyle/dialogs/liststyle.js | 4 +- .../plugins/magicline/images/hidpi/icon.png | Bin 0 -> 260 bytes .../plugins/pagebreak/images/pagebreak.gif | Bin 0 -> 54 bytes .../plugins/pastefromword/filter/default.js | 44 +- .../ckeditor/plugins/scayt/README.md | 2 +- .../ckeditor/plugins/scayt/dialogs/options.js | 37 +- .../ckeditor/plugins/smiley/dialogs/smiley.js | 10 + .../plugins/smiley/images/angel_smile.gif | Bin 0 -> 1250 bytes .../plugins/smiley/images/angel_smile.png | Bin 0 -> 1294 bytes .../plugins/smiley/images/angry_smile.gif | Bin 0 -> 1221 bytes .../plugins/smiley/images/angry_smile.png | Bin 0 -> 1351 bytes .../plugins/smiley/images/broken_heart.gif | Bin 0 -> 1131 bytes .../plugins/smiley/images/broken_heart.png | Bin 0 -> 1213 bytes .../plugins/smiley/images/confused_smile.gif | Bin 0 -> 1210 bytes .../plugins/smiley/images/confused_smile.png | Bin 0 -> 1175 bytes .../plugins/smiley/images/cry_smile.gif | Bin 0 -> 795 bytes .../plugins/smiley/images/cry_smile.png | Bin 0 -> 1315 bytes .../plugins/smiley/images/devil_smile.gif | Bin 0 -> 1239 bytes .../plugins/smiley/images/devil_smile.png | Bin 0 -> 1299 bytes .../smiley/images/embaressed_smile.gif | Bin 0 -> 790 bytes .../smiley/images/embarrassed_smile.gif | Bin 0 -> 790 bytes .../smiley/images/embarrassed_smile.png | Bin 0 -> 1222 bytes .../plugins/smiley/images/envelope.gif | Bin 0 -> 712 bytes .../plugins/smiley/images/envelope.png | Bin 0 -> 1049 bytes .../ckeditor/plugins/smiley/images/heart.gif | Bin 0 -> 1091 bytes .../ckeditor/plugins/smiley/images/heart.png | Bin 0 -> 1073 bytes .../ckeditor/plugins/smiley/images/kiss.gif | Bin 0 -> 1082 bytes .../ckeditor/plugins/smiley/images/kiss.png | Bin 0 -> 1077 bytes .../plugins/smiley/images/lightbulb.gif | Bin 0 -> 1062 bytes .../plugins/smiley/images/lightbulb.png | Bin 0 -> 993 bytes .../plugins/smiley/images/omg_smile.gif | Bin 0 -> 1207 bytes .../plugins/smiley/images/omg_smile.png | Bin 0 -> 1196 bytes .../plugins/smiley/images/regular_smile.gif | Bin 0 -> 1216 bytes .../plugins/smiley/images/regular_smile.png | Bin 0 -> 1158 bytes .../plugins/smiley/images/sad_smile.gif | Bin 0 -> 1199 bytes .../plugins/smiley/images/sad_smile.png | Bin 0 -> 1189 bytes .../plugins/smiley/images/shades_smile.gif | Bin 0 -> 1234 bytes .../plugins/smiley/images/shades_smile.png | Bin 0 -> 1353 bytes .../plugins/smiley/images/teeth_smile.gif | Bin 0 -> 1210 bytes .../plugins/smiley/images/teeth_smile.png | Bin 0 -> 1257 bytes .../plugins/smiley/images/thumbs_down.gif | Bin 0 -> 1117 bytes .../plugins/smiley/images/thumbs_down.png | Bin 0 -> 1059 bytes .../plugins/smiley/images/thumbs_up.gif | Bin 0 -> 1112 bytes .../plugins/smiley/images/thumbs_up.png | Bin 0 -> 1033 bytes .../plugins/smiley/images/tongue_smile.gif | Bin 0 -> 1216 bytes .../plugins/smiley/images/tongue_smile.png | Bin 0 -> 1206 bytes .../plugins/smiley/images/tounge_smile.gif | Bin 0 -> 1216 bytes .../images/whatchutalkingabout_smile.gif | Bin 0 -> 1190 bytes .../images/whatchutalkingabout_smile.png | Bin 0 -> 1113 bytes .../plugins/smiley/images/wink_smile.gif | Bin 0 -> 1214 bytes .../plugins/smiley/images/wink_smile.png | Bin 0 -> 1188 bytes .../dialogs/lang/_translationstatus.txt | 4 +- .../plugins/specialchar/dialogs/lang/ar.js | 13 + .../plugins/specialchar/dialogs/lang/bg.js | 4 +- .../plugins/specialchar/dialogs/lang/ca.js | 4 +- .../plugins/specialchar/dialogs/lang/cs.js | 4 +- .../plugins/specialchar/dialogs/lang/cy.js | 6 +- .../plugins/specialchar/dialogs/lang/de.js | 4 +- .../plugins/specialchar/dialogs/lang/el.js | 22 +- .../plugins/specialchar/dialogs/lang/en-gb.js | 13 + .../plugins/specialchar/dialogs/lang/en.js | 4 +- .../plugins/specialchar/dialogs/lang/eo.js | 4 +- .../plugins/specialchar/dialogs/lang/es.js | 4 +- .../plugins/specialchar/dialogs/lang/et.js | 10 +- .../plugins/specialchar/dialogs/lang/fa.js | 4 +- .../plugins/specialchar/dialogs/lang/fi.js | 4 +- .../plugins/specialchar/dialogs/lang/fr-ca.js | 4 +- .../plugins/specialchar/dialogs/lang/fr.js | 4 +- .../plugins/specialchar/dialogs/lang/gl.js | 4 +- .../plugins/specialchar/dialogs/lang/he.js | 21 +- .../plugins/specialchar/dialogs/lang/hr.js | 6 +- .../plugins/specialchar/dialogs/lang/hu.js | 4 +- .../plugins/specialchar/dialogs/lang/id.js | 13 + .../plugins/specialchar/dialogs/lang/it.js | 4 +- .../plugins/specialchar/dialogs/lang/ja.js | 9 + .../plugins/specialchar/dialogs/lang/km.js | 13 + .../plugins/specialchar/dialogs/lang/ku.js | 4 +- .../plugins/specialchar/dialogs/lang/lv.js | 4 +- .../plugins/specialchar/dialogs/lang/nb.js | 4 +- .../plugins/specialchar/dialogs/lang/nl.js | 6 +- .../plugins/specialchar/dialogs/lang/no.js | 4 +- .../plugins/specialchar/dialogs/lang/pl.js | 4 +- .../plugins/specialchar/dialogs/lang/pt-br.js | 4 +- .../plugins/specialchar/dialogs/lang/pt.js | 13 + .../plugins/specialchar/dialogs/lang/ru.js | 22 +- .../plugins/specialchar/dialogs/lang/si.js | 4 +- .../plugins/specialchar/dialogs/lang/sk.js | 4 +- .../plugins/specialchar/dialogs/lang/sl.js | 12 + .../plugins/specialchar/dialogs/lang/sq.js | 8 +- .../plugins/specialchar/dialogs/lang/sv.js | 4 +- .../plugins/specialchar/dialogs/lang/th.js | 4 +- .../plugins/specialchar/dialogs/lang/tr.js | 4 +- .../plugins/specialchar/dialogs/lang/tt.js | 13 + .../plugins/specialchar/dialogs/lang/ug.js | 10 +- .../plugins/specialchar/dialogs/lang/uk.js | 12 + .../plugins/specialchar/dialogs/lang/vi.js | 14 + .../plugins/specialchar/dialogs/lang/zh-cn.js | 6 +- .../plugins/specialchar/dialogs/lang/zh.js | 12 + .../specialchar/dialogs/specialchar.js | 4 +- .../ckeditor/plugins/table/dialogs/table.js | 10 +- .../plugins/tabletools/dialogs/tableCell.js | 29 +- .../plugins/templates/dialogs/templates.css | 14 +- .../plugins/templates/dialogs/templates.js | 4 +- .../plugins/templates/templates/default.js | 25 +- .../plugins/wordcount/css/wordcount.css | 3 - .../ckeditor/plugins/wordcount/lang/de.js | 10 - .../ckeditor/plugins/wordcount/lang/en.js | 10 - .../ckeditor/plugins/wordcount/lang/fr.js | 8 - .../ckeditor/plugins/wordcount/lang/pl.js | 10 - .../ckeditor/plugins/wordcount/plugin.js | 172 -- .../ckeditor/plugins/wsc/dialogs/ciframe.html | 2 +- .../ckeditor/plugins/wsc/dialogs/tmp.html | 127 -- .../plugins/wsc/dialogs/tmpFrameset.html | 2 +- .../ckeditor/plugins/wsc/dialogs/wsc.css | 2 +- .../ckeditor/plugins/wsc/dialogs/wsc.js | 132 +- .../ckeditor/plugins/wsc/dialogs/wsc_ie.js | 2 +- .../ckeditor/plugins/youtube/images/icon.png | Bin 619 -> 419 bytes .../javascripts/ckeditor/replace/site_info.js | 11 - .../ckeditor/skins/moono/dialog.css | 6 +- .../ckeditor/skins/moono/dialog_ie.css | 6 +- .../ckeditor/skins/moono/dialog_ie7.css | 6 +- .../ckeditor/skins/moono/dialog_ie8.css | 6 +- .../ckeditor/skins/moono/dialog_iequirks.css | 5 + .../ckeditor/skins/moono/dialog_opera.css | 5 - .../ckeditor/skins/moono/editor.css | 1062 +--------- .../ckeditor/skins/moono/editor_gecko.css | 6 +- .../ckeditor/skins/moono/editor_ie.css | 6 +- .../ckeditor/skins/moono/editor_ie7.css | 6 +- .../ckeditor/skins/moono/editor_ie8.css | 6 +- .../ckeditor/skins/moono/editor_iequirks.css | 6 +- .../ckeditor/skins/moono/icons.png | Bin 20248 -> 22247 bytes .../ckeditor/skins/moono/icons_hidpi.png | Bin 0 -> 69397 bytes .../ckeditor/skins/moono/images/close.png | Bin 389 -> 824 bytes .../skins/moono/images/hidpi/close.png | Bin 0 -> 1792 bytes .../skins/moono/images/hidpi/lock-open.png | Bin 0 -> 1503 bytes .../skins/moono/images/hidpi/lock.png | Bin 0 -> 1616 bytes .../skins/moono/images/hidpi/refresh.png | Bin 0 -> 2320 bytes .../ckeditor/skins/moono/images/lock-open.png | Bin 0 -> 736 bytes .../ckeditor/skins/moono/images/lock.png | Bin 0 -> 728 bytes .../ckeditor/skins/moono/images/mini.png | Bin 818 -> 0 bytes .../ckeditor/skins/moono/images/refresh.png | Bin 0 -> 953 bytes .../ckeditor/skins/moono/readme.md | 2 +- app/assets/javascripts/ckeditor/styles.js | 6 +- app/assets/javascripts/ckeditor/tool.txt | 49 - app/assets/javascripts/desktop/desktop.js | 1 - config/environments/production.rb | 2 +- 294 files changed, 3231 insertions(+), 4046 deletions(-) rename app/assets/javascripts/ckeditor/{jquery-ckeditor.js => adapters/jquery.js} (97%) delete mode 100644 app/assets/javascripts/ckeditor/config.js.coffee.erb delete mode 100644 app/assets/javascripts/ckeditor/lang/es.js delete mode 100644 app/assets/javascripts/ckeditor/lang/fr.js delete mode 100644 app/assets/javascripts/ckeditor/lang/ja.js delete mode 100644 app/assets/javascripts/ckeditor/lang/ko.js delete mode 100644 app/assets/javascripts/ckeditor/lang/ru.js create mode 100644 app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js create mode 100644 app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js create mode 100644 app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js create mode 100644 app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js create mode 100644 app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js create mode 100644 app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js create mode 100644 app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js create mode 100644 app/assets/javascripts/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png delete mode 100755 app/assets/javascripts/ckeditor/plugins/codemirror/icons/AutoComplete.png delete mode 100755 app/assets/javascripts/ckeditor/plugins/codemirror/icons/AutoFormat.png delete mode 100755 app/assets/javascripts/ckeditor/plugins/codemirror/icons/CommentSelectedRange.png delete mode 100755 app/assets/javascripts/ckeditor/plugins/codemirror/icons/SearchCode.png delete mode 100755 app/assets/javascripts/ckeditor/plugins/codemirror/icons/UncommentSelectedRange.png create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.search.min.js create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.bbcode.min.js create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.bbcodemixed.min.js create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.javascript.min.js create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.php.min.js delete mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.modes.min.js delete mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.search-addons.min.js create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/3024-day.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/3024-night.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/base16-dark.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/base16-light.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/mbo.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/mdn-like.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/midnight.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/neo.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/paraiso-dark.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/paraiso-light.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/pastel-on-dark.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/the-matrix.css create mode 100644 app/assets/javascripts/ckeditor/plugins/codemirror/theme/tomorrow-night-eighties.css create mode 100644 app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js delete mode 100644 app/assets/javascripts/ckeditor/plugins/fakeobjects/images/spacer.gif delete mode 100644 app/assets/javascripts/ckeditor/plugins/filebrowser/plugin.js create mode 100644 app/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js create mode 100644 app/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png create mode 100644 app/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js create mode 100644 app/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js create mode 100644 app/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js create mode 100644 app/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js create mode 100644 app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js create mode 100644 app/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js create mode 100644 app/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js create mode 100644 app/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js create mode 100644 app/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/icons_hidpi.png create mode 100644 app/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js create mode 100644 app/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png create mode 100644 app/assets/javascripts/ckeditor/plugins/link/images/hidpi/anchor.png create mode 100644 app/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon.png create mode 100644 app/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/envelope.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/heart.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/kiss.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif create mode 100644 app/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.png create mode 100644 app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js create mode 100644 app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js create mode 100644 app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js create mode 100644 app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js create mode 100644 app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js create mode 100644 app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js create mode 100644 app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js create mode 100644 app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js create mode 100644 app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js create mode 100644 app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js create mode 100644 app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js delete mode 100755 app/assets/javascripts/ckeditor/plugins/wordcount/css/wordcount.css delete mode 100755 app/assets/javascripts/ckeditor/plugins/wordcount/lang/de.js delete mode 100755 app/assets/javascripts/ckeditor/plugins/wordcount/lang/en.js delete mode 100755 app/assets/javascripts/ckeditor/plugins/wordcount/lang/fr.js delete mode 100755 app/assets/javascripts/ckeditor/plugins/wordcount/lang/pl.js delete mode 100755 app/assets/javascripts/ckeditor/plugins/wordcount/plugin.js delete mode 100644 app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmp.html delete mode 100644 app/assets/javascripts/ckeditor/replace/site_info.js create mode 100644 app/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css delete mode 100644 app/assets/javascripts/ckeditor/skins/moono/dialog_opera.css create mode 100644 app/assets/javascripts/ckeditor/skins/moono/icons_hidpi.png create mode 100644 app/assets/javascripts/ckeditor/skins/moono/images/hidpi/close.png create mode 100644 app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock-open.png create mode 100644 app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock.png create mode 100644 app/assets/javascripts/ckeditor/skins/moono/images/hidpi/refresh.png create mode 100644 app/assets/javascripts/ckeditor/skins/moono/images/lock-open.png create mode 100644 app/assets/javascripts/ckeditor/skins/moono/images/lock.png delete mode 100644 app/assets/javascripts/ckeditor/skins/moono/images/mini.png create mode 100644 app/assets/javascripts/ckeditor/skins/moono/images/refresh.png delete mode 100644 app/assets/javascripts/ckeditor/tool.txt diff --git a/app/assets/javascripts/ckeditor/jquery-ckeditor.js b/app/assets/javascripts/ckeditor/adapters/jquery.js similarity index 97% rename from app/assets/javascripts/ckeditor/jquery-ckeditor.js rename to app/assets/javascripts/ckeditor/adapters/jquery.js index cb329a1..3ec908b 100644 --- a/app/assets/javascripts/ckeditor/jquery-ckeditor.js +++ b/app/assets/javascripts/ckeditor/adapters/jquery.js @@ -1,5 +1,5 @@ -/* - Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +/* + Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ (function(a){CKEDITOR.config.jqueryOverrideVal="undefined"==typeof CKEDITOR.config.jqueryOverrideVal?!0:CKEDITOR.config.jqueryOverrideVal;"undefined"!=typeof a&&(a.extend(a.fn,{ckeditorGet:function(){var a=this.eq(0).data("ckeditorInstance");if(!a)throw"CKEditor is not initialized yet, use ckeditor() with a callback.";return a},ckeditor:function(g,d){if(!CKEDITOR.env.isCompatible)throw Error("The environment is incompatible.");if(!a.isFunction(g))var k=d,d=g,g=k;var i=[],d=d||{};this.each(function(){var b= diff --git a/app/assets/javascripts/ckeditor/build-config.js b/app/assets/javascripts/ckeditor/build-config.js index 5e76b2d..c18401c 100644 --- a/app/assets/javascripts/ckeditor/build-config.js +++ b/app/assets/javascripts/ckeditor/build-config.js @@ -1,21 +1,32 @@ - -/** - * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. - * For licensing, see LICENSE.html or http://ckeditor.com/license +/** + * @license Copyright (c) 2003-2014, 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 at http://ckeditor.com/builder to build CKEditor again. - * - * NOTE: + * 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/92360f6882b3ad9983742e54e809dc80 + * Visit online builder to build CKEditor, starting with the same setup as before. + * + * (3) http://ckeditor.com/builder/download/92360f6882b3ad9983742e54e809dc80 + * 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', + preset: 'full', ignore: [ 'dev', '.gitignore', @@ -24,77 +35,71 @@ var CKBUILDER_CONFIG = { '.mailmap' ], plugins : { - 'about' : 1, 'a11yhelp' : 1, + 'about' : 1, 'basicstyles' : 1, + 'bidi' : 1, 'blockquote' : 1, 'clipboard' : 1, + 'codemirror' : 1, + 'colorbutton' : 1, + 'colordialog' : 1, 'contextmenu' : 1, - 'resize' : 1, - 'toolbar' : 1, + 'dialogadvtab' : 1, + 'div' : 1, 'elementspath' : 1, 'enterkey' : 1, 'entities' : 1, 'filebrowser' : 1, + 'find' : 1, + 'flash' : 1, 'floatingspace' : 1, + 'font' : 1, 'format' : 1, - 'htmlwriter' : 1, + 'forms' : 1, 'horizontalrule' : 1, - 'wysiwygarea' : 1, + 'htmlwriter' : 1, + 'iframe' : 1, 'image' : 1, - 'indent' : 1, + 'indentblock' : 1, + 'indentlist' : 1, + 'justify' : 1, + 'language' : 1, 'link' : 1, 'list' : 1, + 'liststyle' : 1, 'magicline' : 1, 'maximize' : 1, - 'pastetext' : 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, - 'scayt' : 1, 'stylescombo' : 1, 'tab' : 1, 'table' : 1, 'tabletools' : 1, + 'templates' : 1, + 'toolbar' : 1, 'undo' : 1, 'wsc' : 1, - 'dialog' : 1, - 'dialogui' : 1, - 'menu' : 1, - 'floatpanel' : 1, - 'panel' : 1, - 'button' : 1, - 'popup' : 1, - 'richcombo' : 1, - 'listblock' : 1, - 'fakeobjects' : 1, - 'menubutton' : 1, - 'codemirror' : 1, - 'panelbutton' : 1, - 'colorbutton' : 1, - 'colordialog' : 1, - 'templates' : 1, - 'find' : 1, - 'font' : 1, - 'justify' : 1, - 'liststyle' : 1, - 'selectall' : 1, - 'showborders' : 1, - 'showblocks' : 1, - 'tableresize' : 1, - 'stylesheetparser' : 1, - 'youtube' : 1, - 'preview' : 1 + 'wysiwygarea' : 1, + 'youtube' : 1 }, languages : { - 'zh-cn' : 1, - 'zh' : 1, 'en' : 1, - 'fr' : 1, - 'ja' : 1, - 'ko' : 1, - 'ru' : 1, - 'es' : 1, + 'zh' : 1, + 'zh-cn' : 1 } }; \ No newline at end of file diff --git a/app/assets/javascripts/ckeditor/ckeditor.js b/app/assets/javascripts/ckeditor/ckeditor.js index f50df1b..4bd9240 100644 --- a/app/assets/javascripts/ckeditor/ckeditor.js +++ b/app/assets/javascripts/ckeditor/ckeditor.js @@ -1,421 +1,466 @@ /* -Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ -(function(){if(window.CKEDITOR&&window.CKEDITOR.dom)return;window.CKEDITOR||(window.CKEDITOR=function(){var b={timestamp:"D5AC",version:"4.1.2",revision:"d6f1e0e",rnd:Math.floor(900*Math.random())+100,_:{pending:[]},status:"unloaded",basePath:function(){var a=window.CKEDITOR_BASEPATH||"";if(!a)for(var b=document.getElementsByTagName("script"),d=0;d=0;p--)if(n[p].priority<=l){n.splice(p+1,0,j);return{removeListener:m}}n.unshift(j)}return{removeListener:m}}, -once:function(){var a=arguments[1];arguments[1]=function(b){b.removeListener();return a.apply(this,arguments)};return this.on.apply(this,arguments)},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,b=function(){a=1},d=0,i=function(){d=1};return function(l,j,m){var n=c(this)[l],l=a,q=d;a=d=0;if(n){var p=n.listeners;if(p.length)for(var p=p.slice(0),h,g=0;g=0&&d.listeners.splice(i,1)}},removeAllListeners:function(){var a=c(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=c(this)[a])&&a.listeners.length>0}}}()); -CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(b,c){b in{instanceReady:1,loaded:1}&&(this[b]=true);return CKEDITOR.event.prototype.fire.call(this,b,c,this)},CKEDITOR.editor.prototype.fireOnce=function(b,c){b in{instanceReady:1,loaded:1}&&(this[b]=true);return CKEDITOR.event.prototype.fireOnce.call(this,b,c,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)); -CKEDITOR.env||(CKEDITOR.env=function(){var b=navigator.userAgent.toLowerCase(),c=window.opera,a={ie:eval("/*@cc_on!@*/false"),opera:!!c&&c.version,webkit:b.indexOf(" applewebkit/")>-1,air:b.indexOf(" adobeair/")>-1,mac:b.indexOf("macintosh")>-1,quirks:document.compatMode=="BackCompat",mobile:b.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(b),isCustomDomain:function(){if(!this.ie)return false;var a=document.domain,e=window.location.hostname;return a!=e&&a!="["+e+"]"},secure:location.protocol== -"https:"};a.gecko=navigator.product=="Gecko"&&!a.webkit&&!a.opera;if(a.webkit)b.indexOf("chrome")>-1?a.chrome=true:a.safari=true;var e=0;if(a.ie){e=a.quirks||!document.documentMode?parseFloat(b.match(/msie (\d+)/)[1]):document.documentMode;a.ie9Compat=e==9;a.ie8Compat=e==8;a.ie7Compat=e==7;a.ie6Compat=e<7||a.quirks}if(a.gecko){var f=b.match(/rv:([\d\.]+)/);if(f){f=f[1].split(".");e=f[0]*1E4+(f[1]||0)*100+(f[2]||0)*1}}a.opera&&(e=parseFloat(c.version()));a.air&&(e=parseFloat(b.match(/ adobeair\/(\d+)/)[1])); -a.webkit&&(e=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]));a.version=e;a.isCompatible=a.iOS&&e>=534||!a.mobile&&(a.ie&&e>6||a.gecko&&e>=10801||a.opera&&e>=9.5||a.air&&e>=1||a.webkit&&e>=522||false);a.cssClass="cke_browser_"+(a.ie?"ie":a.gecko?"gecko":a.opera?"opera":a.webkit?"webkit":"unknown");if(a.quirks)a.cssClass=a.cssClass+" cke_browser_quirks";if(a.ie){a.cssClass=a.cssClass+(" cke_browser_ie"+(a.quirks||a.version<7?"6":a.version));if(a.quirks)a.cssClass=a.cssClass+" cke_browser_iequirks"}if(a.gecko)if(e< -10900)a.cssClass=a.cssClass+" cke_browser_gecko18";else if(e<=11E3)a.cssClass=a.cssClass+" cke_browser_gecko19";if(a.air)a.cssClass=a.cssClass+" cke_browser_air";if(a.iOS)a.cssClass=a.cssClass+" cke_browser_ios";return a}()); -"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!="basic_ready")CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var b=document.createElement("script");b.type="text/javascript";b.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(b)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(b){(this._.pending||(this._.pending=[])).push(b)};(function(){CKEDITOR.domReady(function(){var b= -CKEDITOR.loadFullCore,c=CKEDITOR.loadFullCoreTimeout;if(b){CKEDITOR.status="basic_ready";b&&b._load?b():c&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},c*1E3)}})})();CKEDITOR.status="basic_loaded"}();CKEDITOR.dom={}; -(function(){var b=[],c=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.opera?"-o-":CKEDITOR.env.ie?"-ms-":"";CKEDITOR.on("reset",function(){b=[]});CKEDITOR.tools={arrayCompare:function(a,e){if(!a&&!e)return true;if(!a||!e||a.length!=e.length)return false;for(var b=0;b"+b+""):f.push('');return f.join("")},htmlEncode:function(a){return(""+a).replace(/&/g,"&").replace(/>/g,">").replace(//g,">")},getNextNumber:function(){var a=0;return function(){return++a}}(),getNextId:function(){return"cke_"+this.getNextNumber()},override:function(a,b){var f=b(a);f.prototype=a.prototype;return f},setTimeout:function(a,b,f,d,c){c||(c=window);f||(f=c);return c.setTimeout(function(){d?a.apply(f,[].concat(d)):a.apply(f)},b||0)},trim:function(){var a=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(b){return b.replace(a,"")}}(),ltrim:function(){var a=/^[ \t\n\r]+/g; -return function(b){return b.replace(a,"")}}(),rtrim:function(){var a=/[ \t\n\r]+$/g;return function(b){return b.replace(a,"")}}(),indexOf:function(a,b){if(typeof b=="function")for(var f=0,d=a.length;f=0?a[f]:null},bind:function(a,b){return function(){return a.apply(b,arguments)}},createClass:function(a){var b=a.$, -f=a.base,d=a.privates||a._,c=a.proto,a=a.statics;!b&&(b=function(){f&&this.base.apply(this,arguments)});if(d)var l=b,b=function(){var a=this._||(this._={}),b;for(b in d){var e=d[b];a[b]=typeof e=="function"?CKEDITOR.tools.bind(e,this):e}l.apply(this,arguments)};if(f){b.prototype=this.prototypedCopy(f.prototype);b.prototype.constructor=b;b.base=f;b.baseProto=f.prototype;b.prototype.base=function(){this.base=f.prototype.base;f.apply(this,arguments);this.base=arguments.callee}}c&&this.extend(b.prototype, -c,true);a&&this.extend(b,a,true);return b},addFunction:function(a,e){return b.push(function(){return a.apply(e||this,arguments)})-1},removeFunction:function(a){b[a]=null},callFunction:function(a){var e=b[a];return e&&e.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var a=/^-?\d+\.?\d*px$/,b;return function(f){b=CKEDITOR.tools.trim(f+"")+"px";return a.test(b)?b:f||""}}(),convertToPx:function(){var a;return function(b){if(!a){a=CKEDITOR.dom.element.createFromHtml('
', -CKEDITOR.document);CKEDITOR.document.getBody().append(a)}if(!/%$/.test(b)){a.setStyle("width",b);return a.$.clientWidth}return b}}(),repeat:function(a,b){return Array(b+1).join(a)},tryThese:function(){for(var a,b=0,f=arguments.length;b=0;r--)if(o[r].priority<=n){o.splice(r+1,0,i);return{removeListener:k}}o.unshift(i)}return{removeListener:k}}, +once:function(){var a=arguments[1];arguments[1]=function(d){d.removeListener();return a.apply(this,arguments)};return this.on.apply(this,arguments)},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,d=function(){a=1},f=0,b=function(){f=1};return function(n,i,k){var o=e(this)[n],n=a,s=f;a=f=0;if(o){var r=o.listeners;if(r.length)for(var r=r.slice(0),v,g=0;g=0&&f.listeners.splice(b,1)}},removeAllListeners:function(){var a=e(this),d;for(d in a)delete a[d]},hasListeners:function(a){return(a=e(this)[a])&&a.listeners.length>0}}}()); +CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fire.call(this,a,e,this)},CKEDITOR.editor.prototype.fireOnce=function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fireOnce.call(this,a,e,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)); +CKEDITOR.env||(CKEDITOR.env=function(){var a=navigator.userAgent.toLowerCase(),e={ie:a.indexOf("trident/")>-1,webkit:a.indexOf(" applewebkit/")>-1,air:a.indexOf(" adobeair/")>-1,mac:a.indexOf("macintosh")>-1,quirks:document.compatMode=="BackCompat"&&(!document.documentMode||document.documentMode<10),mobile:a.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(a),isCustomDomain:function(){if(!this.ie)return false;var a=document.domain,f=window.location.hostname;return a!=f&&a!="["+f+"]"},secure:location.protocol== +"https:"};e.gecko=navigator.product=="Gecko"&&!e.webkit&&!e.ie;if(e.webkit)a.indexOf("chrome")>-1?e.chrome=true:e.safari=true;var b=0;if(e.ie){b=e.quirks||!document.documentMode?parseFloat(a.match(/msie (\d+)/)[1]):document.documentMode;e.ie9Compat=b==9;e.ie8Compat=b==8;e.ie7Compat=b==7;e.ie6Compat=b<7||e.quirks}if(e.gecko){var c=a.match(/rv:([\d\.]+)/);if(c){c=c[1].split(".");b=c[0]*1E4+(c[1]||0)*100+(c[2]||0)*1}}e.air&&(b=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));e.webkit&&(b=parseFloat(a.match(/ applewebkit\/(\d+)/)[1])); +e.version=b;e.isCompatible=e.iOS&&b>=534||!e.mobile&&(e.ie&&b>6||e.gecko&&b>=2E4||e.air&&b>=1||e.webkit&&b>=522||false);e.hidpi=window.devicePixelRatio>=2;e.needsBrFiller=e.gecko||e.webkit||e.ie&&b>10;e.needsNbspFiller=e.ie&&b<11;e.cssClass="cke_browser_"+(e.ie?"ie":e.gecko?"gecko":e.webkit?"webkit":"unknown");if(e.quirks)e.cssClass=e.cssClass+" cke_browser_quirks";if(e.ie)e.cssClass=e.cssClass+(" cke_browser_ie"+(e.quirks?"6 cke_browser_iequirks":e.version));if(e.air)e.cssClass=e.cssClass+" cke_browser_air"; +if(e.iOS)e.cssClass=e.cssClass+" cke_browser_ios";if(e.hidpi)e.cssClass=e.cssClass+" cke_hidpi";return e}()); +"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!="basic_ready")CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var a=document.createElement("script");a.type="text/javascript";a.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(a)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(a){(this._.pending||(this._.pending=[])).push(a)};(function(){CKEDITOR.domReady(function(){var a= +CKEDITOR.loadFullCore,e=CKEDITOR.loadFullCoreTimeout;if(a){CKEDITOR.status="basic_ready";a&&a._load?a():e&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},e*1E3)}})})();CKEDITOR.status="basic_loaded"}();CKEDITOR.dom={}; +(function(){var a=[],e=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",b=/&/g,c=/>/g,d=/"+d+""):f.push('');return f.join("")},htmlEncode:function(a){return(""+a).replace(b, +"&").replace(c,">").replace(d,"<")},htmlDecode:function(a){return a.replace(h,"&").replace(n,">").replace(i,"<")},htmlEncodeAttr:function(a){return a.replace(f,""").replace(d,"<").replace(c,">")},htmlDecodeAttr:function(a){return a.replace(k,'"').replace(i,"<").replace(n,">")},getNextNumber:function(){var a=0;return function(){return++a}}(),getNextId:function(){return"cke_"+this.getNextNumber()},override:function(a,d){var f=d(a);f.prototype=a.prototype;return f},setTimeout:function(a, +d,f,b,g){g||(g=window);f||(f=g);return g.setTimeout(function(){b?a.apply(f,[].concat(b)):a.apply(f)},d||0)},trim:function(){var a=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(d){return d.replace(a,"")}}(),ltrim:function(){var a=/^[ \t\n\r]+/g;return function(d){return d.replace(a,"")}}(),rtrim:function(){var a=/[ \t\n\r]+$/g;return function(d){return d.replace(a,"")}}(),indexOf:function(a,d){if(typeof d=="function")for(var f=0,b=a.length;f=0?a[f]:null},bind:function(a,d){return function(){return a.apply(d,arguments)}},createClass:function(a){var d=a.$,f=a.base,b=a.privates||a._,g=a.proto,a=a.statics;!d&&(d=function(){f&&this.base.apply(this,arguments)});if(b)var e=d,d=function(){var a=this._||(this._={}),d;for(d in b){var g=b[d];a[d]=typeof g=="function"?CKEDITOR.tools.bind(g,this):g}e.apply(this,arguments)};if(f){d.prototype= +this.prototypedCopy(f.prototype);d.prototype.constructor=d;d.base=f;d.baseProto=f.prototype;d.prototype.base=function(){this.base=f.prototype.base;f.apply(this,arguments);this.base=arguments.callee}}g&&this.extend(d.prototype,g,true);a&&this.extend(d,a,true);return d},addFunction:function(d,f){return a.push(function(){return d.apply(f||this,arguments)})-1},removeFunction:function(d){a[d]=null},callFunction:function(d){var f=a[d];return f&&f.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var a= +/^-?\d+\.?\d*px$/,d;return function(f){d=CKEDITOR.tools.trim(f+"")+"px";return a.test(d)?d:f||""}}(),convertToPx:function(){var a;return function(d){if(!a){a=CKEDITOR.dom.element.createFromHtml('
',CKEDITOR.document);CKEDITOR.document.getBody().append(a)}if(!/%$/.test(d)){a.setStyle("width",d);return a.$.clientWidth}return d}}(),repeat:function(a,d){return Array(d+1).join(a)},tryThese:function(){for(var a, +d=0,f=arguments.length;d8)&&c)b=c+":"+b;return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(b))},getHead:function(){var b=this.$.getElementsByTagName("head")[0];return b= -b?new CKEDITOR.dom.element(b):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),true)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(b){this.$.open("text/html","replace");CKEDITOR.env.ie&&(b=b.replace(/(?:^\s*]*?>)|^/i,'$&\n - - diff --git a/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html b/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html index 88e1afe..61203e0 100644 --- a/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +++ b/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html @@ -1,6 +1,6 @@ diff --git a/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css b/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css index e163948..da2f174 100644 --- a/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +++ b/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ diff --git a/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js b/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js index 897faba..443145c 100644 --- a/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +++ b/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js @@ -1,64 +1,74 @@ /* - Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. + Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ -var ManagerPostMessage=function(){return{init:function(b){document.addEventListener?window.addEventListener("message",b,!1):window.attachEvent("onmessage",b)},send:function(b){var g=Object.prototype.toString;fn=b.fn||null;id=b.id||"";target=b.target||window;message=b.message||{id:id};"[object Object]"==g.call(b.message)&&(b.message.id||(b.message.id=id),message=b.message);b=JSON.stringify(message,fn);target.postMessage(b,"*")}}},tools={hash:{create:function(b,g){return JSON.stringify(b,g||null)}, -parse:function(b,g){return JSON.parse(b,g||null)}},filter4html:function(b){return b.replace(/"/g,""").replace(/'/g,"’")},setCookie:function(b,g,d){var d=d||{},e=d.expires;if("number"==typeof e&&e){var f=new Date;f.setTime(f.getTime()+1E3*e);e=d.expires=f}e&&e.toUTCString&&(d.expires=e.toUTCString());var g=encodeURIComponent(g),b=b+"="+g,j;for(j in d)b+="; "+j,g=d[j],!0!==g&&(b+="="+g);document.cookie=b},getCookie:function(b){return(b=document.cookie.match(RegExp("(?:^|; )"+b.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, -"\\$1")+"=([^;]*)")))?decodeURIComponent(b[1]):void 0},deleteCookie:function(b){setCookie(b,"",{expires:-1})}},optionsDataObject={},NS={},nameNode=null;NS.targetFromFrame={};NS.wsc_customerId=CKEDITOR.config.wsc_customerId;NS.cust_dic_ids=CKEDITOR.config.wsc_customDictionaryIds;NS.userDictionaryName=CKEDITOR.config.wsc_userDictionaryName;NS.defaultLanguage=CKEDITOR.config.defaultLanguage;NS.LocalizationComing={};function OptionsConfirm(b){b&&nameNode.setValue("")} -CKEDITOR.dialog.add("checkspell",function(b){function g(a){if(!a)throw"Languages-by-groups list are required for construct selectbox";var c=[],h="",b;for(b in a)for(var e in a[b]){var d=a[b][e];"en_US"==d?h=d:c.push(d)}c.sort();h&&c.unshift(h);return{getCurrentLangGroup:function(c){a:{for(var h in a)for(var b in a[h])if(b.toUpperCase()===c.toUpperCase()){c=h;break a}c=""}return c},setLangList:function(){var c={},h;for(h in a)for(var b in a[h])c[a[h][b]]=b;return c}()}}CKEDITOR.on("dialogDefinition", -function(a){a.data.definition.dialog.on("cancel",function(){return!1},this,null,-1)});NS.CKNumber=CKEDITOR.tools.getNextNumber();NS.iframeNumber="cke_frame_"+NS.CKNumber;NS.TextAreaNumber="cke_textarea_"+NS.CKNumber;NS.pluginPath=CKEDITOR.getUrl(b.plugins.wsc.path);NS.logotype=DefaultParams.logoPath;NS.templatePath=NS.pluginPath+"dialogs/tmp.html";NS.div_overlay_no_check=null;NS.loadIcon=DefaultParams.iconPath;NS.loadIconEmptyEditor=DefaultParams.iconPathEmptyEditor;NS.LangComparer=new _SP_FCK_LangCompare; -NS.LangComparer.setDefaulLangCode(NS.defaultLanguage);NS.currentLang=b.config.wsc_lang||NS.LangComparer.getSPLangCode(b.langCode);NS.LocalizationButton={ChangeTo:{instance:null,text:"Change to"},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:{instance:null,text:"Finish Checking"}}; -NS.LocalizationLabel={ChangeTo:{instance:null,text:"Change to"},Suggestions:{instance:null,text:"Suggestions"}};var d=function(a){for(var c in a)a[c].instance.getElement().setText(NS.LocalizationComing[c])},e=function(a){for(var c in a){if(!a[c].instance.setLabel)break;a[c].instance.setLabel(NS.LocalizationComing[c])}};NS.load=!0;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.selectingLang=NS.currentLang;NS.langList=null;NS.serverLocationHash=DefaultParams.serviceHost;NS.serverLocation="#server="+NS.serverLocationHash;NS.langSelectbox=null;NS.banner="";var f=null;iframeOnload=!1;NS.framesetHtml=function(a){return''}; -NS.setIframe=function(a,c){var h=NS.framesetHtml(c);return a.getElement().setHtml(h)};NS.setCurrentIframe=function(a){NS.setIframe(NS.dialog._.contents[a].Content,a)};NS.sendData=function(){var a=NS.dialog._.currentTabId,c=NS.dialog._.contents[a].Content,h,b;NS.setIframe(c,a);NS.dialog.parts.tabs.removeAllListeners();NS.dialog.parts.tabs.on("click",function(e){e=e||window.event;e.data.getTarget().is("a")&&a!=NS.dialog._.currentTabId&&(a=NS.dialog._.currentTabId,c=NS.dialog._.contents[a].Content,h= -NS.iframeNumber+"_"+a,0==c.getElement().$.children.length?(NS.setIframe(c,a),b=document.getElementById(h),NS.targetFromFrame[h]=b.contentWindow):o(NS.targetFromFrame[h],NS.cmd[a]))})};NS.buildOptionSynonyms=function(a){a=NS.selectNodeResponce[a];NS.selectNode.synonyms.clear();for(var c=0;c"},{type:"html",id:"Content",label:"spellContent",html:"",onLoad:function(){var a= -NS.iframeNumber+"_"+NS.dialog._.currentTabId,b=document.getElementById(a);NS.targetFromFrame[a]=b.contentWindow},onShow:function(){NS.dataTemp=NS.dialog.getParentEditor().getData();NS.div_overlay.setEnable()}},{type:"hbox",id:"bottomGroup",widths:["50%","50%"],children:[{type:"hbox",id:"leftCol",align:"left",width:"50%",children:[{type:"vbox",id:"rightCol1",widths:["50%","50%"],children:[{type:"text",id:"text",label:NS.LocalizationLabel.ChangeTo.text+":",labelLayout:"horizontal",labelStyle:"font: 12px/25px arial, sans-serif;", -width:"140px","default":"",onLoad:function(){NS.textNode.SpellTab=this;NS.LocalizationLabel.ChangeTo.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+":",onLoad:function(){NS.LocalizationLabel.Suggestions.instance=this;this.getInputElement().hide()}},{type:"html",id:"logo",html:'WebSpellChecker.net', -onShow:function(){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},onHide:function(){this.clear()},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",label:NS.LocalizationButton.ChangeTo.text,title:"Change to",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);NS.LocalizationButton.ChangeTo.instance=this},onClick:i},{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:i},{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:i},{type:"button",id:"FinishChecking",label:NS.LocalizationButton.FinishChecking.text,title:"Finish Checking",style:"width: 100%;margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);NS.LocalizationButton.FinishChecking.instance= -this},onClick:i}]},{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:i},{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:i},{type:"button",id:"option",label:NS.LocalizationButton.Options.text,title:"Option",style:"width: 100%;",onLoad:function(){NS.LocalizationButton.Options.instance=this},onClick:function(){b.openDialog("options")}}]}]}]},{type:"hbox",id:"BlockFinishChecking",widths:["70%","30%"],onShow:function(){this.getElement().hide()},onHide:l,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1", -children:[{type:"html",id:"logo",html:'WebSpellChecker.net',onShow: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:"Option_button",label:NS.LocalizationButton.Options.text,title:"Option",style:"width: 100%;", -onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:function(){b.openDialog("options")}},{type:"button",id:"FinishChecking",label:NS.LocalizationButton.FinishChecking.text,title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i}]}]}]}]},{id:"GrammTab",label:"Grammar",accessKey:"G",elements:[{type:"html",id:"banner",label:"banner",html:"
"},{type:"html",id:"Content",label:"GrammarContent",html:"", -onShow:function(){var a=NS.iframeNumber+"_"+NS.dialog._.currentTabId,b=document.getElementById(a);NS.targetFromFrame[a]=b.contentWindow}},{type:"vbox",id:"bottomGroup",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; float: right;margin-right: 80px;",inputStyle:"",width:"200px","default":"",onLoad:function(){NS.textNode.GrammTab=this},onHide:function(){this.reset()}}, -{type:"html",id:"html_text",html:"
",onLoad:function(){NS.textNodeInfo.GrammTab=this}},{type:"html",id:"radio",html:"",onLoad:function(){NS.grammerSuggest=this}}]},{type:"vbox",children:[{type:"button",id:"ChangeTo",label:"Change to",title:"Change to",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd", -this.id)},onClick:i},{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:i},{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:i},{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 133px; float: right; margin-top: 9px;", -onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i}]}]}]},{type:"hbox",id:"BlockFinishChecking",widths:["70%","30%"],onShow:function(){this.getElement().hide()},onHide:l,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",id:"logo",html:'WebSpellChecker.net',onShow: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",label:"Finish Checking",title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i}]}]}]}]},{id:"Thesaurus",label:"Thesaurus",accessKey:"T",elements:[{type:"html",id:"banner",label:"banner",html:"
"}, -{type:"html",id:"Content",label:"spellContent",html:"",onShow:function(){var a=NS.iframeNumber+"_"+NS.dialog._.currentTabId,b=document.getElementById(a);NS.targetFromFrame[a]=b.contentWindow}},{type:"vbox",id:"bottomGroup",children:[{type:"hbox",widths:["75%","25%"],children:[{type:"vbox",children:[{type:"hbox",widths:["65%","35%"],children:[{type:"text",id:"ChangeTo",label:"Change to:",labelLayout:"horizontal",inputStyle:"width: 160px;",labelStyle:"font: 12px/25px arial, sans-serif;","default":"", -onLoad:function(){NS.textNode.Thesaurus=this},onHide:function(){this.reset()}},{type:"button",id:"ChangeTo",label:"Change to",title:"Change to",style:"width: 121px; margin-top: 1px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i}]},{type:"hbox",children:[{type:"select",id:"categories",label:"Categories:",labelStyle:"font: 12px/25px arial, sans-serif;",size:"6",inputStyle:"width: 180px; height: auto;",items:[],onLoad:function(){NS.selectNode.categories=this},onHide:function(){this.clear()}, -onChange:function(){NS.buildOptionSynonyms(this.getValue())}},{type:"select",id:"synonyms",label:"Synonyms:",labelStyle:"font: 12px/25px arial, sans-serif;",size:"6",inputStyle:"width: 180px; height: auto;",items:[],onLoad:function(){NS.selectNode.synonyms=this},onShow:function(){NS.textNode.Thesaurus.setValue(this.getValue())},onHide:function(){this.clear()},onChange:function(){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',onShow:function(){this.getElement().$.src=NS.logotype;this.getElement().getParent().setStyles({"text-align":"center"})}},{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 121px; float: right; margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)}, -onClick:i}]}]}]},{type:"hbox",id:"BlockFinishChecking",widths:["70%","30%"],onShow:function(){this.getElement().hide()},onHide:l,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",id:"logo",html:'WebSpellChecker.net',onShow: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",label:"Finish Checking",title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i}]}]}]}]}]}}); -CKEDITOR.dialog.add("options",function(){var b=new ManagerPostMessage,g=null,d={},e={},f=null,j=null;tools.getCookie("udn");tools.getCookie("osp");var k=function(){j=this.getElement().getAttribute("title-cmd");var d=[];d[0]=e.IgnoreAllCapsWords;d[1]=e.IgnoreWordsNumbers;d[2]=e.IgnoreMixedCaseWords;d[3]=e.IgnoreDomainNames;d=d.toString().replace(/,/g,"");tools.setCookie("osp",d);tools.setCookie("udnCmd",j?j:"ignore");"delete"!=j&&tools.setCookie("udn",""==nameNode.getValue()?"":nameNode.getValue()); -b.send({id:"options_dic_send"})},m=function(){f.getElement().setHtml(NS.LocalizationComing.error);f.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(){f=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(){e[this.id]=!1==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(){e[this.id]=!1==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(){e[this.id]=!1==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(){e[this.id]=!1==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;this.setValue(NS.userDictionaryName?NS.userDictionaryName:(tools.getCookie("udn"),this.getValue()))},onShow:function(){nameNode=this;this.setValue(!tools.getCookie("udn")?this.getValue():tools.getCookie("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(){this.getElement().setText(NS.LocalizationComing.Create)},onClick:k},{type:"button",id:"restore",label:"Restore",title:"Restore",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(NS.LocalizationComing.Restore)},onClick:k}]}, -{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(){this.getElement().setText(NS.LocalizationComing.Rename)},onClick:k},{type:"button",id:"delete",label:"Remove",title:"Remove",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(NS.LocalizationComing.Remove)}, -onClick:k}]}]}]}]},{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(){var d=[];d[0]=e.IgnoreAllCapsWords;d[1]=e.IgnoreWordsNumbers;d[2]=e.IgnoreMixedCaseWords;d[3]= -e.IgnoreDomainNames;d=d.toString().replace(/,/g,"");tools.setCookie("osp",d);tools.setCookie("udn",nameNode.getValue());b.send({id:"options_checkbox_send"});f.getElement().hide();f.getElement().setHtml(" ")},onLoad:function(){g=this;b.init(m);d.IgnoreAllCapsWords=g.getContentElement("OptionsTab","IgnoreAllCapsWords");d.IgnoreWordsNumbers=g.getContentElement("OptionsTab","IgnoreWordsNumbers");d.IgnoreMixedCaseWords=g.getContentElement("OptionsTab","IgnoreMixedCaseWords");d.IgnoreDomainNames=g.getContentElement("OptionsTab", -"IgnoreDomainNames")},onShow:function(){strToArr=tools.getCookie("osp").split("");e.IgnoreAllCapsWords=strToArr[0];e.IgnoreWordsNumbers=strToArr[1];e.IgnoreMixedCaseWords=strToArr[2];e.IgnoreDomainNames=strToArr[3];0==e.IgnoreAllCapsWords?d.IgnoreAllCapsWords.setValue("",!1):d.IgnoreAllCapsWords.setValue("checked",!1);0==e.IgnoreWordsNumbers?d.IgnoreWordsNumbers.setValue("",!1):d.IgnoreWordsNumbers.setValue("checked",!1);0==e.IgnoreMixedCaseWords?d.IgnoreMixedCaseWords.setValue("",!1):d.IgnoreMixedCaseWords.setValue("checked", -!1);0==e.IgnoreDomainNames?d.IgnoreDomainNames.setValue("",!1):d.IgnoreDomainNames.setValue("checked",!1);e.IgnoreAllCapsWords=!1==d.IgnoreAllCapsWords.getValue()?0:1;e.IgnoreWordsNumbers=!1==d.IgnoreWordsNumbers.getValue()?0:1;e.IgnoreMixedCaseWords=!1==d.IgnoreMixedCaseWords.getValue()?0:1;e.IgnoreDomainNames=!1==d.IgnoreDomainNames.getValue()?0:1;d.IgnoreAllCapsWords.getElement().$.lastChild.innerHTML=NS.LocalizationComing.IgnoreAllCapsWords;d.IgnoreWordsNumbers.getElement().$.lastChild.innerHTML= -NS.LocalizationComing.IgnoreWordsWithNumbers;d.IgnoreMixedCaseWords.getElement().$.lastChild.innerHTML=NS.LocalizationComing.IgnoreMixedCaseWords;d.IgnoreDomainNames.getElement().$.lastChild.innerHTML=NS.LocalizationComing.IgnoreDomainNames}}}); \ No newline at end of file +(function(){function y(a){if(!a)throw"Languages-by-groups list are required for construct selectbox";var c=[],d="",f;for(f in a)for(var g in a[f]){var h=a[f][g];"en_US"==h?d=h:c.push(h)}c.sort();d&&c.unshift(d);return{getCurrentLangGroup:function(c){a:{for(var d in a)for(var f in a[d])if(f.toUpperCase()===c.toUpperCase()){c=d;break a}c=""}return c},setLangList:function(){var c={},d;for(d in a)for(var f in a[d])c[a[d][f]]=f;return c}()}}var e=function(){var a=function(a,b,f){var f=f||{},g=f.expires; +if("number"==typeof g&&g){var h=new Date;h.setTime(h.getTime()+1E3*g);g=f.expires=h}g&&g.toUTCString&&(f.expires=g.toUTCString());var b=encodeURIComponent(b),a=a+"="+b,e;for(e in f)b=f[e],a+="; "+e,!0!==b&&(a+="="+b);document.cookie=a};return{postMessage:{init:function(a){window.addEventListener?window.addEventListener("message",a,!1):window.attachEvent("onmessage",a)},send:function(a){var b=Object.prototype.toString,f=a.fn||null,g=a.id||"",e=a.target||window,i=a.message||{id:g};a.message&&"[object Object]"== +b.call(a.message)&&(a.message.id||(a.message.id=g),i=a.message);a=window.JSON.stringify(i,f);e.postMessage(a,"*")},unbindHandler:function(a){window.removeEventListener?window.removeEventListener("message",a,!1):window.detachEvent("onmessage",a)}},hash:{create:function(){},parse:function(){}},cookie:{set:a,get:function(a){return(a=document.cookie.match(RegExp("(?:^|; )"+a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")))?decodeURIComponent(a[1]):void 0},remove:function(c){a(c,"",{expires:-1})}}, +misc:{findFocusable:function(a){var b=null;a&&(b=a.find("a[href], area[href], input, select, textarea, button, *[tabindex], *[contenteditable]"));return b},isVisible:function(a){return!(0===a.offsetWidth||0==a.offsetHeight||"none"===(document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null).display:a.currentStyle?a.currentStyle.display:a.style.display))},hasClass:function(a,b){return!(!a.className||!a.className.match(RegExp("(\\s|^)"+b+"(\\s|$)")))}}}}(), +a=a||{};a.TextAreaNumber=null;a.load=!0;a.cmd={SpellTab:"spell",Thesaurus:"thes",GrammTab:"grammar"};a.dialog=null;a.optionNode=null;a.selectNode=null;a.grammerSuggest=null;a.textNode={};a.iframeMain=null;a.dataTemp="";a.div_overlay=null;a.textNodeInfo={};a.selectNode={};a.selectNodeResponce={};a.langList=null;a.langSelectbox=null;a.banner="";a.show_grammar=null;a.div_overlay_no_check=null;a.targetFromFrame={};a.onLoadOverlay=null;a.LocalizationComing={};a.OverlayPlace=null;a.LocalizationButton={ChangeTo:{instance:null, +text:"Change to"},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:{instance:null,text:"Finish Checking"}};a.LocalizationLabel={ChangeTo:{instance:null,text:"Change to"},Suggestions:{instance:null,text:"Suggestions"}};var z=function(b){var c,d;for(d in b)c=b[d].instance.getElement().getFirst()|| +b[d].instance.getElement(),c.setText(a.LocalizationComing[d])},A=function(b){for(var c in b){if(!b[c].instance.setLabel)break;b[c].instance.setLabel(a.LocalizationComing[c])}},j,q;a.framesetHtml=function(b){return"'};a.setIframe=function(b,c){var d;d=a.framesetHtml(c);var f=a.iframeNumber+"_"+c;b.getElement().setHtml(d); +d=document.getElementById(f);d=d.contentWindow?d.contentWindow:d.contentDocument.document?d.contentDocument.document:d.contentDocument;d.document.open();d.document.write('iframe