|
1 | 1 | @page "/vditors" |
2 | 2 | @inject IOptionsMonitor<WebsiteOptions> WebsiteOption |
3 | 3 |
|
4 | | -<h3>@Localizer["Header"]</h3> |
5 | | -<h4>@Localizer["Tip"]</h4> |
| 4 | +<h3>@Localizer["VditorTitle"]</h3> |
| 5 | + |
| 6 | +<h4>@Localizer["VditorSubTitle"]</h4> |
6 | 7 |
|
7 | 8 | <PackageTips Name="BootstrapBlazor.Vditor" /> |
8 | 9 |
|
9 | 10 | <p>@((MarkupString)Localizer["MarkdownsNote"].Value)</p> |
10 | 11 |
|
11 | 12 | <Pre class="no-highlight">builder.Services.Configure<HubOptions>(option => option.MaximumReceiveMessageSize = null);</Pre> |
12 | 13 |
|
13 | | -<DemoBlock Title="@Localizer["NormalTitle"]" Introduction="@Localizer["NormalIntro"]" Name="Normal"> |
14 | | - <section ignore> |
15 | | - <BootstrapInputGroup> |
16 | | - <BootstrapInputGroupLabel DisplayText="Mode"></BootstrapInputGroupLabel> |
17 | | - <Segmented Value="_mode" OnValueChanged="OnModeChanged"> |
18 | | - @foreach (var item in Enum.GetValues(typeof(VditorMode)).Cast<VditorMode>()) |
19 | | - { |
20 | | - <SegmentedItem Value="@item" Text="@item.ToString()" /> |
21 | | - } |
22 | | - </Segmented> |
23 | | - </BootstrapInputGroup> |
| 14 | +<DemoBlock Title="@Localizer["BaseUsageTitle"]" Introduction="@Localizer["BaseUsageIntro"]" Name="Normal"> |
| 15 | + <section ignore class="row g-3"> |
| 16 | + <div class="col-12"> |
| 17 | + <BootstrapInputGroup> |
| 18 | + <BootstrapInputGroupLabel DisplayText="Mode"></BootstrapInputGroupLabel> |
| 19 | + <Segmented Value="_mode" OnValueChanged="OnModeChanged"> |
| 20 | + @foreach (var item in Enum.GetValues(typeof(VditorMode)).Cast<VditorMode>()) |
| 21 | + { |
| 22 | + <SegmentedItem Value="@item" Text="@item.ToString()" /> |
| 23 | + } |
| 24 | + </Segmented> |
| 25 | + </BootstrapInputGroup> |
| 26 | + </div> |
| 27 | + <div class="col-12"> |
| 28 | + <Button Text="GetValue" OnClick="OnTriggerGetValueAsync"></Button> |
| 29 | + <Button Text="InsertValue" OnClick="OnTriggerInsertValueAsync"></Button> |
| 30 | + <Button Text="GetHtml" OnClick="OnTriggerGetHtmlAsync"></Button> |
| 31 | + <Button Text="GetSelection" OnClick="OnTriggerGetSelectionAsync"></Button> |
| 32 | + <Button Text="Enable" OnClick="OnTriggerEnableAsync"></Button> |
| 33 | + <Button Text="Disable" OnClick="OnTriggerDisableAsync"></Button> |
| 34 | + <Button Text="Focus" OnClick="OnTriggerFocusAsync"></Button> |
| 35 | + <Button Text="Blur" OnClick="OnTriggerBlurAsync"></Button> |
| 36 | + </div> |
24 | 37 | </section> |
25 | 38 | <Vditor Value="@_vditorValueString" Options="_vditorOptions" @ref="_vditor" |
26 | 39 | OnRenderedAsync="OnRenderAsync" |
|
0 commit comments