Skip to content

Commit

Permalink
Merge pull request #4 from erinnmclaughlin/user-attributes
Browse files Browse the repository at this point in the history
User attributes
  • Loading branch information
erinnmclaughlin authored Nov 6, 2023
2 parents b414bc2 + db925ae commit cdb92f9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Tizzani.MudBlazor.HtmlEditor/MudHtmlEditor.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="html-editor html-content-wrapper @(Outlined ? "is-outlined" : "")">
<div class="html-editor html-content-wrapper @(Outlined ? "is-outlined" : "")" @attributes="UserAttributes">
<div @ref="QuillInstance.ToolbarReference">
@if (ChildContent is null)
{
Expand Down
3 changes: 3 additions & 0 deletions src/Tizzani.MudBlazor.HtmlEditor/MudHtmlEditor.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public partial class MudHtmlEditor : IDisposable
[Parameter]
public EventCallback<string> HtmlChanged { get; set; }

[Parameter]
public IDictionary<string, object?>? UserAttributes { get; set; }

public void Dispose()
{
Quill.OnTextChanged -= UpdateInput;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
<Title>$(AssemblyName)</Title>
<Authors>erinnmclaughlin</Authors>
<RepositoryUrl>https://github.com/erinnmclaughlin/MudBlazor.HtmlEditor</RepositoryUrl>
<AssemblyVersion>0.1.0.0</AssemblyVersion>
<FileVersion>0.1.0.0</FileVersion>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
8 changes: 6 additions & 2 deletions src/Tizzani.MudBlazor.HtmlEditor/wwwroot/MudHtmlEditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
}

.html-content-wrapper.is-outlined .ql-container {
border: 1px solid var(--mud-palette-lines-default);
border: 1px solid var(--mud-palette-lines-inputs);
border-top: 0;
border-bottom-left-radius: var(--mud-default-borderradius);
border-bottom-right-radius: var(--mud-default-borderradius);
}

.html-content-wrapper .ql-editor.ql-blank::before {
Expand Down Expand Up @@ -129,7 +131,9 @@

.html-editor .ql-toolbar {
border-width: 0;
border-color: var(--mud-palette-lines-default);
border-color: var(--mud-palette-lines-inputs);
border-top-left-radius: var(--mud-default-borderradius);
border-top-right-radius: var(--mud-default-borderradius);
display: flex;
}

Expand Down

0 comments on commit cdb92f9

Please sign in to comment.