UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

1 lines 26.6 kB
module.exports=function(e){function t(o){if(i[o])return i[o].exports;var n=i[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}({0:function(e,t,i){i(940),e.exports=i(940)},3:function(e,t){e.exports=function(){throw Error("define cannot be used indirect")}},6:function(e,t){e.exports=require("../kendo.combobox")},940:function(e,t,i){var o,n,r;!function(a,define){n=[i(941),i(6),i(942),i(943),i(944)],o=a,r="function"==typeof o?o.apply(t,n):o,!(void 0!==r&&(e.exports=r))}(function(){!function(e,t){var i,o,n,r,a=window.kendo,s=a.Class,l=a.ui.Widget,d=a.support.mobileOS,c=a.support.browser,u=e.extend,p=e.proxy,h=a.deepExtend,m=a.keys,g="select",f="select.k-select-overlay",b="k-placeholder",y="placeholder",w=200,k=s.extend({init:function(e){this.options=e},getHtml:function(){var e=this.options;return a.template(e.template,{useWithBlock:!1})(e)}}),v={editorWrapperTemplate:'<table cellspacing="4" cellpadding="0" class="k-widget k-editor k-header" role="presentation"><tbody><tr role="presentation"><td class="k-editor-toolbar-wrap" role="presentation"><ul class="k-editor-toolbar" role="toolbar" /></td></tr><tr><td class="k-editable-area" /></tr></tbody></table>',buttonTemplate:'# var iconCssClass= "k-icon k-i-" + kendo.toHyphens(data.cssClass.replace("k-", ""));#<a tabindex="0" role="button" class="k-tool"#= data.popup ? " data-popup" : "" # unselectable="on" title="#= data.title #"><span unselectable="on" class="k-tool-icon #= iconCssClass #"></span><span class="k-tool-text">#= data.title #</span></a>',colorPickerTemplate:'<div class="k-colorpicker k-icon k-i-#= data.cssClass.replace("k-", "") #" />',comboBoxTemplate:'<select title="#= data.title #" class="#= data.cssClass #" />',dropDownListTemplate:'<span class="k-editor-dropdown"><select title="#= data.title #" class="#= data.cssClass #" /></span>',separatorTemplate:'<span class="k-separator" />',overflowAnchorTemplate:'<a tabindex="0" role="button" class="k-tool k-overflow-anchor" data-popup unselectable="on" title="#= data.title #" aria-haspopup="true" aria-expanded="false"><span unselectable="on" class="k-icon k-i-more-vertical"></span><span class="k-tool-text">#= data.title #</span></a>',formatByName:function(t,i){for(var o=0;o<i.length;o++)if(e.inArray(t,i[o].tags)>=0)return i[o]},getToolCssClass:function(e){var t={superscript:"sup-script",subscript:"sub-script",justifyLeft:"align-left",justifyCenter:"align-center",justifyRight:"align-right",justifyFull:"align-justify",insertUnorderedList:"list-unordered",insertOrderedList:"list-ordered","import":"login",indent:"indent-increase",outdent:"indent-decrease",createLink:"link-horizontal",unlink:"unlink-horizontal",insertImage:"image",insertFile:"file-add",viewHtml:"html",foreColor:"foreground-color",backColor:"paint",createTable:"table-insert",addColumnLeft:"table-column-insert-left",addColumnRight:"table-column-insert-right",addRowAbove:"table-row-insert-above",addRowBelow:"table-row-insert-below",deleteRow:"table-row-delete",deleteColumn:"table-column-delete",tableWizard:"table-properties",tableWizardInsert:"table-wizard",cleanFormatting:"clear-css"},i=t[e];return i?i:e},registerTool:function(e,t){var i=t.options;i&&i.template&&(i.template.options.cssClass="k-"+v.getToolCssClass(e)),t.name||(t.options.name=e,t.name=e.toLowerCase()),T.defaultTools[e]=t},registerFormat:function(e,t){T.fn.options.formats[e]=t},cacheComments:function(e,t){for(var i in t)e=e.replace(t[i],"{"+i+"}");return e},retrieveComments:function(e,t){for(var i in t)e=e.replace("{"+i+"}",t[i]);return e}},x={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",superscript:"Superscript",subscript:"Subscript",justifyCenter:"Center text",justifyLeft:"Align text left",justifyRight:"Align text right",justifyFull:"Justify",insertUnorderedList:"Insert unordered list",insertOrderedList:"Insert ordered list",indent:"Indent",outdent:"Outdent",createLink:"Insert hyperlink",unlink:"Remove hyperlink",insertImage:"Insert image",insertFile:"Insert file",insertHtml:"Insert HTML",viewHtml:"View HTML",fontName:"Select font family",fontNameInherit:"(inherited font)",fontSize:"Select font size",fontSizeInherit:"(inherited size)",formatBlock:"Format",formatting:"Format",foreColor:"Color",backColor:"Background color",style:"Styles",emptyFolder:"Empty Folder",editAreaTitle:"Editable area. Press F10 for toolbar.",uploadFile:"Upload",overflowAnchor:"More tools",orderBy:"Arrange by:",orderBySize:"Size",orderByName:"Name",invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',deleteFile:'Are you sure you want to delete "{0}"?',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',directoryNotFound:"A directory with this name was not found.",imageWebAddress:"Web address",imageAltText:"Alternate text",imageWidth:"Width (px)",imageHeight:"Height (px)",fileWebAddress:"Web address",fileTitle:"Title",fileText:"Text",linkWebAddress:"Web address",linkText:"Text",linkToolTip:"ToolTip",linkOpenInNewWindow:"Open link in new window",dialogUpdate:"Update",dialogInsert:"Insert",dialogOk:"Ok",dialogCancel:"Cancel",cleanFormatting:"Clean formatting",createTable:"Create a table",createTableHint:"Create a {0} x {1} table",addColumnLeft:"Add column on the left",addColumnRight:"Add column on the right",addRowAbove:"Add row above",addRowBelow:"Add row below",deleteRow:"Delete row",deleteColumn:"Delete column",tableWizard:"Table Wizard",tableTab:"Table",cellTab:"Cell",accessibilityTab:"Accessibility",caption:"Caption",summary:"Summary",width:"Width",height:"Height",units:"Units",cellSpacing:"Cell Spacing",cellPadding:"Cell Padding",cellMargin:"Cell Margin",alignment:"Alignment",background:"Background",cssClass:"CSS Class",id:"ID",border:"Border",borderStyle:"Border Style",collapseBorders:"Collapse borders",wrapText:"Wrap text",associateCellsWithHeaders:"Associate cells with headers",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignLeftTop:"Align Left Top",alignCenterTop:"Align Center Top",alignRightTop:"Align Right Top",alignLeftMiddle:"Align Left Middle",alignCenterMiddle:"Align Center Middle",alignRightMiddle:"Align Right Middle",alignLeftBottom:"Align Left Bottom",alignCenterBottom:"Align Center Bottom",alignRightBottom:"Align Right Bottom",alignRemove:"Remove Alignment",columns:"Columns",rows:"Rows",selectAllCells:"Select All Cells",exportAs:"Export As","import":"Import"},C=!d||d.ios&&d.flatVersion>=500||!d.ios&&t!==document.documentElement.contentEditable,z={basic:["bold","italic","underline"],alignment:["justifyLeft","justifyCenter","justifyRight"],lists:["insertUnorderedList","insertOrderedList"],indenting:["indent","outdent"],links:["createLink","unlink"],tables:["tableWizard","createTable","addColumnLeft","addColumnRight","addRowAbove","addRowBelow","deleteRow","deleteColumn"]},T=l.extend({init:function(i,o){var n,r,s,d,c,m,g=this,f=a.ui.editor,b=f.Dom;C&&(l.fn.init.call(g,i,o),g.options=h({},g.options,o),g.options.tools=g.options.tools.slice(),i=g.element,m=i[0],d=b.name(m),this._registerHandler(i.closest("form"),"submit",p(g.update,g,t)),s=u({},g.options),s.editor=g,"textarea"==d?(g._wrapTextarea(),r=g.wrapper.find(".k-editor-toolbar"),m.id&&r.attr("aria-controls",m.id)):(g.element.attr("contenteditable",!0).addClass("k-widget k-editor k-editor-inline"),s.popup=!0,r=e('<ul class="k-editor-toolbar" role="toolbar" />').insertBefore(i)),g.toolbar=new f.Toolbar(r[0],s),g.toolbar.bindTo(g),"textarea"==d&&setTimeout(function(){var e=g.wrapper[0].style.height,t=parseInt(e,10),i=g.wrapper.height();e.indexOf("px")>0&&!isNaN(t)&&i>t&&g.wrapper.height(t-(i-t))}),g._resizable(),g._initializeContentElement(g),g.keyboard=new f.Keyboard([new f.BackspaceHandler(g),new f.TypingHandler(g),new f.SystemHandler(g),new f.SelectAllHandler(g)]),g.clipboard=new f.Clipboard(this),g.undoRedoStack=new a.util.UndoRedoStack,o&&o.value?n=o.value:g.textarea?(n=m.value,g.options.encoded&&e.trim(m.defaultValue).length&&(n=m.defaultValue),c=b.getAllComments(e("<div></div>").html(n)[0]),n=v.cacheComments(n,c),n=n.replace(/[\r\n\v\f\t ]+/gi," "),n=v.retrieveComments(n,c)):n=m.innerHTML,g.value(n||"\ufeff"),this._registerHandler(document,{mousedown:function(){g._endTyping()},mouseup:function(e){g._mouseup(e)}}),g._initializeImmutables(),g.toolbar.resize(),a.notify(g))},setOptions:function(e){var t=this;l.fn.setOptions.call(t,e),e.tools&&t.toolbar.bindTo(t),this._initializePlaceholder()},_togglePlaceholder:function(t){var i=this,o=i.body,n=e(o),r=i.options.placeholder;i.textarea&&r&&(n.attr("aria-label",function(){return t?r:""}),n.toggleClass(b,t))},_endTyping:function(){var e=this.keyboard;try{e.isTypingInProgress()&&(e.endTyping(!0),this.saveSelection())}catch(t){}},_selectionChange:function(){this._selectionStarted=!1,this.saveSelection(),this.trigger("select",{})},_resizable:function(){var i,o,n=this.options.resizable,r=e.isPlainObject(n)?n.content===t||n.content===!0:n;r&&this.textarea&&(i=e("<div class='k-resize-handle'><span class='k-icon k-i-arrow-45-down-right' /></div>").insertAfter(this.textarea),this.wrapper.addClass("k-resizable"),this.wrapper.kendoResizable(u({},this.options.resizable,{draggableElement:i,start:function(t){var i=this.editor=e(t.currentTarget).closest(".k-editor");this.initialSize=i.height(),i.find("td:last").append("<div class='k-overlay' />")},resize:function(e){var t=e.y.initialDelta,i=this.initialSize+t,o=this.options.min||0,n=this.options.max||1/0;i=Math.min(n,Math.max(o,i)),this.editor.height(i)},resizeend:function(){this.editor.find(".k-overlay").remove(),this.editor=null}})),a.support.mobileOS.ios&&(o=this.wrapper.getKendoResizable(),o.draggable.options.ignore=f))},_initializeTableResizing:function(){var e=this;a.ui.editor.TableResizing.create(e),e._showTableResizeHandlesProxy=p(e._showTableResizeHandles,e),e.bind(g,e._showTableResizeHandlesProxy)},_destroyTableResizing:function(){var e=this,t=e.tableResizing;t&&(t.destroy(),e.tableResizing=null),e._showTableResizeHandlesProxy&&e.unbind(g,e._showTableResizeHandlesProxy)},_showTableResizeHandles:function(){var e=this,t=e.tableResizing;t&&t.showResizeHandles()},_initializeColumnResizing:function(){a.ui.editor.ColumnResizing.create(this)},_destroyColumnResizing:function(){var e=this;e.columnResizing&&(e.columnResizing.destroy(),e.columnResizing=null)},_initializeRowResizing:function(){a.ui.editor.RowResizing.create(this)},_destroyRowResizing:function(){var e=this;e.rowResizing&&(e.rowResizing.destroy(),e.rowResizing=null)},_wrapTextarea:function(){var t=this,i=t.element,o=i[0].style.width,n=i[0].style.height,r=v.editorWrapperTemplate,a=e(r).insertBefore(i).width(o).height(n),s=a.find(".k-editable-area");i.attr("autocomplete","off").appendTo(s).addClass("k-content k-raw-content").css("display","none"),t.textarea=i,t.wrapper=a},_createContentElement:function(t){var i,o,n,r=this,s=r.textarea,l=r.options.domain,c=l||document.domain,u="",p='javascript:""';return s.hide(),i=e("<iframe />",{title:r.options.messages.editAreaTitle,frameBorder:"0"})[0],e(i).css("display","").addClass("k-content").attr("tabindex",s[0].tabIndex).insertBefore(s),(l||c!=location.hostname)&&(u='<script>document.domain="'+c+'"</script>',p="javascript:document.write('"+u+"')",i.src=p),o=i.contentWindow||i,n=o.document||i.contentDocument,e(i).one("load",function(){r.toolbar.decorateFrom(n.body)}),n.open(),n.write("<!DOCTYPE html><html><head><meta charset='utf-8' /><style>html{padding:0;margin:0;height:100%;min-height:100%;cursor:text;}body{padding:0;margin:0;}body{box-sizing:border-box;font-size:12px;font-family:Verdana,Geneva,sans-serif;margin-top:-1px;padding:5px .4em 0;word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space;"+(a.support.isRtl(s)?"direction:rtl;":"")+(d.ios?"word-break:keep-all;":"")+"}h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em}h3{font-size:1.16em}h4{font-size:1em}h5{font-size:.83em}h6{font-size:.7em}p{margin:0 0 1em;}.k-marker{display:none;}.k-paste-container,.Apple-style-span{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}ul,ol{padding-left:2.5em}span{-ms-high-contrast-adjust:none;}a{color:#00a}code{font-size:1.23em}telerik\\3Ascript{display: none;}.k-table{width:100%;border-spacing:0;margin: 0 0 1em;}.k-table td{min-width:1px;padding:.2em .3em;}.k-table,.k-table td{outline:0;border: 1px dotted #ccc;}.k-table p{margin:0;padding:0;}.k-column-resize-handle-wrapper {position: absolute; height: 10px; width:10px; cursor: col-resize; z-index: 2;}.k-column-resize-handle {width: 100%; height: 100%;}.k-column-resize-handle > .k-column-resize-marker {width:2px; height:100%; margin:0 auto; background-color:#00b0ff; display:none; opacity:0.8;}.k-row-resize-handle-wrapper {position: absolute; cursor: row-resize; z-index:2; width: 10px; height: 10px;}.k-row-resize-handle {display: table; width: 100%; height: 100%;}.k-row-resize-marker-wrapper{display: table-cell; height:100%; width:100%; margin:0; padding:0; vertical-align: middle;}.k-row-resize-marker{margin: 0; padding:0; width:100%; height:2px; background-color: #00b0ff; opacity:0.8; display:none;}.k-table-resize-handle-wrapper {position: absolute; background-color: #fff; border: 1px solid #000; z-index: 100; width: 5px; height: 5px;}.k-table-resize-handle {width: 100%; height: 100%;}.k-table-resize-handle.k-resize-east{cursor:e-resize;}.k-table-resize-handle.k-resize-north{cursor:n-resize;}.k-table-resize-handle.k-resize-northeast{cursor:ne-resize;}.k-table-resize-handle.k-resize-northwest{cursor:nw-resize;}.k-table-resize-handle.k-resize-south{cursor:s-resize;}.k-table-resize-handle.k-resize-southeast{cursor:se-resize;}.k-table-resize-handle.k-resize-southwest{cursor:sw-resize;}.k-table-resize-handle.k-resize-west{cursor:w-resize;}.k-table.k-table-resizing{opacity:0.6;}.k-placeholder{color:grey}k\\:script{display:none;}</style>"+u+e.map(t,function(e){return"<link rel='stylesheet' href='"+e+"'>"}).join("")+"</head><body autocorrect='off' contenteditable='true'></body></html>"),n.close(),o},_blur:function(){var e=this.textarea,t=e?e.val():this._oldValue,i=this.options.encoded?this.encodedValue():this.value();this.update(),e&&e.trigger("blur"),i!=t&&(this.trigger("change"),e&&e.trigger("change"))},_spellCorrect:function(e){var i,o=!1;this._registerHandler(e.body,{contextmenu:function(){e.one("select",function(){i=null}),e._spellCorrectTimeout=setTimeout(function(){i=new a.ui.editor.RestorePoint(e.getRange(),e.body),o=!1},10)},input:function(){if(i)return a.support.browser.mozilla&&!o?(o=!0,t):(a.ui.editor._finishUpdate(e,i),t)}})},_registerHandler:function(t,i,o){var n,r,s,l=this,d=".kendoEditor";if(t=e(t),this._handlers||(this._handlers=[]),t.length)if(e.isPlainObject(i))for(s in i)i.hasOwnProperty(s)&&this._registerHandler(t,s,i[s]);else for(n=a.applyEventMap(i).split(" "),r=0;r<n.length;r++)l._handlers.push({element:t,type:n[r]+d,handler:o}),t.on(n[r]+d,o)},_deregisterHandlers:function(){var e,t,i=this._handlers;for(e=0;e<i.length;e++)t=i[e],t.element.off(t.type,t.handler);this._handlers=[]},_initializeContentElement:function(){var i,o,n,r,s,l=this;l.textarea?(l.window=l._createContentElement(l.options.stylesheets),i=l.document=l.window.contentDocument||l.window.document,i.body||(r=i.createElement("body"),r.setAttribute("contenteditable","true"),r.setAttribute("autocorrect","off"),i.getElementsByTagName("html")[0].appendChild(r),s=setInterval(function(){e(l.document).find("body").length>1&&(e(l.document).find("body:last").remove(),window.clearInterval(s))},10)),l.body=i.body,o=l.window,n=i,this._registerHandler(i,"mouseup",p(this._mouseup,this))):(l.window=window,i=l.document=document,l.body=l.element[0],o=l.body,n=l.body,l.toolbar.decorateFrom(l.body)),this._registerHandler(o,"blur",p(this._blur,this)),l._registerHandler(n,"down",p(l._mousedown,l));try{i.execCommand("enableInlineTableEditing",null,!1)}catch(d){}a.support.touch&&this._registerHandler(i,{keydown:function(){a._activeElement()!=i.body&&l.window.focus()}}),this._initializePlaceholder(),this._spellCorrect(l),this._registerHandler(l.body,{keydown:function(e){var i,o,n,r,a,s,d,c,u,h;return(e.keyCode!==m.BACKSPACE&&e.keyCode!==m.DELETE||"true"===l.body.getAttribute("contenteditable"))&&(e.keyCode===m.F10?(setTimeout(p(l.toolbar.focus,l.toolbar),100),l.toolbar.preventPopupHide=!0,e.preventDefault(),t):(e.keyCode!=m.LEFT&&e.keyCode!=m.RIGHT||(i=l.getRange(),o=e.keyCode==m.LEFT,n=i[o?"startContainer":"endContainer"],r=i[o?"startOffset":"endOffset"],a=o?-1:1,s=r+a,d=o?s:r,3==n.nodeType&&"\ufeff"==n.nodeValue[d]&&(i.setStart(n,s),i.collapse(!0),l.selectRange(i))),c=l.toolbar.tools,u=l.keyboard.toolFromShortcut(c,e),h=u?c[u].options:{},u&&!h.keyPressCommand?(e.preventDefault(),/^(undo|redo)$/.test(u)||l.keyboard.endTyping(!0),l.trigger("keydown",e),l.exec(u),l._runPostContentKeyCommands(e),!1):(l.keyboard.clearTimeout(),l.keyboard.keydown(e),t)))},keypress:function(e){setTimeout(function(){l._runPostContentKeyCommands(e),l._showTableResizeHandles()},0)},keyup:function(t){var i=[m.BACKSPACE,m.TAB,m.PAGEUP,m.PAGEDOWN,m.END,m.HOME,m.LEFT,m.UP,m.RIGHT,m.DOWN,m.INSERT,m.DELETE];(e.inArray(t.keyCode,i)>-1||65==t.keyCode&&t.ctrlKey&&!t.altKey&&!t.shiftKey)&&(window.clearTimeout(this._refreshInterval),this._refreshInterval=window.setTimeout(function(){l._selectionChange()},w)),l.keyboard.keyup(t)},click:function(e){var t,i=a.ui.editor.Dom;"img"===i.name(e.target)&&(t=l.createRange(),t.selectNode(e.target),l.selectRange(t))},"cut copy paste drop dragover":function(e){l.clipboard["on"+e.type](e)},focusin:function(){l.body.hasAttribute("contenteditable")&&(e(this).addClass("k-state-active"),l.toolbar.show(),l._togglePlaceholder(!1))},focusout:function(){setTimeout(function(){var t,i=a._activeElement(),o=l.body,n=l.toolbar;n.options.popup&&(t=n.window.element.get(0),t&&!e.contains(t,i)&&t!=i&&(n.preventPopupHide=!1)),i==o||e.contains(o,i)||e(i).is(".k-editortoolbar-dragHandle")||n.focused()||(e(o).removeClass("k-state-active"),n.hide()),l._togglePlaceholder(!l.value().trim())},10)}}),l._initializeColumnResizing(),l._initializeRowResizing(),l._initializeTableResizing()},_initializePlaceholder:function(){var t,i,o=this,n=o.options.placeholder;o.textarea&&n&&(t="<style id='"+y+"'>."+b+":before { content: '"+n+"'; }</style>",i=e(o.document.head),i.find("#"+y).remove(),i.append(t),o._togglePlaceholder(!o.value().trim()))},_initializeImmutables:function(){var e=this,t=a.ui.editor;e.options.immutables&&(e.immutables=new t.Immutables(e))},_mousedown:function(t){var i,o=this;o._selectionStarted=!0,e(o.body).parents(".k-window").length&&t.stopPropagation(),c.gecko||(i=e(t.target).closest("a[href]"),(2==t.which||1==t.which&&t.ctrlKey)&&i&&i.is("a[href]")&&window.open(i.attr("href"),"_new"),c.msie&&"html"===t.target.tagName.toLowerCase()&&setTimeout(function(){o.body.focus()},0))},_mouseup:function(t){var i=this;a.support.mobileOS.ios&&t&&e(t.target).is(f)||i._selectionStarted&&setTimeout(function(){i._selectionChange()},1)},_runPostContentKeyCommands:function(e){var t,i,o,n,r=this.getRange(),a=this.keyboard.toolsFromShortcut(this.toolbar.tools,e);for(t=0;t<a.length;t++)i=a[t],o=i.options,o.keyPressCommand&&(n=new o.command({range:r}),n.changesContent()&&(this.keyboard.endTyping(!0),this.exec(i.name)))},refresh:function(){var e,t=this;t.textarea&&(t._destroyResizings(),e=t.value(),t.textarea.val(e),t.wrapper.find("iframe").remove(),t._initializeContentElement(t),t.value(e))},events:["select","change","execute","error","paste","keydown","keyup"],options:{name:"Editor",messages:x,placeholder:"",formats:{},encoded:!0,domain:null,resizable:!1,deserialization:{custom:null},serialization:{entities:!0,semantic:!0,scripts:!1},pasteCleanup:{all:!1,css:!1,custom:null,keepNewLines:!1,msAllFormatting:!1,msConvertLists:!0,msTags:!0,none:!1,span:!1},stylesheets:[],dialogOptions:{modal:!0,resizable:!1,draggable:!0,animation:!1},imageBrowser:null,fileBrowser:null,fontName:[{text:"Arial",value:"Arial, Helvetica, sans-serif"},{text:"Courier New",value:'"Courier New", Courier, monospace'},{text:"Georgia",value:"Georgia, serif"},{text:"Impact",value:"Impact, Charcoal, sans-serif"},{text:"Lucida Console",value:'"Lucida Console", Monaco, monospace'},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif"},{text:"Times New Roman",value:'"Times New Roman", Times, serif'},{text:"Trebuchet MS",value:'"Trebuchet MS", Helvetica, sans-serif'},{text:"Verdana",value:"Verdana, Geneva, sans-serif"}],fontSize:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],formatBlock:[{text:"Paragraph",value:"p"},{text:"Quotation",value:"blockquote"},{text:"Heading 1",value:"h1"},{text:"Heading 2",value:"h2"},{text:"Heading 3",value:"h3"},{text:"Heading 4",value:"h4"},{text:"Heading 5",value:"h5"},{text:"Heading 6",value:"h6"}],tools:[].concat.call(["formatting"],z.basic,z.alignment,z.lists,z.indenting,z.links,["insertImage"],z.tables)},destroy:function(){var e=this;l.fn.destroy.call(this),this._endTyping(!0),this._deregisterHandlers(),clearTimeout(this._spellCorrectTimeout),this._focusOutside(),this.toolbar.destroy(),e._destroyUploadWidget(),e._destroyResizings(),a.destroy(this.wrapper)},_destroyResizings:function(){var e=this;e._destroyTableResizing(),a.ui.editor.TableResizing.dispose(e),e._destroyRowResizing(),a.ui.editor.RowResizing.dispose(e),e._destroyColumnResizing(),a.ui.editor.ColumnResizing.dispose(e)},_focusOutside:function(){if(a.support.browser.msie&&this.textarea){var t=e("<input style='position:fixed;left:1px;top:1px;width:1px;height:1px;font-size:0;border:0;opacity:0' />").appendTo(document.body).focus();t.blur().remove()}},_destroyUploadWidget:function(){var e=this;e._uploadWidget&&(e._uploadWidget.destroy(),e._uploadWidget=null)},state:function(e){var t,i,o=T.defaultTools[e],n=o&&(o.options.finder||o.finder),r=a.ui.editor.RangeUtils;return!!n&&(t=this.getRange(),i=r.textNodes(t),!i.length&&t.collapsed&&(i=[t.startContainer]),n.getFormat?n.getFormat(i):n.isFormatted(i))},value:function(e){var i=this.body,o=a.ui.editor,n=this.options,r=o.Serializer.domToXhtml(i,n.serialization);return e===t?r:(e!=r&&(o.Serializer.htmlToDom(e,i,n.deserialization),this.selectionRestorePoint=null,this.update(),this.toolbar.refreshTools()),t)},saveSelection:function(t){t=t||this.getRange();var i=t.commonAncestorContainer,o=this.body;(i==o||e.contains(o,i))&&(this.selectionRestorePoint=new a.ui.editor.RestorePoint(t,o))},_focusBody:function(){var e,t=this.body,i=this.wrapper&&this.wrapper.find("iframe")[0],o=this.document.documentElement,n=a._activeElement();!i&&t.scrollHeight>t.clientHeight?(e=t.scrollTop,t.focus(),t.scrollTop=e):n!=t&&n!=i&&(e=o.scrollTop,t.focus(),o.scrollTop=e)},restoreSelection:function(){this._focusBody(),this.selectionRestorePoint&&this.selectRange(this.selectionRestorePoint.toRange())},focus:function(){this.restoreSelection()},update:function(e){e=e||this.options.encoded?this.encodedValue():this.value(),this.textarea?(this.textarea.val(e),this._togglePlaceholder(!e.trim())):this._oldValue=e},encodedValue:function(){return a.ui.editor.Dom.encode(this.value())},createRange:function(e){return a.ui.editor.RangeUtils.createRange(e||this.document)},getSelection:function(){return a.ui.editor.SelectionUtils.selectionFromDocument(this.document)},selectRange:function(e){this._focusBody();var t=this.getSelection();t.removeAllRanges(),t.addRange(e),this.saveSelection(e)},getRange:function(){var e=this.getSelection(),t=e&&e.rangeCount>0?e.getRangeAt(0):this.createRange(),i=this.document;return t.startContainer!=i||t.endContainer!=i||t.startOffset||t.endOffset||(t.setStart(this.body,0),t.collapse(!0)),t},_containsRange:function(e){var t=a.ui.editor.Dom,i=this.body;return e&&t.isAncestorOrSelf(i,e.startContainer)&&t.isAncestorOrSelf(i,e.endContainer)},_deleteSavedRange:function(){"_range"in this&&delete this._range},selectedHtml:function(){return a.ui.editor.Serializer.domToXhtml(this.getRange().cloneContents())},paste:function(t,i){this.focus();var o=new a.ui.editor.InsertHtmlCommand(e.extend({range:this.getRange(),html:t},i));o.editor=this,o.exec()},exec:function(e,i){var o,n,r,a,s=this,l=null;if(!e)throw Error("kendoEditor.exec(): `name` parameter cannot be empty");if("true"!==s.body.getAttribute("contenteditable")&&"print"!==e&&"pdf"!==e&&"exportAs"!==e)return!1;if(e=e.toLowerCase(),s.keyboard.isTypingInProgress()||(s._focusBody(),s.selectRange(s._range||s.getRange())),n=s.toolbar.toolById(e),!n)for(a in T.defaultTools)if(a.toLowerCase()==e){n=T.defaultTools[a];break}if(n){if(o=s.getRange(),n.command&&(l=n.command(u({range:o,body:s.body,immutables:!!s.immutables},i))),r=s.trigger("execute",{name:e,command:l}))return;if(/^(undo|redo)$/i.test(e))s.undoRedoStack[e]();else if(l&&(s.execCommand(l),l.async))return l.change=p(s._selectionChange,s),t;s._selectionChange()}},execCommand:function(e){e.managesUndoRedo||this.undoRedoStack.push(e),e.editor=this,e.exec()}});T.defaultTools={undo:{options:{key:"Z",ctrl:!0}},redo:{options:{key:"Y",ctrl:!0}}},a.ui.plugin(T),i=s.extend({init:function(e){this.options=e},initialize:function(e,t){e.attr({unselectable:"on",title:t.title}),e.children(".k-tool-text").html(t.title)},command:function(e){return new this.options.command(e)},update:e.noop}),i.exec=function(e,t,i){e.exec(t,{value:i})},v.registerTool("separator",new i({template:new k({template:v.separatorTemplate})})),o=c.msie&&c.version<9?"\ufeff":"",n="\ufeff",r=n,(c.msie||c.edge)&&(r=n="&nbsp;"),u(a.ui,{editor:{ToolTemplate:k,EditorUtils:v,Tool:i,_bomFill:o,emptyElementContent:n,emptyTableCellContent:r}}),a.PDFMixin&&(a.PDFMixin.extend(T.prototype),T.prototype._drawPDF=function(){return a.drawing.drawDOM(this.body,this.options.pdf)},T.prototype.saveAsPDF=function(){var t,i=new e.Deferred,o=i.promise(),n={promise:o};if(!this.trigger("pdfExport",n))return t=this.options.pdf,this._drawPDF(i).then(function(e){return a.drawing.exportPDF(e,t)}).done(function(e){a.saveAs({dataURI:e,fileName:t.fileName,proxyURL:t.proxyURL,proxyTarget:t.proxyTarget,forceProxy:t.forceProxy}),i.resolve()}).fail(function(e){i.reject(e)}),o})}(window.kendo.jQuery)},i(3))},941:function(e,t){e.exports=require("../util/undoredostack")},942:function(e,t){e.exports=require("../kendo.dropdownlist")},943:function(e,t){e.exports=require("../kendo.window")},944:function(e,t){e.exports=require("../kendo.colorpicker")}});