Merge pull request #935 from hishamco/localize-RTE
Localize RichTextEditor Component
This commit is contained in:
commit
8311d01f32
@ -1,5 +1,6 @@
|
|||||||
@namespace Oqtane.Modules.Controls
|
@namespace Oqtane.Modules.Controls
|
||||||
@inherits ModuleControlBase
|
@inherits ModuleControlBase
|
||||||
|
@inject IStringLocalizer<RichTextEditor> Localizer
|
||||||
|
|
||||||
<div class="row" style="margin-bottom: 50px;">
|
<div class="row" style="margin-bottom: 50px;">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@ -12,12 +13,12 @@
|
|||||||
<br />
|
<br />
|
||||||
}
|
}
|
||||||
<div class="row justify-content-center" style="margin-bottom: 20px;">
|
<div class="row justify-content-center" style="margin-bottom: 20px;">
|
||||||
<button type="button" class="btn btn-secondary" @onclick="RefreshRichText">Synchronize Content</button>
|
<button type="button" class="btn btn-secondary" @onclick="RefreshRichText">@Localizer["Synchronize Content"]</button>
|
||||||
<button type="button" class="btn btn-primary" @onclick="InsertImage">Insert Image</button>
|
<button type="button" class="btn btn-primary" @onclick="InsertImage">@Localizer["Insert Image"]</button>
|
||||||
@if (_filemanagervisible)
|
@if (_filemanagervisible)
|
||||||
{
|
{
|
||||||
@((MarkupString)" ")
|
@((MarkupString)" ")
|
||||||
<button type="button" class="btn btn-secondary" @onclick="CloseFileManager">Close</button>
|
<button type="button" class="btn btn-secondary" @onclick="CloseFileManager">@Localizer["Close"]</button>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -61,9 +62,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
<TabPanel Name="Raw" Heading="Raw HTML Editor">
|
<TabPanel Name="Raw" Heading="Raw HTML Editor" ResourceKey="HtmlEditor">
|
||||||
<div class="row justify-content-center" style="margin-bottom: 20px;">
|
<div class="row justify-content-center" style="margin-bottom: 20px;">
|
||||||
<button type="button" class="btn btn-secondary" @onclick="RefreshRawHtml">Synchronize Content</button>
|
<button type="button" class="btn btn-secondary" @onclick="RefreshRawHtml">@Localizer["Synchronize Content"]</button>
|
||||||
</div>
|
</div>
|
||||||
@if (ReadOnly)
|
@if (ReadOnly)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user