From 6a9ba765a07d9cacf345f7583fda2082632aabf8 Mon Sep 17 00:00:00 2001 From: Jcparkyn <51850908+Jcparkyn@users.noreply.github.com> Date: Tue, 21 Jul 2020 17:05:35 +1000 Subject: [PATCH 1/7] Add ContentEditableDiv --- .../Components/ContentEditableDiv.razor | 42 ++++++++++++ Nodexr/wwwroot/index.html | 1 + Nodexr/wwwroot/js/ContentEditable.js | 66 +++++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 Nodexr/Shared/Components/ContentEditableDiv.razor create mode 100644 Nodexr/wwwroot/js/ContentEditable.js diff --git a/Nodexr/Shared/Components/ContentEditableDiv.razor b/Nodexr/Shared/Components/ContentEditableDiv.razor new file mode 100644 index 00000000..ba531023 --- /dev/null +++ b/Nodexr/Shared/Components/ContentEditableDiv.razor @@ -0,0 +1,42 @@ +@inject IJSRuntime JS; + +
+ +@code { + + [Parameter] + public string Text { get; set; } + + [Parameter] + public string CssClass { get; set; } + + [Parameter] + public EventCallback