Remove Synchronize Content option from RichTextEditor
This commit is contained in:
parent
cd9f2ab232
commit
fa68bdc82b
|
@ -17,12 +17,6 @@
|
||||||
<br />
|
<br />
|
||||||
}
|
}
|
||||||
<div class="d-flex justify-content-center mb-2">
|
<div class="d-flex justify-content-center mb-2">
|
||||||
@if (AllowRawHtml)
|
|
||||||
{
|
|
||||||
<button type="button" class="btn btn-secondary" @onclick="RefreshRichText">@Localizer["SynchronizeContent"]</button>
|
|
||||||
|
|
||||||
@((MarkupString)" ")
|
|
||||||
}
|
|
||||||
@if (AllowFileManagement)
|
@if (AllowFileManagement)
|
||||||
{
|
{
|
||||||
<button type="button" class="btn btn-primary" @onclick="InsertRichImage">@Localizer["InsertImage"]</button>
|
<button type="button" class="btn btn-primary" @onclick="InsertRichImage">@Localizer["InsertImage"]</button>
|
||||||
|
@ -85,7 +79,6 @@
|
||||||
<br />
|
<br />
|
||||||
}
|
}
|
||||||
<div class="d-flex justify-content-center mb-2">
|
<div class="d-flex justify-content-center mb-2">
|
||||||
<button type="button" class="btn btn-secondary" @onclick="RefreshRawHtml">@Localizer["SynchronizeContent"]</button>
|
|
||||||
@if (AllowFileManagement)
|
@if (AllowFileManagement)
|
||||||
{
|
{
|
||||||
<button type="button" class="btn btn-primary" @onclick="InsertRawImage">@Localizer["InsertImage"]</button>
|
<button type="button" class="btn btn-primary" @onclick="InsertRawImage">@Localizer["InsertImage"]</button>
|
||||||
|
@ -208,19 +201,6 @@
|
||||||
StateHasChanged();
|
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()
|
public async Task<string> GetHtml()
|
||||||
{
|
{
|
||||||
// evaluate raw html content as first priority
|
// evaluate raw html content as first priority
|
||||||
|
|
|
@ -117,9 +117,6 @@
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<data name="SynchronizeContent" xml:space="preserve">
|
|
||||||
<value>Synchronize Content</value>
|
|
||||||
</data>
|
|
||||||
<data name="InsertImage" xml:space="preserve">
|
<data name="InsertImage" xml:space="preserve">
|
||||||
<value>Insert Image</value>
|
<value>Insert Image</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user