-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
cdd0619
commit 4019435
Showing
152 changed files
with
17,782 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...hTextEditor.Samples.Shared/Spillgebees.Blazor.RichTextEditor.Samples.Shared.lib.module.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,33 @@ | ||
// noinspection JSUnusedGlobalSymbols | ||
|
||
let hasBeforeStartBeenCalled = false; | ||
|
||
export function beforeWebStart() { | ||
beforeStart(); | ||
} | ||
|
||
|
||
export function beforeWebAssemblyStart() { | ||
beforeStart(); | ||
} | ||
|
||
export function beforeServerStart() { | ||
beforeStart(); | ||
} | ||
|
||
export function beforeStart() { | ||
if (hasBeforeStartBeenCalled) { | ||
return; | ||
} | ||
hasBeforeStartBeenCalled = true; | ||
|
||
window.Samples = window.Samples || {}; | ||
window.Samples.Shared = window.Samples.Shared || { | ||
highlightElement: function (content, element) { | ||
delete element.dataset.highlighted; | ||
element.textContent = content; | ||
// noinspection JSUnresolvedReference | ||
hljs.highlightElement(element); | ||
} | ||
}; | ||
} |
Oops, something went wrong.