|
16 | 16 | <PackageTips Name="BootstrapBlazor.SummerNote" /> |
17 | 17 |
|
18 | 18 | <DemoBlock Title="@Localizer["EditorNormalTitle"]" Introduction="@Localizer["EditorNormalIntro"]" Name="Normal"> |
19 | | - <p>@((MarkupString)Localizer["EditorNormalDescription"].Value)</p> |
20 | | - <div class="form-control mb-3">@((MarkupString)Localizer["EditorNormalDiv"].Value)</div> |
| 19 | + <section ignore> |
| 20 | + <p>@((MarkupString)Localizer["EditorNormalDescription"].Value)</p> |
| 21 | + <div class="form-control mb-3">@((MarkupString)Localizer["EditorNormalDiv"].Value)</div> |
| 22 | + </section> |
21 | 23 | <Editor /> |
22 | 24 | </DemoBlock> |
23 | 25 |
|
24 | 26 | <DemoBlock Title="@Localizer["EditorSubmitTitle"]" Introduction="@Localizer["EditorSubmitIntro"]" Name="Submit"> |
25 | | - <p>@((MarkupString)Localizer["EditorSubmitDescription"].Value)</p> |
26 | | - <Button Text="@ButtonText" OnClick="ShowSubmit" class="mb-3"></Button> |
| 27 | + <section ignore> |
| 28 | + <p>@((MarkupString)Localizer["EditorSubmitDescription"].Value)</p> |
| 29 | + <Button Text="@ButtonText" OnClick="ShowSubmit" class="mb-3"></Button> |
| 30 | + <textarea class="form-control mt-3">@EditorValue</textarea> |
| 31 | + </section> |
27 | 32 | <Editor @bind-Value="@EditorValue" IsEditor="true" ShowSubmit="ShowSubmitButton" /> |
28 | | - <textarea class="form-control mt-3">@EditorValue</textarea> |
29 | 33 | </DemoBlock> |
30 | 34 |
|
31 | 35 | <DemoBlock Title="@Localizer["EditorPlaceholderTitle"]" Introduction="@Localizer["EditorPlaceholderIntro"]" Name="Placeholder"> |
32 | | - <p>@((MarkupString)Localizer["EditorPlaceholderDescription"].Value)</p> |
| 36 | + <section ignore>@((MarkupString)Localizer["EditorPlaceholderDescription"].Value)</section> |
33 | 37 | <Editor PlaceHolder="@Localizer["EditorEmptyPlaceholder"]" /> |
34 | 38 | </DemoBlock> |
35 | 39 |
|
|
42 | 46 | </DemoBlock> |
43 | 47 |
|
44 | 48 | <DemoBlock Title="@Localizer["EditorOnValueChangedTitle"]" Introduction="@Localizer["EditorOnValueChangedIntro"]" Name="OnValueChanged"> |
45 | | - <p>@((MarkupString)Localizer["EditorOnValueChangedDescription"].Value)</p> |
| 49 | + <section ignore>@((MarkupString)Localizer["EditorOnValueChangedDescription"].Value)</section> |
46 | 50 | <Editor @bind-Value="@ValueChangedValue" /> |
47 | | - |
48 | | - <label class="form-label mt-3">@Localizer["EditorOnValueChangedLabel"]</label> |
49 | | - <textarea class="form-control mt-3">@ValueChangedValue</textarea> |
50 | | - <div class="mt-3"> |
51 | | - <Button OnClick="SetValue">Reset</Button> |
52 | | - </div> |
| 51 | + <section ignore> |
| 52 | + <label class="form-label mt-3">@Localizer["EditorOnValueChangedLabel"]</label> |
| 53 | + <textarea class="form-control mt-3">@ValueChangedValue</textarea> |
| 54 | + <div class="mt-3"> |
| 55 | + <Button OnClick="SetValue">Reset</Button> |
| 56 | + </div> |
| 57 | + </section> |
53 | 58 | </DemoBlock> |
54 | 59 |
|
55 | 60 | <DemoBlock Title="@Localizer["EditorCustomerToolbarButtonsTitle"]" Introduction="@Localizer["EditorCustomerToolbarButtonsIntro"]" Name="CustomerToolbarButtons"> |
56 | | - <p>@((MarkupString)Localizer["EditorCustomerToolbarButtonsDescription"].Value)</p> |
| 61 | + <section ignore>@((MarkupString)Localizer["EditorCustomerToolbarButtonsDescription"].Value)</section> |
57 | 62 | <Editor IsEditor="true" OnClickButton="@PluginClick" CustomerToolbarButtons="@EditorPluginItems" /> |
58 | 63 | </DemoBlock> |
59 | 64 |
|
60 | 65 | <DemoBlock Title="@Localizer["EditorToolbarItemsTitle"]" Introduction="@Localizer["EditorToolbarItemsIntro"]" Name="ToolbarItems"> |
61 | | - <p>@((MarkupString)Localizer["EditorToolbarItemsDescription"].Value)</p> |
| 66 | + <section ignore>@((MarkupString)Localizer["EditorToolbarItemsDescription"].Value)</section> |
62 | 67 | <Editor IsEditor="true" ToolbarItems="@ToolbarItems" /> |
63 | 68 | </DemoBlock> |
64 | 69 |
|
65 | | -<DemoBlock Title="@Localizer["DoMethodAsync"]" Introduction="@Localizer["DoMethodAsyncIntro"]" Name="DoMethodAsync"> |
66 | | - <p>@((MarkupString)Localizer["DoMethodAsyncDescription"].Value)</p> |
| 70 | +<DemoBlock Title="@Localizer["DoMethodAsyncTitle"]" Introduction="@Localizer["DoMethodAsyncIntro"]" Name="DoMethodAsync"> |
| 71 | + <section ignore>@((MarkupString)Localizer["DoMethodAsyncDescription"].Value)</section> |
67 | 72 | <Editor IsEditor="true" @ref="Editor" /> |
68 | | - <div class="mt-3"> |
| 73 | + <section ignore class="mt-3"> |
69 | 74 | <Button OnClick="InsertHtmlAsync">@Localizer["DoMethodAsyncButton1"]</Button> |
70 | 75 | <Button OnClick="@(async () => await Editor.DoMethodAsync("formatH2", ""))">@Localizer["DoMethodAsyncButton2"]</Button> |
71 | 76 | <Button OnClick="@(async () => await Editor.DoMethodAsync("insertImage", "https://www.blazor.zone/images/avatars/150-1.jpg", "tree"))">@Localizer["DoMethodAsyncButton3"]</Button> |
72 | | - </div> |
| 77 | + <Button OnClick="@OnGetCode">@Localizer["DoMethodAsyncButton4"]</Button> |
| 78 | + </section> |
| 79 | + <section ignore> |
| 80 | + <textarea class="form-control" rows="3" readonly>@_editorCode</textarea> |
| 81 | + </section> |
73 | 82 | </DemoBlock> |
74 | 83 |
|
75 | 84 | <AttributeTable Items="@GetAttributes()" /> |
0 commit comments