-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from main @ 3071436 🚀
- Loading branch information
0 parents
commit 4cd76d2
Showing
126 changed files
with
315 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
(function () { | ||
window.QuillFunctions = { | ||
createQuill: function ( | ||
quillElement, toolBar, readOnly, | ||
placeholder, theme, formats, debugLevel, syntax) { | ||
|
||
Quill.register('modules/blotFormatter', QuillBlotFormatter.default); | ||
|
||
var options = { | ||
debug: debugLevel, | ||
modules: { | ||
syntax: syntax, | ||
toolbar: toolBar, | ||
blotFormatter: {} | ||
}, | ||
placeholder: placeholder, | ||
readOnly: readOnly, | ||
theme: theme | ||
}; | ||
|
||
if (formats) { | ||
options.formats = formats; | ||
} | ||
|
||
new Quill(quillElement, options); | ||
}, | ||
getQuillContent: function(quillElement) { | ||
return JSON.stringify(quillElement.__quill.getContents()); | ||
}, | ||
getQuillText: function(quillElement) { | ||
return quillElement.__quill.getText(); | ||
}, | ||
getQuillHTML: function(quillElement) { | ||
return quillElement.__quill.root.innerHTML; | ||
}, | ||
loadQuillContent: function(quillElement, quillContent) { | ||
content = JSON.parse(quillContent); | ||
return quillElement.__quill.setContents(content, 'api'); | ||
}, | ||
loadQuillHTMLContent: function (quillElement, quillHTMLContent) { | ||
return quillElement.__quill.root.innerHTML = quillHTMLContent; | ||
}, | ||
enableQuillEditor: function (quillElement, mode) { | ||
quillElement.__quill.enable(mode); | ||
}, | ||
insertQuillImage: function (quillElement, imageURL) { | ||
var Delta = Quill.import('delta'); | ||
editorIndex = 0; | ||
|
||
if (quillElement.__quill.getSelection() !== null) { | ||
editorIndex = quillElement.__quill.getSelection().index; | ||
} | ||
|
||
return quillElement.__quill.updateContents( | ||
new Delta() | ||
.retain(editorIndex) | ||
.insert({ image: imageURL }, | ||
{ alt: imageURL })); | ||
}, | ||
insertQuillText: function (quillElement, text) { | ||
editorIndex = 0; | ||
selectionLength = 0; | ||
|
||
if (quillElement.__quill.getSelection() !== null) { | ||
selection = quillElement.__quill.getSelection(); | ||
editorIndex = selection.index; | ||
selectionLength = selection.length; | ||
} | ||
|
||
return quillElement.__quill.deleteText(editorIndex, selectionLength) | ||
.concat(quillElement.__quill.insertText(editorIndex, text)); | ||
} | ||
}; | ||
})(); |
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,74 @@ | ||
(function () { | ||
window.QuillFunctions = { | ||
createQuill: function ( | ||
quillElement, toolBar, readOnly, | ||
placeholder, theme, formats, debugLevel, syntax) { | ||
|
||
Quill.register('modules/blotFormatter', QuillBlotFormatter.default); | ||
|
||
var options = { | ||
debug: debugLevel, | ||
modules: { | ||
syntax: syntax, | ||
toolbar: toolBar, | ||
blotFormatter: {} | ||
}, | ||
placeholder: placeholder, | ||
readOnly: readOnly, | ||
theme: theme | ||
}; | ||
|
||
if (formats) { | ||
options.formats = formats; | ||
} | ||
|
||
new Quill(quillElement, options); | ||
}, | ||
getQuillContent: function(quillElement) { | ||
return JSON.stringify(quillElement.__quill.getContents()); | ||
}, | ||
getQuillText: function(quillElement) { | ||
return quillElement.__quill.getText(); | ||
}, | ||
getQuillHTML: function(quillElement) { | ||
return quillElement.__quill.root.innerHTML; | ||
}, | ||
loadQuillContent: function(quillElement, quillContent) { | ||
content = JSON.parse(quillContent); | ||
return quillElement.__quill.setContents(content, 'api'); | ||
}, | ||
loadQuillHTMLContent: function (quillElement, quillHTMLContent) { | ||
return quillElement.__quill.root.innerHTML = quillHTMLContent; | ||
}, | ||
enableQuillEditor: function (quillElement, mode) { | ||
quillElement.__quill.enable(mode); | ||
}, | ||
insertQuillImage: function (quillElement, imageURL) { | ||
var Delta = Quill.import('delta'); | ||
editorIndex = 0; | ||
|
||
if (quillElement.__quill.getSelection() !== null) { | ||
editorIndex = quillElement.__quill.getSelection().index; | ||
} | ||
|
||
return quillElement.__quill.updateContents( | ||
new Delta() | ||
.retain(editorIndex) | ||
.insert({ image: imageURL }, | ||
{ alt: imageURL })); | ||
}, | ||
insertQuillText: function (quillElement, text) { | ||
editorIndex = 0; | ||
selectionLength = 0; | ||
|
||
if (quillElement.__quill.getSelection() !== null) { | ||
selection = quillElement.__quill.getSelection(); | ||
editorIndex = selection.index; | ||
selectionLength = selection.length; | ||
} | ||
|
||
return quillElement.__quill.deleteText(editorIndex, selectionLength) | ||
.concat(quillElement.__quill.insertText(editorIndex, text)); | ||
} | ||
}; | ||
})(); |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.39 KB
_framework/Microsoft.Extensions.DependencyInjection.Abstractions.dll.br
Binary file not shown.
Binary file added
BIN
+4.87 KB
_framework/Microsoft.Extensions.DependencyInjection.Abstractions.dll.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"cacheBootResources": true, | ||
"config": [ ], | ||
"debugBuild": false, | ||
"entryAssembly": "TextEditorDemo", | ||
"icuDataMode": 0, | ||
"linkerEnabled": true, | ||
"resources": { | ||
"assembly": { | ||
"Blazored.TextEditor.dll": "sha256-EgVcic4zS4BALoMMPI6zokWu2+gEFdkkAGDcJ3G+R38=", | ||
"Microsoft.AspNetCore.Components.dll": "sha256-pC73HiTmnAKg6LxOUsJBQp8xCVpyOrMFHeonZoaQQhc=", | ||
"Microsoft.AspNetCore.Components.Web.dll": "sha256-U+RlVz9NWHEehvemeq3x+gM+U\/rKAuis+P2VF\/jvDXc=", | ||
"Microsoft.AspNetCore.Components.WebAssembly.dll": "sha256-XCOctJUd08gOiPYVc+oS9bvDR1mMNjAxF7kQ69WHPL8=", | ||
"Microsoft.Extensions.Configuration.Abstractions.dll": "sha256-X\/f4fDl2cuIRXeWHhK\/f2UqQbFioD+RU4a4CEh0zrrQ=", | ||
"Microsoft.Extensions.Configuration.dll": "sha256-DBOKSPriP2JDxVbbWrLXyD3K4\/x3RBifNBWk\/q1I39M=", | ||
"Microsoft.Extensions.Configuration.Json.dll": "sha256-Q5AqJneA2TZnzC0IYzBx6j\/tHRhWAeMbpH3BsV7KgWg=", | ||
"Microsoft.Extensions.DependencyInjection.Abstractions.dll": "sha256-7ni+nO8H2QxkXyRXRureFzJc0Tr5aT45TAYcdlgpmwQ=", | ||
"Microsoft.Extensions.DependencyInjection.dll": "sha256-qi0kE7rp0kdsNqdL6DyPZEeimjUGvcLT4iWQX0YnRus=", | ||
"Microsoft.Extensions.Logging.Abstractions.dll": "sha256-Hk+Op\/2l4FOzMdkD+rOCWVwFQ6lTsWYTK+FvYTHiKNM=", | ||
"Microsoft.Extensions.Logging.dll": "sha256-RJE660TEC1wm3MyL1EXQfTQB1qK+JWy1efVUxI8nNUo=", | ||
"Microsoft.Extensions.Options.dll": "sha256-WPBQk7rt2p4aMEo2pTp1sBpsiWdE8MmWuIYq+zl1ceo=", | ||
"Microsoft.Extensions.Primitives.dll": "sha256-eXvGx2jcjpTPEJoAHBsW\/VuMPbNyyU+AsuhPmkzSSRY=", | ||
"Microsoft.JSInterop.dll": "sha256-ItOJwPiiU8GcYyhBlqjO8McWwYOiFPTrl7mawLB4kek=", | ||
"Microsoft.JSInterop.WebAssembly.dll": "sha256-Fibw4jtnMD0se9VIfLv5hPcrbAm7ipCW+RN8CfPIDkY=", | ||
"netstandard.dll": "sha256-i8nd1apkAKnEtNSK9\/L0FnhIN6LoYF9h4r2HBJOQkQE=", | ||
"System.Collections.Concurrent.dll": "sha256-gCWUPrsQ850DlPqMvuobxnZzPlvwN6d5zMk9LEX83d4=", | ||
"System.Collections.dll": "sha256-rf4OM\/SkjcJV6aMvg3QCqcGlR0LMT4zyLTWNhHiMut4=", | ||
"System.ComponentModel.dll": "sha256-7vcDBo\/3bcYI\/CjzxGeFgD2a7r2TJ0a+atwSTcxZv\/E=", | ||
"System.Memory.dll": "sha256-NYdInsTzDaKdk4uq46a0o94ld6TltVbEy5tyrfGjKcM=", | ||
"System.Net.Http.dll": "sha256-U4mXV6S98jmJJ\/jmIIFaC9Ys\/epLK2WNsYd\/lb+mhts=", | ||
"System.Net.Primitives.dll": "sha256-DXFvFAF\/jlQzrnuYqcfhcWNo2EyDOJsXDuX51KCVBrM=", | ||
"System.Private.CoreLib.dll": "sha256-6d\/7rxw1zsd4KIVr18wdWZy19bUt4nOZ4ePPKXIcFNE=", | ||
"System.Private.Uri.dll": "sha256-jP4RJsiw8uvdxisPti0S5SEW9+INLiVuRTFMBpNVtQU=", | ||
"System.Runtime.dll": "sha256-5Y7m+oYQ\/Zzrda82HkK9Cr5u4fVUV1WIFA4E7lmGA6E=", | ||
"System.Runtime.InteropServices.JavaScript.dll": "sha256-GsQhPnkD5xYv9yvShAA1f+My0npK0EqqQk\/jEbNyHBE=", | ||
"System.Text.Encodings.Web.dll": "sha256-kVB4lTg+oQyav\/B+6jgQckSkCqypLtSdieUtX9C97v0=", | ||
"System.Text.Json.dll": "sha256-2AHQLCAx1SIsYjXVNLFztuVfofuo7FnJ\/SabaxHTKmM=", | ||
"System.Threading.Tasks.Extensions.dll": "sha256-IN3X560+eBdi\/fUVIo2gAMVgM4\/b3fGP6trCNYiAIDg=", | ||
"TextEditorDemo.dll": "sha256-2p8D2zBgDz9ubVkiLgwPHSAYbBY\/9VtGUzZJ\/gSjVqc=" | ||
}, | ||
"extensions": null, | ||
"lazyAssembly": null, | ||
"libraryInitializers": null, | ||
"pdb": null, | ||
"runtime": { | ||
"dotnet.7.0.20.dwptlzpfyy.js": "sha256-eaJTmow4t8eE7FZMZR5Ja41JMOefGCbIYDTdpclGsac=", | ||
"dotnet.timezones.blat": "sha256-gbATD5HDsHYtW8vdPYh9iSBY4O5CjvMeCSF5xXWF1xo=", | ||
"dotnet.wasm": "sha256-2P6rVlE+GN7v\/KBZsI\/zwouhfpV38+1lEl5FMslgb4A=", | ||
"icudt_CJK.dat": "sha256-SZLtQnRc0JkwqHab0VUVP7T3uBPSeYzxzDnpxPpUnHk=", | ||
"icudt_EFIGS.dat": "sha256-8fItetYY8kQ0ww6oxwTLiT3oXlBwHKumbeP2pRF4yTc=", | ||
"icudt_no_CJK.dat": "sha256-L7sV7NEYP37\/Qr2FPCePo5cJqRgTXRwGHuwF5Q+0Nfs=", | ||
"icudt.dat": "sha256-tO5O5YzMTVSaKBboxAqezOQL9ewmupzV2JrB5Rkc8a4=" | ||
}, | ||
"runtimeAssets": { | ||
"dotnet.wasm": { | ||
"behavior": "dotnetwasm", | ||
"hash": "sha256-2P6rVlE+GN7v\/KBZsI\/zwouhfpV38+1lEl5FMslgb4A=" | ||
} | ||
}, | ||
"satelliteResources": null | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.