-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
8,063 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
263 changes: 117 additions & 146 deletions
263
MetaMomentum.UmbracoV10/App_Plugins/MetaMomentum/editorView.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
MetaMomentum.UmbracoV10/App_Plugins/MetaMomentum/stripHtml.filter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* @description | ||
* removes html tags from HTML string to produce only text. Additional "stripLineBreaks" parameter will remove all line breaks as well | ||
*/ | ||
|
||
(function () { | ||
'use strict'; | ||
|
||
function momentumStripHtml() { | ||
return function (htmlString, stripLineBreaks) { | ||
|
||
if (!Utilities.isString(htmlString)) { | ||
return ""; | ||
} | ||
|
||
if (Utilities.isUndefined(htmlString)) { | ||
return ""; | ||
} | ||
|
||
|
||
var retVal = String(htmlString).replace(/<[^>]+>/gm, ''); | ||
if (stripLineBreaks) { | ||
retVal = retVal.replace(/\r?\n|\r/g, ' '); //replace line break with a space | ||
} | ||
|
||
return retVal; | ||
}; | ||
} | ||
|
||
angular.module('umbraco.filters').filter('momentumStripHtml', momentumStripHtml); | ||
|
||
})(); |
5 changes: 5 additions & 0 deletions
5
MetaMomentum.UmbracoV10/App_Plugins/MetaMomentum/uui-loader.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if (typeof uui === 'undefined') { | ||
var script = document.createElement('script'); | ||
script.src = "https://cdn.jsdelivr.net/npm/@umbraco-ui/uui@latest/dist/uui.min.js"; | ||
document.head.appendChild(script); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
C:\Users\david\AppData\Local\Temp\Temporary ASP.NET Files\vs\612bcd59\7ae4fdd\App_Web_all.generated.cs.8f9494c4.r-pnlrz1.dll | ||
C:\Users\david\AppData\Local\Temp\Temporary ASP.NET Files\vs\612bcd59\7ae4fdd\App_Web_all.generated.cs.8f9494c4.lfsezqvu.dll |
Binary file not shown.
Binary file added
BIN
+10.6 KB
MetaMomentum.UmbracoV8/Media/created-packages/Meta_Momentum_2.2.0.zip
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.