From 3b862abb0b4f1b10bca81bf5d47e716c298fb91c Mon Sep 17 00:00:00 2001 From: Chupurnov Valeriy Date: Wed, 7 Feb 2018 12:36:04 +0500 Subject: [PATCH] New version 3.1.28. Read more https://github.com/xdan/jodit/releases/tag/3.1.28 --- build/jodit.min.css | 2 +- build/jodit.min.js | 4 ++-- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/jodit.min.css b/build/jodit.min.css index 42bf0d4de..2fdf84a5f 100644 --- a/build/jodit.min.css +++ b/build/jodit.min.css @@ -2,7 +2,7 @@ * * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser * Author: Chupurnov (https://xdsoft.net/) - * Version: v3.1.27 + * Version: v3.1.28 * Url: https://xdsoft.net/jodit/ * License(s): SEE LICENSE IN * diff --git a/build/jodit.min.js b/build/jodit.min.js index 36eaa73a4..8ab6b79d9 100644 --- a/build/jodit.min.js +++ b/build/jodit.min.js @@ -2,9 +2,9 @@ * * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser * Author: Chupurnov (https://xdsoft.net/) - * Version: v3.1.27 + * Version: v3.1.28 * Url: https://xdsoft.net/jodit/ * License(s): SEE LICENSE IN * */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Jodit=t():e.Jodit=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var o={};return t.m=e,t.c=o,t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/build/",t(t.s=20)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(2),i=o(3),r={},s=r.toString,a=r.hasOwnProperty;t.isIE=function(){return-1!=navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)};var l=1;t.$$=function(e,o){var n;if(!/:scope/.test(e)||!t.isIE()||"undefined"!=typeof HTMLDocument&&o instanceof HTMLDocument)n=o.querySelectorAll(e);else{var i=o.id,r=i||"_selector_id_"+(""+Math.random()).slice(2)+l++;e=e.replace(/:scope/g,"#"+r),!i&&o.setAttribute("id",r),n=o.parentNode.querySelectorAll(e),i||o.removeAttribute("id")}return[].slice.call(n)},t.isWindow=function(e){return null!==e&&e===e.window},t.type=function(e){return null===e?"null":"object"==typeof e||"function"==typeof e?r[s.call(e)]||"object":typeof e},t.each=function(e,t){var o,n,i;if(Array.isArray(e)){for(o=e.length,i=0;o>i;i+=1)if(!1===t.call(e[i],i,e[i]))return!1}else for(n=Object.keys(e),i=0;n.length>i;i+=1)if(!1===t.call(e[n[i]],n[i],e[n[i]]))return!1;return e},t.each(["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol","HTMLDocument","Window","HTMLElement","HTMLBodyElement","Text","DocumentFragment"],function(e,t){r["[object "+t+"]"]=t.toLowerCase()}),t.inArray=function(e,t){return-1!==t.indexOf(e)},t.isPlainObject=function(e){return!("object"!=typeof e||e.nodeType||t.isWindow(e)||e.constructor&&!a.call(e.constructor.prototype,"isPrototypeOf"))},t.extend=function(){for(var e=[],o=0;arguments.length>o;o++)e[o]=arguments[o];var n,i,r,s,a,l,c,d,u=e[0]||{},p=1,f=e.length,h=!1;for("boolean"==typeof u&&(h=u,u=e[p]||{},p+=1),"object"!=typeof u&&"function"===t.type(u)&&(u={}),p===f&&(u=this,p+=1),p;f>p;p+=1)if(null!==(n=e[p])&&void 0!==n)for(d=Object.keys(n),c=0;d.length>c;c+=1)i=d[c],r=u[i],s=n[i],u!==s&&(h&&s&&(t.isPlainObject(s)||Array.isArray(s))?(a=Array.isArray(s),a?(a=!1,l=r&&Array.isArray(r)?r:[]):l=r&&t.isPlainObject(r)?r:{},u[i]=t.extend(h,l,s)):void 0!==s&&(u[i]=s));return u},t.trim=function(e){return e.replace(n.SPACE_REG_EXP_START,"").replace(n.SPACE_REG_EXP_END,"")},t.colorToHex=function(e){if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;var t,o,n,i,r,s=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!s)return"#000000";for(o=parseInt(s[2],10),n=parseInt(s[3],10),i=parseInt(s[4],10),r=i|n<<8|o<<16,t=r.toString(16).toUpperCase();6>t.length;)t="0"+t;return s[1]+"#"+t},t.normalizeColor=function(e){var o,n=["#"],i=t.colorToHex(e);if(!i)return!1;if(i=t.trim(i.toUpperCase()),i=i.substr(1),3===i.length){for(o=0;3>o;o+=1)n.push(i[o]),n.push(i[o]);return n.join("")}return i.length>6&&(i=i.substr(0,6)),"#"+i},t.normalizeSize=function(e){return/^[0-9]+$/.test(""+e)?e+"px":""+e},t.getContentWidth=function(e,t){var o=function(e){return parseInt(e,10)},n=t.getComputedStyle(e);return e.offsetWidth-o(n.getPropertyValue("padding-left")||"0")-o(n.getPropertyValue("padding-right")||"0")},t.ctrlKey=function(e){if(-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1};var c=function(e){return"file:"===window.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e};t.appendScript=function(e,t,o,n){void 0===o&&(o="");var i=n.createElement("script");i.className=o,i.type="text/javascript",i.charset="utf-8",i.src=c(e),void 0!==t&&(i.onload=t),n.body.appendChild(i)},t.dom=function(e,t){if(e instanceof t.defaultView.HTMLElement)return e;var o=t.createElement("div");return o.innerHTML=e,o.firstChild===o.lastChild&&o.firstChild?o.firstChild:o},t.hexToRgb=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,o,n){return t+t+o+o+n+n});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},t.clear=function(e,o){return void 0===o&&(o=!1),e=t.trim(e).replace(n.INVISIBLE_SPACE_REG_EXP,"").replace(/[\s]*class=""/g,""),o&&(e=e.replace(/]*>[\s\n\r\t]*( |
|)?[\s\n\r\t]*<\/p>[\n\r]*/g,"")),e},t.htmlentities=function(e){return e.replace(//gi,">").replace(/"/gi,""").replace(/'/gi,"'")},t.isURL=function(e){return RegExp("^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)},t.pathNormalize=function(e){return e.replace(/([^:])[\\\/]+/g,"$1/")},t.urlNormalize=function(e){return e.replace(/([^:])[\\\/]+/g,"$1/")},t.isHTML=function(e){return/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e)},t.isHTMLFromWord=function(e){return-1!==e.search(//)||-1!==e.search(//)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/t;t+=1)o=i[t].split("="),n[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"");return n},t.convertMediaURLToVideoEmbed=function(e,o,n){if(void 0===o&&(o=400),void 0===n&&(n=345),!t.isURL(e))return e;var i=document.createElement("a"),r=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;switch(i.href=e,o||(o=400),n||(n=345),i.hostname){case"www.vimeo.com":case"vimeo.com":return r.test(e)?e.replace(r,''):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":var s=i.search?t.parseQuery(i.search):{v:i.pathname.substr(1)};return s.v?'':e}return e},t.browser=function(e){var t=navigator.userAgent.toLowerCase(),o=/(firefox)[\s\/]([\w.]+)/.exec(t)||/(chrome)[\s\/]([\w.]+)/.exec(t)||/(webkit)[\s\/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s\/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?o[2]:"webkit"===e?"chrome"===o[1]||"webkit"===o[1]:"ff"===e?"firefox"===o[1]:"msie"===e?"trident"===o[1]||"msie"===o[1]:o[1]===e},t.offset=function(e,o,n){void 0===n&&(n=!1);var i,r,s=e.getBoundingClientRect(),a=e.ownerDocument,l=a.body,c=a.documentElement,d=a.defaultView||a.parentWindow,u=d.pageYOffset||c.scrollTop||l.scrollTop,p=d.pageXOffset||c.scrollLeft||l.scrollLeft,f=c.clientTop||l.clientTop||0,h=c.clientLeft||l.clientLeft||0;if(!n&&o.options.iframe){var m=t.offset(o.iframe,o,!0),v=m.top,g=m.left;i=s.top+v,r=s.left+g}else i=s.top+u-f,r=s.left+p-h;return{top:Math.round(i),left:Math.round(r),width:s.width,height:s.height}},t.camelCase=function(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})},t.fromCamelCase=function(e){return e.replace(/([A-Z]+)/g,function(e,t){return"-"+t.toLowerCase()})},t.htmlspecialchars=function(e){var t=document.createElement("div");return t.innerText=e,t.innerHTML},t.debounce=function(e,t,o,n){3===arguments.length&&"boolean"!=typeof o&&(n=o,o=!1);var i=0;return function(){var r=arguments;n=n||this,(o&&!i||!t)&&e.apply(n,r),t&&(clearTimeout(i),i=window.setTimeout(function(){o||e.apply(n,r),i=0},t))}},t.throttle=function(e,t,o){var n,i,r,s=null;return function(){n=arguments,i=!0,o=o||this,s||(r=function(){i?(e.apply(o,n),i=!1,s=setTimeout(r,t)):s=null})()}},t.normilizeCSSValue=function(e,t){switch(e){case"font-weight":return"bold"===t?700:t}return t},t.css=function(e,o,n,i){void 0===i&&(i=!1);var r=/^left|top|bottom|right|width|min|max|height|margin|padding|font-size/i;if(t.isPlainObject(o)||void 0!==n){var s=function(e,o,n){void 0!==n&&null!==n&&r.test(o)&&/^[\-+]?[0-9.]+$/.test(""+n)&&(n=parseInt(""+n,10)+"px"),void 0!==n&&t.css(e,o,void 0,!0)!==t.normilizeCSSValue(o,n)&&(e.style[o]=n)};if(t.isPlainObject(o)){var a=Object.keys(o),l=void 0;for(l=0;a.length>l;l+=1)s(e,t.camelCase(a[l]),o[a[l]])}else s(e,t.camelCase(o),n);return""}var c=t.fromCamelCase(o),d=e.ownerDocument,u=!!d&&(d.defaultView||d.parentWindow),p=e.style[o],f=void 0!==p&&""!==p?p:u&&!i?u.getComputedStyle(e).getPropertyValue(c):"";return r.test(o)&&/^[\-+]?[0-9.]+px$/.test(""+f)&&(f=parseInt(f,10)),t.normilizeCSSValue(o,f)},t.asArray=function(e){return Array.isArray(e)?e:[e]},t.sprintf=function(){for(var e=[],t=0;arguments.length>t;t++)e[t]=arguments[t];var o=/%%|%(\d+\$)?([-+#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g,n=e,i=0,r=n[i++],s=function(e,t,o,n){var i=t>e.length?Array(1+t-e.length>>>0).join(o):"";return n?e+i:i+e},a=function(e,t,o,n,i){var r=n-e.length;return r>0&&(e=o||!i?s(e,n," ",o):e.slice(0,t.length)+s("",r,"0",!0)+e.slice(t.length)),e},l=function(e,t,o,n,i,r,l){var c=e>>>0;o=o&&c&&{2:"0b",8:"0",16:"0x"}[t]||"";var d=o+s(c.toString(t),r||0,"0",!1);return a(d,o,n,i,l)},c=function(e,t,o,n,i){return null!=n&&(e=e.slice(0,n)),a(e,"",t,o,i)};return r.replace(o,function(e,t,o,r,d,u,p){if("%%"==e)return"%";for(var f=!1,h="",m=!1,v=!1,g=0;o&&o.length>g;g++)switch(o.charAt(g)){case" ":h=" ";break;case"+":h="+";break;case"-":f=!0;break;case"0":m=!0;break;case"#":v=!0}if(r=r?"*"===r?+n[i++]:"*"===(""+r)[0]?+n[(""+r).slice(1,-1)]:+r:0,0>r&&(r=-r,f=!0),!isFinite(r))throw Error("sprintf: (minimum-)width must be finite");u=u?"*"===u?+n[i++]:"*"===u[0]?+n[u.slice(1,-1)]:+u:"fFeE".indexOf(p)>-1?6:"d"==p?0:void 0;var _=t?n[t.slice(0,-1)]:n[i++];switch(p){case"s":return c(_+"",f,r,u,m);case"c":return c(String.fromCharCode(+_),f,r,u,m);case"b":return l(_,2,v,f,r,u,m);case"o":return l(_,8,v,f,r,u,m);case"x":return l(_,16,v,f,r,u,m);case"X":return l(_,16,v,f,r,u,m).toUpperCase();case"u":return l(_,10,v,f,r,u,m);case"i":case"d":var b=parseInt(""+_,10),y=0>b?"-":h;return _=y+s(Math.abs(b)+"",u,"0",!1),a(_,y,f,r,m);case"e":case"E":case"f":case"F":case"g":case"G":var b=+_,y=0>b?"-":h,w=["toExponential","toFixed","toPrecision"]["efg".indexOf(p.toLowerCase())],C=["toString","toUpperCase"]["eEfFgG".indexOf(p)%2];return _=y+Math.abs(b)[w](u),a(_,y,f,r,m)[C]();default:return e}})},t.val=function(e,t,o){var n=e.querySelector(t);return n?(o&&(n.value=o),n.value):""},t.defaultLanguage=function(e){return"auto"===e||void 0===e?document.documentElement.lang||navigator.language&&navigator.language.substr(0,2)||!!navigator.browserLanguage&&navigator.browserLanguage.substr(0,2)||"en":e},t.normalizeNode=function(e){if(e){if(e.nodeType===Node.TEXT_NODE&&null!==e.nodeValue&&e.parentNode)for(;e.nextSibling&&3==e.nextSibling.nodeType;)null!==e.nextSibling.nodeValue&&(e.nodeValue+=e.nextSibling.nodeValue),e.parentNode.removeChild(e.nextSibling);else t.normalizeNode(e.firstChild);t.normalizeNode(e.nextSibling)}},t.cleanFromWord=function(e){-1!==e.indexOf("")+7));var t="";try{var o=document.createElement("div");o.innerHTML=e;var n=[];o.firstChild&&i.Dom.all(o,function(e){switch(e.nodeType){case Node.ELEMENT_NODE:"FONT"===e.nodeName?i.Dom.unwrap(e):[].slice.call(e.attributes).forEach(function(t){-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)});break;case Node.TEXT_NODE:break;default:n.push(e)}}),n.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),t=o.innerHTML}catch(e){}return t&&(e=t),e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/