"),d=null,u===this.o.weekEnd&&w.push(""),p.setUTCDate(p.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(w.join(""));var C=q[this.o.language].monthsTitle||q.en.monthsTitle||"Months",D=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?C:g).end().find("tbody span").removeClass("active");if(a.each(this.dates,function(a,b){b.getUTCFullYear()===g&&D.eq(b.getUTCMonth()).addClass("active")}),(gk)&&D.addClass("disabled"),g===i&&D.slice(0,j).addClass("disabled"),g===k&&D.slice(l+1).addClass("disabled"),this.o.beforeShowMonth!==a.noop){var E=this;a.each(D,function(c,d){var e=new Date(g,c,1),f=E.o.beforeShowMonth(e);f===b?f={}:"boolean"==typeof f?f={enabled:f}:"string"==typeof f&&(f={classes:f}),f.enabled!==!1||a(d).hasClass("disabled")||a(d).addClass("disabled"),f.classes&&a(d).addClass(f.classes),f.tooltip&&a(d).prop("title",f.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,g,i,k,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,g,i,k,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,g,i,k,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var a,b,c=new Date(this.viewDate),d=c.getUTCFullYear(),e=c.getUTCMonth(),f=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),g=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),h=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,i=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,j=1;switch(this.viewMode){case 0:a=d<=f&&e<=g,b=d>=h&&e>=i;break;case 4:j*=10;case 3:j*=10;case 2:j*=10;case 1:a=Math.floor(d/j)*j<=f,b=Math.floor(d/j)*j+j>=h}this.picker.find(".prev").toggleClass("disabled",a),this.picker.find(".next").toggleClass("disabled",b)}},click:function(b){b.preventDefault(),b.stopPropagation();var e,f,g,h;e=a(b.target),e.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),e.hasClass("today")&&!e.hasClass("day")&&(this.setViewMode(0),this._setDate(d(),"linked"===this.o.todayBtn?null:"view")),e.hasClass("clear")&&this.clearDates(),e.hasClass("disabled")||(e.hasClass("month")||e.hasClass("year")||e.hasClass("decade")||e.hasClass("century"))&&(this.viewDate.setUTCDate(1),f=1,1===this.viewMode?(h=e.parent().find("span").index(e),g=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(h)):(h=0,g=Number(e.text()),this.viewDate.setUTCFullYear(g)),this._trigger(r.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(c(g,h,f)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(b){var c=a(b.currentTarget),d=c.data("date"),e=new Date(d);this.o.updateViewDate&&(e.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),e.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(e)},navArrowsClick:function(b){var c=a(b.currentTarget),d=c.hasClass("prev")?-1:1;0!==this.viewMode&&(d*=12*r.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,d),this._trigger(r.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(a){var b=this.dates.contains(a);if(a||this.dates.clear(),b!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(b):this.o.multidate===!1?(this.dates.clear(),this.dates.push(a)):this.dates.push(a),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(a,b){b&&"date"!==b||this._toggle_multidate(a&&new Date(a)),(!b&&this.o.updateViewDate||"view"===b)&&(this.viewDate=a&&new Date(a)),this.fill(),this.setValue(),b&&"view"===b||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||b&&"date"!==b||this.hide()},moveDay:function(a,b){var c=new Date(a);return c.setUTCDate(a.getUTCDate()+b),c},moveWeek:function(a,b){return this.moveDay(a,7*b)},moveMonth:function(a,b){if(!g(a))return this.o.defaultViewDate;if(!b)return a;var c,d,e=new Date(a.valueOf()),f=e.getUTCDate(),h=e.getUTCMonth(),i=Math.abs(b);if(b=b>0?1:-1,1===i)d=b===-1?function(){return e.getUTCMonth()===h}:function(){return e.getUTCMonth()!==c},c=h+b,e.setUTCMonth(c),c=(c+12)%12;else{for(var j=0;j0},dateWithinRange:function(a){return a>=this.o.startDate&&a<=this.o.endDate},keydown:function(a){if(!this.picker.is(":visible"))return void(40!==a.keyCode&&27!==a.keyCode||(this.show(),a.stopPropagation()));var b,c,d=!1,e=this.focusDate||this.viewDate;switch(a.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),a.preventDefault(),a.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;b=37===a.keyCode||38===a.keyCode?-1:1,0===this.viewMode?a.ctrlKey?(c=this.moveAvailableDate(e,b,"moveYear"),c&&this._trigger("changeYear",this.viewDate)):a.shiftKey?(c=this.moveAvailableDate(e,b,"moveMonth"),c&&this._trigger("changeMonth",this.viewDate)):37===a.keyCode||39===a.keyCode?c=this.moveAvailableDate(e,b,"moveDay"):this.weekOfDateIsDisabled(e)||(c=this.moveAvailableDate(e,b,"moveWeek")):1===this.viewMode?(38!==a.keyCode&&40!==a.keyCode||(b*=4),c=this.moveAvailableDate(e,b,"moveMonth")):2===this.viewMode&&(38!==a.keyCode&&40!==a.keyCode||(b*=4),c=this.moveAvailableDate(e,b,"moveYear")),c&&(this.focusDate=this.viewDate=c,this.setValue(),this.fill(),a.preventDefault());break;case 13:if(!this.o.forceParse)break;e=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(e),d=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(a.preventDefault(),a.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}d&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(a){this.viewMode=a,this.picker.children("div").hide().filter(".datepicker-"+r.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var l=function(b,c){a.data(b,"datepicker",this),this.element=a(b),this.inputs=a.map(c.inputs,function(a){return a.jquery?a[0]:a}),delete c.inputs,this.keepEmptyValues=c.keepEmptyValues,delete c.keepEmptyValues,n.call(a(this.inputs),c).on("changeDate",a.proxy(this.dateUpdated,this)),this.pickers=a.map(this.inputs,function(b){return a.data(b,"datepicker")}),this.updateDates()};l.prototype={updateDates:function(){this.dates=a.map(this.pickers,function(a){return a.getUTCDate()}),this.updateRanges()},updateRanges:function(){var b=a.map(this.dates,function(a){return a.valueOf()});a.each(this.pickers,function(a,c){c.setRange(b)})},dateUpdated:function(c){if(!this.updating){this.updating=!0;var d=a.data(c.target,"datepicker");if(d!==b){var e=d.getUTCDate(),f=this.keepEmptyValues,g=a.inArray(c.target,this.inputs),h=g-1,i=g+1,j=this.inputs.length;if(g!==-1){if(a.each(this.pickers,function(a,b){b.getUTCDate()||b!==d&&f||b.setUTCDate(e)}),e=0&ðis.dates[i])for(;ithis.dates[i];)this.pickers[i++].setUTCDate(e);this.updateDates(),delete this.updating}}}},destroy:function(){a.map(this.pickers,function(a){a.destroy()}),a(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:f("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var m=a.fn.datepicker,n=function(c){var d=Array.apply(null,arguments);d.shift();var e;if(this.each(function(){var b=a(this),f=b.data("datepicker"),g="object"==typeof c&&c;if(!f){var j=h(this,"date"),m=a.extend({},o,j,g),n=i(m.language),p=a.extend({},o,n,j,g);b.hasClass("input-daterange")||p.inputs?(a.extend(p,{inputs:p.inputs||b.find("input").toArray()}),f=new l(this,p)):f=new k(this,p),b.data("datepicker",f)}"string"==typeof c&&"function"==typeof f[c]&&(e=f[c].apply(f,d))}),e===b||e instanceof k||e instanceof l)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+c+" function)");return e};a.fn.datepicker=n;var o=a.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:a.noop,beforeShowMonth:a.noop,beforeShowYear:a.noop,beforeShowDecade:a.noop,beforeShowCentury:a.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},p=a.fn.datepicker.locale_opts=["format","rtl","weekStart"];a.fn.datepicker.Constructor=k;var q=a.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},r={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(a){if("function"==typeof a.toValue&&"function"==typeof a.toDisplay)return a;var b=a.replace(this.validParts,"\0").split("\0"),c=a.match(this.validParts);if(!b||!b.length||!c||0===c.length)throw new Error("Invalid date format.");return{separators:b,parts:c}},parseDate:function(c,e,f,g){function h(a,b){return b===!0&&(b=10),a<100&&(a+=2e3,a>(new Date).getFullYear()+b&&(a-=100)),a}function i(){var a=this.slice(0,j[n].length),b=j[n].slice(0,a.length);return a.toLowerCase()===b.toLowerCase()}if(!c)return b;if(c instanceof Date)return c;if("string"==typeof e&&(e=r.parseFormat(e)),e.toValue)return e.toValue(c,e,f);var j,l,m,n,o,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},s={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(c in s&&(c=s[c]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(c)){for(j=c.match(/([\-+]\d+)([dmwy])/gi),c=new Date,n=0;n
'+o.templates.leftArrow+'
'+o.templates.rightArrow+"
",
-contTemplate:'
',footTemplate:'
'};r.template='
'+r.headTemplate+""+r.footTemplate+'
'+r.headTemplate+r.contTemplate+r.footTemplate+'
'+r.headTemplate+r.contTemplate+r.footTemplate+'
'+r.headTemplate+r.contTemplate+r.footTemplate+'
'+r.headTemplate+r.contTemplate+r.footTemplate+"
",a.fn.datepicker.DPGlobal=r,a.fn.datepicker.noConflict=function(){return a.fn.datepicker=m,this},a.fn.datepicker.version="1.7.0",a.fn.datepicker.deprecated=function(a){var b=window.console;b&&b.warn&&b.warn("DEPRECATED: "+a)},a(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(b){var c=a(this);c.data("datepicker")||(b.preventDefault(),n.call(c,"show"))}),a(function(){n.call(a('[data-provide="datepicker-inline"]'))})});
\ No newline at end of file
+contTemplate:'
',footTemplate:'
'};r.template='
'+r.headTemplate+""+r.footTemplate+'
'+r.headTemplate+r.contTemplate+r.footTemplate+'
'+r.headTemplate+r.contTemplate+r.footTemplate+'
'+r.headTemplate+r.contTemplate+r.footTemplate+'
'+r.headTemplate+r.contTemplate+r.footTemplate+"
",a.fn.datepicker.DPGlobal=r,a.fn.datepicker.noConflict=function(){return a.fn.datepicker=m,this},a.fn.datepicker.version="1.7.1",a.fn.datepicker.deprecated=function(a){var b=window.console;b&&b.warn&&b.warn("DEPRECATED: "+a)},a(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(b){var c=a(this);c.data("datepicker")||(b.preventDefault(),n.call(c,"show"))}),a(function(){n.call(a('[data-provide="datepicker-inline"]'))})});
\ No newline at end of file
diff --git a/bower_components/bootstrap-datepicker/js/bootstrap-datepicker.js b/bower_components/bootstrap-datepicker/js/bootstrap-datepicker.js
index 3c47dd3e3ed..13dfaa1ddac 100644
--- a/bower_components/bootstrap-datepicker/js/bootstrap-datepicker.js
+++ b/bower_components/bootstrap-datepicker/js/bootstrap-datepicker.js
@@ -2011,7 +2011,7 @@
/* DATEPICKER VERSION
* =================== */
- $.fn.datepicker.version = '1.7.0';
+ $.fn.datepicker.version = '1.7.1';
$.fn.datepicker.deprecated = function(msg){
var console = window.console;
diff --git a/bower_components/bootstrap-datepicker/package.json b/bower_components/bootstrap-datepicker/package.json
index ec1b9b0db88..71d81fda2f5 100644
--- a/bower_components/bootstrap-datepicker/package.json
+++ b/bower_components/bootstrap-datepicker/package.json
@@ -1,7 +1,7 @@
{
"name": "bootstrap-datepicker",
"description": "A datepicker for Bootstrap",
- "version": "1.7.0",
+ "version": "1.7.1",
"license": "Apache-2.0",
"keywords": [
"datepicker",
@@ -24,7 +24,7 @@
"type": "git",
"url": "https://github.com/uxsolutions/bootstrap-datepicker.git"
},
- "peerDependencies": {
+ "dependencies": {
"jquery": ">=1.7.1 <4.0.0"
},
"devDependencies": {
diff --git a/bower_components/ckeditor/.bower.json b/bower_components/ckeditor/.bower.json
index 1b69a3f585e..f2ae2bf3cc6 100644
--- a/bower_components/ckeditor/.bower.json
+++ b/bower_components/ckeditor/.bower.json
@@ -16,12 +16,12 @@
"homepage": "http://ckeditor.com",
"main": "./ckeditor.js",
"moduleType": "globals",
- "version": "4.7.1",
- "_release": "4.7.1",
+ "version": "4.7.3",
+ "_release": "4.7.3",
"_resolution": {
"type": "version",
- "tag": "4.7.1",
- "commit": "d62153e131ad4187700342fc044cf069c2fb5d8a"
+ "tag": "4.7.3",
+ "commit": "97b8f412f6b36985c734daf0717e81009a885dba"
},
"_source": "https://github.com/ckeditor/ckeditor-releases.git",
"_target": "^4.7.0",
diff --git a/bower_components/ckeditor/CHANGES.md b/bower_components/ckeditor/CHANGES.md
index 6c4f5559507..08036149fe7 100644
--- a/bower_components/ckeditor/CHANGES.md
+++ b/bower_components/ckeditor/CHANGES.md
@@ -1,6 +1,60 @@
CKEditor 4 Changelog
====================
+## CKEditor 4.7.3
+
+New Features:
+
+* [#568](https://github.com/ckeditor/ckeditor-dev/issues/568): Added possibility to adjust nested editables' filters using the [`CKEDITOR.filter.disallowedContent`](https://docs.ckeditor.com/#!/api/CKEDITOR.filter-property-disallowedContent) property.
+
+Fixed Issues:
+
+* [#554](https://github.com/ckeditor/ckeditor-dev/issues/554): Fixed: [`change`](https://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-change) event not fired when typing the first character after pasting into the editor. Thanks to [Daniel Miller](https://github.com/millerdev)!
+* [#566](https://github.com/ckeditor/ckeditor-dev/issues/566): Fixed: The CSS `border` shorthand property with zero width (`border: 0px solid #000;`) causes the table to have the border attribute set to 1.
+* [#779](https://github.com/ckeditor/ckeditor-dev/issues/779): Fixed: The [Remove Format](https://ckeditor.com/addon/removeformat) plugin removes elements with language definition inserted by the [Language](https://ckeditor.com/addon/language) plugin.
+* [#423](https://github.com/ckeditor/ckeditor-dev/issues/423): Fixed: The [Paste from Word](https://ckeditor.com/addon/pastefromword) plugin pastes paragraphs into the editor even if [`CKEDITOR.config.enterMode`](https://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode) is set to `CKEDITOR.ENTER_BR`.
+* [#719](https://github.com/ckeditor/ckeditor-dev/issues/719): Fixed: Image inserted using the [Enhanced Image](https://ckeditor.com/addon/image2) plugin can be resized when the editor is in [read-only mode](https://docs.ckeditor.com/#!/guide/dev_readonly).
+* [#577](https://github.com/ckeditor/ckeditor-dev/issues/577): Fixed: The "Delete Columns" command provided by the [Table Tools](https://ckeditor.com/addon/tabletools) plugin throws an error when trying to delete columns.
+* [#867](https://github.com/ckeditor/ckeditor-dev/issues/867): Fixed: Typing into a selected table throws an error.
+* [#817](https://github.com/ckeditor/ckeditor-dev/issues/817): Fixed: The [Save](https://ckeditor.com/addon/save) plugin does not work in [Source Mode](https://ckeditor.com/addon/sourcearea).
+
+Other Changes:
+
+* Updated the [WebSpellChecker](http://ckeditor.com/addon/wsc) plugin:
+ * [#40](https://github.com/WebSpellChecker/ckeditor-plugin-wsc/issues/40): Fixed: IE10 throws an error when spell checking is started.
+* [#800](https://github.com/ckeditor/ckeditor-dev/issues/800): Added the [`CKEDITOR.dom.selection.isCollapsed`](https://docs.ckeditor.com/#!/api/CKEDITOR.dom.selection-method-isCollapsed) method which is a simpler way to check if the selection is collapsed.
+* [#830](https://github.com/ckeditor/ckeditor-dev/issues/830): Added an option to define which dialog tab should be shown by default when creating [`CKEDITOR.dialogCommand`](https://docs.ckeditor.com/#!/api/CKEDITOR.dialogCommand).
+
+## CKEditor 4.7.2
+
+New Features:
+
+* [#455](https://github.com/ckeditor/ckeditor-dev/issues/455): Added [Advanced Content Filter](https://docs.ckeditor.com/#!/guide/dev_acf) integration with the [Justify](http://ckeditor.com/addon/justify) plugin.
+
+Fixed Issues:
+
+* [#663](https://github.com/ckeditor/ckeditor-dev/issues/663): [Chrome] Fixed: Clicking the scrollbar throws an `Uncaught TypeError: element.is is not a function` error.
+* [#694](https://github.com/ckeditor/ckeditor-dev/pull/694): Refactoring in the [Table Selection](http://ckeditor.com/addon/tableselection) plugin:
+ * [#520](https://github.com/ckeditor/ckeditor-dev/issues/520): Fixed: Widgets cannot be properly pasted into a table cell.
+ * [#460](https://github.com/ckeditor/ckeditor-dev/issues/460): Fixed: Editor gone after pasting into an editor within a table.
+* [#579](https://github.com/ckeditor/ckeditor-dev/issues/579): Fixed: Internal `cke_table-faked-selection-table` class is visible in the Stylesheet Classes field of the [Table Properties](http://ckeditor.com/addon/table) dialog.
+* [#545](https://github.com/ckeditor/ckeditor-dev/issues/545): [Edge] Fixed: Error thrown when pressing the [Select All](https://ckeditor.com/addon/selectall) button in [Source Mode](http://ckeditor.com/addon/sourcearea).
+* [#582](https://github.com/ckeditor/ckeditor-dev/issues/582): Fixed: Double slash in the path to stylesheet needed by the [Table Selection](http://ckeditor.com/addon/tableselection) plugin. Thanks to [Marius Dumitru Florea](https://github.com/mflorea)!
+* [#491](https://github.com/ckeditor/ckeditor-dev/issues/491): Fixed: Unnecessary dependency on the [Editor Toolbar](http://ckeditor.com/addon/toolbar) plugin inside the [Notification](http://ckeditor.com/addon/notification) plugin.
+* [#646](https://github.com/ckeditor/ckeditor-dev/issues/646): Fixed: Error thrown into the browser console after opening the [Styles Combo](http://ckeditor.com/addon/stylescombo) plugin menu in the editor without any selection.
+* [#501](https://github.com/ckeditor/ckeditor-dev/issues/501): Fixed: Double click does not open the dialog for modifying anchors inserted via the [Link](http://ckeditor.com/addon/link) plugin.
+* [#9780](https://dev.ckeditor.com/ticket/9780): [IE8-9] Fixed: Clicking inside an empty [read-only](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-readOnly) editor throws an error.
+* [#16820](https://dev.ckeditor.com/ticket/16820): [IE10] Fixed: Clicking below a single horizontal rule throws an error.
+* [#426](https://github.com/ckeditor/ckeditor-dev/issues/426): Fixed: The [`range.cloneContents`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.range-method-cloneContents) method selects the whole element when the selection starts at the beginning of that element.
+* [#644](https://github.com/ckeditor/ckeditor-dev/issues/644): Fixed: The [`range.extractContents`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.range-method-extractContents) method returns an incorrect result when multiple nodes are selected.
+* [#684](https://github.com/ckeditor/ckeditor-dev/issues/684): Fixed: The [`elementPath.contains`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.elementPath-method-contains) method incorrectly excludes the last element instead of root when the `fromTop` parameter is set to `true`.
+
+Other Changes:
+
+* Updated the [SCAYT](http://ckeditor.com/addon/scayt) (Spell Check As You Type) plugin:
+ * [#148](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/148): Fixed: SCAYT leaves underlined word after the CKEditor Replace dialog corrects it.
+* [#751](https://github.com/ckeditor/ckeditor-dev/issues/751): Added the [`CKEDITOR.dom.nodeList.toArray`](https://docs.ckeditor.com/#!/api/CKEDITOR.dom.nodeList-method-toArray) method which returns an array representation of a [node list](https://docs.ckeditor.com/#!/api/CKEDITOR.dom.nodeList).
+
## CKEditor 4.7.1
New Features:
@@ -33,7 +87,7 @@ New Features:
* [#16755](http://dev.ckeditor.com/ticket/16755): Added the [Table Selection](http://ckeditor.com/addon/tableselection) plugin that lets you select and manipulate an arbitrary rectangular table fragment (a few cells, a row or a column).
* [#16961](http://dev.ckeditor.com/ticket/16961): Added support for pasting from Microsoft Excel.
-* [#13381](http://dev.ckeditor.com/ticket/13381): Dynamic code evaluation call in [`CKEDITOR.template`](http://docs.ckeditor.com/#!/api/CKEDITOR.template) removed. CKEditor can now be used with the `unsafe-eval` Content Security Policy. Thanks to [Caridy Patiño](http://caridy.name)!
+* [#13381](http://dev.ckeditor.com/ticket/13381): Dynamic code evaluation call in [`CKEDITOR.template`](http://docs.ckeditor.com/#!/api/CKEDITOR.template) removed. CKEditor can now be used without the `unsafe-eval` Content Security Policy. Thanks to [Caridy Patiño](http://caridy.name)!
* [#16971](http://dev.ckeditor.com/ticket/16971): Added support for color in the `background` property containing also other styles for table cells in the [Table Tools](http://ckeditor.com/addon/tabletools) plugin.
* [#16847](http://dev.ckeditor.com/ticket/16847): Added support for parsing and inlining any formatting created using the Microsoft Word style system to the [Paste from Word](http://ckeditor.com/addon/pastefromword) plugin.
* [#16818](http://dev.ckeditor.com/ticket/16818): Added table cell height parsing in the [Paste from Word](http://ckeditor.com/addon/pastefromword) plugin.
diff --git a/bower_components/ckeditor/ckeditor.js b/bower_components/ckeditor/ckeditor.js
index 9754c63294b..3ce218b57fc 100644
--- a/bower_components/ckeditor/ckeditor.js
+++ b/bower_components/ckeditor/ckeditor.js
@@ -3,14 +3,14 @@ Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){function ka(a,f){CKEDITOR.tools.extend(this,f,{editor:a,id:"cke-"+CKEDITOR.tools.getUniqueId(),area:a._.notificationArea});f.type||(this.type="info");this.element=this._createElement();a.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(this.element)}function la(a){var f=this;this.editor=a;this.notifications=[];this.element=this._createElement();this._uiBuffer=CKEDITOR.tools.eventsBuffer(10,this._layout,this);this._changeBuffer=CKEDITOR.tools.eventsBuffer(500,this._layout,
-this);a.on("destroy",function(){f._removeListeners();f.element.remove()})}window.CKEDITOR&&window.CKEDITOR.dom||(window.CKEDITOR||(window.CKEDITOR=function(){var a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,f={timestamp:"H5SE",version:"4.7.1 (Standard)",revision:"08ffd3961",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:a},status:"unloaded",basePath:function(){var c=window.CKEDITOR_BASEPATH||"";if(!c)for(var b=document.getElementsByTagName("script"),f=0;fg.getListenerIndex(e)){g=g.listeners;f||(f=this);isNaN(d)&&(d=10);var n=this;h.fn=e;h.priority=d;for(var q=g.length-1;0<=q;q--)if(g[q].priority<=d)return g.splice(q+1,0,h),{removeListener:m};g.unshift(h)}return{removeListener:m}},once:function(){var a=
-Array.prototype.slice.call(arguments),b=a[1];a[1]=function(a){a.removeListener();return b.apply(this,arguments)};return this.on.apply(this,a)},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},l=0,k=function(){l=1};return function(d,h,m){var g=f(this)[d];d=a;var n=l;a=l=0;if(g){var q=g.listeners;if(q.length)for(var q=q.slice(0),v,y=0;yg.getListenerIndex(e)){g=g.listeners;f||(f=this);isNaN(d)&&(d=10);var n=this;h.fn=e;h.priority=d;for(var p=g.length-1;0<=p;p--)if(g[p].priority<=d)return g.splice(p+1,0,h),{removeListener:l};g.unshift(h)}return{removeListener:l}},once:function(){var a=
+Array.prototype.slice.call(arguments),b=a[1];a[1]=function(a){a.removeListener();return b.apply(this,arguments)};return this.on.apply(this,a)},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},m=0,k=function(){m=1};return function(d,h,l){var g=f(this)[d];d=a;var n=m;a=m=0;if(g){var p=g.listeners;if(p.length)for(var p=p.slice(0),u,C=0;Cdocument.documentMode),mobile:-1c||b.quirks);b.gecko&&(f=a.match(/rv:([\d\.]+)/))&&(f=f[1].split("."),c=1E4*f[0]+100*(f[1]||0)+1*(f[2]||0));b.air&&(c=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));
@@ -18,80 +18,82 @@ b.webkit&&(c=parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));b.version=c;b.isComp
b.iOS&&(b.cssClass+=" cke_browser_ios");b.hidpi&&(b.cssClass+=" cke_hidpi");return b}()),"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)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,f=CKEDITOR.loadFullCoreTimeout;a&&(CKEDITOR.status="basic_ready",a&&a._load?a():f&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1E3*f))})})();CKEDITOR.status="basic_loaded"}(),"use strict",CKEDITOR.VERBOSITY_WARN=1,CKEDITOR.VERBOSITY_ERROR=2,CKEDITOR.verbosity=CKEDITOR.VERBOSITY_WARN|CKEDITOR.VERBOSITY_ERROR,CKEDITOR.warn=function(a,f){CKEDITOR.verbosity&
CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:a,additionalData:f})},CKEDITOR.error=function(a,f){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",{type:"error",errorCode:a,additionalData:f})},CKEDITOR.on("log",function(a){if(window.console&&window.console.log){var f=console[a.data.type]?a.data.type:"log",b=a.data.errorCode;if(a=a.data.additionalData)console[f]("[CKEDITOR] Error code: "+b+".",a);else console[f]("[CKEDITOR] Error code: "+b+".");console[f]("[CKEDITOR] For more information about this error go to http://docs.ckeditor.com/#!/guide/dev_errors-section-"+
-b)}},null,null,999),CKEDITOR.dom={},function(){var a=[],f=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",b=/&/g,c=/>/g,e=//g,e=/|\s) /g,
function(a,g){return g+"\x26nbsp;"}).replace(/ (?=<)/g,"\x26nbsp;")},getNextNumber:function(){var a=0;return function(){return++a}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var a="e",g=0;8>g;g++)a+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return a},override:function(a,g){var d=g(a);d.prototype=a.prototype;return d},setTimeout:function(a,g,d,b,h){h||(h=window);d||(d=h);return h.setTimeout(function(){b?a.apply(d,[].concat(b)):a.apply(d)},
g||0)},trim:function(){var a=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(g){return g.replace(a,"")}}(),ltrim:function(){var a=/^[ \t\n\r]+/g;return function(g){return g.replace(a,"")}}(),rtrim:function(){var a=/[ \t\n\r]+$/g;return function(g){return g.replace(a,"")}}(),indexOf:function(a,g){if("function"==typeof g)for(var d=0,b=a.length;dd;d++)a[d]=("0"+parseInt(a[d],10).toString(16)).slice(-2);
-return"#"+a.join("")})},normalizeHex:function(a){return a.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(a,d,b,h){a=d.toLowerCase();3==a.length&&(a=a.split(""),a=[a[0],a[0],a[1],a[1],a[2],a[2]].join(""));return"#"+a+h})},parseCssText:function(a,g,d){var b={};d&&(a=(new CKEDITOR.dom.element("span")).setAttribute("style",a).getAttribute("style")||"");a&&(a=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(a)));if(!a||";"==a)return b;a.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,
-function(a,d,h){g&&(d=d.toLowerCase(),"font-family"==d&&(h=h.replace(/\s*,\s*/g,",")),h=CKEDITOR.tools.trim(h));b[d]=h});return b},writeCssText:function(a,g){var d,b=[];for(d in a)b.push(d+":"+a[d]);g&&b.sort();return b.join("; ")},objectCompare:function(a,g,d){var b;if(!a&&!g)return!0;if(!a||!g)return!1;for(b in a)if(a[b]!=g[b])return!1;if(!d)for(b in g)if(a[b]!=g[b])return!1;return!0},objectKeys:function(a){var g=[],d;for(d in a)g.push(d);return g},convertArrayToObject:function(a,g){var d={};1==
+genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(a){return function(){var g=arguments,d=this;window.setTimeout(function(){a.apply(d,g)},0)}},normalizeCssText:function(a,g){var d=[],b,h=CKEDITOR.tools.parseCssText(a,!0,g);for(b in h)d.push(b+":"+h[b]);d.sort();return d.length?d.join(";")+";":""},convertRgbToHex:function(a){return a.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(a,d,b,l){a=[d,b,l];for(d=0;3>d;d++)a[d]=("0"+parseInt(a[d],10).toString(16)).slice(-2);
+return"#"+a.join("")})},normalizeHex:function(a){return a.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(a,d,b,l){a=d.toLowerCase();3==a.length&&(a=a.split(""),a=[a[0],a[0],a[1],a[1],a[2],a[2]].join(""));return"#"+a+l})},parseCssText:function(a,g,d){var b={};d&&(a=(new CKEDITOR.dom.element("span")).setAttribute("style",a).getAttribute("style")||"");a&&(a=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(a)));if(!a||";"==a)return b;a.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,
+function(a,d,l){g&&(d=d.toLowerCase(),"font-family"==d&&(l=l.replace(/\s*,\s*/g,",")),l=CKEDITOR.tools.trim(l));b[d]=l});return b},writeCssText:function(a,g){var d,b=[];for(d in a)b.push(d+":"+a[d]);g&&b.sort();return b.join("; ")},objectCompare:function(a,g,d){var b;if(!a&&!g)return!0;if(!a||!g)return!1;for(b in a)if(a[b]!=g[b])return!1;if(!d)for(b in g)if(a[b]!=g[b])return!1;return!0},objectKeys:function(a){var g=[],d;for(d in a)g.push(d);return g},convertArrayToObject:function(a,g){var d={};1==
arguments.length&&(g=!0);for(var b=0,h=a.length;bd;d++)a.push(Math.floor(256*Math.random()));for(d=0;dCKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&c(e);return e},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(a){a.$.parentNode.insertBefore(this.$,a.$.nextSibling);return a},insertBefore:function(a){a.$.parentNode.insertBefore(this.$,a.$);return a},insertBeforeMe:function(a){this.$.parentNode.insertBefore(a.$,
-this.$);return a},getAddress:function(a){for(var f=[],b=this.getDocument().$.documentElement,c=this.$;c&&c!=b;){var e=c.parentNode;e&&f.unshift(this.getIndex.call({$:c},a));c=e}return f},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(a){function f(a,d){var h=d?a.nextSibling:a.previousSibling;return h&&h.nodeType==CKEDITOR.NODE_TEXT?b(h)?f(h,d):h:null}function b(a){return!a.nodeValue||a.nodeValue==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE}
-var c=this.$,e=-1,l;if(!this.$.parentNode||a&&c.nodeType==CKEDITOR.NODE_TEXT&&b(c)&&!f(c)&&!f(c,!0))return-1;do a&&c!=this.$&&c.nodeType==CKEDITOR.NODE_TEXT&&(l||b(c))||(e++,l=c.nodeType==CKEDITOR.NODE_TEXT);while(c=c.previousSibling);return e},getNextSourceNode:function(a,f,b){if(b&&!b.call){var c=b;b=function(a){return!a.equals(c)}}a=!a&&this.getFirst&&this.getFirst();var e;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&!1===b(this,!0))return null;a=this.getNext()}for(;!a&&(e=(e||this).getParent());){if(b&&
-!1===b(e,!0))return null;a=e.getNext()}return!a||b&&!1===b(a)?null:f&&f!=a.type?a.getNextSourceNode(!1,f,b):a},getPreviousSourceNode:function(a,f,b){if(b&&!b.call){var c=b;b=function(a){return!a.equals(c)}}a=!a&&this.getLast&&this.getLast();var e;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&!1===b(this,!0))return null;a=this.getPrevious()}for(;!a&&(e=(e||this).getParent());){if(b&&!1===b(e,!0))return null;a=e.getPrevious()}return!a||b&&!1===b(a)?null:f&&a.type!=f?a.getPreviousSourceNode(!1,f,b):
-a},getPrevious:function(a){var f=this.$,b;do b=(f=f.previousSibling)&&10!=f.nodeType&&new CKEDITOR.dom.node(f);while(b&&a&&!a(b));return b},getNext:function(a){var f=this.$,b;do b=(f=f.nextSibling)&&new CKEDITOR.dom.node(f);while(b&&a&&!a(b));return b},getParent:function(a){var f=this.$.parentNode;return f&&(f.nodeType==CKEDITOR.NODE_ELEMENT||a&&f.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(f):null},getParents:function(a){var f=this,b=[];do b[a?"push":"unshift"](f);while(f=f.getParent());
-return b},getCommonAncestor:function(a){if(a.equals(this))return this;if(a.contains&&a.contains(this))return a;var f=this.contains?this:this.getParent();do if(f.contains(a))return f;while(f=f.getParent());return null},getPosition:function(a){var f=this.$,b=a.$;if(f.compareDocumentPosition)return f.compareDocumentPosition(b);if(f==b)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&a.type==CKEDITOR.NODE_ELEMENT){if(f.contains){if(f.contains(b))return CKEDITOR.POSITION_CONTAINS+
-CKEDITOR.POSITION_PRECEDING;if(b.contains(f))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in f)return 0>f.sourceIndex||0>b.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:f.sourceIndex=document.documentMode||!f||(a=f+":"+a);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(a))},getHead:function(){var a=this.$.getElementsByTagName("head")[0];return a=a?new CKEDITOR.dom.element(a):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},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(a){this.$.open("text/html","replace");CKEDITOR.env.ie&&(a=a.replace(/(?:^\s*]*?>)|^/i,'$\x26\n\x3cscript data-cke-temp\x3d"1"\x3e('+CKEDITOR.tools.fixDomain+")();\x3c/script\x3e"));this.$.write(a);this.$.close()},find:function(a){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(a))},findOne:function(a){return(a=this.$.querySelector(a))?new CKEDITOR.dom.element(a):null},_getHtml5ShivFrag:function(){var a=this.getCustomData("html5ShivFrag");a||
-(a=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(a,!0),this.setCustomData("html5ShivFrag",a));return a}}),CKEDITOR.dom.nodeList=function(a){this.$=a},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(a){return 0>a||a>=this.$.length?null:(a=this.$[a])?new CKEDITOR.dom.node(a):null}},CKEDITOR.dom.element=function(a,f){"string"==typeof a&&(a=(f?f.$:document).createElement(a));CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.element.get=function(a){return(a=
-"string"==typeof a?document.getElementById(a)||document.getElementsByName(a)[0]:a)&&(a.$?a:new CKEDITOR.dom.element(a))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(a,f){var b=new CKEDITOR.dom.element("div",f);b.setHtml(a);return b.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(a,f,b,c){var e=f.getCustomData("list_marker_id")||f.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),l=f.getCustomData("list_marker_names")||
-f.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");a[e]=f;l[b]=1;return f.setCustomData(b,c)},CKEDITOR.dom.element.clearAllMarkers=function(a){for(var f in a)CKEDITOR.dom.element.clearMarkers(a,a[f],1)},CKEDITOR.dom.element.clearMarkers=function(a,f,b){var c=f.getCustomData("list_marker_names"),e=f.getCustomData("list_marker_id"),l;for(l in c)f.removeCustomData(l);f.removeCustomData("list_marker_names");b&&(f.removeCustomData("list_marker_id"),delete a[e])},function(){function a(a,
-b){return-1<(" "+a+" ").replace(l," ").indexOf(" "+b+" ")}function f(a){var b=!0;a.$.id||(a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),b=!1);return function(){b||a.removeAttribute("id")}}function b(a,b){var c=CKEDITOR.tools.escapeCss(a.$.id);return"#"+c+" "+b.split(/,\s*/).join(", #"+c+" ")}function c(a){for(var b=0,c=0,g=k[a].length;cCKEDITOR.env.version?
-this.$.text+=a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(a){if(a||CKEDITOR.env.needsBrFiller){for(a=this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();a&&a.is&&a.is("br")||(a=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&a.setAttribute("type","_moz"),this.append(a))}},breakParent:function(a,b){var c=new CKEDITOR.dom.range(this.getDocument());c.setStartAfter(this);c.setEndAfter(a);var g=c.extractContents(!1,b||!1),e;c.insertNode(this.remove());
-if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(c=new CKEDITOR.dom.element("div");e=g.getFirst();)e.$.style.backgroundColor&&(e.$.style.backgroundColor=e.$.style.backgroundColor),c.append(e);c.insertAfter(this);c.remove(!0)}else g.insertAfterNode(this)},contains:document.compareDocumentPosition?function(a){return!!(this.$.compareDocumentPosition(a.$)&16)}:function(a){var b=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$):b!=a.$&&b.contains(a.$)},focus:function(){function a(){try{this.$.focus()}catch(b){}}
-return function(b){b?CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.appendChild(this.$.cloneNode(!0));return a.innerHTML},getClientRect:function(){var a=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!a.width&&(a.width=a.right-a.left);!a.height&&
-(a.height=a.bottom-a.top);return a},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(a){try{var b=this.$;if(this.getParent())return b.innerHTML=a;var c=this.getDocument()._getHtml5ShivFrag();c.appendChild(b);b.innerHTML=a;c.removeChild(b);return a}catch(g){this.$.innerHTML="";b=new CKEDITOR.dom.element("body",this.getDocument());b.$.innerHTML=a;for(b=b.getChildren();b.count();)this.append(b.getItem(0));return a}}:function(a){return this.$.innerHTML=a},setText:function(){var a=document.createElement("p");
-a.innerHTML="x";a=a.textContent;return function(b){this.$[a?"textContent":"innerText"]=b}}(),getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a="httpEquiv";break;case "name":return this.$.name;case "tabindex":return a=this.$.getAttribute(a,2),0!==a&&0===this.$.tabIndex&&(a=null),a;case "checked":return a=this.$.attributes.getNamedItem(a),
-(a.specified?a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,2)}:a}(),getAttributes:function(a){var b={},c=this.$.attributes,g;a=CKEDITOR.tools.isArray(a)?a:[];for(g=0;gd;d++)a.push(Math.floor(256*Math.random()));for(d=0;dCKEDITOR.env.version?4===
+g.button?CKEDITOR.MOUSE_BUTTON_MIDDLE:1===g.button?CKEDITOR.MOUSE_BUTTON_LEFT:CKEDITOR.MOUSE_BUTTON_RIGHT:g.button:!1},style:{parse:{_colors:{aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",
+crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",
+dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",
+lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",
+mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",
+red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},
+_borderStyle:"none hidden dotted dashed solid double groove ridge inset outset".split(" "),_widthRegExp:/^(thin|medium|thick|[\+-]?\d+(\.\d+)?[a-z%]+|[\+-]?0+(\.0+)?|\.\d+[a-z%]+)$/,_rgbaRegExp:/rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi,_hslaRegExp:/hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?:,\s*[0-9.]+\s*)?\)/gi,background:function(a){var g={},d=this._findColor(a);d.length&&(g.color=d[0],CKEDITOR.tools.array.forEach(d,function(g){a=a.replace(g,"")}));if(a=CKEDITOR.tools.trim(a))g.unprocessed=
+a;return g},margin:function(a){function g(a){d.top=b[a[0]];d.right=b[a[1]];d.bottom=b[a[2]];d.left=b[a[3]]}var d={},b=a.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset)/g)||["0px"];switch(b.length){case 1:g([0,0,0,0]);break;case 2:g([0,1,0,1]);break;case 3:g([0,1,2,1]);break;case 4:g([0,1,2,3])}return d},border:function(a){var g={};a=a.split(/\s+/);CKEDITOR.tools.array.forEach(a,function(a){if(!g.color){var d=CKEDITOR.tools.style.parse._findColor(a);if(d.length){g.color=d[0];return}}g.style||
+-1===CKEDITOR.tools.indexOf(CKEDITOR.tools.style.parse._borderStyle,a)?!g.width&&CKEDITOR.tools.style.parse._widthRegExp.test(a)&&(g.width=a):g.style=a});return g},_findColor:function(a){var g=[],d=CKEDITOR.tools.array,g=g.concat(a.match(this._rgbaRegExp)||[]),g=g.concat(a.match(this._hslaRegExp)||[]);return g=g.concat(d.filter(a.split(/\s+/),function(a){return a.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)?!0:a.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}},array:{filter:function(a,g,d){var b=
+[];this.forEach(a,function(h,c){g.call(d,h,c,a)&&b.push(h)});return b},forEach:function(a,g,d){var b=a.length,h;for(h=0;hCKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&c(e);return e},hasPrevious:function(){return!!this.$.previousSibling},
+hasNext:function(){return!!this.$.nextSibling},insertAfter:function(a){a.$.parentNode.insertBefore(this.$,a.$.nextSibling);return a},insertBefore:function(a){a.$.parentNode.insertBefore(this.$,a.$);return a},insertBeforeMe:function(a){this.$.parentNode.insertBefore(a.$,this.$);return a},getAddress:function(a){for(var f=[],b=this.getDocument().$.documentElement,c=this.$;c&&c!=b;){var e=c.parentNode;e&&f.unshift(this.getIndex.call({$:c},a));c=e}return f},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||
+this.$.parentNode.ownerDocument)},getIndex:function(a){function f(a,d){var h=d?a.nextSibling:a.previousSibling;return h&&h.nodeType==CKEDITOR.NODE_TEXT?b(h)?f(h,d):h:null}function b(a){return!a.nodeValue||a.nodeValue==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE}var c=this.$,e=-1,m;if(!this.$.parentNode||a&&c.nodeType==CKEDITOR.NODE_TEXT&&b(c)&&!f(c)&&!f(c,!0))return-1;do a&&c!=this.$&&c.nodeType==CKEDITOR.NODE_TEXT&&(m||b(c))||(e++,m=c.nodeType==CKEDITOR.NODE_TEXT);while(c=c.previousSibling);return e},
+getNextSourceNode:function(a,f,b){if(b&&!b.call){var c=b;b=function(a){return!a.equals(c)}}a=!a&&this.getFirst&&this.getFirst();var e;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&!1===b(this,!0))return null;a=this.getNext()}for(;!a&&(e=(e||this).getParent());){if(b&&!1===b(e,!0))return null;a=e.getNext()}return!a||b&&!1===b(a)?null:f&&f!=a.type?a.getNextSourceNode(!1,f,b):a},getPreviousSourceNode:function(a,f,b){if(b&&!b.call){var c=b;b=function(a){return!a.equals(c)}}a=!a&&this.getLast&&this.getLast();
+var e;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&!1===b(this,!0))return null;a=this.getPrevious()}for(;!a&&(e=(e||this).getParent());){if(b&&!1===b(e,!0))return null;a=e.getPrevious()}return!a||b&&!1===b(a)?null:f&&a.type!=f?a.getPreviousSourceNode(!1,f,b):a},getPrevious:function(a){var f=this.$,b;do b=(f=f.previousSibling)&&10!=f.nodeType&&new CKEDITOR.dom.node(f);while(b&&a&&!a(b));return b},getNext:function(a){var f=this.$,b;do b=(f=f.nextSibling)&&new CKEDITOR.dom.node(f);while(b&&a&&!a(b));
+return b},getParent:function(a){var f=this.$.parentNode;return f&&(f.nodeType==CKEDITOR.NODE_ELEMENT||a&&f.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(f):null},getParents:function(a){var f=this,b=[];do b[a?"push":"unshift"](f);while(f=f.getParent());return b},getCommonAncestor:function(a){if(a.equals(this))return this;if(a.contains&&a.contains(this))return a;var f=this.contains?this:this.getParent();do if(f.contains(a))return f;while(f=f.getParent());return null},getPosition:function(a){var f=
+this.$,b=a.$;if(f.compareDocumentPosition)return f.compareDocumentPosition(b);if(f==b)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&a.type==CKEDITOR.NODE_ELEMENT){if(f.contains){if(f.contains(b))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(b.contains(f))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in f)return 0>f.sourceIndex||0>b.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:f.sourceIndex=document.documentMode||!f||(a=f+":"+a);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(a))},getHead:function(){var a=this.$.getElementsByTagName("head")[0];return a=a?new CKEDITOR.dom.element(a):
+this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},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(a){this.$.open("text/html","replace");CKEDITOR.env.ie&&(a=a.replace(/(?:^\s*]*?>)|^/i,'$\x26\n\x3cscript data-cke-temp\x3d"1"\x3e('+CKEDITOR.tools.fixDomain+
+")();\x3c/script\x3e"));this.$.write(a);this.$.close()},find:function(a){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(a))},findOne:function(a){return(a=this.$.querySelector(a))?new CKEDITOR.dom.element(a):null},_getHtml5ShivFrag:function(){var a=this.getCustomData("html5ShivFrag");a||(a=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(a,!0),this.setCustomData("html5ShivFrag",a));return a}}),CKEDITOR.dom.nodeList=function(a){this.$=a},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},
+getItem:function(a){return 0>a||a>=this.$.length?null:(a=this.$[a])?new CKEDITOR.dom.node(a):null},toArray:function(){return CKEDITOR.tools.array.map(this.$,function(a){return new CKEDITOR.dom.node(a)})}},CKEDITOR.dom.element=function(a,f){"string"==typeof a&&(a=(f?f.$:document).createElement(a));CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.element.get=function(a){return(a="string"==typeof a?document.getElementById(a)||document.getElementsByName(a)[0]:a)&&(a.$?a:new CKEDITOR.dom.element(a))},
+CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(a,f){var b=new CKEDITOR.dom.element("div",f);b.setHtml(a);return b.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(a,f,b,c){var e=f.getCustomData("list_marker_id")||f.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),m=f.getCustomData("list_marker_names")||f.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");a[e]=f;m[b]=1;
+return f.setCustomData(b,c)},CKEDITOR.dom.element.clearAllMarkers=function(a){for(var f in a)CKEDITOR.dom.element.clearMarkers(a,a[f],1)},CKEDITOR.dom.element.clearMarkers=function(a,f,b){var c=f.getCustomData("list_marker_names"),e=f.getCustomData("list_marker_id"),m;for(m in c)f.removeCustomData(m);f.removeCustomData("list_marker_names");b&&(f.removeCustomData("list_marker_id"),delete a[e])},function(){function a(a,b){return-1<(" "+a+" ").replace(m," ").indexOf(" "+b+" ")}function f(a){var b=!0;
+a.$.id||(a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),b=!1);return function(){b||a.removeAttribute("id")}}function b(a,b){var c=CKEDITOR.tools.escapeCss(a.$.id);return"#"+c+" "+b.split(/,\s*/).join(", #"+c+" ")}function c(a){for(var b=0,c=0,g=k[a].length;cCKEDITOR.env.version?this.$.text+=a:this.append(new CKEDITOR.dom.text(a))},
+appendBogus:function(a){if(a||CKEDITOR.env.needsBrFiller){for(a=this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();a&&a.is&&a.is("br")||(a=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&a.setAttribute("type","_moz"),this.append(a))}},breakParent:function(a,b){var c=new CKEDITOR.dom.range(this.getDocument());c.setStartAfter(this);c.setEndAfter(a);var g=c.extractContents(!1,b||!1),e;c.insertNode(this.remove());if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(c=
+new CKEDITOR.dom.element("div");e=g.getFirst();)e.$.style.backgroundColor&&(e.$.style.backgroundColor=e.$.style.backgroundColor),c.append(e);c.insertAfter(this);c.remove(!0)}else g.insertAfterNode(this)},contains:document.compareDocumentPosition?function(a){return!!(this.$.compareDocumentPosition(a.$)&16)}:function(a){var b=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$):b!=a.$&&b.contains(a.$)},focus:function(){function a(){try{this.$.focus()}catch(d){}}return function(b){b?
+CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.appendChild(this.$.cloneNode(!0));return a.innerHTML},getClientRect:function(){var a=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom-a.top);
+return a},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(a){try{var b=this.$;if(this.getParent())return b.innerHTML=a;var c=this.getDocument()._getHtml5ShivFrag();c.appendChild(b);b.innerHTML=a;c.removeChild(b);return a}catch(g){this.$.innerHTML="";b=new CKEDITOR.dom.element("body",this.getDocument());b.$.innerHTML=a;for(b=b.getChildren();b.count();)this.append(b.getItem(0));return a}}:function(a){return this.$.innerHTML=a},setText:function(){var a=document.createElement("p");a.innerHTML=
+"x";a=a.textContent;return function(b){this.$[a?"textContent":"innerText"]=b}}(),getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a="httpEquiv";break;case "name":return this.$.name;case "tabindex":return a=this.$.getAttribute(a,2),0!==a&&0===this.$.tabIndex&&(a=null),a;case "checked":return a=this.$.attributes.getNamedItem(a),(a.specified?
+a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,2)}:a}(),getAttributes:function(a){var b={},c=this.$.attributes,g;a=CKEDITOR.tools.isArray(a)?a:[];for(g=0;g=document.documentMode){var b=this.$.scopeName;"HTML"!=
b&&(a=b.toLowerCase()+":"+a)}this.getName=function(){return a};return this.getName()},getValue:function(){return this.$.value},getFirst:function(a){var b=this.$.firstChild;(b=b&&new CKEDITOR.dom.node(b))&&a&&!a(b)&&(b=b.getNext(a));return b},getLast:function(a){var b=this.$.lastChild;(b=b&&new CKEDITOR.dom.node(b))&&a&&!a(b)&&(b=b.getPrevious(a));return b},getStyle:function(a){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]},is:function(){var a=this.getName();if("object"==typeof arguments[0])return!!arguments[0][a];
for(var b=0;bCKEDITOR.env.version?(a=Math.round(100*a),this.setStyle("filter",100<=a?"":"progid:DXImageTransform.Microsoft.Alpha(opacity\x3d"+a+")")):this.setStyle("opacity",a)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));
if(CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var a,b=this.getElementsByTag("*"),c=0,g=b.count();cl||0l?l:e);c&&(0>f||0f?f:g,0)},setState:function(a,b,c){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+
+8!==CKEDITOR.env.version:1)){var m=this.$.getBoundingClientRect(),k=g.$.documentElement,w=k.clientTop||e.$.clientTop||0,q=k.clientLeft||e.$.clientLeft||0,x=!0;CKEDITOR.env.ie&&(x=g.getDocumentElement().contains(this),g=g.getBody().contains(this),x=f&&g||!f&&x);x&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(b=e.$.scrollLeft||k.scrollLeft,c=e.$.scrollTop||k.scrollTop):(c=f?e.$:k,b=c.scrollLeft,c=c.scrollTop),b=m.left+b-q,c=m.top+c-w)}else for(w=this,q=null;w&&"body"!=w.getName()&&
+"html"!=w.getName();){b+=w.$.offsetLeft-w.$.scrollLeft;c+=w.$.offsetTop-w.$.scrollTop;w.equals(this)||(b+=w.$.clientLeft||0,c+=w.$.clientTop||0);for(;q&&!q.equals(w);)b-=q.$.scrollLeft,c-=q.$.scrollTop,q=q.getParent();q=w;w=(m=w.$.offsetParent)?new CKEDITOR.dom.element(m):null}a&&(m=this.getWindow(),w=a.getWindow(),!m.equals(w)&&m.$.frameElement&&(a=(new CKEDITOR.dom.element(m.$.frameElement)).getDocumentPosition(a),b+=a.x,c+=a.y));document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||
+f||(b+=this.$.clientLeft?1:0,c+=this.$.clientTop?1:0);return{x:b,y:c}},scrollIntoView:function(a){var b=this.getParent();if(b){do if((b.$.clientWidth&&b.$.clientWidthm||0m?m:e);c&&(0>f||0f?f:g,0)},setState:function(a,b,c){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+
"_off");this.removeClass(b+"_disabled");c&&this.setAttribute("aria-pressed",!0);c&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+"_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");c&&this.setAttribute("aria-disabled",!0);c&&this.removeAttribute("aria-pressed");break;default:this.addClass(b+"_off"),this.removeClass(b+"_on"),this.removeClass(b+"_disabled"),c&&this.removeAttribute("aria-pressed"),c&&this.removeAttribute("aria-disabled")}},
-getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(b){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,b){var c=this.$.attributes;b=b||{};for(var g=0;g=B.getChildCount()?(B=B.getChild(C-1),I=!0):B=B.getChild(C):J=I=!0;x.type==CKEDITOR.NODE_TEXT?p?G=!0:x.split(z):0fa)for(;ca;)ca=f(ca,K,!0);K=U}p||m()}}function b(){var a=!1,b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(!0),d=CKEDITOR.dom.walker.bogus();return function(e){return c(e)||b(e)?!0:d(e)&&!a?a=!0:e.type==CKEDITOR.NODE_TEXT&&(e.hasAscendant("pre")||CKEDITOR.tools.trim(e.getText()).length)||e.type==CKEDITOR.NODE_ELEMENT&&!e.is(l)?!1:!0}}function c(a){var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(1);
-return function(d){return c(d)||b(d)?!0:!a&&k(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.$removeEmpty)}}function e(a){return function(){var b;return this[a?"getPreviousNode":"getNextNode"](function(a){!b&&m(a)&&(b=a);return h(a)&&!(k(a)&&a.equals(b))})}}var l={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},k=CKEDITOR.dom.walker.bogus(),d=/^[\t\r\n ]*(?: |\xa0)$/,
-h=CKEDITOR.dom.walker.editable(),m=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var a=new CKEDITOR.dom.range(this.root);a._setStartContainer(this.startContainer);a.startOffset=this.startOffset;a._setEndContainer(this.endContainer);a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){a?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),this.startOffset=this.endOffset);
-this.collapsed=!0},cloneContents:function(a){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||f(this,2,b,!1,"undefined"==typeof a?!0:a);return b},deleteContents:function(a){this.collapsed||f(this,0,null,a)},extractContents:function(a,b){var c=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||f(this,1,c,a,"undefined"==typeof b?!0:b);return c},createBookmark:function(a){var b,c,d,e,f=this.collapsed;b=this.document.createElement("span");b.data("cke-bookmark",1);b.setStyle("display",
-"none");b.setHtml("\x26nbsp;");a&&(d="cke_bm_"+CKEDITOR.tools.getNextNumber(),b.setAttribute("id",d+(f?"C":"S")));f||(c=b.clone(),c.setHtml("\x26nbsp;"),a&&c.setAttribute("id",d+"E"),e=this.clone(),e.collapse(),e.insertNode(c));e=this.clone();e.collapse(!0);e.insertNode(b);c?(this.setStartAfter(b),this.setEndBefore(c)):this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);return{startNode:a?d+(f?"C":"S"):b,endNode:a?d+"E":c,serializable:a,collapsed:f}},createBookmark2:function(){function a(b){var g=
+return!!(a^g)}};CKEDITOR.dom.walker.invisible=function(a){var b=CKEDITOR.dom.walker.whitespaces(),g=CKEDITOR.env.webkit?1:0;return function(c){b(c)?c=1:(c.type==CKEDITOR.NODE_TEXT&&(c=c.getParent()),c=c.$.offsetWidth<=g);return!!(a^c)}};CKEDITOR.dom.walker.nodeType=function(a,b){return function(g){return!!(b^g.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function b(a){return!m(a)&&!k(a)}return function(g){var c=CKEDITOR.env.needsBrFiller?g.is&&g.is("br"):g.getText&&e.test(g.getText());c&&(c=g.getParent(),
+g=g.getNext(b),c=c.isBlockBoundary()&&(!g||g.type==CKEDITOR.NODE_ELEMENT&&g.isBlockBoundary()));return!!(a^c)}};CKEDITOR.dom.walker.temp=function(a){return function(b){b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent());b=b&&b.hasAttribute("data-cke-temp");return!!(a^b)}};var e=/^[\t\r\n ]*(?: |\xa0)$/,m=CKEDITOR.dom.walker.whitespaces(),k=CKEDITOR.dom.walker.bookmark(),d=CKEDITOR.dom.walker.temp(),h=function(a){return k(a)||m(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$inline)&&!a.is(CKEDITOR.dtd.$empty)};
+CKEDITOR.dom.walker.ignored=function(a){return function(b){b=m(b)||k(b)||d(b);return!!(a^b)}};var l=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(a){return function(b){for(var g=0,c=b.getChildCount();g=v.getChildCount()?(v=v.getChild(B-1),G=!0):v=v.getChild(B):I=G=!0;y.type==
+CKEDITOR.NODE_TEXT?t?F=!0:y.split(z):0fa)for(;ba;)ba=f(ba,L,!0);L=U}t||h()}}function b(){var a=!1,b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(!0),d=CKEDITOR.dom.walker.bogus();return function(e){return c(e)||b(e)?!0:d(e)&&!a?a=!0:e.type==CKEDITOR.NODE_TEXT&&(e.hasAscendant("pre")||CKEDITOR.tools.trim(e.getText()).length)||e.type==CKEDITOR.NODE_ELEMENT&&!e.is(m)?!1:!0}}function c(a){var b=
+CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(1);return function(d){return c(d)||b(d)?!0:!a&&k(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.$removeEmpty)}}function e(a){return function(){var b;return this[a?"getPreviousNode":"getNextNode"](function(a){!b&&l(a)&&(b=a);return h(a)&&!(k(a)&&a.equals(b))})}}var m={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},
+k=CKEDITOR.dom.walker.bogus(),d=/^[\t\r\n ]*(?: |\xa0)$/,h=CKEDITOR.dom.walker.editable(),l=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var a=new CKEDITOR.dom.range(this.root);a._setStartContainer(this.startContainer);a.startOffset=this.startOffset;a._setEndContainer(this.endContainer);a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){a?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),
+this.startOffset=this.endOffset);this.collapsed=!0},cloneContents:function(a){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||f(this,2,b,!1,"undefined"==typeof a?!0:a);return b},deleteContents:function(a){this.collapsed||f(this,0,null,a)},extractContents:function(a,b){var c=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||f(this,1,c,a,"undefined"==typeof b?!0:b);return c},createBookmark:function(a){var b,c,d,e,f=this.collapsed;b=this.document.createElement("span");
+b.data("cke-bookmark",1);b.setStyle("display","none");b.setHtml("\x26nbsp;");a&&(d="cke_bm_"+CKEDITOR.tools.getNextNumber(),b.setAttribute("id",d+(f?"C":"S")));f||(c=b.clone(),c.setHtml("\x26nbsp;"),a&&c.setAttribute("id",d+"E"),e=this.clone(),e.collapse(),e.insertNode(c));e=this.clone();e.collapse(!0);e.insertNode(b);c?(this.setStartAfter(b),this.setEndBefore(c)):this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);return{startNode:a?d+(f?"C":"S"):b,endNode:a?d+"E":c,serializable:a,collapsed:f}},createBookmark2:function(){function a(b){var g=
b.container,d=b.offset,e;e=g;var f=d;e=e.type!=CKEDITOR.NODE_ELEMENT||0===f||f==e.getChildCount()?0:e.getChild(f-1).type==CKEDITOR.NODE_TEXT&&e.getChild(f).type==CKEDITOR.NODE_TEXT;e&&(g=g.getChild(d-1),d=g.getLength());if(g.type==CKEDITOR.NODE_ELEMENT&&0=a.offset&&(a.offset=d.getIndex(),a.container=d.getParent()))}}var c=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(c){var d=this.collapsed,e={container:this.startContainer,
offset:this.startOffset},f={container:this.endContainer,offset:this.endOffset};c&&(a(e),b(e,this.root),d||(a(f),b(f,this.root)));return{start:e.container.getAddress(c),end:d?null:f.container.getAddress(c),startOffset:e.offset,endOffset:f.offset,normalized:c,collapsed:d,is2:!0}}}(),moveToBookmark:function(a){if(a.is2){var b=this.document.getByAddress(a.start,a.normalized),c=a.startOffset,d=a.end&&this.document.getByAddress(a.end,a.normalized);a=a.endOffset;this.setStart(b,c);d?this.setEnd(d,a):this.collapse(!0)}else b=
@@ -145,124 +147,125 @@ offset:this.startOffset},f={container:this.endContainer,offset:this.endOffset};c
a.getNextSourceNode()||a}if(b.type==CKEDITOR.NODE_ELEMENT)if(e=b.getChildCount(),e>d)b=b.getChild(d).getPreviousSourceNode(!0);else if(1>e)b=b.getPreviousSourceNode();else{for(b=b.$;b.lastChild;)b=b.lastChild;b=new CKEDITOR.dom.node(b)}a.getPosition(b)&CKEDITOR.POSITION_FOLLOWING&&(a=b);return{startNode:a,endNode:b}},getCommonAncestor:function(a,b){var c=this.startContainer,d=this.endContainer,c=c.equals(d)?a&&c.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?c.getChild(this.startOffset):
c:c.getCommonAncestor(d);return b&&!c.is?c.getParent():c},optimize:function(){var a=this.startContainer,b=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setStartAfter(a):this.setStartBefore(a));a=this.endContainer;b=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,b=this.endContainer;a.is&&a.is("span")&&a.data("cke-bookmark")&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);
b&&b.is&&b.is("span")&&b.data("cke-bookmark")&&this.setEndAt(b,CKEDITOR.POSITION_AFTER_END)},trim:function(a,b){var c=this.startContainer,d=this.startOffset,e=this.collapsed;if((!a||e)&&c&&c.type==CKEDITOR.NODE_TEXT){if(d)if(d>=c.getLength())d=c.getIndex()+1,c=c.getParent();else{var f=c.split(d),d=c.getIndex()+1,c=c.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(f,this.endOffset-this.startOffset):c.equals(this.endContainer)&&(this.endOffset+=1)}else d=c.getIndex(),c=c.getParent();
-this.setStart(c,d);if(e){this.collapse(!0);return}}c=this.endContainer;d=this.endOffset;b||e||!c||c.type!=CKEDITOR.NODE_TEXT||(d?(d>=c.getLength()||c.split(d),d=c.getIndex()+1):d=c.getIndex(),c=c.getParent(),this.setEnd(c,d))},enlarge:function(a,b){function c(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")?null:a}var d=new RegExp(/[^\s\ufeff]/);switch(a){case CKEDITOR.ENLARGE_INLINE:var e=1;case CKEDITOR.ENLARGE_ELEMENT:var f=function(a,b){var c=new CKEDITOR.dom.range(m);
-c.setStart(a,b);c.setEndAt(m,CKEDITOR.POSITION_BEFORE_END);var c=new CKEDITOR.dom.walker(c),g;for(c.guard=function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};g=c.next();){if(g.type!=CKEDITOR.NODE_TEXT)return!1;D=g!=a?g.getText():g.substring(b);if(d.test(D))return!1}return!0};if(this.collapsed)break;var h=this.getCommonAncestor(),m=this.root,l,k,p,x,B,z=!1,C,D;C=this.startContainer;var I=this.startOffset;C.type==CKEDITOR.NODE_TEXT?(I&&(C=!CKEDITOR.tools.trim(C.substring(0,I)).length&&
-C,z=!!C),C&&((x=C.getPrevious())||(p=C.getParent()))):(I&&(x=C.getChild(I-1)||C.getLast()),x||(p=C));for(p=c(p);p||x;){if(p&&!x){!B&&p.equals(h)&&(B=!0);if(e?p.isBlockBoundary():!m.contains(p))break;z&&"inline"==p.getComputedStyle("display")||(z=!1,B?l=p:this.setStartBefore(p));x=p.getPrevious()}for(;x;)if(C=!1,x.type==CKEDITOR.NODE_COMMENT)x=x.getPrevious();else{if(x.type==CKEDITOR.NODE_TEXT)D=x.getText(),d.test(D)&&(x=null),C=/[\s\ufeff]$/.test(D);else if((x.$.offsetWidth>(CKEDITOR.env.webkit?1:
-0)||b&&x.is("br"))&&!x.data("cke-bookmark"))if(z&&CKEDITOR.dtd.$removeEmpty[x.getName()]){D=x.getText();if(d.test(D))x=null;else for(var I=x.$.getElementsByTagName("*"),F=0,J;J=I[F++];)if(!CKEDITOR.dtd.$removeEmpty[J.nodeName.toLowerCase()]){x=null;break}x&&(C=!!D.length)}else x=null;C&&(z?B?l=p:p&&this.setStartBefore(p):z=!0);if(x){C=x.getPrevious();if(!p&&!C){p=x;x=null;break}x=C}else p=null}p&&(p=c(p.getParent()))}C=this.endContainer;I=this.endOffset;p=x=null;B=z=!1;C.type==CKEDITOR.NODE_TEXT?
-CKEDITOR.tools.trim(C.substring(I)).length?z=!0:(z=!C.getLength(),I==C.getLength()?(x=C.getNext())||(p=C.getParent()):f(C,I)&&(p=C.getParent())):(x=C.getChild(I))||(p=C);for(;p||x;){if(p&&!x){!B&&p.equals(h)&&(B=!0);if(e?p.isBlockBoundary():!m.contains(p))break;z&&"inline"==p.getComputedStyle("display")||(z=!1,B?k=p:p&&this.setEndAfter(p));x=p.getNext()}for(;x;){C=!1;if(x.type==CKEDITOR.NODE_TEXT)D=x.getText(),f(x,0)||(x=null),C=/^[\s\ufeff]/.test(D);else if(x.type==CKEDITOR.NODE_ELEMENT){if((0=h.getLength()?f.setStartAfter(h):(f.setStartBefore(h),c=0):f.setStartBefore(h));m&&m.type==CKEDITOR.NODE_TEXT&&(k?k>=m.getLength()?f.setEndAfter(m):(f.setEndAfter(m),p=0):f.setEndBefore(m));var f=new CKEDITOR.dom.walker(f),x=CKEDITOR.dom.walker.bookmark(),B=CKEDITOR.dom.walker.bogus();f.evaluator=function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};
-var z;f.guard=function(b,c){if(e&&B(b)||x(b))return!0;if(a==CKEDITOR.SHRINK_ELEMENT&&b.type==CKEDITOR.NODE_TEXT||c&&b.equals(z)||!1===d&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()||b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable"))return!1;c||b.type!=CKEDITOR.NODE_ELEMENT||(z=b);return!0};c&&(h=f[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(h,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);p&&(f.reset(),(f=f[a==CKEDITOR.SHRINK_ELEMENT?
-"lastBackward":"previous"]())&&this.setEndAt(f,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));return!(!c&&!p)}},insertNode:function(a){this.optimizeBookmark();this.trim(!1,!0);var b=this.startContainer,c=b.getChild(this.startOffset);c?a.insertBefore(c):b.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,b){this.setStartAt(a,b);this.collapse(!0)},moveToRange:function(a){this.setStart(a.startContainer,a.startOffset);
+this.setStart(c,d);if(e){this.collapse(!0);return}}c=this.endContainer;d=this.endOffset;b||e||!c||c.type!=CKEDITOR.NODE_TEXT||(d?(d>=c.getLength()||c.split(d),d=c.getIndex()+1):d=c.getIndex(),c=c.getParent(),this.setEnd(c,d))},enlarge:function(a,b){function c(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")?null:a}var d=new RegExp(/[^\s\ufeff]/);switch(a){case CKEDITOR.ENLARGE_INLINE:var e=1;case CKEDITOR.ENLARGE_ELEMENT:var f=function(a,b){var c=new CKEDITOR.dom.range(h);
+c.setStart(a,b);c.setEndAt(h,CKEDITOR.POSITION_BEFORE_END);var c=new CKEDITOR.dom.walker(c),g;for(c.guard=function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};g=c.next();){if(g.type!=CKEDITOR.NODE_TEXT)return!1;H=g!=a?g.getText():g.substring(b);if(d.test(H))return!1}return!0};if(this.collapsed)break;var l=this.getCommonAncestor(),h=this.root,m,k,t,y,v,z=!1,B,H;B=this.startContainer;var G=this.startOffset;B.type==CKEDITOR.NODE_TEXT?(G&&(B=!CKEDITOR.tools.trim(B.substring(0,G)).length&&
+B,z=!!B),B&&((y=B.getPrevious())||(t=B.getParent()))):(G&&(y=B.getChild(G-1)||B.getLast()),y||(t=B));for(t=c(t);t||y;){if(t&&!y){!v&&t.equals(l)&&(v=!0);if(e?t.isBlockBoundary():!h.contains(t))break;z&&"inline"==t.getComputedStyle("display")||(z=!1,v?m=t:this.setStartBefore(t));y=t.getPrevious()}for(;y;)if(B=!1,y.type==CKEDITOR.NODE_COMMENT)y=y.getPrevious();else{if(y.type==CKEDITOR.NODE_TEXT)H=y.getText(),d.test(H)&&(y=null),B=/[\s\ufeff]$/.test(H);else if((y.$.offsetWidth>(CKEDITOR.env.webkit?1:
+0)||b&&y.is("br"))&&!y.data("cke-bookmark"))if(z&&CKEDITOR.dtd.$removeEmpty[y.getName()]){H=y.getText();if(d.test(H))y=null;else for(var G=y.$.getElementsByTagName("*"),E=0,I;I=G[E++];)if(!CKEDITOR.dtd.$removeEmpty[I.nodeName.toLowerCase()]){y=null;break}y&&(B=!!H.length)}else y=null;B&&(z?v?m=t:t&&this.setStartBefore(t):z=!0);if(y){B=y.getPrevious();if(!t&&!B){t=y;y=null;break}y=B}else t=null}t&&(t=c(t.getParent()))}B=this.endContainer;G=this.endOffset;t=y=null;v=z=!1;B.type==CKEDITOR.NODE_TEXT?
+CKEDITOR.tools.trim(B.substring(G)).length?z=!0:(z=!B.getLength(),G==B.getLength()?(y=B.getNext())||(t=B.getParent()):f(B,G)&&(t=B.getParent())):(y=B.getChild(G))||(t=B);for(;t||y;){if(t&&!y){!v&&t.equals(l)&&(v=!0);if(e?t.isBlockBoundary():!h.contains(t))break;z&&"inline"==t.getComputedStyle("display")||(z=!1,v?k=t:t&&this.setEndAfter(t));y=t.getNext()}for(;y;){B=!1;if(y.type==CKEDITOR.NODE_TEXT)H=y.getText(),f(y,0)||(y=null),B=/^[\s\ufeff]/.test(H);else if(y.type==CKEDITOR.NODE_ELEMENT){if((0=l.getLength()?f.setStartAfter(l):(f.setStartBefore(l),c=0):f.setStartBefore(l));h&&h.type==CKEDITOR.NODE_TEXT&&(k?k>=h.getLength()?f.setEndAfter(h):(f.setEndAfter(h),t=0):f.setEndBefore(h));var f=new CKEDITOR.dom.walker(f),y=CKEDITOR.dom.walker.bookmark(),v=CKEDITOR.dom.walker.bogus();f.evaluator=function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};
+var z;f.guard=function(b,c){if(e&&v(b)||y(b))return!0;if(a==CKEDITOR.SHRINK_ELEMENT&&b.type==CKEDITOR.NODE_TEXT||c&&b.equals(z)||!1===d&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()||b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable"))return!1;c||b.type!=CKEDITOR.NODE_ELEMENT||(z=b);return!0};c&&(l=f[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(l,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);t&&(f.reset(),(f=f[a==CKEDITOR.SHRINK_ELEMENT?
+"lastBackward":"previous"]())&&this.setEndAt(f,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));return!(!c&&!t)}},insertNode:function(a){this.optimizeBookmark();this.trim(!1,!0);var b=this.startContainer,c=b.getChild(this.startOffset);c?a.insertBefore(c):b.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,b){this.setStartAt(a,b);this.collapse(!0)},moveToRange:function(a){this.setStart(a.startContainer,a.startOffset);
this.setEnd(a.endContainer,a.endOffset)},selectNodeContents:function(a){this.setStart(a,0);this.setEnd(a,a.type==CKEDITOR.NODE_TEXT?a.getLength():a.getChildCount())},setStart:function(b,c){b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]&&(c=b.getIndex(),b=b.getParent());this._setStartContainer(b);this.startOffset=c;this.endContainer||(this._setEndContainer(b),this.endOffset=c);a(this)},setEnd:function(b,c){b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]&&(c=b.getIndex()+
1,b=b.getParent());this._setEndContainer(b);this.endOffset=c;this.startContainer||(this._setStartContainer(b),this.startOffset=c);a(this)},setStartAfter:function(a){this.setStart(a.getParent(),a.getIndex()+1)},setStartBefore:function(a){this.setStart(a.getParent(),a.getIndex())},setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),a.getIndex())},setStartAt:function(b,c){switch(c){case CKEDITOR.POSITION_AFTER_START:this.setStart(b,0);
break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setStart(b,b.getLength()):this.setStart(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(b);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(b)}a(this)},setEndAt:function(b,c){switch(c){case CKEDITOR.POSITION_AFTER_START:this.setEnd(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setEnd(b,b.getLength()):this.setEnd(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(b);
break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(b)}a(this)},fixBlock:function(a,b){var c=this.createBookmark(),d=this.document.createElement(b);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(d);d.trim();this.insertNode(d);var e=d.getBogus();e&&e.remove();d.appendBogus();this.moveToBookmark(c);return d},splitBlock:function(a,b){var c=new CKEDITOR.dom.elementPath(this.startContainer,this.root),d=new CKEDITOR.dom.elementPath(this.endContainer,this.root),
-e=c.block,f=d.block,h=null;if(!c.blockLimit.equals(d.blockLimit))return null;"br"!=a&&(e||(e=this.fixBlock(!0,a),f=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),f||(f=this.fixBlock(!1,a)));c=e&&this.checkStartOfBlock();d=f&&this.checkEndOfBlock();this.deleteContents();e&&e.equals(f)&&(d?(h=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(f,CKEDITOR.POSITION_AFTER_END),f=null):c?(h=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(e,
-CKEDITOR.POSITION_BEFORE_START),e=null):(f=this.splitElement(e,b||!1),e.is("ul","ol")||e.appendBogus()));return{previousBlock:e,nextBlock:f,wasStartOfBlock:c,wasEndOfBlock:d,elementPath:h}},splitElement:function(a,b){if(!this.collapsed)return null;this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var c=this.extractContents(!1,b||!1),d=a.clone(!1,b||!1);c.appendTo(d);d.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return d},removeEmptyBlocksAtEnd:function(){function a(g){return function(a){return b(a)||
+e=c.block,f=d.block,l=null;if(!c.blockLimit.equals(d.blockLimit))return null;"br"!=a&&(e||(e=this.fixBlock(!0,a),f=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),f||(f=this.fixBlock(!1,a)));c=e&&this.checkStartOfBlock();d=f&&this.checkEndOfBlock();this.deleteContents();e&&e.equals(f)&&(d?(l=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(f,CKEDITOR.POSITION_AFTER_END),f=null):c?(l=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(e,
+CKEDITOR.POSITION_BEFORE_START),e=null):(f=this.splitElement(e,b||!1),e.is("ul","ol")||e.appendBogus()));return{previousBlock:e,nextBlock:f,wasStartOfBlock:c,wasEndOfBlock:d,elementPath:l}},splitElement:function(a,b){if(!this.collapsed)return null;this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var c=this.extractContents(!1,b||!1),d=a.clone(!1,b||!1);c.appendTo(d);d.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return d},removeEmptyBlocksAtEnd:function(){function a(g){return function(a){return b(a)||
c(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable()||g.is("table")&&a.is("caption")?!1:!0}}var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(!1);return function(b){for(var c=this.createBookmark(),d=this[b?"endPath":"startPath"](),e=d.block||d.blockLimit,f;e&&!e.equals(d.root)&&!e.getFirst(a(e));)f=e.getParent(),this[b?"setEndAt":"setStartAt"](e,CKEDITOR.POSITION_AFTER_END),e.remove(1),e=f;this.moveToBookmark(c)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,
this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(a,b){var d=b==CKEDITOR.START,e=this.clone();e.collapse(d);e[d?"setStartAt":"setEndAt"](a,d?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);e=new CKEDITOR.dom.walker(e);e.evaluator=c(d);return e[d?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,c=this.startOffset;CKEDITOR.env.ie&&c&&a.type==CKEDITOR.NODE_TEXT&&(a=CKEDITOR.tools.ltrim(a.substring(0,
c)),d.test(a)&&this.trim(0,1));this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,this.root);c=this.clone();c.collapse(!0);c.setStartAt(a.block||a.blockLimit,CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(c);a.evaluator=b();return a.checkBackward()},checkEndOfBlock:function(){var a=this.endContainer,c=this.endOffset;CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT&&(a=CKEDITOR.tools.rtrim(a.substring(c)),d.test(a)&&this.trim(1,0));this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,
this.root);c=this.clone();c.collapse(!1);c.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);a=new CKEDITOR.dom.walker(c);a.evaluator=b();return a.checkForward()},getPreviousNode:function(a,b,c){var d=this.clone();d.collapse(1);d.setStartAt(c||this.root,CKEDITOR.POSITION_AFTER_START);c=new CKEDITOR.dom.walker(d);c.evaluator=a;c.guard=b;return c.previous()},getNextNode:function(a,b,c){var d=this.clone();d.collapse();d.setEndAt(c||this.root,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(d);
c.evaluator=a;c.guard=b;return c.next()},checkReadOnly:function(){function a(b,c){for(;b;){if(b.type==CKEDITOR.NODE_ELEMENT){if("false"==b.getAttribute("contentEditable")&&!b.data("cke-editable"))return 0;if(b.is("html")||"true"==b.getAttribute("contentEditable")&&(b.contains(c)||b.equals(c)))break}b=b.getParent()}return 1}return function(){var b=this.startContainer,c=this.endContainer;return!(a(b,c)&&a(c,b))}}(),moveToElementEditablePosition:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable(!1))return this.moveToPosition(a,
b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var c=0;a;){if(a.type==CKEDITOR.NODE_TEXT){b&&this.endContainer&&this.checkEndOfBlock()&&d.test(a.getText())?this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);c=1;break}if(a.type==CKEDITOR.NODE_ELEMENT)if(a.isEditable())this.moveToPosition(a,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),c=1;else if(b&&a.is("br")&&this.endContainer&&
-this.checkEndOfBlock())this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START);else if("false"==a.getAttribute("contenteditable")&&a.is(CKEDITOR.dtd.$block))return this.setStartBefore(a),this.setEndAfter(a),!0;var e=a,f=c,h=void 0;e.type==CKEDITOR.NODE_ELEMENT&&e.isEditable(!1)&&(h=e[b?"getLast":"getFirst"](m));f||h||(h=e[b?"getPrevious":"getNext"](m));a=h}return!!c},moveToClosestEditablePosition:function(a,b){var c,d=0,e,f,h=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];a?(c=new CKEDITOR.dom.range(this.root),
-c.moveToPosition(a,h[b?0:1])):c=this.clone();if(a&&!a.is(CKEDITOR.dtd.$block))d=1;else if(e=c[b?"getNextEditableNode":"getPreviousEditableNode"]())d=1,(f=e.type==CKEDITOR.NODE_ELEMENT)&&e.is(CKEDITOR.dtd.$block)&&"false"==e.getAttribute("contenteditable")?(c.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),c.setEndAt(e,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&f&&e.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(c.setEnd(e,0),c.collapse()):c.moveToPosition(e,h[b?1:0]);d&&this.moveToRange(c);
+this.checkEndOfBlock())this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START);else if("false"==a.getAttribute("contenteditable")&&a.is(CKEDITOR.dtd.$block))return this.setStartBefore(a),this.setEndAfter(a),!0;var e=a,f=c,h=void 0;e.type==CKEDITOR.NODE_ELEMENT&&e.isEditable(!1)&&(h=e[b?"getLast":"getFirst"](l));f||h||(h=e[b?"getPrevious":"getNext"](l));a=h}return!!c},moveToClosestEditablePosition:function(a,b){var c,d=0,e,f,l=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];a?(c=new CKEDITOR.dom.range(this.root),
+c.moveToPosition(a,l[b?0:1])):c=this.clone();if(a&&!a.is(CKEDITOR.dtd.$block))d=1;else if(e=c[b?"getNextEditableNode":"getPreviousEditableNode"]())d=1,(f=e.type==CKEDITOR.NODE_ELEMENT)&&e.is(CKEDITOR.dtd.$block)&&"false"==e.getAttribute("contenteditable")?(c.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),c.setEndAt(e,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&f&&e.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(c.setEnd(e,0),c.collapse()):c.moveToPosition(e,l[b?1:0]);d&&this.moveToRange(c);
return!!d},moveToElementEditStart:function(a){return this.moveToElementEditablePosition(a)},moveToElementEditEnd:function(a){return this.moveToElementEditablePosition(a,!0)},getEnclosedNode:function(){var a=this.clone();a.optimize();if(a.startContainer.type!=CKEDITOR.NODE_ELEMENT||a.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var a=new CKEDITOR.dom.walker(a),b=CKEDITOR.dom.walker.bookmark(!1,!0),c=CKEDITOR.dom.walker.whitespaces(!0);a.evaluator=function(a){return c(a)&&b(a)};var d=a.next();
a.reset();return d&&d.equals(a.previous())?d:null},getTouchedStartNode:function(){var a=this.startContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.startOffset)||a},getTouchedEndNode:function(){var a=this.endContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.endOffset-1)||a},getNextEditableNode:e(),getPreviousEditableNode:e(1),_getTableElement:function(a){a=a||{td:1,th:1,tr:1,tbody:1,thead:1,tfoot:1,table:1};var b=this.startContainer,c=
this.endContainer,d=b.getAscendant("table",!0),e=c.getAscendant("table",!0);return CKEDITOR.env.safari&&d&&c.equals(this.root)?b.getAscendant(a,!0):this.getEnclosedNode()?this.getEnclosedNode().getAscendant(a,!0):d&&e&&(d.equals(e)||d.contains(e)||e.contains(d))?b.getAscendant(a,!0):null},scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",this.document),b,c,d,e=this.clone();e.optimize();(d=e.startContainer.type==CKEDITOR.NODE_TEXT)?(c=e.startContainer.getText(),
-b=e.startContainer.split(e.startOffset),a.insertAfter(e.startContainer)):e.insertNode(a);a.scrollIntoView();d&&(e.startContainer.setText(c),b.remove());a.remove()},_setStartContainer:function(a){this.startContainer=a},_setEndContainer:function(a){this.endContainer=a},_find:function(a,b){var c=this.getCommonAncestor(),d=this.getBoundaryNodes(),e=[],f,h,m,l;if(c&&c.find)for(h=c.find(a),f=0;f
+b=e.startContainer.split(e.startOffset),a.insertAfter(e.startContainer)):e.insertNode(a);a.scrollIntoView();d&&(e.startContainer.setText(c),b.remove());a.remove()},_setStartContainer:function(a){this.startContainer=a},_setEndContainer:function(a){this.endContainer=a},_find:function(a,b){var c=this.getCommonAncestor(),d=this.getBoundaryNodes(),e=[],f,l,h,m;if(c&&c.find)for(l=c.find(a),f=0;f
arguments.length||(this.range=a,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function f(a){var b=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return b.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return b}function b(a,c,d,e){a:{null==e&&(e=f(d));for(var h;h=e.shift();)if(h.getDtd().p){e={element:h,remaining:e};break a}e=null}if(!e)return 0;if((h=CKEDITOR.filter.instances[e.element.data("cke-filter")])&&!h.check(c))return b(a,c,d,e.remaining);
-c=new CKEDITOR.dom.range(e.element);c.selectNodeContents(e.element);c=c.createIterator();c.enlargeBr=a.enlargeBr;c.enforceRealBlocks=a.enforceRealBlocks;c.activeFilter=c.filter=h;a._.nestedEditable={element:e.element,container:d,remaining:e.remaining,iterator:c};return 1}function c(a,b,c){if(!b)return!1;a=a.clone();a.collapse(!c);return a.checkBoundaryOfElement(b,c?CKEDITOR.START:CKEDITOR.END)}var e=/^[\r\n\t ]+$/,l=CKEDITOR.dom.walker.bookmark(!1,!0),k=CKEDITOR.dom.walker.whitespaces(!0),d=function(a){return l(a)&&
-k(a)},h={dd:1,dt:1,li:1};a.prototype={getNextParagraph:function(a){var g,f,k,v,y;a=a||"p";if(this._.nestedEditable){if(g=this._.nestedEditable.iterator.getNextParagraph(a))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,g;this.activeFilter=this.filter;if(b(this,a,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(a);this._.nestedEditable=null}if(!this.range.root.getDtd()[a])return null;
-if(!this._.started){var w=this.range.clone();f=w.startPath();var u=w.endPath(),r=!w.collapsed&&c(w,f.block),t=!w.collapsed&&c(w,u.block,1);w.shrink(CKEDITOR.SHRINK_ELEMENT,!0);r&&w.setStartAt(f.block,CKEDITOR.POSITION_BEFORE_END);t&&w.setEndAt(u.block,CKEDITOR.POSITION_AFTER_START);f=w.endContainer.hasAscendant("pre",!0)||w.startContainer.hasAscendant("pre",!0);w.enlarge(this.forceBrBreak&&!f||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);w.collapsed||(f=new CKEDITOR.dom.walker(w.clone()),
-u=CKEDITOR.dom.walker.bookmark(!0,!0),f.evaluator=u,this._.nextNode=f.next(),f=new CKEDITOR.dom.walker(w.clone()),f.evaluator=u,f=f.previous(),this._.lastNode=f.getNextSourceNode(!0,null,w.root),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(u=this.range.clone(),u.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),u.checkEndOfBlock()&&(u=new CKEDITOR.dom.elementPath(u.endContainer,
-u.root),this._.lastNode=(u.block||u.blockLimit).getNextSourceNode(!0))),this._.lastNode&&w.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=w.document.createText(""),this._.lastNode.insertAfter(f)),w=null);this._.started=1;f=w}u=this._.nextNode;w=this._.lastNode;for(this._.nextNode=null;u;){var r=0,t=u.hasAscendant("pre"),A=u.type!=CKEDITOR.NODE_ELEMENT,p=0;if(A)u.type==CKEDITOR.NODE_TEXT&&e.test(u.getText())&&(A=0);else{var x=u.getName();if(CKEDITOR.dtd.$block[x]&&"false"==u.getAttribute("contenteditable")){g=
-u;b(this,a,g);break}else if(u.isBlockBoundary(this.forceBrBreak&&!t&&{br:1})){if("br"==x)A=1;else if(!f&&!u.getChildCount()&&"hr"!=x){g=u;k=u.equals(w);break}f&&(f.setEndAt(u,CKEDITOR.POSITION_BEFORE_START),"br"!=x&&(this._.nextNode=u));r=1}else{if(u.getFirst()){f||(f=this.range.clone(),f.setStartAt(u,CKEDITOR.POSITION_BEFORE_START));u=u.getFirst();continue}A=1}}A&&!f&&(f=this.range.clone(),f.setStartAt(u,CKEDITOR.POSITION_BEFORE_START));k=(!r||A)&&u.equals(w);if(f&&!r)for(;!u.getNext(d)&&!k;){x=
-u.getParent();if(x.isBlockBoundary(this.forceBrBreak&&!t&&{br:1})){r=1;A=0;k||x.equals(w);f.setEndAt(x,CKEDITOR.POSITION_BEFORE_END);break}u=x;A=1;k=u.equals(w);p=1}A&&f.setEndAt(u,CKEDITOR.POSITION_AFTER_END);u=this._getNextSourceNode(u,p,w);if((k=!u)||r&&f)break}if(!g){if(!f)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;g=new CKEDITOR.dom.elementPath(f.startContainer,f.root);u=g.blockLimit;r={div:1,th:1,td:1};g=g.block;!g&&u&&!this.enforceRealBlocks&&r[u.getName()]&&
-f.checkStartOfBlock()&&f.checkEndOfBlock()&&!u.equals(f.root)?g=u:!g||this.enforceRealBlocks&&g.is(h)?(g=this.range.document.createElement(a),f.extractContents().appendTo(g),g.trim(),f.insertNode(g),v=y=!0):"li"!=g.getName()?f.checkStartOfBlock()&&f.checkEndOfBlock()||(g=g.clone(!1),f.extractContents().appendTo(g),g.trim(),y=f.splitBlock(),v=!y.wasStartOfBlock,y=!y.wasEndOfBlock,f.insertNode(g)):k||(this._.nextNode=g.equals(w)?null:this._getNextSourceNode(f.getBoundaryNodes().endNode,1,w))}v&&(v=
-g.getPrevious())&&v.type==CKEDITOR.NODE_ELEMENT&&("br"==v.getName()?v.remove():v.getLast()&&"br"==v.getLast().$.nodeName.toLowerCase()&&v.getLast().remove());y&&(v=g.getLast())&&v.type==CKEDITOR.NODE_ELEMENT&&"br"==v.getName()&&(!CKEDITOR.env.needsBrFiller||v.getPrevious(l)||v.getNext(l))&&v.remove();this._.nextNode||(this._.nextNode=k||g.equals(w)||!w?null:this._getNextSourceNode(g,1,w));return g},_getNextSourceNode:function(a,b,c){function d(a){return!(a.equals(c)||a.equals(e))}var e=this.range.root;
-for(a=a.getNextSourceNode(b,null,d);!l(a);)a=a.getNextSourceNode(b,null,d);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new a(this)}}(),CKEDITOR.command=function(a,f){this.uiItems=[];this.exec=function(b){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return!1;this.editorFocus&&a.focus();return!1===this.fire("exec")?!0:!1!==f.exec.call(this,a,b)};this.refresh=function(a,b){if(!this.readOnly&&a.readOnly)return!0;if(this.context&&!b.isContextFor(this.context)||
+c=new CKEDITOR.dom.range(e.element);c.selectNodeContents(e.element);c=c.createIterator();c.enlargeBr=a.enlargeBr;c.enforceRealBlocks=a.enforceRealBlocks;c.activeFilter=c.filter=h;a._.nestedEditable={element:e.element,container:d,remaining:e.remaining,iterator:c};return 1}function c(a,b,c){if(!b)return!1;a=a.clone();a.collapse(!c);return a.checkBoundaryOfElement(b,c?CKEDITOR.START:CKEDITOR.END)}var e=/^[\r\n\t ]+$/,m=CKEDITOR.dom.walker.bookmark(!1,!0),k=CKEDITOR.dom.walker.whitespaces(!0),d=function(a){return m(a)&&
+k(a)},h={dd:1,dt:1,li:1};a.prototype={getNextParagraph:function(a){var g,f,k,u,C;a=a||"p";if(this._.nestedEditable){if(g=this._.nestedEditable.iterator.getNextParagraph(a))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,g;this.activeFilter=this.filter;if(b(this,a,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(a);this._.nestedEditable=null}if(!this.range.root.getDtd()[a])return null;
+if(!this._.started){var w=this.range.clone();f=w.startPath();var q=w.endPath(),x=!w.collapsed&&c(w,f.block),r=!w.collapsed&&c(w,q.block,1);w.shrink(CKEDITOR.SHRINK_ELEMENT,!0);x&&w.setStartAt(f.block,CKEDITOR.POSITION_BEFORE_END);r&&w.setEndAt(q.block,CKEDITOR.POSITION_AFTER_START);f=w.endContainer.hasAscendant("pre",!0)||w.startContainer.hasAscendant("pre",!0);w.enlarge(this.forceBrBreak&&!f||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);w.collapsed||(f=new CKEDITOR.dom.walker(w.clone()),
+q=CKEDITOR.dom.walker.bookmark(!0,!0),f.evaluator=q,this._.nextNode=f.next(),f=new CKEDITOR.dom.walker(w.clone()),f.evaluator=q,f=f.previous(),this._.lastNode=f.getNextSourceNode(!0,null,w.root),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(q=this.range.clone(),q.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),q.checkEndOfBlock()&&(q=new CKEDITOR.dom.elementPath(q.endContainer,
+q.root),this._.lastNode=(q.block||q.blockLimit).getNextSourceNode(!0))),this._.lastNode&&w.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=w.document.createText(""),this._.lastNode.insertAfter(f)),w=null);this._.started=1;f=w}q=this._.nextNode;w=this._.lastNode;for(this._.nextNode=null;q;){var x=0,r=q.hasAscendant("pre"),A=q.type!=CKEDITOR.NODE_ELEMENT,t=0;if(A)q.type==CKEDITOR.NODE_TEXT&&e.test(q.getText())&&(A=0);else{var y=q.getName();if(CKEDITOR.dtd.$block[y]&&"false"==q.getAttribute("contenteditable")){g=
+q;b(this,a,g);break}else if(q.isBlockBoundary(this.forceBrBreak&&!r&&{br:1})){if("br"==y)A=1;else if(!f&&!q.getChildCount()&&"hr"!=y){g=q;k=q.equals(w);break}f&&(f.setEndAt(q,CKEDITOR.POSITION_BEFORE_START),"br"!=y&&(this._.nextNode=q));x=1}else{if(q.getFirst()){f||(f=this.range.clone(),f.setStartAt(q,CKEDITOR.POSITION_BEFORE_START));q=q.getFirst();continue}A=1}}A&&!f&&(f=this.range.clone(),f.setStartAt(q,CKEDITOR.POSITION_BEFORE_START));k=(!x||A)&&q.equals(w);if(f&&!x)for(;!q.getNext(d)&&!k;){y=
+q.getParent();if(y.isBlockBoundary(this.forceBrBreak&&!r&&{br:1})){x=1;A=0;k||y.equals(w);f.setEndAt(y,CKEDITOR.POSITION_BEFORE_END);break}q=y;A=1;k=q.equals(w);t=1}A&&f.setEndAt(q,CKEDITOR.POSITION_AFTER_END);q=this._getNextSourceNode(q,t,w);if((k=!q)||x&&f)break}if(!g){if(!f)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;g=new CKEDITOR.dom.elementPath(f.startContainer,f.root);q=g.blockLimit;x={div:1,th:1,td:1};g=g.block;!g&&q&&!this.enforceRealBlocks&&x[q.getName()]&&
+f.checkStartOfBlock()&&f.checkEndOfBlock()&&!q.equals(f.root)?g=q:!g||this.enforceRealBlocks&&g.is(h)?(g=this.range.document.createElement(a),f.extractContents().appendTo(g),g.trim(),f.insertNode(g),u=C=!0):"li"!=g.getName()?f.checkStartOfBlock()&&f.checkEndOfBlock()||(g=g.clone(!1),f.extractContents().appendTo(g),g.trim(),C=f.splitBlock(),u=!C.wasStartOfBlock,C=!C.wasEndOfBlock,f.insertNode(g)):k||(this._.nextNode=g.equals(w)?null:this._getNextSourceNode(f.getBoundaryNodes().endNode,1,w))}u&&(u=
+g.getPrevious())&&u.type==CKEDITOR.NODE_ELEMENT&&("br"==u.getName()?u.remove():u.getLast()&&"br"==u.getLast().$.nodeName.toLowerCase()&&u.getLast().remove());C&&(u=g.getLast())&&u.type==CKEDITOR.NODE_ELEMENT&&"br"==u.getName()&&(!CKEDITOR.env.needsBrFiller||u.getPrevious(m)||u.getNext(m))&&u.remove();this._.nextNode||(this._.nextNode=k||g.equals(w)||!w?null:this._getNextSourceNode(g,1,w));return g},_getNextSourceNode:function(a,b,c){function d(a){return!(a.equals(c)||a.equals(e))}var e=this.range.root;
+for(a=a.getNextSourceNode(b,null,d);!m(a);)a=a.getNextSourceNode(b,null,d);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new a(this)}}(),CKEDITOR.command=function(a,f){this.uiItems=[];this.exec=function(b){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return!1;this.editorFocus&&a.focus();return!1===this.fire("exec")?!0:!1!==f.exec.call(this,a,b)};this.refresh=function(a,b){if(!this.readOnly&&a.readOnly)return!0;if(this.context&&!b.isContextFor(this.context)||
!this.checkAllowed(!0))return this.disable(),!0;this.startDisabled||this.enable();this.modes&&!this.modes[a.mode]&&this.disable();return!1===this.fire("refresh",{editor:a,path:b})?!0:f.refresh&&!1!==f.refresh.apply(this,arguments)};var b;this.checkAllowed=function(c){return c||"boolean"!=typeof b?b=a.activeFilter.checkFeature(this):b};CKEDITOR.tools.extend(this,f,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!f.context,state:CKEDITOR.TRISTATE_DISABLED});CKEDITOR.event.call(this)},CKEDITOR.command.prototype=
{enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(this.preserveState&&"undefined"!=typeof this.previousState?this.previousState:CKEDITOR.TRISTATE_OFF)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(a){if(this.state==a||a!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return!1;this.previousState=this.state;this.state=a;this.fire("state");return!0},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):
this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"\x3c!DOCTYPE html\x3e",bodyId:"",bodyClass:"",fullPage:!1,height:200,contentsCss:CKEDITOR.getUrl("contents.css"),
-extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1E4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function a(a,b,c,d,e){var g,f;a=[];for(g in b){f=b[g];f="boolean"==typeof f?{}:"function"==typeof f?{match:f}:F(f);"$"!=g.charAt(0)&&(f.elements=g);c&&(f.featureName=c.toLowerCase());var h=f;h.elements=k(h.elements,/\s+/)||null;h.propertiesOnly=h.propertiesOnly||!0===h.elements;var p=/\s*,\s*/,m=void 0;for(m in M){h[m]=k(h[m],
-p)||null;var l=h,u=L[m],x=k(h[L[m]],p),E=h[m],n=[],D=!0,H=void 0;x?D=!1:x={};for(H in E)"!"==H.charAt(0)&&(H=H.slice(1),n.push(H),x[H]=!0,D=!1);for(;H=n.pop();)E[H]=E["!"+H],delete E["!"+H];l[u]=(D?!1:x)||null}h.match=h.match||null;d.push(f);a.push(f)}b=e.elements;e=e.generic;var B;c=0;for(d=a.length;c=--d&&(l&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),
-g(b))},q=function(b,c){a[b]=1;var d=f[b];delete f[b];for(var e=0;e=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?e.$.onreadystatechange=function(){if("loaded"==e.$.readyState||"complete"==e.$.readyState)e.$.onreadystatechange=null,q(b,!0)}:(e.$.onload=function(){setTimeout(function(){q(b,
-!0)},0)},e.$.onerror=function(){q(b,!1)}));e.appendTo(CKEDITOR.document.getHead())}}};l&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var y=0;y=--d&&(m&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),g(b))},p=function(b,c){a[b]=1;var d=f[b];
+delete f[b];for(var e=0;e=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?e.$.onreadystatechange=function(){if("loaded"==e.$.readyState||"complete"==e.$.readyState)e.$.onreadystatechange=null,p(b,!0)}:(e.$.onload=function(){setTimeout(function(){p(b,!0)},0)},e.$.onerror=function(){p(b,
+!1)}));e.appendTo(CKEDITOR.document.getHead())}}};m&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var C=0;C]+)>)|(?:!--([\S|\s]*?)--\x3e)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},
-function(){var a=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,f={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(b){for(var c,e,l=0,k;c=this._.htmlPartsRegex.exec(b);){e=c.index;if(e>l)if(l=b.substring(l,e),k)k.push(l);else this.onText(l);
-l=this._.htmlPartsRegex.lastIndex;if(e=c[1])if(e=e.toLowerCase(),k&&CKEDITOR.dtd.$cdata[e]&&(this.onCDATA(k.join("")),k=null),!k){this.onTagClose(e);continue}if(k)k.push(c[0]);else if(e=c[3]){if(e=e.toLowerCase(),!/="/.test(e)){var d={},h,m=c[4];c=!!c[5];if(m)for(;h=a.exec(m);){var g=h[1].toLowerCase();h=h[2]||h[3]||h[4]||"";d[g]=!h&&f[g]?g:CKEDITOR.tools.htmlDecodeAttr(h)}this.onTagOpen(e,d,c);!k&&CKEDITOR.dtd.$cdata[e]&&(k=[])}}else if(e=c[2])this.onComment(e)}if(b.length>l)this.onText(b.substring(l,
+function(){var a=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,f={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(b){for(var c,e,m=0,k;c=this._.htmlPartsRegex.exec(b);){e=c.index;if(e>m)if(m=b.substring(m,e),k)k.push(m);else this.onText(m);
+m=this._.htmlPartsRegex.lastIndex;if(e=c[1])if(e=e.toLowerCase(),k&&CKEDITOR.dtd.$cdata[e]&&(this.onCDATA(k.join("")),k=null),!k){this.onTagClose(e);continue}if(k)k.push(c[0]);else if(e=c[3]){if(e=e.toLowerCase(),!/="/.test(e)){var d={},h,l=c[4];c=!!c[5];if(l)for(;h=a.exec(l);){var g=h[1].toLowerCase();h=h[2]||h[3]||h[4]||"";d[g]=!h&&f[g]?g:CKEDITOR.tools.htmlDecodeAttr(h)}this.onTagOpen(e,d,c);!k&&CKEDITOR.dtd.$cdata[e]&&(k=[])}}else if(e=c[2])this.onComment(e)}if(b.length>m)this.onText(b.substring(m,
b.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(a){this._.output.push("\x3c",a)},openTagClose:function(a,f){f?this._.output.push(" /\x3e"):this._.output.push("\x3e")},attribute:function(a,f){"string"==typeof f&&(f=CKEDITOR.tools.htmlEncodeAttr(f));this._.output.push(" ",a,'\x3d"',f,'"')},closeTag:function(a){this._.output.push("\x3c/",a,"\x3e")},text:function(a){this._.output.push(a)},comment:function(a){this._.output.push("\x3c!--",
a,"--\x3e")},write:function(a){this._.output.push(a)},reset:function(){this._.output=[];this._.indent=!1},getHtml:function(a){var f=this._.output.join("");a&&this.reset();return f}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var a=this.parent.children,f=CKEDITOR.tools.indexOf(a,this),b=this.previous,c=this.next;b&&(b.next=c);c&&(c.previous=b);a.splice(f,1);this.parent=null},replaceWith:function(a){var f=this.parent.children,
b=CKEDITOR.tools.indexOf(f,this),c=a.previous=this.previous,e=a.next=this.next;c&&(c.next=a);e&&(e.previous=a);f[b]=a;a.parent=this.parent;this.parent=null},insertAfter:function(a){var f=a.parent.children,b=CKEDITOR.tools.indexOf(f,a),c=a.next;f.splice(b+1,0,this);this.next=a.next;this.previous=a;a.next=this;c&&(c.previous=this);this.parent=a.parent},insertBefore:function(a){var f=a.parent.children,b=CKEDITOR.tools.indexOf(f,a);f.splice(b,0,this);this.next=a;(this.previous=a.previous)&&(a.previous.next=
@@ -270,13 +273,13 @@ this);a.previous=this;this.parent=a.parent},getAscendant:function(a){var f="func
function(a){this.value=a;this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(a,f){var b=this.value;if(!(b=a.onComment(f,b,this)))return this.remove(),!1;if("string"!=typeof b)return this.replaceWith(b),!1;this.value=b;return!0},writeHtml:function(a,f){f&&this.filter(f);a.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(a){this.value=a;this._={isBlockLike:!1}};CKEDITOR.htmlParser.text.prototype=
CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(a,f){if(!(this.value=a.onText(f,this.value,this)))return this.remove(),!1},writeHtml:function(a,f){f&&this.filter(f);a.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(a){this.value=a};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(a){a.write(this.value)}})}(),"use strict",
CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function a(a){return a.attributes["data-cke-survive"]?!1:"a"==a.name&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var f=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),b={ol:1,ul:1},c=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),e={ul:"li",
-ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(l,k,d){function h(a){var b;if(0k;k++)if(f=e[k]){f=
f.exec(a,c,this);if(!1===f)return null;if(f&&f!=c)return this.onNode(a,f);if(c.parent&&!c.name)break}return c},onNode:function(a,c){var e=c.type;return e==CKEDITOR.NODE_ELEMENT?this.onElement(a,c):e==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(a,c.value)):e==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(a,c.value)):null},onAttribute:function(a,c,e,f){return(e=this.attributesRules[e])?e.exec(a,f,c,this):f}}});CKEDITOR.htmlParser.filterRulesGroup=a;a.prototype=
{add:function(a,c,e){this.rules.splice(this.findIndex(c),0,{value:a,priority:c,options:e})},addMany:function(a,c,e){for(var f=[this.findIndex(c),0],k=0,d=a.length;k/g,"\x26gt;")+"\x3c/textarea\x3e");return"\x3ccke:encoded\x3e"+encodeURIComponent(a)+"\x3c/cke:encoded\x3e"})}function n(a){return a.replace(M,function(a,b){return decodeURIComponent(b)})}function q(a){return a.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,
-function(a){return"\x3c!--"+r+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\x3e"})}function v(a){return a.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(a,b){return decodeURIComponent(b)})}function y(a,b){var c=b._.dataStore;return a.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(a,b){return decodeURIComponent(b)}).replace(/\{cke_protected_(\d+)\}/g,function(a,b){return c&&c[b]||""})}function w(a,b){var c=[],d=b.config.protectedSource,e=b._.dataStore||(b._.dataStore=
-{id:1}),g=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g,d=[/
-
-
-{% endhighlight %}
-
-
Multiple select boxes
-
-
- Select2 also supports multi-value select boxes. The select below is declared with the multiple attribute.
-
- You can, and should, use a <label> with Select2, just like any other <select> element.
-
-
-
-
-
-
-
-
-
-
-
-{% highlight html linenos %}
-
-
-
-{% endhighlight %}
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/examples/data.html b/bower_components/select2/docs/_includes/examples/data.html
deleted file mode 100644
index 4b55a760ace..00000000000
--- a/bower_components/select2/docs/_includes/examples/data.html
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
- Data sources
-
-
-
In addition to handling options from a standard <select>, Select2 can also retrieve the results from other data sources.
-
-
Loading array data
-
-
- Select2 provides a way to load the data from a local array.
- You can provide initial selections with array data by providing the
- option tag for the selected values, similar to how it would be done for
- a standard select.
-
- Select2 comes with AJAX support built in, using jQuery's AJAX methods.
- In this example, we can search for repositories using GitHub's API.
-
-
-
-
-
-
-
- When using Select2 with remote data, the HTML required for the
- select is the same as any other Select2. If you need to
- provide default selections, you just need to include an
- option for each selection that contains the value and text
- that should be displayed.
-
- You can configure how Select2 searches for remote data using the
- ajax option. More information on the individual options
- that Select2 handles can be found in the
- options documentation for ajax.
-
-
-{% highlight js linenos %}
-$(".js-data-example-ajax").select2({
- ajax: {
- url: "https://api.github.com/search/repositories",
- dataType: 'json',
- delay: 250,
- data: function (params) {
- return {
- q: params.term, // search term
- page: params.page
- };
- },
- processResults: function (data, params) {
- // parse the results into the format expected by Select2
- // since we are using custom formatting functions we do not need to
- // alter the remote JSON data, except to indicate that infinite
- // scrolling can be used
- params.page = params.page || 1;
-
- return {
- results: data.items,
- pagination: {
- more: (params.page * 30) < data.total_count
- }
- };
- },
- cache: true
- },
- escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
- minimumInputLength: 1,
- templateResult: formatRepo, // omitted for brevity, see the source of this page
- templateSelection: formatRepoSelection // omitted for brevity, see the source of this page
-});
-{% endhighlight %}
-
-
- Select2 will pass any options in the ajax object to
- jQuery's $.ajax function, or the transport
- function you specify.
-
- Select2 will respond to the disabled attribute on
- <select> elements. You can also initialize Select2
- with disabled: true to get the same effect.
-
- Select2 will correctly handle disabled results, both with data coming
- from a standard select (when the disabled attribute is set)
- and from remote sources, where the object has
- disabled: true set.
-
- Select2 allows you to hide the search box depending on the number of
- options which are displayed. In this example, we use the value
- Infinity to tell Select2 to never display the search box.
-
- Select2 supports displaying the messages in different languages, as well
- as providing your own
- custom messages
- that can be displayed.
-
-
-
- The language does not have to be defined when Select2 is being
- initialized, but instead can be defined in the [lang]
- attribute of any parent elements as [lang="es"].
-
- Select2 will work on RTL websites if the dir attribute is
- set on the <select> or any parents of it. You can also
- initialize Select2 with dir: "rtl" set.
-
- Select2's default matcher will ignore diacritics, making it easier for
- users to filter results in international selects. Type "aero" into the
- select below.
-
- Select2 multi-value select boxes can set restrictions regarding the
- maximum number of options selected. The select below is declared with
- the multiple attribute with maximumSelectionLength
- in the select2 options.
-
- A placeholder value can be defined and will be displayed until a
- selection is made. Select2 uses the placeholder attribute
- on multiple select boxes, which requires IE 10+. You can support it in
- older versions with
- the Placeholders.js polyfill.
-
- Select2 will trigger some events on the original select element,
- allowing you to integrate it with other components. You can find more
- information on events
- on the options page.
-
-
-
- change is fired whenever an option is selected or removed.
-
-
-
- select2:open is fired whenever the dropdown is opened.
- select2:opening is fired before this and can be prevented.
-
-
-
- select2:close is fired whenever the dropdown is closed.
- select2:closing is fired before this and can be prevented.
-
-
-
- select2:select is fired whenever a result is selected.
- select2:selecting is fired before this and can be prevented.
-
-
-
- select2:unselect is fired whenever a result is unselected.
- select2:unselecting is fired before this and can be prevented.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Programmatic access
-
-
- Select2 supports methods that allow programmatic control of the
- component.
-
- Select2 can be used to quickly set up fields used for tagging.
-
-
-
- Note that when tagging is enabled the user can select from pre-existing
- options or create a new tag by picking the first choice, which is what
- the user has typed into the search box so far.
-
- Various display options of the Select2 component can be changed:
- You can access the <option> element
- (or <optgroup>) and any attributes on those elements
- using .element.
-
- Select2's width can be set to a percentage of its parent to support
- responsive design. The two Select2 boxes below are styled to 50% and 75%
- width respectively.
-
- Select2 will do its best to resolve the percent width specified via a
- css class, but it is not always possible. The best way to ensure that
- Select2 is using a percent based width is to inline the
- style declaration into the tag.
-
- Select2 supports ability to add choices automatically as the user is
- typing into the search field. Try typing in the search field below and
- entering a space or a comma.
-
-
-
- The separators that should be used when tokenizing can be specified
- using the tokenSeparators
- options.
-
- Select2 allows plugins to add additional functionality through the core
- adapters. You can change almost anything involving the way Select2 works
- to the way Select2 interacts with the page by modifying the core adapters.
- Most third-party plugins should provide decorators (used to wrap adapters)
- and custom adapters that you can use.
-
-
-
- Each adapter contains a set of methods which will must always be defined.
- Along with the global methods that all adapters must implement, these
- methods must be implemented.
-
-
-
- All adapters
-
-
-
- All adapters must implement a set of methods that Select2 will use to
- display them and bind any internal events.
-
-
-
-// The basic HTML that should be rendered by Select2. A jQuery or DOM element
-// should be returned, which will automatically be placed by Select2 within the
-// DOM.
-//
-// @returns A jQuery or DOM element that contains any elements that must be
-// rendered by Select2.
-Adapter.render = function () {
- return $jq;
-};
-
-// Bind to any Select2 or DOM events.
-//
-// @param container The Select2 object that is bound to the jQuery element. You
-// can listen to Select2 events with `on` and trigger Select2 events using the
-// `trigger` method.
-// @param $container The jQuery DOM node that all default adapters will be
-// rendered within.
-Adapter.bind = function (container, $container) { };
-
-// Position the DOM element within the Select2 DOM container, or in another
-// place. This allows adapters to be located outside of the Select2 DOM,
-// such as at the end of the document or in a specific place within the Select2
-// DOM node.
-//
-// Note: This method is not called on data adapters.
-//
-// @param $rendered The rendered DOM element that was returned from the call to
-// `render`. This may have been modified by Select2, but the root element
-// will always be the same.
-// @param $defaultContainer The default container that Select2 will typically
-// place the rendered DOM element within. For most adapters, this is the
-// Select2 DOM element.
-Adapter.position = function ($rendered, $defaultContainer) { };
-
-// Destroy any events or DOM elements that have been created.
-// This is called when `select2("destroy")` is called on an element.
-Adapter.destroy = function () { };
-
-
-
- Container (selection)
-
-
-
- The selection is what is shown to the user as a replacement of the
- standard <select> box. It controls the display of the
- selection option(s), as well anything else that needs to be embedded
- within the container, such as a search box.
-
-
-
-
Key
-
- selectionAdapter
-
-
-
Default
-
- SingleSelection or
- MultipleSelection
-
-
-
Base
-
- BaseSelection
-
-
-
-
-// Update the selected data.
-//
-// @param data An array of data objects that have been generated by the data
-// adapter. If no objects should be selected, an empty array will be passed.
-//
-// Note: An array will always be passed into this method, even if Select2 is
-// attached to a source which only accepts a single selection.
-SelectionAdapter.update = function (data) { };
-
-
-
- Data set
-
-
-
- The data set is what Select2 uses to generate the possible results that
- can be selected, as well as the currently selected results.
-
-
-
-
Key
-
- dataAdapter
-
-
-
Default
-
- SelectAdapter
-
-
-
Base
-
- BaseAdapter
-
-
-
-
-// Get the currently selected options. This is called when trying to get the
-// initial selection for Select2, as well as when Select2 needs to determine
-// what options within the results are selected.
-//
-// @param callback A function that should be called when the current selection
-// has been retrieved. The first parameter to the function should be an array
-// of data objects.
-DataAdapter.current = function (callback) {
- callback(currentData);
-}
-
-// Get a set of options that are filtered based on the parameters that have
-// been passed on in.
-//
-// @param params An object containing any number of parameters that the query
-// could be affected by. Only the core parameters will be documented.
-// @param params.term A user-supplied term. This is typically the value of the
-// search box, if one exists, but can also be an empty string or null value.
-// @param params.page The specific page that should be loaded. This is typically
-// provided when working with remote data sets, which rely on pagination to
-// determine what objects should be displayed.
-// @param callback The function that should be called with the queried results.
-DataAdapter.query = function (params, callback) {
- callback(queryiedData);
-}
-
-
-
- Dropdown
-
-
-
- The dropdown adapter defines the main container that the dropdown should
- be held in. It does not define any extra methods that can be used
- for decorators, but it is common for decorators to attach to the
- render and position methods to alter how the
- dropdown is altered and positioned.
-
-
-
-
Key
-
- dropdownAdapter
-
-
-
Default
-
- DropdownAdapter
-
-
-
-
- Results
-
-
-
- The results adapter controls the list of results that the user can select
- from. While the results adapter does not define any additional methods
- that must be implemented, it makes extensive use of the Select2 event
- system for controlling the display of results and messages.
-
- Select2 offers limited backwards compatibility with the previously 3.5.x
- release line, allowing people more efficiently transfer across releases
- and get the latest features. For many of the larger changes, such as the
- change in how custom data adapters work, compatibility modules were
- created that will be used to assist in the upgrade process. It is not
- recommended to rely on these compatibility modules, as they will not
- always exist, but they make upgrading easier for major changes.
-
-
-
- The compatibility modules are only included in the
- full builds of
- Select2. These files end in .full.js, and the
- compatibility modules are prefixed with select2/compat.
-
-
-
- Simplified function for matching data objects
-
-
-
- Added in Select2 4.0.0.
- This method was added to make upgrading easier from earlier versions of
- Select2.
-
-
-
- During the Select2 4.0.0 release, the
- matcher function was changed to allow for more complex
- matching of nested objects.
-
-
-
-
-
-
Key
-
- matcher
-
-
-
Value
-
- A function taking a search term and the data object
- text.
-
-
-
-
-
-
-
Adapter
-
- oldMatcher
-
-
-
-
-
-
- The custom matcher example provides a
- guide for how to use this in your own application. For those upgrading
- from older versions of Select2, you just need to wrap your old
- matcher with this function to maintain compatibility.
-
- In the past, Select2 required an option called initSelection
- that was defined whenever a custom data source was being used, allowing
- for the initial selection for the component to be determined. This has
- been replaced by the current method on the
- data adapter.
-
- In the past, Select2 supported an option called query that
- allowed for a custom data source to be used. This option has been replaced
- by the query method on the
- data adapter and takes a very similar set of
- parameters.
-
-
-
-
-
-
Key
-
- query
-
-
-
Value
-
- A function taking params (including a callback)
-
- In past versions of Select2, a <select> element could
- only be used with a limited subset of options. An
- <input type="hidden" /> was required instead, which did
- not allow for a graceful fallback for users who did not have JavaScript
- enabled. Select2 now supports the <select> element for
- all options, so it is no longer required to use <input />
- elements with Select2.
-
- Select2 supports a small subset of options in every build that is
- generated. Each option typically has a decorator that is required that
- wraps an adapter, adding support for the option. This is only required
- when a custom adapter is being used, as Select2 will build the required
- adapters by default.
-
-
-
- Select2 will automatically apply decorators to any adapters which have not
- been manually overridden. The only time you need to decorate adapters is
- when you are using third-party adapters not provided by Select2, or you
- are using features not provided in the Select2 core. You can apply a
- decorator to an adapter using the
- Utils.Decorate method provided with
- Select2.
-
-
-
-$.fn.select2.amd.require(
- ["select2/utils", "select2/selection/single", "select2/selection/placeholder"],
- function (Utils, SingleSelection, Placeholder) {
- var CustomSelectionAdapter = Utils.Decorate(SingleSelection, Placeholder);
-});
-
-
-
- All core options that use decorators or adapters will clearly state it
- in the "Decorator" or "Adapter" part of the documentation. Decorators are
- typically only compatible with a specific type of adapter, so make sure to
- note what adapter is given.
-
-
-
- Declaring configuration in the data-* attributes
-
-
-
- It is recommended that you declare your configuration options for Select2
- when initializing Select2. You can also define your configuration options
- by using the HTML5 data-* attributes, which will override
- any options set when initializing Select2 and any defaults.
-
-
-
- This means that if you declare your <select> tag as...
-
-
-
-<select data-tags="true" data-placeholder="Select an option"></select>
-
-
-
- Will be interpreted the same as initializing Select2 as...
-
- You can also define nested configurations, which are typically needed for
- options such as AJAX. Each level of nesting should be separated by two
- dashes (--) instead of one. Due to
- a jQuery bug,
- nested options using data-* attributes
- do not work in jQuery 1.x.
-
- The value of the option is subject to jQuery's
- parsing rules for
- HTML5 data attributes.
-
-
-
- AMD compatibility
-
-
-
- You can find more information on how to integrate Select2 with your
- existing AMD-based project by
- viewing the 4.0 release notes.
- Select2 automatically loads some modules when the adapters are being
- automatically constructed, so those who are using Select2 with a custom
- AMD build using their own system may need to specify the paths that are
- generated to the Select2 modules.
-
-
-
-
-
-
Key
-
- amdBase
-
-
-
Default
-
- select2/
-
-
-
-
-
-
Key
-
- amdLanguageBase
-
-
-
Default
-
- select2/i18n/
-
-
-
-
-
-
- Displaying selections
-
-
-
- Select2 provides options that allow you to directly affect how the
- container that holds the current selection is displayed.
-
-
-
- Placeholders
-
-
-
- Select2 can display a placeholder for a single-value select that will
- replace an option, or be shown when no options are selected for
- multiple-value selects. You can find an example on the
- example page.
-
-
-
-
-
-
Key
-
- placeholder
-
-
-
Value
-
string or object
-
-
-
-
-
-
Adapter
-
- SelectionAdapter
-
-
-
Decorator
-
- Placeholder
- and
- HidePlaceholder
-
-
-
-
-
-
- Heads up!
- Because browsers assume that the first option in
- single-value select boxes is selected, you should add an empty
- <option></option> tag that the placeholder
- should use or it may not work.
-
-
-
-
-
- If the value is a string, the placeholder will be
- displayed when a blank option is used as the placeholder.
- The value will be the message to show to users as the
- placeholders.
-
-
-
-placeholder: "Select a repository"
-
-
-
- If the value is an object, the object should be
- compatible with Select2's internal objects. The id should
- be the id to look for when determining if the placeholder should be
- displayed. The text should be the placeholder to display
- when that option is selected.
-
- You should pass in an object when you are using a
- framework that creates its own placeholder option. The
- id should be the same as the value
- attribute on the option.
-
-
-
- You can allow a selected option to be cleared back to the placeholder by
- enabling the allowClear option.
-
-
-
-
-
-
Key
-
allowClear
-
-
Value
-
boolean
-
-
-
-
-
-
Adapter
-
- SelectionAdapter
-
-
-
Decorator
-
- AllowClear
-
-
-
-
-
-
- This will display an "x" that the user can click to clear the current
- selection. It is designed to be used for cases where a single selection
- can be made.
-
-
-
- Multiple selections
-
-
-
- Select2 can display either a single selection or multiple selections.
-
-
-
-
Key
-
multiple
-
-
Value
-
boolean (true or false)
-
-
-
- This option will determine what the SelectAdapter (used by
- default) should use to set the value of the underlying select
- element. It will also determine if the MultipleSelection
- adapter should be used.
-
-
-
- Container width
-
-
-
- Select2 will try to match the width of the original element as closely as
- possible. Sometimes this isn't perfect, which is what you can tell Select2
- how to determine the width.
-
-
-
-
-
-
-
-
Value
-
Description
-
-
-
-
-
"element"
-
- Uses javascript to calculate the width of the source element.
-
-
-
-
"style"
-
- Copies the value of the width style attribute set on the source element.
-
-
-
-
"resolve"
-
- Tries to use style to determine the width, falling back to element.
-
-
-
-
Anything else
-
- The value of the width option is directly set as the width of the container.
-
-
-
-
-
-
-
-
Key
-
width
-
-
Value
-
string
-
-
-
-
-
- Internationalization (Language support)
-
-
-
- Messages will be displayed to users when necessary, such as when no
- search results were found or more characters need to be entered in order
- for a search to be made. These messages have been
- translated into many languages
- by contributors to Select2, but you can also provide your own
- translations.
-
-
-
-
-
-
Key
-
language
-
-
Value
-
object or string
-
-
-
-
-
-
Module
-
- Translation
-
-
-
-
-
-
- Heads up! When using translations provided by Select2,
- you must make sure to include the translation file in your page after
- Select2.
-
-
-
-
-
- When a string is passed in as the language, Select2 will try to resolve
- it into a language file. This allows you to specify your own language
- files, which must be defined as an AMD module. If the language file
- cannot be found, Select2 will assume it is a language code controlled by
- Select2, and it will try to load the translations for that language
- instead.
-
-
-
- You can include your own translations by providing an object similar to
- the one below.
-
-
-
-language: {
- // You can find all of the options in the language files provided in the
- // build. They all must be functions that return the string that should be
- // displayed.
- inputTooShort: function () {
- return "You must enter more characters...";
- }
-}
-
-
-
- Templating results and selections
-
-
-
- By default, Select2 will display the option text within the list of
- results and when the option has been selected. Select2 comes with options
- that allow you to further customize the display of results and selections,
- allowing you to display them however you want.
-
-
-
- Customizing the display of selections
-
-
-
- When an option is displayed after it has been selected, it is passed
- through a formatting function that determines what is displayed. By
- default, the function only returns the text key of the data
- object.
-
-
-
-
Key
-
templateSelection
-
-
Value
-
A function taking a selection object
-
-
-
- Anything rendered as a selection is templated.
- This includes placeholders and pre-existing selections that are displayed,
- so you must ensure that your templating functions can support them.
-
-
-
- The templateSelection function should return a string
- containing the text to be displayed, or an object (such as a jQuery
- object) that contains the data that should be displayed.
-
-
-
- Strings are assumed to contain only text and will be
- passed through the escapeMarkup function, which strips any
- HTML markup.
-
-
-
-
- Anything else will be passed
- directly to jQuery.fn.append
- and will be handled directly by jQuery. Any markup, such as
- HTML, returned will not be escaped and it is up to you to escape any
- malicious input provided by users.
-
-
-
- Customizing the display of results
-
-
-
- When an option is displayed after it has been selected, it is passed
- through a formatting function that determines what is displayed. By
- default, the function only returns the text key of the data
- object.
-
-
-
-
Key
-
templateResult
-
-
Value
-
A function taking a result object
-
-
-
- Anything rendered in the results is templated.
- This includes results such as the "Searching..." and "Loading more..."
- text which will periodically be displayed, which allows you to add more
- advanced formatting to these automatically generated options.
-
-
-
- The templateResult function should return a string
- containing the text to be displayed, or an object (such as a jQuery
- object) that contains the data that should be displayed. It can also
- return null, which will prevent the option from being
- displayed in the results list.
-
-
-
- Strings are assumed to contain only text and will be
- passed through the escapeMarkup function, which strips any
- HTML markup.
-
-
-
-
- Anything else will be passed
- directly to jQuery.fn.append
- and will be handled directly by jQuery. Any markup, such as
- HTML, returned will not be escaped and it is up to you to escape any
- malicious input provided by users.
-
-
-
- Returning and displaying results
-
-
-
- Select2 can work on many different data sets ranging from local options,
- the same way that a <select> typically works, from
- remote options where a server generates the results that users can select
- from.
-
-
-
- Array
-
-
-
- Select2 allows creating the results based on an array of data objects that
- is included when initializing Select2.
-
-
-
-
-
-
Key
-
data
-
-
Value
-
array of objects
-
-
-
-
-
-
Adapter
-
- ArrayAdapter
-
-
-
-
-
-
- The objects that the users can select from should be passed as an array
- with each object containing id and text
- properties.
-
-
-
- AJAX
-
-
-
- Select2 allows searching for results from remote data sources using AJAX
- requests.
-
-
-
-
-
-
Key
-
ajax
-
-
Value
-
object
-
-
-
-
-
-
Adapter
-
- AjaxAdapter
-
-
-
-
-
-
- All options passed to this option will be directly passed to the
- $.ajax function that executes AJAX requests. There are a few
- custom options that Select2 will intercept, allowing you to customize the
- request as it is being made.
-
-
-ajax: {
- // The number of milliseconds to wait for the user to stop typing before
- // issuing the ajax request.
- delay: 250,
- // You can craft a custom url based on the parameters that are passed into the
- // request. This is useful if you are using a framework which has
- // JavaScript-based functions for generating the urls to make requests to.
- //
- // @param params The object containing the parameters used to generate the
- // request.
- // @returns The url that the request should be made to.
- url: function (params) {
- return UrlGenerator.Random();
- },
- // You can pass custom data into the request based on the parameters used to
- // make the request. For `GET` requests, the default method, these are the
- // query parameters that are appended to the url. For `POST` requests, this
- // is the form data that will be passed into the request. For other requests,
- // the data returned from here should be customized based on what jQuery and
- // your server are expecting.
- //
- // @param params The object containing the parameters used to generate the
- // request.
- // @returns Data to be directly passed into the request.
- data: function (params) {
- var queryParameters = {
- q: params.term
- }
-
- return queryParameters;
- },
- // You can modify the results that are returned from the server, allowing you
- // to make last-minute changes to the data, or find the correct part of the
- // response to pass to Select2. Keep in mind that results should be passed as
- // an array of objects.
- //
- // @param data The data as it is returned directly by jQuery.
- // @returns An object containing the results data as well as any required
- // metadata that is used by plugins. The object should contain an array of
- // data objects as the `results` key.
- processResults: function (data) {
- return {
- results: data
- };
- },
- // You can use a custom AJAX transport function if you do not want to use the
- // default one provided by jQuery.
- //
- // @param params The object containing the parameters used to generate the
- // request.
- // @param success A callback function that takes `data`, the results from the
- // request.
- // @param failure A callback function that indicates that the request could
- // not be completed.
- // @returns An object that has an `abort` function that can be called to abort
- // the request if needed.
- transport: function (params, success, failure) {
- var $request = $.ajax(params);
-
- $request.then(success);
- $request.fail(failure);
-
- return $request;
- }
-}
-
-
-
-
- Tags
-
-
-
- Users can create their own options based on the text that they have
- entered.
-
-
-
-
-
-
Key
-
tags
-
-
Value
-
boolean / array of objects
-
-
-
-
-
-
Adapter
-
- DataAdapter
-
-
-
Decorator
-
- Tags
-
-
-
-
-
-
- If the tags option is passed into Select2, if a user types
- anything into the search box which doesn't already exist, it will be
- displayed at the top and the user will be able to select it.
-
-
-
- For backwards compatibility, if an array of objects is
- passed in with the tags option, the options will be
- automatically created and the user will be able to select from them.
- This is the same as how array data
- works, and has similar limitations.
-
-
-
- Change how options are matched when searching
-
-
-
- When users filter down the results by entering search terms into the
- search box, Select2 uses an internal "matcher" to match search terms to
- results. When a remote data set is used, Select2 expects that the
- returned results have already been filtered.
-
-
-
-
Key
-
- matcher
-
-
-
Value
-
- A function taking search params and the
- data object.
-
-
-
-
- Select2 will pass the individual data objects that have been passed back
- from the data adapter into the matcher individually to
- determine if they should be displayed. Only the first-level objects will
- be passed in, so if you are working with nested data, you need to
- match those individually.
-
-
-
-matcher: function (params, data) {
- // If there are no search terms, return all of the data
- if ($.trim(params.term) === '') {
- return data;
- }
-
- // `params.term` should be the term that is used for searching
- // `data.text` is the text that is displayed for the data object
- if (data.text.indexOf(params.term) > -1) {
- var modifiedData = $.extend({}, data, true);
- modifiedData.text += ' (matched)';
-
- // You can return modified objects from here
- // This includes matching the `children` how you want in nested data sets
- return modifiedData;
- }
-
- // Return `null` if the term should not be displayed
- return null;
-}
-
-
-
- This allows for more advanced matching when working with nested objects,
- allowing you to handle them however you want. For those who are not
- looking to implement highly customized matching, but instead are just
- looking to change the matching algorithm for the text, a
- compatibility modules has been created to
- make it easier.
-
- Select2 allows you to change the way that the dropdown works, allowing you
- to do anything from attach it to a different location in the document or
- add a search box.
-
-
-
- Attached to body
-
-
-
- By default, Select2 will attach the dropdown to the end of the body and
- will absolutely position it to appear below the selection container.
-
-
-
-
-
-
Key
-
dropdownParent
-
-
Value
-
jQuery element or DOM node
-
-
-
-
Adapter
-
- DropdownAdapter
-
-
-
Decorator
-
- AttachBody
-
-
-
-
-
-
- Heads up!
- This will cause DOM events to be raised outside of the standard
- Select2 DOM container. This can cause issues with
- third-party components such as modals.
-
-
-
-
-
- When the dropdown is attached to the body, you are not limited to just
- displaying the dropdown below the container. Select2 will display above
- the container if there is not enough space below the container, but there
- is enough space above it. You are also not limited to displaying the
- dropdown within the parent container, which means Select2 will render
- correctly inside of modals and other small containers.
-
-
-
- Attached below the container
-
-
-
- Select2 can place the dropdown directly after the selection container, so
- it will appear in the same location within the DOM as the rest of Select2.
-
-
-
-
-
-
Adapter
-
- DropdownAdapter
-
-
-
Decorator
-
- AttachContainer
-
-
-
-
-
-
- Check your build. This module is only included in the
- full builds of
- Select2.
-
-
-
-
-
-
- Harvest Chosen
- migrators!
-
- If you are migrating to Select2 from Chosen, this option will cause
- Select2 to position the dropdown in a similar way.
-
-
-
- Search
-
-
-
- Users can filter down the results by typing a search term into a box that
- is displayed at the top of the dropdown.
-
-
-
-
Adapter
-
- DropdownAdapter
-
-
-
Decorator
-
- DropdownSearch
-
-
-
-
- A search box is added to the top of the dropdown automatically for select
- boxes where only a single option can be selected.
-
-
-
- Minimum search term length to filter results
-
-
-
- Sometimes when working with large data sets, it is more efficient to start
- filtering the results when the search term is a certain length. This is
- very common when working with remote data sets, as allows for only
- significant search terms to be used.
-
-
-
-
-
-
Key
-
minimumInputLength
-
-
Value
-
integer
-
-
-
-
-
-
Adapter
-
- DataAdapter
-
-
-
Decorator
-
- MinimumInputLength
-
-
-
-
-
-
- Maximum search term length to filter results
-
-
-
- In some cases, search terms need to be limited to a certain range. Select2
- allows you to limit the length of the search term such that it does not
- exceed a certain length.
-
-
-
-
-
-
Key
-
maximumInputLength
-
-
Value
-
integer
-
-
-
-
-
-
Adapter
-
- DataAdapter
-
-
-
Decorator
-
- MaximumInputLength
-
-
-
-
-
-
- Minimum results to display the search box
-
-
-
- When working with smaller data sets, the search box can take up more space
- that is necessary, as there are not enough results for filtering to be
- effective. Select2 allows you to only display the search box when the
- number of search results reaches a certain threshold.
-
-
-
-
-
-
Key
-
minimumResultsForSearch
-
-
Value
-
integer
-
-
-
-
-
-
Adapter
-
- DropdownAdapter
-
-
-
Decorator
-
- MinimumResultsForSearch
-
-
-
-
-
-
- Select the highlighted option on close
-
-
-
- When users close the dropdown, the last highlighted option can be
- automatically selected. This is commonly used in combination with
- tagging and placeholders
- and other situations where the user is required to select an option, or
- they need to be able to quickly select multiple options.
-
-
-
-
Adapter
-
- ResultsAdapter
-
-
-
Decorator
-
- SelectOnClose
-
-
-
-
- Close the dropdown when a result is selected
-
-
-
- Select2 will automatically close the dropdown when an element is selected,
- similar to what is done with a normal select box. This behavior can be
- changed though to keep the dropdown open when results are selected,
- allowing for multiple options to be selected quickly.
-
-
-
-
-
-
Key
-
closeOnSelect
-
-
Default
-
true
-
-
-
-
-
-
Adapter
-
- DropdownAdapter
-
-
-
Decorator
-
- CloseOnSelect
-
-
-
-
-
-
- If this decorator is not used (or closeOnSelect is set to
- false), the dropdown will not automatically close when a
- result is selected. The dropdown will also never close if the
- ctrl key is held down when the result is selected.
-
- Select2 has an internal event system that is used to notify parts of the
- component that state has changed, as well as an adapter that allows some
- of these events to be relayed to the outside word.
-
-
-
-
Adapter
-
- SelectionAdapter
-
-
-
Decorator
-
- EventRelay
-
-
-
-
- Public events
-
-
-
- All public events are relayed using the jQuery event system, and they are
- triggered on the <select> element that Select2 is
- attached to. You can attach to them using the
- .on method provided
- by jQuery.
-
-
-
- Internal events
-
-
-
- Select2 triggers internal events using its own internal event system,
- which allows adapters to communicate with each other. These events are not
- accessible through the jQuery event system.
-
- In some cases, you need to set the default options for all instances of
- Select2 in your web application. This is especially useful when you are
- migrating from past versions of Select2, or you are using non-standard
- options like custom AMD builds. Select2 exposes the
- default options through $.fn.select2.defaults, which allows
- you to set them globally.
-
-
-
- When setting options globally, any past defaults that have been set will
- be overriden. Default options are only used when an option is requested
- that has not been set during initialization.
-
-
-
- You can set default options by calling
- $.fn.select2.defaults.set("key", "value"). The key that is
- set should take the same format as keys set using
- HTML data-* attributes which
- means that two dashes (--) will be replaced by a level of
- nesting, and a single dash (-) will convert it to a camelCase
- string.
-
-
-
-$.fn.select2.defaults.set("theme", "classic");
-
-
-
- You can reset the default options by calling
- $.fn.select2.defaults.reset().
-
- In the past, Select2 required an option called initSelection
- that was defined whenever a custom data source was being used, allowing
- for the initial selection for the component to be determined. This has
- been replaced by the current method on the
- data adapter.
-
-
-
-
-
-
Key
-
- initSelection
-
-
-
Value
-
- A function taking a callback
-
-
-
-
-
-
-
Adapter
-
- DataAdapter
-
-
-
Decorator
-
- InitSelection
-
-
-
-
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/compatibility/introduction.html b/bower_components/select2/docs/_includes/options/compatibility/introduction.html
deleted file mode 100644
index 0e82aabe141..00000000000
--- a/bower_components/select2/docs/_includes/options/compatibility/introduction.html
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
- Select2 offers limited backwards compatibility with the previously 3.5.x
- release line, allowing people more efficiently transfer across releases
- and get the latest features. For many of the larger changes, such as the
- change in how custom data adapters work, compatibility modules were
- created that will be used to assist in the upgrade process. It is not
- recommended to rely on these compatibility modules, as they will not
- always exist, but they make upgrading easier for major changes.
-
-
-
- The compatibility modules are only included in the
- full builds of
- Select2. These files end in .full.js, and the
- compatibility modules are prefixed with select2/compat.
-
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/compatibility/matcher.html b/bower_components/select2/docs/_includes/options/compatibility/matcher.html
deleted file mode 100644
index 150f72c192e..00000000000
--- a/bower_components/select2/docs/_includes/options/compatibility/matcher.html
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
- Simplified function for matching data objects
-
-
-
- Added in Select2 4.0.0.
- This method was added to make upgrading easier from earlier versions of
- Select2.
-
-
-
- During the Select2 4.0.0 release, the
- matcher function was changed to allow for more complex
- matching of nested objects.
-
-
-
-
-
-
Key
-
- matcher
-
-
-
Value
-
- A function taking a search term and the data object
- text.
-
-
-
-
-
-
-
Adapter
-
- oldMatcher
-
-
-
-
-
-
- The custom matcher example provides a
- guide for how to use this in your own application. For those upgrading
- from older versions of Select2, you just need to wrap your old
- matcher with this function to maintain compatibility.
-
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/compatibility/query-function.html b/bower_components/select2/docs/_includes/options/compatibility/query-function.html
deleted file mode 100644
index f5f557ded3c..00000000000
--- a/bower_components/select2/docs/_includes/options/compatibility/query-function.html
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
- In the past, Select2 supported an option called query that
- allowed for a custom data source to be used. This option has been replaced
- by the query method on the
- data adapter and takes a very similar set of
- parameters.
-
-
-
-
-
-
Key
-
- query
-
-
-
Value
-
- A function taking params (including a callback)
-
-
-
-
-
-
-
Adapter
-
- DataAdapter
-
-
-
Decorator
-
- Query
-
-
-
-
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/compatibility/text-input.html b/bower_components/select2/docs/_includes/options/compatibility/text-input.html
deleted file mode 100644
index 4cea8c86c1a..00000000000
--- a/bower_components/select2/docs/_includes/options/compatibility/text-input.html
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
- In past versions of Select2, a <select> element could
- only be used with a limited subset of options. An
- <input type="hidden" /> was required instead, which did
- not allow for a graceful fallback for users who did not have JavaScript
- enabled. Select2 now supports the <select> element for
- all options, so it is no longer required to use <input />
- elements with Select2.
-
-
-
-
Adapter
-
- DataAdapter
-
-
-
Decorator
-
- InputData
-
-
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/core.html b/bower_components/select2/docs/_includes/options/core.html
deleted file mode 100644
index df834804f6b..00000000000
--- a/bower_components/select2/docs/_includes/options/core.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- Core options
-
-
- {% include options/core/options.html %}
- {% include options/core/data-attributes.html %}
- {% include options/core/amd-support.html %}
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/core/amd-support.html b/bower_components/select2/docs/_includes/options/core/amd-support.html
deleted file mode 100644
index 2cb6b307660..00000000000
--- a/bower_components/select2/docs/_includes/options/core/amd-support.html
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
- Can I use Select2 with my AMD or CommonJS loader?
-
-
-
- Select2 should work with most AMD- or CommonJS-compliant module loaders, including RequireJS and almond. Select2 ships with a modified version of the UMD jQuery template that supports both CommonJS and AMD environments.
-
-
-
- How do I tell Select2 where to look for modules?
-
-
-
- For most AMD and CommonJS setups, the location of the data files used by Select2 will be automatically determined and handled without you needing to do anything.
-
-
-
- If you are using Select2 in a build environment where preexisting module names are changed during a build step, Select2 may not be able to find optional dependencies or language files. You can manually set the prefixes to use for these files using the amdBase and amdLanugageBase options.
-
- Select2 is being placed before jQuery in my JavaScript file
-
-
-
- Due to a bug in older versions of the r.js build tool, Select2 was sometimes placed before jQuery in then compiled build file. Because of this, Select2 will trigger an error because it won't be able to find or load jQuery.
-
-
-
- By upgrading to version 2.1.18 or higher of the r.js build tool, you will be able to fix the issue.
-
-
-
- Should I point to the files in dist or src?
-
-
-
- Select2 internally uses AMD and the r.js build tool to build the files located in the dist folder. These are built using the files in the src folder, so you can just point your modules to the Select2 source and load in jquery.select2 or select2/core when you want to use Select2. The files located in the dist folder are also AMD-compatible, so you can point to that file if you want to load in all of the default Select2 modules.
-
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/core/data-attributes.html b/bower_components/select2/docs/_includes/options/core/data-attributes.html
deleted file mode 100644
index db6078d9e73..00000000000
--- a/bower_components/select2/docs/_includes/options/core/data-attributes.html
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
- Can I declare my configuration within the HTML?
-
-
-
- It is recommended that you declare your configuration options for Select2
- when initializing Select2. You can also define your configuration options
- by using the HTML5 data-* attributes, which will override
- any options set when initializing Select2 and any defaults.
-
-
-
- How should camelCase options be written?
-
-
-
- HTML data attributes are case-insensitive, so any options which contain capital letters will be parsed as if they were all lowercase. Because Select2 has many options which are camelCase, where words are separated by uppercase letters, you must write these options out with dashes instead. So an option that would normally be called allowClear should instead be defined as allow-clear.
-
-
-
- This means that if you declare your <select> tag as...
-
- Are options with nested configurations supported?
-
-
-
- You can also define nested configurations, which are typically needed for
- options such as AJAX. Each level of nesting should be separated by two
- dashes (--) instead of one. Due to
- a jQuery bug,
- nested options using data-* attributes
- do not work in jQuery 1.x.
-
- The value of the option is subject to jQuery's
- parsing rules for
- HTML5 data attributes.
-
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/core/options.html b/bower_components/select2/docs/_includes/options/core/options.html
deleted file mode 100644
index aaa2b1126e5..00000000000
--- a/bower_components/select2/docs/_includes/options/core/options.html
+++ /dev/null
@@ -1,80 +0,0 @@
-
-
- How should Select2 be initialized?
-
-
-
- Select2 will register itself as a jQuery function if you use any of the distribution builds, so you can call .select2() on any jQuery element where you would like to initialize Select2.
-
- In some cases, you need to set the default options for all instances of
- Select2 in your web application. This is especially useful when you are
- migrating from past versions of Select2, or you are using non-standard
- options like custom AMD builds. Select2 exposes the
- default options through $.fn.select2.defaults, which allows
- you to set them globally.
-
-
-
- When setting options globally, any past defaults that have been set will
- be overriden. Default options are only used when an option is requested
- that has not been set during initialization.
-
-
-
- You can set default options by calling
- $.fn.select2.defaults.set("key", "value").
-
- How can I set a default value for a nested option?
-
-
-
- The key that is
- set should take the same format as keys set using
- HTML data-* attributes which
- means that two dashes (--) will be replaced by a level of
- nesting, and a single dash (-) will convert it to a camelCase
- string.
-
- A request is being triggered on every key stroke, can I delay this?
-
-
-
- By default, Select2 will trigger a new AJAX request whenever the user changes their search term. You can set a time limit for debouncing requests using the ajax.delay option.
-
- This will tell Select2 to wait 250 milliseconds before sending the request out to your API.
-
-
-
- How do I tell Select2 which URL to get the results from?
-
-
-
- When connecting Select2 to a remote data source, you have the option of using either a single endpoint (a single page which handles all requests) or a dynamic endpoint (one of many pages). You can point Select2 to a single endpoint during initialization by specifying a string for the ajax.url option.
-
- If there isn't a single url for your search results, or you need to call a function to determine the url to use, you can specify a function for the ajax.url option, and this will be used instead. The query parameters will be passed in through the params option.
-
- I want to add more query parameters to the request, where can this be done?
-
-
-
- By default, Select2 will send the query term as well as the pagination data as query parameters in requests. You can override the data that is sent to your API, or change any of the query paramters, by overriding the ajax.data option.
-
- Select2 expects that the results that are returned from the remote endpoint are already filtered ahead of time based on the search term. If your remote endpoint just returns the list of all possible options, you may be interested in using Select2's support for data arrays.
-
-
-
- Can an AJAX plugin other than jQuery.ajax be used?
-
-
-
- Select2 uses the transport method defined in ajax.transport to send requests to your API. By default, this transport method is jQuery.ajax but this can be changed.
-
-
-{% highlight js linenos %}
-$('select').select2({
- ajax: {
- transport: function (params, success, failure) {
- var request = new AjaxRequest(params.url, params);
- request.on('success', success);
- request.on('failure', failure);
- }
- }
-});
-{% endhighlight %}
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/data/array.html b/bower_components/select2/docs/_includes/options/data/array.html
deleted file mode 100644
index 751635e8617..00000000000
--- a/bower_components/select2/docs/_includes/options/data/array.html
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
- Can I load data into Select2 using an array?
-
-
-
- While Select2 is designed to be used with a <select> tag
- the data that is used to search through and display the results can be
- loaded from a JavaScript array using the data option. This
- option should be passed in during the initialization of Select2.
-
- What properties are required on the objects passed in to the array?
-
-
-
- The id and text properties are required on each
- object, and these are the properties that Select2 uses for the internal
- data objects. Any additional paramters passed in with data objects will be
- included on the data objects that Select2 exposes.
-
-
-
- Do the id properties have to be strings?
-
-
-
- Because the value attributes on a >select<
- tag must be strings, the id property on the data objects must
- also be strings. Select2 will attempt to convert anything that is not a
- string to a string, which will work for most situations, but it is
- recommended to force all of your ids to strings ahead of time.
-
-
-
- I can't select results with blank ids or an id of 0!
-
- Nested results should be specified using the children property
- on the data objects that are passed in. This children property
- should be an array of data objects that are grouped under this option, and
- the label for the group should be specified as the text
- property on the root data object.
-
- Because Select2 falls back to an <optgroup> when
- creating nested options, only
- a single level of nesting
- is supported. Any additional levels of nesting is not guarenteed to be
- displayed properly across all browsers and devices.
-
-
-
- Why are <option> tags being created?
-
-
-
- The data option is a shortcut that Select2 provides which
- allows you to load options into your select from a data array.
-
-
- {% include options/not-written.html %}
-
-
- My objects don't use id for their unique identifiers,
- what can I do?
-
-
-
- Select2 requires that the id property is used to uniquely
- identify the options that are displayed in the results list. If you use a
- property other than id (like pk) to uniquely
- identify an option, you need to map your old property to id
- before passing it to Select2.
-
-
-
- If you cannot do this on your server or you are in a situation where the
- identifier cannot be changed, you can do this in JavaScript before passing
- it to Select2.
-
-
-{% highlight js linenos %}
-var data = $.map(yourArrayData, function (obj) {
- obj.id = obj.id || obj.pk; // replace pk with your identifier
-
- return obj;
-});
-{% endhighlight %}
-
-
- My objects use a property other than text for the text that
- needs to be displayed
-
-
-
- Just like with the id property, Select2 requires that the text
- that should be displayed for an option is stored in the text
- property. You can map this property from any existing property using the
- following JavaScript.
-
-
-{% highlight js linenos %}
-var data = $.map(yourArrayData, function (obj) {
- obj.text = obj.text || obj.name; // replace name with the property used for the text
-
- return obj;
-});
-{% endhighlight %}
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/data/select.html b/bower_components/select2/docs/_includes/options/data/select.html
deleted file mode 100644
index aa323012c17..00000000000
--- a/bower_components/select2/docs/_includes/options/data/select.html
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
- Can Select2 be used with a <select> tag?
-
-
-
- Select2 was designed to be a replacement for the standard <select> boxes that are displayed by the browser, so by default it supports all options and operations that are available in a standard select box, but with added flexibility. There is no special configuration required to make Select2 work with a <select> tag.
-
-
-
- Does Select2 support nesting options?
-
-
-
- A standard <select> box can display nested options by wrapping them with in an <optgroup> tag.
-
- Only a single level of nesting is allowed per the HTML specification. If you nest an <optgroup> within another <optgroup>, Select2 will not be able to detect the extra level of nesting and errors may be triggered as a result.
-
-
-
- Can <optgroup> tags be made selectable?
-
-
-
- No. This is a limitation of the HTML specification and is not a limitation that Select2 can overcome. You can emulate grouping by using an <option> instead of an <optgroup> and changing the style by using CSS, but this is not recommended as it is not fully accessible.
-
-
-
- How are <option> and <optgroup> tags serialized into data objects?
-
-
-
- Select2 will convert the <option> tag into a data object based on the following rules.
-
-
-{% highlight js linenos %}
-$('select').select2({
- createTag: function (params) {
- // Don't offset to create a tag if there is no @ symbol
- if (params.term.indexOf('@') === -1) {
- // Return null to disable tag creation
- return null;
- }
-
- return {
- id: params.term,
- text: params.term
- }
- }
-});
-{% endhighlight %}
-
- {% include options/not-written.html %}
-
-
- How do I control the placement of the option?
-
-
-{% highlight js linenos %}
-$('select').select2({
- insertTag: function (data, tag) {
- // Insert the tag at the end of the results
- data.push(tag);
- }
-});
-{% endhighlight %}
-
- {% include options/not-written.html %}
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/events.html b/bower_components/select2/docs/_includes/options/events.html
deleted file mode 100644
index ea0dd2c16a1..00000000000
--- a/bower_components/select2/docs/_includes/options/events.html
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Events
-
-
- {% include options/events/jquery.html %}
- {% include options/events/internal.html %}
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/events/internal.html b/bower_components/select2/docs/_includes/options/events/internal.html
deleted file mode 100644
index df49d5c92f0..00000000000
--- a/bower_components/select2/docs/_includes/options/events/internal.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- Internal Select2 events
-
-
-
- Select2 has an internal event system that works independently of the DOM event system. This internal event system is only accesssible from plugins and adapters that are connected to Select2.
-
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/events/jquery.html b/bower_components/select2/docs/_includes/options/events/jquery.html
deleted file mode 100644
index 0c2bb2257c7..00000000000
--- a/bower_components/select2/docs/_includes/options/events/jquery.html
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
- Public jQuery events
-
-
-
- What events will Select2 trigger?
-
-
-
- Select2 will trigger a few different events when different actions are taken using the component, allowing you to add custom hooks and perform actions.
-
-
-
-
change
-
Triggered whenever an option is selected or removed.
-
-
select2:close
-
Triggered whenever the dropdown is closed.
-
-
select2:closing
-
Triggered before the dropdown is closed. This event can be prevented.
-
-
select2:open
-
Triggered whenever the dropdown is opened.
-
-
select2:opening
-
Triggered before the dropdown is opened. This event can be prevented.
-
-
select2:select
-
Triggered whenever a result is selected.
-
-
select2:selecting
-
Triggered before a result is selected. This event can be prevented.
-
-
select2:unselect
-
Triggered whenever a selection is removed.
-
-
select2:unselecting
-
Triggered before a selection is removed. This event can be prevented.
-
-
-
- Does Select2 include extra information in these events?
-
-
- {% include options/not-written.html %}
-
-
- How can I attach listeners for these events?
-
-
-{% highlight js linenos %}
-$('select').on('select2:select', function (evt) {
- // Do something
-});
-{% endhighlight %}
-
- {% include options/not-written.html %}
-
-
- What events does Select2 listen for?
-
-
-
- Select2 will listen for the change event on the
- <select> that it is attached to. If you make any
- external changes that need to be reflected in Select2 (such as changing the
- value), you should trigger this event.
-
-
-{% highlight js linenos %}
-$('select').val('US'); // Select the option with a value of 'US'
-$('select').trigger('change'); // Notify any JS components that the value changed
-{% endhighlight %}
-
-
- Can I trigger an event other than change to notify Select2 of changes?
-
-
-
- It's common for other components to be listening to the change
- event, or for custom event handlers to be attached that may have side
- effects. Select2 does not have a custom event (like
- select2:update) that can be triggered other than
- change. You can rely on jQuery's event namespacing to limit
- the scope to Select2 though by triggering the change.select2
- event.
-
-
-{% highlight js linenos %}
-$('select').val('US'); // Change the value or make some change to the internal state
-$('select').trigger('change.select2'); // Notify only Select2 of changes
-{% endhighlight %}
-
-
- What events can be prevented? How can I prevent a selection from being made?
-
-
- {% include options/not-written.html %}
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/introduction.html b/bower_components/select2/docs/_includes/options/introduction.html
deleted file mode 100644
index 7cc343fcb48..00000000000
--- a/bower_components/select2/docs/_includes/options/introduction.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- This page of the documentation is currently undergoing a rewrite and may be incomplete. If you do not find the answer you are looking for on this page, you may have better luck looking at the old options page.
-
-
-
- This documentation is set up in the form of a FAQ and covers the most common questions. If you do not find the answer to your question here, you may want to reach out to the community to see if someone else can answer it.
-
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/not-written.html b/bower_components/select2/docs/_includes/options/not-written.html
deleted file mode 100644
index b4967088d38..00000000000
--- a/bower_components/select2/docs/_includes/options/not-written.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
- This answer to this question has not yet been written. You can improve this documentation by creating a pull request with an answer to this question.
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/selections.html b/bower_components/select2/docs/_includes/options/selections.html
deleted file mode 100644
index 086c2aec9ea..00000000000
--- a/bower_components/select2/docs/_includes/options/selections.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- Displaying selections
-
-
- {% include options/selections/multiple.html %}
- {% include options/selections/placeholder.html %}
- {% include options/selections/clearing-selections.html %}
- {% include options/selections/templating.html %}
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/selections/clearing-selections.html b/bower_components/select2/docs/_includes/options/selections/clearing-selections.html
deleted file mode 100644
index dd9c10d2b06..00000000000
--- a/bower_components/select2/docs/_includes/options/selections/clearing-selections.html
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
- Can I allow users to clear their selections?
-
-
-
- You can allow people to clear their current selections with the allowClear option when initializing Select2. Setting this option to true will enable an "x" icon that will reset the selection to the placeholder.
-
- Can users remove all of their selections in a multiple select at once?
-
-
- {% include options/not-written.html %}
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/selections/multiple.html b/bower_components/select2/docs/_includes/options/selections/multiple.html
deleted file mode 100644
index 645a0b6141c..00000000000
--- a/bower_components/select2/docs/_includes/options/selections/multiple.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- Can I allow users to make multiple selections?
-
-
-
- Yes, Select2 supports making multiple selections through the use of the multiple option that can be passed in when initializing Select2.
-
-
-
- Can the multiple attribute be used on my <select> element?
-
-
-
- Yes, Select2 will automatically map the value of the multiple attribute to the multiple option during initialization.
-
-
\ No newline at end of file
diff --git a/bower_components/select2/docs/_includes/options/selections/placeholder.html b/bower_components/select2/docs/_includes/options/selections/placeholder.html
deleted file mode 100644
index 3dd5ef9c5e7..00000000000
--- a/bower_components/select2/docs/_includes/options/selections/placeholder.html
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
- How can I have Select2 display a placeholder?
-
-
-
- Select2 supports displaying a placeholder by default using the placeholder option. This can be either a data object matching the placeholder option, or a string to display as the placeholder if you are using a blank placeholder option.
-
- My first option is being displayed instead of my placeholder
-
-
-
- This usually means that you do not have a blank <option></option> as the first option in your <select>.
-
-
-
- Note that this does not apply to multiple selects, as the browser does not select the first option by default when multiple selections can be made.
-
-
-
- I am using AJAX, can I still show a placeholder?
-
-
-
- Yes, Select2 supports placeholders for all configurations. You will still need to add in the placeholder option if you are using a single select.
-
-
-
- Can I use an option without a blank value as my placeholder?
-
-
-
- The placeholder option allows you to pass in a data object instead of just a string if you need more flexibility. The id of the data object should match the value of the placeholder option.
-
-
-{% highlight js linenos %}
-$('select').select2({
- placeholder: {
- id: '-1', // the value of the option
- text: 'Select an option'
- }
-});
-{% endhighlight %}
-
-
- Can I change how the placeholder looks?
-
-
-
- When using Select2 when only a single selection can be made, the placeholder option will be passed through the standard templating methods, including the templateSelection option, so you are able to change how it is displayed.
-
- When multiple selections are allowed, the placeholder will be displayed using the placeholder attribute on the search box. You can cusotmize the display of this placholder using CSS, as explained in the following Stack Overflow answer: Change an input's HTML5 placeholder color with CSS
-
-
-
- My placeholders aren't being displayed in Internet Explorer
-
-
-
- Select2 uses the native placeholder attribute on input boxes for the multiple select, and that attribute is not supported in older versions of Internet Explorer. You need to include Placeholders.js on your page, or use the full build, in order to add placeholder attribute support to input boxes.
-
- How can I customize the way selections are displayed?
-
-
-
- When a selection is made by the user Select2 will display the text of the option by default, just like how it is displayed in a standard select box. You can override the display of the selection by setting the templateSelection option to a JavaScript function.
-