From d5429a3e82c544d5345a4274696c33b4d2ad7eb4 Mon Sep 17 00:00:00 2001 From: Paul Kerspe Date: Sun, 19 Mar 2017 21:54:36 +0100 Subject: [PATCH 1/5] updated ckeditor --- assets/ckeditor/CHANGES.md | 2 +- assets/ckeditor/LICENSE.md | 221 ++ assets/ckeditor/adapters/jquery.js | 389 +- assets/ckeditor/build-config.js | 87 +- assets/ckeditor/ckeditor.js | 1162 +----- assets/ckeditor/lang/af.js | 120 +- assets/ckeditor/lang/ar.js | 120 +- assets/ckeditor/lang/bg.js | 120 +- assets/ckeditor/lang/bn.js | 120 +- assets/ckeditor/lang/bs.js | 120 +- assets/ckeditor/lang/ca.js | 120 +- assets/ckeditor/lang/cs.js | 120 +- assets/ckeditor/lang/cy.js | 120 +- assets/ckeditor/lang/da.js | 120 +- assets/ckeditor/lang/de.js | 120 +- assets/ckeditor/lang/el.js | 120 +- assets/ckeditor/lang/en-au.js | 120 +- assets/ckeditor/lang/en-ca.js | 120 +- assets/ckeditor/lang/en-gb.js | 120 +- assets/ckeditor/lang/en.js | 120 +- assets/ckeditor/lang/eo.js | 120 +- assets/ckeditor/lang/es.js | 120 +- assets/ckeditor/lang/et.js | 120 +- assets/ckeditor/lang/eu.js | 120 +- assets/ckeditor/lang/fa.js | 120 +- assets/ckeditor/lang/fi.js | 120 +- assets/ckeditor/lang/fo.js | 120 +- assets/ckeditor/lang/fr-ca.js | 120 +- assets/ckeditor/lang/fr.js | 120 +- assets/ckeditor/lang/gl.js | 120 +- assets/ckeditor/lang/gu.js | 120 +- assets/ckeditor/lang/he.js | 120 +- assets/ckeditor/lang/hi.js | 120 +- assets/ckeditor/lang/hr.js | 120 +- assets/ckeditor/lang/hu.js | 120 +- assets/ckeditor/lang/id.js | 119 +- assets/ckeditor/lang/is.js | 120 +- assets/ckeditor/lang/it.js | 120 +- assets/ckeditor/lang/ja.js | 120 +- assets/ckeditor/lang/ka.js | 120 +- assets/ckeditor/lang/km.js | 120 +- assets/ckeditor/lang/ko.js | 120 +- assets/ckeditor/lang/ku.js | 119 +- assets/ckeditor/lang/lt.js | 120 +- assets/ckeditor/lang/lv.js | 120 +- assets/ckeditor/lang/mk.js | 119 +- assets/ckeditor/lang/mn.js | 120 +- assets/ckeditor/lang/ms.js | 120 +- assets/ckeditor/lang/nb.js | 120 +- assets/ckeditor/lang/nl.js | 120 +- assets/ckeditor/lang/no.js | 120 +- assets/ckeditor/lang/pl.js | 120 +- assets/ckeditor/lang/pt-br.js | 119 +- assets/ckeditor/lang/pt.js | 120 +- assets/ckeditor/lang/ro.js | 120 +- assets/ckeditor/lang/ru.js | 120 +- assets/ckeditor/lang/si.js | 119 +- assets/ckeditor/lang/sk.js | 120 +- assets/ckeditor/lang/sl.js | 120 +- assets/ckeditor/lang/sq.js | 119 +- assets/ckeditor/lang/sr-latn.js | 120 +- assets/ckeditor/lang/sr.js | 120 +- assets/ckeditor/lang/sv.js | 119 +- assets/ckeditor/lang/th.js | 120 +- assets/ckeditor/lang/tr.js | 119 +- assets/ckeditor/lang/tt.js | 120 +- assets/ckeditor/lang/ug.js | 119 +- assets/ckeditor/lang/uk.js | 120 +- assets/ckeditor/lang/vi.js | 120 +- assets/ckeditor/lang/zh-cn.js | 120 +- assets/ckeditor/lang/zh.js | 120 +- .../plugins/a11yhelp/dialogs/a11yhelp.js | 227 +- .../plugins/a11yhelp/dialogs/lang/af.js | 151 +- .../plugins/a11yhelp/dialogs/lang/ar.js | 150 +- .../plugins/a11yhelp/dialogs/lang/az.js | 151 +- .../plugins/a11yhelp/dialogs/lang/bg.js | 150 +- .../plugins/a11yhelp/dialogs/lang/ca.js | 152 +- .../plugins/a11yhelp/dialogs/lang/cs.js | 152 +- .../plugins/a11yhelp/dialogs/lang/cy.js | 151 +- .../plugins/a11yhelp/dialogs/lang/da.js | 151 +- .../plugins/a11yhelp/dialogs/lang/de-ch.js | 151 +- .../plugins/a11yhelp/dialogs/lang/de.js | 151 +- .../plugins/a11yhelp/dialogs/lang/el.js | 151 +- .../plugins/a11yhelp/dialogs/lang/en-gb.js | 150 +- .../plugins/a11yhelp/dialogs/lang/en.js | 169 +- .../plugins/a11yhelp/dialogs/lang/eo.js | 152 +- .../plugins/a11yhelp/dialogs/lang/es.js | 153 +- .../plugins/a11yhelp/dialogs/lang/et.js | 150 +- .../plugins/a11yhelp/dialogs/lang/eu.js | 152 +- .../plugins/a11yhelp/dialogs/lang/fa.js | 151 +- .../plugins/a11yhelp/dialogs/lang/fi.js | 151 +- .../plugins/a11yhelp/dialogs/lang/fo.js | 150 +- .../plugins/a11yhelp/dialogs/lang/fr-ca.js | 151 +- .../plugins/a11yhelp/dialogs/lang/fr.js | 153 +- .../plugins/a11yhelp/dialogs/lang/gl.js | 151 +- .../plugins/a11yhelp/dialogs/lang/gu.js | 150 +- .../plugins/a11yhelp/dialogs/lang/he.js | 150 +- .../plugins/a11yhelp/dialogs/lang/hi.js | 150 +- .../plugins/a11yhelp/dialogs/lang/hr.js | 151 +- .../plugins/a11yhelp/dialogs/lang/hu.js | 151 +- .../plugins/a11yhelp/dialogs/lang/id.js | 151 +- .../plugins/a11yhelp/dialogs/lang/it.js | 153 +- .../plugins/a11yhelp/dialogs/lang/ja.js | 149 +- .../plugins/a11yhelp/dialogs/lang/km.js | 150 +- .../plugins/a11yhelp/dialogs/lang/ko.js | 150 +- .../plugins/a11yhelp/dialogs/lang/ku.js | 151 +- .../plugins/a11yhelp/dialogs/lang/lt.js | 150 +- .../plugins/a11yhelp/dialogs/lang/lv.js | 151 +- .../plugins/a11yhelp/dialogs/lang/mk.js | 151 +- .../plugins/a11yhelp/dialogs/lang/mn.js | 150 +- .../plugins/a11yhelp/dialogs/lang/nb.js | 151 +- .../plugins/a11yhelp/dialogs/lang/nl.js | 152 +- .../plugins/a11yhelp/dialogs/lang/no.js | 151 +- .../plugins/a11yhelp/dialogs/lang/oc.js | 152 +- .../plugins/a11yhelp/dialogs/lang/pl.js | 153 +- .../plugins/a11yhelp/dialogs/lang/pt-br.js | 152 +- .../plugins/a11yhelp/dialogs/lang/pt.js | 152 +- .../plugins/a11yhelp/dialogs/lang/ro.js | 151 +- .../plugins/a11yhelp/dialogs/lang/ru.js | 151 +- .../plugins/a11yhelp/dialogs/lang/si.js | 150 +- .../plugins/a11yhelp/dialogs/lang/sk.js | 151 +- .../plugins/a11yhelp/dialogs/lang/sl.js | 151 +- .../plugins/a11yhelp/dialogs/lang/sq.js | 151 +- .../plugins/a11yhelp/dialogs/lang/sr-latn.js | 150 +- .../plugins/a11yhelp/dialogs/lang/sr.js | 150 +- .../plugins/a11yhelp/dialogs/lang/sv.js | 151 +- .../plugins/a11yhelp/dialogs/lang/th.js | 150 +- .../plugins/a11yhelp/dialogs/lang/tr.js | 152 +- .../plugins/a11yhelp/dialogs/lang/tt.js | 151 +- .../plugins/a11yhelp/dialogs/lang/ug.js | 151 +- .../plugins/a11yhelp/dialogs/lang/uk.js | 152 +- .../plugins/a11yhelp/dialogs/lang/vi.js | 151 +- .../plugins/a11yhelp/dialogs/lang/zh-cn.js | 149 +- .../plugins/a11yhelp/dialogs/lang/zh.js | 149 +- .../ckeditor/plugins/about/dialogs/about.js | 81 +- .../ckeditor/plugins/accordionList/plugin.js | 2 +- .../plugins/bootstrapTabs/LICENSE-GPL | 674 ---- .../plugins/bootstrapTabs/LICENSE-LGPL | 165 - .../plugins/bootstrapTabs/LICENSE-MPL | 373 -- .../ckeditor/plugins/bootstrapTabs/README.md | 11 - .../bootstrapTabs/dialogs/bootstrapTabs.js | 8 - .../bootstrapTabs/sample/bootstrapTabs.html | 32 - .../plugins/ckawesome/dialogs/ckawesome.css | 5 - .../plugins/ckawesome/dialogs/ckawesome.js | 6 - .../resources/select2/select2.full.min.css | 1 - .../resources/select2/select2.full.min.js | 141 - .../plugins/clipboard/dialogs/paste.js | 266 +- .../plugins/collapsibleItem/plugin.js | 2 +- .../colordialog/dialogs/colordialog.js | 357 +- .../plugins/custimage/dialogs/custimage.js | 2 - .../plugins/custimage/dialogs/dialogtest.html | 28 - .../plugins/custimage/dialogs/myblog.png | Bin 5836 -> 0 bytes .../plugins/custimage/images/noimage.png | Bin 2115 -> 0 bytes .../plugins/dialog/dialogDefinition.js | 1036 +++++- assets/ckeditor/plugins/find/dialogs/find.js | 25 - .../plugins/glyphicons/css/js/bootstrap.js | 2443 ++++++++++++- .../glyphicons/css/js/bootstrap.min.js | 89 +- .../plugins/glyphicons/dialogs/glyphicons.js | 147 +- assets/ckeditor/plugins/icons.png | Bin 8320 -> 0 bytes assets/ckeditor/plugins/icons_hidpi.png | Bin 24323 -> 0 bytes .../ckeditor/plugins/image/dialogs/image.js | 1298 ++++++- .../ckeditor/plugins/link/dialogs/anchor.js | 112 +- assets/ckeditor/plugins/link/dialogs/link.js | 1007 ++++- assets/ckeditor/plugins/oembed/LICENSE.md | 21 - assets/ckeditor/plugins/oembed/README.md | 201 - .../plugins/oembed/libs/jquery.oembed.min.js | 71 - .../plugins/pastefromword/filter/default.js | 1913 +++++++++- .../ckeditor/plugins/scayt/dialogs/options.js | 592 ++- .../plugins/specialchar/dialogs/lang/af.js | 138 +- .../plugins/specialchar/dialogs/lang/ar.js | 138 +- .../plugins/specialchar/dialogs/lang/az.js | 135 +- .../plugins/specialchar/dialogs/lang/bg.js | 138 +- .../plugins/specialchar/dialogs/lang/ca.js | 139 +- .../plugins/specialchar/dialogs/lang/cs.js | 138 +- .../plugins/specialchar/dialogs/lang/cy.js | 139 +- .../plugins/specialchar/dialogs/lang/da.js | 136 +- .../plugins/specialchar/dialogs/lang/de-ch.js | 138 +- .../plugins/specialchar/dialogs/lang/de.js | 138 +- .../plugins/specialchar/dialogs/lang/el.js | 138 +- .../plugins/specialchar/dialogs/lang/en-gb.js | 138 +- .../plugins/specialchar/dialogs/lang/en.js | 138 +- .../plugins/specialchar/dialogs/lang/eo.js | 137 +- .../plugins/specialchar/dialogs/lang/es.js | 138 +- .../plugins/specialchar/dialogs/lang/et.js | 138 +- .../plugins/specialchar/dialogs/lang/eu.js | 138 +- .../plugins/specialchar/dialogs/lang/fa.js | 137 +- .../plugins/specialchar/dialogs/lang/fi.js | 138 +- .../plugins/specialchar/dialogs/lang/fr-ca.js | 135 +- .../plugins/specialchar/dialogs/lang/fr.js | 137 +- .../plugins/specialchar/dialogs/lang/gl.js | 138 +- .../plugins/specialchar/dialogs/lang/he.js | 137 +- .../plugins/specialchar/dialogs/lang/hr.js | 138 +- .../plugins/specialchar/dialogs/lang/hu.js | 137 +- .../plugins/specialchar/dialogs/lang/id.js | 138 +- .../plugins/specialchar/dialogs/lang/it.js | 139 +- .../plugins/specialchar/dialogs/lang/ja.js | 134 +- .../plugins/specialchar/dialogs/lang/km.js | 138 +- .../plugins/specialchar/dialogs/lang/ko.js | 135 +- .../plugins/specialchar/dialogs/lang/ku.js | 138 +- .../plugins/specialchar/dialogs/lang/lt.js | 138 +- .../plugins/specialchar/dialogs/lang/lv.js | 138 +- .../plugins/specialchar/dialogs/lang/nb.js | 136 +- .../plugins/specialchar/dialogs/lang/nl.js | 138 +- .../plugins/specialchar/dialogs/lang/no.js | 136 +- .../plugins/specialchar/dialogs/lang/oc.js | 137 +- .../plugins/specialchar/dialogs/lang/pl.js | 137 +- .../plugins/specialchar/dialogs/lang/pt-br.js | 136 +- .../plugins/specialchar/dialogs/lang/pt.js | 138 +- .../plugins/specialchar/dialogs/lang/ru.js | 138 +- .../plugins/specialchar/dialogs/lang/si.js | 138 +- .../plugins/specialchar/dialogs/lang/sk.js | 138 +- .../plugins/specialchar/dialogs/lang/sl.js | 137 +- .../plugins/specialchar/dialogs/lang/sq.js | 138 +- .../plugins/specialchar/dialogs/lang/sv.js | 136 +- .../plugins/specialchar/dialogs/lang/th.js | 138 +- .../plugins/specialchar/dialogs/lang/tr.js | 137 +- .../plugins/specialchar/dialogs/lang/tt.js | 138 +- .../plugins/specialchar/dialogs/lang/ug.js | 138 +- .../plugins/specialchar/dialogs/lang/uk.js | 137 +- .../plugins/specialchar/dialogs/lang/vi.js | 139 +- .../plugins/specialchar/dialogs/lang/zh-cn.js | 134 +- .../plugins/specialchar/dialogs/lang/zh.js | 134 +- .../specialchar/dialogs/specialchar.js | 311 +- .../ckeditor/plugins/table/dialogs/table.js | 564 ++- .../plugins/tabletools/dialogs/tableCell.js | 491 ++- assets/ckeditor/plugins/wsc/dialogs/wsc.js | 3246 ++++++++++++++++- assets/ckeditor/plugins/wsc/dialogs/wsc_ie.js | 187 +- assets/ckeditor/skins/kama/dialog.css | 5 - assets/ckeditor/skins/kama/dialog_ie.css | 5 - assets/ckeditor/skins/kama/dialog_ie7.css | 5 - assets/ckeditor/skins/kama/dialog_ie8.css | 5 - .../ckeditor/skins/kama/dialog_iequirks.css | 5 - assets/ckeditor/skins/kama/editor.css | 5 - assets/ckeditor/skins/kama/editor_ie.css | 5 - assets/ckeditor/skins/kama/editor_ie7.css | 5 - assets/ckeditor/skins/kama/editor_ie8.css | 5 - .../ckeditor/skins/kama/editor_iequirks.css | 5 - assets/ckeditor/skins/kama/icons.png | Bin 8768 -> 0 bytes assets/ckeditor/skins/kama/icons_hidpi.png | Bin 10557 -> 0 bytes .../skins/kama/images/dialog_sides.gif | Bin 47 -> 0 bytes .../skins/kama/images/dialog_sides.png | Bin 125 -> 0 bytes .../skins/kama/images/dialog_sides_rtl.png | Bin 128 -> 0 bytes assets/ckeditor/skins/kama/images/mini.gif | Bin 181 -> 0 bytes assets/ckeditor/skins/kama/images/spinner.gif | Bin 2984 -> 0 bytes assets/ckeditor/skins/kama/images/sprites.png | Bin 6117 -> 0 bytes .../skins/kama/images/sprites_ie6.png | Bin 2658 -> 0 bytes .../skins/kama/images/toolbar_start.gif | Bin 102 -> 0 bytes assets/ckeditor/skins/kama/readme.md | 38 - assets/ckeditor/styles.js | 5 +- 249 files changed, 37623 insertions(+), 5168 deletions(-) delete mode 100644 assets/ckeditor/plugins/bootstrapTabs/LICENSE-GPL delete mode 100644 assets/ckeditor/plugins/bootstrapTabs/LICENSE-LGPL delete mode 100644 assets/ckeditor/plugins/bootstrapTabs/LICENSE-MPL delete mode 100644 assets/ckeditor/plugins/bootstrapTabs/README.md delete mode 100644 assets/ckeditor/plugins/bootstrapTabs/dialogs/bootstrapTabs.js delete mode 100644 assets/ckeditor/plugins/bootstrapTabs/sample/bootstrapTabs.html delete mode 100644 assets/ckeditor/plugins/ckawesome/dialogs/ckawesome.css delete mode 100644 assets/ckeditor/plugins/ckawesome/dialogs/ckawesome.js delete mode 100644 assets/ckeditor/plugins/ckawesome/resources/select2/select2.full.min.css delete mode 100644 assets/ckeditor/plugins/ckawesome/resources/select2/select2.full.min.js delete mode 100644 assets/ckeditor/plugins/custimage/dialogs/custimage.js delete mode 100644 assets/ckeditor/plugins/custimage/dialogs/dialogtest.html delete mode 100644 assets/ckeditor/plugins/custimage/dialogs/myblog.png delete mode 100644 assets/ckeditor/plugins/custimage/images/noimage.png delete mode 100644 assets/ckeditor/plugins/find/dialogs/find.js delete mode 100644 assets/ckeditor/plugins/icons.png delete mode 100644 assets/ckeditor/plugins/icons_hidpi.png delete mode 100644 assets/ckeditor/plugins/oembed/LICENSE.md delete mode 100644 assets/ckeditor/plugins/oembed/README.md delete mode 100644 assets/ckeditor/plugins/oembed/libs/jquery.oembed.min.js delete mode 100644 assets/ckeditor/skins/kama/dialog.css delete mode 100644 assets/ckeditor/skins/kama/dialog_ie.css delete mode 100644 assets/ckeditor/skins/kama/dialog_ie7.css delete mode 100644 assets/ckeditor/skins/kama/dialog_ie8.css delete mode 100644 assets/ckeditor/skins/kama/dialog_iequirks.css delete mode 100644 assets/ckeditor/skins/kama/editor.css delete mode 100644 assets/ckeditor/skins/kama/editor_ie.css delete mode 100644 assets/ckeditor/skins/kama/editor_ie7.css delete mode 100644 assets/ckeditor/skins/kama/editor_ie8.css delete mode 100644 assets/ckeditor/skins/kama/editor_iequirks.css delete mode 100644 assets/ckeditor/skins/kama/icons.png delete mode 100644 assets/ckeditor/skins/kama/icons_hidpi.png delete mode 100644 assets/ckeditor/skins/kama/images/dialog_sides.gif delete mode 100644 assets/ckeditor/skins/kama/images/dialog_sides.png delete mode 100644 assets/ckeditor/skins/kama/images/dialog_sides_rtl.png delete mode 100644 assets/ckeditor/skins/kama/images/mini.gif delete mode 100644 assets/ckeditor/skins/kama/images/spinner.gif delete mode 100644 assets/ckeditor/skins/kama/images/sprites.png delete mode 100644 assets/ckeditor/skins/kama/images/sprites_ie6.png delete mode 100644 assets/ckeditor/skins/kama/images/toolbar_start.gif delete mode 100644 assets/ckeditor/skins/kama/readme.md diff --git a/assets/ckeditor/CHANGES.md b/assets/ckeditor/CHANGES.md index 72c5798..1419e55 100644 --- a/assets/ckeditor/CHANGES.md +++ b/assets/ckeditor/CHANGES.md @@ -1,4 +1,4 @@ -CKEditor 4 Changelog +CKEditor 4 Changelog ==================== ## CKEditor 4.6.2 diff --git a/assets/ckeditor/LICENSE.md b/assets/ckeditor/LICENSE.md index d6f58ca..0f50a9e 100644 --- a/assets/ckeditor/LICENSE.md +++ b/assets/ckeditor/LICENSE.md @@ -54,6 +54,41 @@ The following libraries are included in CKEditor under the BSD-3 License (see Ap * highlight.js (included in the `codesnippet` plugin) - Copyright (c) 2006, Ivan Sagalaev. * YUI Library (included in the `uicolor` plugin) - Copyright (c) 2009, Yahoo! Inc. +(Ignore this line: %REMOVE_START%) + +The following libraries are included only in the development version of CKEditor under the MIT license (see Appendix D): + +* CKBuilder - Copyright (c) 2012-2017, CKSource - Frederico Knabben. +* CKLangTool - Copyright (c) 2012-2017, CKSource - Frederico Knabben. +* Optimist - Copyright 2010 James Halliday (mail@substack.net). +* Q - Copyright 2009–2014 Kristopher Michael Kowal. +* Tmp - Copyright (c) 2014 KARASZI István. +* Mkdirp - Copyright 2010 James Halliday (mail@substack.net). +* Bender.js - Copyright (c) 2014-2017, CKSource - Frederico Knabben. +* benderjs-coverage - Copyright (c) 2014-2017, CKSource - Frederico Knabben. +* benderjs-jquery - Copyright (c) 2014-2017, CKSource - Frederico Knabben. +* benderjs-sinon - Copyright (c) 2014-2017, CKSource - Frederico Knabben. +* benderjs-yui - Copyright (c) 2014-2017, CKSource - Frederico Knabben. +* Grunt - Copyright (c) 2015 "Cowboy" Ben Alman. +* grunt-contrib-imagemin - Copyright (c) 2014 Sindre Sorhus, contributors. +* grunt-jscs - Copyright (c) 2014 Gustavo Henke, contributors. +* grunt-contrib-jshint - Copyright (c) 2014 "Cowboy" Ben Alman, contributors. +* grunt-contrib-less - Copyright (c) 2014 Tyler Kellen, contributors. +* grunt-contrib-watch - Copyright (c) 2014 "Cowboy" Ben Alman, contributors. +* grunt-contrib-concat - Copyright (c) 2014 "Cowboy" Ben Alman, contributors. +* grunt-jsduck - Copyright (c) 2012 Dmitry Pashkevich, contributors. +* grunt-githooks - Copyright (c) 2013 Romaric Pascal. +* jQuery Form Plugin (used in jquery adapter test) - Copyright (c) 2012 M. Alsup + +The following libraries are included only in the development version of CKEditor under the BSD-3 License (see Appendix F): + +* ShellJS - Copyright (c) 2012, Artur Adib . + +The following libraries are included only in the development version of CKEditor under the Apache License (see Appendix G): + +* Less.js - Copyright (c) 2009-2014 Alexis Sellier & The Core Less Team. + +(Ignore this line: %REMOVE_END%) Trademarks ---------- @@ -1418,3 +1453,189 @@ Redistribution and use in source and binary forms, with or without modification, THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ``` +(Ignore this line: %REMOVE_START%) + +Appendix G: The Apache License +------------------------------ + +``` + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS +``` + +(Ignore this line: %REMOVE_END%) diff --git a/assets/ckeditor/adapters/jquery.js b/assets/ckeditor/adapters/jquery.js index 86cb458..4a7796b 100644 --- a/assets/ckeditor/adapters/jquery.js +++ b/assets/ckeditor/adapters/jquery.js @@ -1,10 +1,379 @@ -/* - Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. - For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -(function(a){if("undefined"==typeof a)throw Error("jQuery should be loaded before CKEditor jQuery adapter.");if("undefined"==typeof CKEDITOR)throw Error("CKEditor should be loaded before CKEditor jQuery adapter.");CKEDITOR.config.jqueryOverrideVal="undefined"==typeof CKEDITOR.config.jqueryOverrideVal?!0:CKEDITOR.config.jqueryOverrideVal;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 m=d;d=g;g=m}var k=[];d=d||{};this.each(function(){var b=a(this),c=b.data("ckeditorInstance"),f=b.data("_ckeditorInstanceLock"),h=this,l=new a.Deferred;k.push(l.promise());if(c&&!f)g&&g.apply(c,[this]),l.resolve();else if(f)c.once("instanceReady",function(){setTimeout(function(){c.element?(c.element.$==h&&g&&g.apply(c,[h]),l.resolve()):setTimeout(arguments.callee,100)},0)}, -null,null,9999);else{if(d.autoUpdateElement||"undefined"==typeof d.autoUpdateElement&&CKEDITOR.config.autoUpdateElement)d.autoUpdateElementJquery=!0;d.autoUpdateElement=!1;b.data("_ckeditorInstanceLock",!0);c=a(this).is("textarea")?CKEDITOR.replace(h,d):CKEDITOR.inline(h,d);b.data("ckeditorInstance",c);c.on("instanceReady",function(d){var e=d.editor;setTimeout(function(){if(e.element){d.removeListener();e.on("dataReady",function(){b.trigger("dataReady.ckeditor",[e])});e.on("setData",function(a){b.trigger("setData.ckeditor", -[e,a.data])});e.on("getData",function(a){b.trigger("getData.ckeditor",[e,a.data])},999);e.on("destroy",function(){b.trigger("destroy.ckeditor",[e])});e.on("save",function(){a(h.form).submit();return!1},null,null,20);if(e.config.autoUpdateElementJquery&&b.is("textarea")&&a(h.form).length){var c=function(){b.ckeditor(function(){e.updateElement()})};a(h.form).submit(c);a(h.form).bind("form-pre-serialize",c);b.bind("destroy.ckeditor",function(){a(h.form).unbind("submit",c);a(h.form).unbind("form-pre-serialize", -c)})}e.on("destroy",function(){b.removeData("ckeditorInstance")});b.removeData("_ckeditorInstanceLock");b.trigger("instanceReady.ckeditor",[e]);g&&g.apply(e,[h]);l.resolve()}else setTimeout(arguments.callee,100)},0)},null,null,9999)}});var f=new a.Deferred;this.promise=f.promise();a.when.apply(this,k).then(function(){f.resolve()});this.editor=this.eq(0).data("ckeditorInstance");return this}});CKEDITOR.config.jqueryOverrideVal&&(a.fn.val=CKEDITOR.tools.override(a.fn.val,function(g){return function(d){if(arguments.length){var m= -this,k=[],f=this.each(function(){var b=a(this),c=b.data("ckeditorInstance");if(b.is("textarea")&&c){var f=new a.Deferred;c.setData(d,function(){f.resolve()});k.push(f.promise());return!0}return g.call(b,d)});if(k.length){var b=new a.Deferred;a.when.apply(this,k).done(function(){b.resolveWith(m)});return b.promise()}return f}var f=a(this).eq(0),c=f.data("ckeditorInstance");return f.is("textarea")&&c?c.getData():g.call(f)}}))})(window.jQuery); \ No newline at end of file +/** + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview Defines the {@link CKEDITOR_Adapters.jQuery jQuery Adapter}. + */ + +/** + * @class CKEDITOR_Adapters.jQuery + * @singleton + * + * The jQuery Adapter allows for easy use of basic CKEditor functions and access to the internal API. + * To find more information about the jQuery Adapter, go to the [jQuery Adapter section](#!/guide/dev_jquery) + * of the Developer's Guide or see the "Create Editors with jQuery" sample. + * + * @aside guide dev_jquery + */ + +( function( $ ) { + if ( typeof $ == 'undefined' ) { + throw new Error( 'jQuery should be loaded before CKEditor jQuery adapter.' ); + } + + if ( typeof CKEDITOR == 'undefined' ) { + throw new Error( 'CKEditor should be loaded before CKEditor jQuery adapter.' ); + } + + /** + * Allows CKEditor to override `jQuery.fn.val()`. When set to `true`, the `val()` function + * used on textarea elements replaced with CKEditor uses the CKEditor API. + * + * This configuration option is global and is executed during the loading of the jQuery Adapter. + * It cannot be customized across editor instances. + * + * Read more in the [documentation](#!/guide/dev_jquery). + * + * + * + * + * + * + * + * + * @cfg {Boolean} [jqueryOverrideVal=true] + * @member CKEDITOR.config + */ + CKEDITOR.config.jqueryOverrideVal = + typeof CKEDITOR.config.jqueryOverrideVal == 'undefined' ? true : CKEDITOR.config.jqueryOverrideVal; + + // jQuery object methods. + $.extend( $.fn, { + /** + * Returns an existing CKEditor instance for the first matched element. + * Allows to easily use the internal API. Does not return a jQuery object. + * + * Raises an exception if the editor does not exist or is not ready yet. + * + * @returns CKEDITOR.editor + * @deprecated Use {@link #editor editor property} instead. + */ + ckeditorGet: function() { + var instance = this.eq( 0 ).data( 'ckeditorInstance' ); + + if ( !instance ) + throw 'CKEditor is not initialized yet, use ckeditor() with a callback.'; + + return instance; + }, + + /** + * A jQuery function which triggers the creation of CKEditor with `