Permalink
Browse files

chore(release): Build Dist files

1 parent c9b778a commit c56eae532c5c232c650e2e5974202c95594655cc @JoelParke JoelParke committed Dec 5, 2016
Showing with 21 additions and 25 deletions.
  1. +1 −1 demo/demo.html
  2. +1 −1 demo/static-demo.html
  3. +6 −7 dist/textAngular.js
  4. +6 −8 dist/textAngular.min.js
  5. +6 −7 dist/textAngular.umd.js
  6. +1 −1 src/globals.js
View
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
- <title>textAngular 1.5.15 Demo</title>
+ <title>textAngular 1.5.16 Demo</title>
<meta name="robots" content="noindex">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel='stylesheet' href='../bower_components/font-awesome/css/font-awesome.css'>
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
- <title>textAngular 1.5.15 Demo</title>
+ <title>textAngular 1.5.16 Demo</title>
<meta name="robots" content="noindex">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel='stylesheet prefetch' href='../bower_components/font-awesome/css/font-awesome.css'>
View
@@ -2,7 +2,7 @@
@license textAngular
Author : Austin Anderson
License : 2013 MIT
-Version 1.5.15
+Version 1.5.16
See README.md or https://github.com/fraywing/textAngular/wiki for requirements and use.
*/
@@ -13,7 +13,7 @@ Commonjs package manager support (eg componentjs).
"use strict";// NOTE: textAngularVersion must match the Gruntfile.js 'setVersion' task.... and have format v/d+./d+./d+
-var textAngularVersion = 'v1.5.15'; // This is automatically updated during the build process to the current release!
+var textAngularVersion = 'v1.5.16'; // This is automatically updated during the build process to the current release!
// IE version detection - http://stackoverflow.com/questions/4169160/javascript-ie-detection-why-not-use-simple-conditional-comments
@@ -271,11 +271,8 @@ angular.module('textAngular.factories', [])
/////////////////////////////////////////////////////////////
if (!keepStyles) {
while (match = betterSpanMatch.exec(html)) {
- //console.log('matched string:', match[0], 'before:', html.substring(lastIndex, match.index-1));
- finalHtml += html.substring(lastIndex, match.index - 1);
- lastIndex += match.index;
+ finalHtml += html.substring(lastIndex, match.index-1);
styleVal = match[0];
- lastIndex += match[0].length;
// test for chrome inserted junk
match = /font-family: inherit;|line-height: 1.[0-9]{3,12};|color: inherit; line-height: 1.1;|color: rgb\(\d{1,3}, \d{1,3}, \d{1,3}\);|background-color: rgb\(\d{1,3}, \d{1,3}, \d{1,3}\);/gi.exec(styleVal);
if (match) {
@@ -287,14 +284,16 @@ angular.module('textAngular.factories', [])
} else {
finalHtml += ' ' + styleVal;
}
+ lastIndex = betterSpanMatch.lastIndex;
}
finalHtml += html.substring(lastIndex);
}
//console.log('final:', finalHtml);
// only replace when something has changed, else we get focus problems on inserting lists
if(lastIndex > 0){
// replace all empty strings
- return finalHtml.replace(/<span\s?>(.*?)<\/span>(<br(\/|)>|)/ig, '$1');
+ var fe = finalHtml.replace(/<span\s?>(.*?)<\/span>(<br(\/|)>|)/ig, '$1');
+ return fe;
} else return html;
};
return taFixChrome;
@@ -301,7 +301,7 @@ var a=this.$editor().displayElements.text,b=a[0].innerText||a[0].textContent,c=b
//Set current scope
//Set editor scope
return this.charcount=c,this.$editor().charcount=c,!1}})}]);// NOTE: textAngularVersion must match the Gruntfile.js 'setVersion' task.... and have format v/d+./d+./d+
-var f="v1.5.15",g={ie:function(){for(var a,b=3,c=document.createElement("div"),d=c.getElementsByTagName("i");c.innerHTML="<!--[if gt IE "+ ++b+"]><i></i><![endif]-->",d[0];);return b>4?b:a}(),webkit:/AppleWebKit\/([\d.]+)/i.test(navigator.userAgent),isFirefox:navigator.userAgent.toLowerCase().indexOf("firefox")>-1},h=h||{};/* istanbul ignore next: untestable browser check */
+var f="v1.5.16",g={ie:function(){for(var a,b=3,c=document.createElement("div"),d=c.getElementsByTagName("i");c.innerHTML="<!--[if gt IE "+ ++b+"]><i></i><![endif]-->",d[0];);return b>4?b:a}(),webkit:/AppleWebKit\/([\d.]+)/i.test(navigator.userAgent),isFirefox:navigator.userAgent.toLowerCase().indexOf("firefox")>-1},h=h||{};/* istanbul ignore next: untestable browser check */
h.now=function(){return h.now||h.mozNow||h.msNow||h.oNow||h.webkitNow||function(){return(new Date).getTime()}}();
// Global to textAngular REGEXP vars for block and list elements.
var i=/^(address|article|aside|audio|blockquote|canvas|center|dd|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|noscript|ol|output|p|pre|section|table|tfoot|ul|video)$/i,j=/^(ul|li|ol)$/i,k=/^(#text|span|address|article|aside|audio|blockquote|canvas|center|dd|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|noscript|ol|output|p|pre|section|table|tfoot|ul|video|li)$/i;
@@ -365,18 +365,16 @@ var c,d,e,f=/style\s?=\s?(["'])(?:(?=(\\?))\2.)*?\1/gi,g=/<span class="Apple-con
if(/* istanbul ignore next: apple-contereted-space span has matched */
i&&(
// modified....
-h+=a.substring(i),a=h,h="",i=0),!b){for(;c=f.exec(a);)
-//console.log('matched string:', match[0], 'before:', html.substring(lastIndex, match.index-1));
-h+=a.substring(i,c.index-1),i+=c.index,d=c[0],i+=c[0].length,
+h+=a.substring(i),a=h,h="",i=0),!b){for(;c=f.exec(a);)h+=a.substring(i,c.index-1),d=c[0],
// test for chrome inserted junk
c=/font-family: inherit;|line-height: 1.[0-9]{3,12};|color: inherit; line-height: 1.1;|color: rgb\(\d{1,3}, \d{1,3}, \d{1,3}\);|background-color: rgb\(\d{1,3}, \d{1,3}, \d{1,3}\);/gi.exec(d),c?(d=d.replace(/( |)font-family: inherit;|( |)line-height: 1.[0-9]{3,12};|( |)color: inherit;|( |)color: rgb\(\d{1,3}, \d{1,3}, \d{1,3}\);|( |)background-color: rgb\(\d{1,3}, \d{1,3}, \d{1,3}\);/gi,""),
//console.log(styleVal, styleVal.length);
-d.length>8&&(h+=" "+d)):h+=" "+d;h+=a.substring(i)}
+d.length>8&&(h+=" "+d)):h+=" "+d,i=f.lastIndex;h+=a.substring(i)}
//console.log('final:', finalHtml);
// only replace when something has changed, else we get focus problems on inserting lists
-//console.log('final:', finalHtml);
-// only replace when something has changed, else we get focus problems on inserting lists
-return i>0?h.replace(/<span\s?>(.*?)<\/span>(<br(\/|)>|)/gi,"$1"):a};return a}).factory("taSanitize",["$sanitize",function(a){function b(a,b){for(var c,d=0,e=0,f=/<[^>]*>/gi;c=f.exec(a);)if(e=c.index,"/"===c[0].substr(1,1)){if(0===d)break;d--}else d++;
+if(i>0){
+// replace all empty strings
+var j=h.replace(/<span\s?>(.*?)<\/span>(<br(\/|)>|)/gi,"$1");return j}return a};return a}).factory("taSanitize",["$sanitize",function(a){function b(a,b){for(var c,d=0,e=0,f=/<[^>]*>/gi;c=f.exec(a);)if(e=c.index,"/"===c[0].substr(1,1)){if(0===d)break;d--}else d++;
// get the start tags reversed - this is safe as we construct the strings with no content except the tags
return b+a.substring(0,e)+angular.element(b)[0].outerHTML.substring(b.length)+a.substring(e)}function c(a){if(!a||!angular.isString(a)||a.length<=0)return a;for(var d,f,g,h,i,k,l=/<([^>\/]+?)style=("([^"]+)"|'([^']+)')([^>]*)>/gi,m="",n="",o=0;f=l.exec(a);){
// one of the quoted values ' or "
@@ -1032,7 +1032,7 @@ angular.module('textAngularSetup', [])
@license textAngular
Author : Austin Anderson
License : 2013 MIT
-Version 1.5.15
+Version 1.5.16
See README.md or https://github.com/fraywing/textAngular/wiki for requirements and use.
*/
@@ -1043,7 +1043,7 @@ Commonjs package manager support (eg componentjs).
"use strict";// NOTE: textAngularVersion must match the Gruntfile.js 'setVersion' task.... and have format v/d+./d+./d+
-var textAngularVersion = 'v1.5.15'; // This is automatically updated during the build process to the current release!
+var textAngularVersion = 'v1.5.16'; // This is automatically updated during the build process to the current release!
// IE version detection - http://stackoverflow.com/questions/4169160/javascript-ie-detection-why-not-use-simple-conditional-comments
@@ -1301,11 +1301,8 @@ angular.module('textAngular.factories', [])
/////////////////////////////////////////////////////////////
if (!keepStyles) {
while (match = betterSpanMatch.exec(html)) {
- //console.log('matched string:', match[0], 'before:', html.substring(lastIndex, match.index-1));
- finalHtml += html.substring(lastIndex, match.index - 1);
- lastIndex += match.index;
+ finalHtml += html.substring(lastIndex, match.index-1);
styleVal = match[0];
- lastIndex += match[0].length;
// test for chrome inserted junk
match = /font-family: inherit;|line-height: 1.[0-9]{3,12};|color: inherit; line-height: 1.1;|color: rgb\(\d{1,3}, \d{1,3}, \d{1,3}\);|background-color: rgb\(\d{1,3}, \d{1,3}, \d{1,3}\);/gi.exec(styleVal);
if (match) {
@@ -1317,14 +1314,16 @@ angular.module('textAngular.factories', [])
} else {
finalHtml += ' ' + styleVal;
}
+ lastIndex = betterSpanMatch.lastIndex;
}
finalHtml += html.substring(lastIndex);
}
//console.log('final:', finalHtml);
// only replace when something has changed, else we get focus problems on inserting lists
if(lastIndex > 0){
// replace all empty strings
- return finalHtml.replace(/<span\s?>(.*?)<\/span>(<br(\/|)>|)/ig, '$1');
+ var fe = finalHtml.replace(/<span\s?>(.*?)<\/span>(<br(\/|)>|)/ig, '$1');
+ return fe;
} else return html;
};
return taFixChrome;
View
@@ -1,5 +1,5 @@
// NOTE: textAngularVersion must match the Gruntfile.js 'setVersion' task.... and have format v/d+./d+./d+
-var textAngularVersion = 'v1.5.15'; // This is automatically updated during the build process to the current release!
+var textAngularVersion = 'v1.5.16'; // This is automatically updated during the build process to the current release!
// IE version detection - http://stackoverflow.com/questions/4169160/javascript-ie-detection-why-not-use-simple-conditional-comments

0 comments on commit c56eae5

Please sign in to comment.