use summernote instead

This commit is contained in:
Kukks 2019-01-08 13:52:30 +01:00
parent ca28c34be0
commit bffc2e70c1
12 changed files with 7591 additions and 6 deletions

View file

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
@ -127,6 +127,7 @@
<Folder Include="Build\" />
<Folder Include="wwwroot\vendor\clipboard.js\" />
<Folder Include="wwwroot\vendor\highlightjs\" />
<Folder Include="wwwroot\vendor\summernote" />
</ItemGroup>
<ItemGroup>

View file

@ -101,7 +101,7 @@
"outputFileName": "wwwroot/bundles/crowdfund-admin-bundle.min.js",
"inputFiles": [
"wwwroot/vendor/highlightjs/highlight.min.js",
"wwwroot/vendor/richtext/jquery.richtext.min.js",
"wwwroot/vendor/summernote/summernote-bs4.js",
"wwwroot/vendor/flatpickr/flatpickr.js",
"wwwroot/crowdfund-admin/**/*.js",
"wwwroot/products/js/products.js",
@ -112,7 +112,7 @@
"outputFileName": "wwwroot/bundles/crowdfund-admin-bundle.min.css",
"inputFiles": [
"wwwroot/vendor/highlightjs/default.min.css",
"wwwroot/vendor/richtext/richtext.min.css",
"wwwroot/vendor/summernote/summernote-bs4.css",
"wwwroot/vendor/flatpickr/flatpickr.min.css",
"wwwroot/crowdfund-admin/**/*.js"
]

View file

@ -1,6 +1,7 @@
hljs.initHighlightingOnLoad();
$(document).ready(function() {
$(".richtext").richText();
$(".richtext").summernote();
$(".datetime").flatpickr({
enableTime: true
});

View file

@ -124,6 +124,13 @@ addLoadEvent(function (ev) {
result.push(newItem);
}
for (var i = 0; i < result.length; i++) {
if(result.label.endsWith("LIGHTNINGLIKE")){
result.label = result.label.substr(0,result.label.findIndex("LIGHTNINGLIKE"));
result.lightning = true;
}
}
return result;
}
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long