Skip to content

Commit

Permalink
Merge pull request #4009 from sbwalker/dev
Browse files Browse the repository at this point in the history
Remove Synchronize Content option from RichTextEditor
  • Loading branch information
sbwalker authored Mar 17, 2024
2 parents cd9f2ab + fa68bdc commit ce71013
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
20 changes: 0 additions & 20 deletions Oqtane.Client/Modules/Controls/RichTextEditor.razor
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
<br />
}
<div class="d-flex justify-content-center mb-2">
@if (AllowRawHtml)
{
<button type="button" class="btn btn-secondary" @onclick="RefreshRichText">@Localizer["SynchronizeContent"]</button>

@((MarkupString)"&nbsp;&nbsp;")
}
@if (AllowFileManagement)
{
<button type="button" class="btn btn-primary" @onclick="InsertRichImage">@Localizer["InsertImage"]</button>
Expand Down Expand Up @@ -85,7 +79,6 @@
<br />
}
<div class="d-flex justify-content-center mb-2">
<button type="button" class="btn btn-secondary" @onclick="RefreshRawHtml">@Localizer["SynchronizeContent"]</button>&nbsp;&nbsp;
@if (AllowFileManagement)
{
<button type="button" class="btn btn-primary" @onclick="InsertRawImage">@Localizer["InsertImage"]</button>
Expand Down Expand Up @@ -208,19 +201,6 @@
StateHasChanged();
}

public void RefreshRichText()
{
_richhtml = _rawhtml;
StateHasChanged();
}

public async Task RefreshRawHtml()
{
var interop = new RichTextEditorInterop(JSRuntime);
_rawhtml = await interop.GetHtml(_editorElement);
StateHasChanged();
}

public async Task<string> GetHtml()
{
// evaluate raw html content as first priority
Expand Down
3 changes: 0 additions & 3 deletions Oqtane.Client/Resources/Modules/Controls/RichTextEditor.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="SynchronizeContent" xml:space="preserve">
<value>Synchronize Content</value>
</data>
<data name="InsertImage" xml:space="preserve">
<value>Insert Image</value>
</data>
Expand Down

0 comments on commit ce71013

Please sign in to comment.