Files
radzen-blazor/Radzen.Blazor/RadzenHtmlEditorLink.razor.cs

73 lines
2.5 KiB
C#
Raw Permalink Normal View History

2021-10-15 15:07:50 +03:00
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
namespace Radzen.Blazor
{
/// <summary>
/// A tool which creates links from the selection of a <see cref="RadzenHtmlEditor" />.
/// </summary>
/// <example>
/// <code>
/// &lt;RadzenHtmlEditor @bind-Value=@html&gt;
/// &lt;RadzenHtmlEditorLink /&gt;
/// &lt;/RadzenHtmlEdito&gt;
/// @code {
Keyboard navigation and accessibility improvements added to all components (#1379) * Components keyboard navigation improved * Tree CheckBox TabIndex set to -1 * DataGrid and Pager keyboard navigation section added to first demo * DataFilter keyboard navigation info added to first page * Tree keyboard navigation info added to first page * Scheduler keyboard navigation info added to first page * DropDownDataGrid keyboard navigation info added to first page * DatePicker keyboard navigation info added to first page * FileInput keyboard navigation info added to first page * demo updated * SplitButton keyboard navigation info added to first page * Upload keyboard navigation info added * Chart keyboard navigation info added to first page * demo updated * focusTableRow() fixed * more focusTableRow() fixes * even more focusTableRow() fixes * Update Accessibility page content * Update anchors in navigation components demos and add keyboard navigation shortcuts * Update MainLayout * Update Scheduler focus styles * Update keyboard navigation wording * Appointments focus improved * Update and document HTMLEditor shortcuts * Appointment focus improvements for week view * Replace ripple's background transition with background-size * focus contentView on enter * focus View on enter * persist selected theme * YearPlannerView keyboard navigation improved * YearTimelineView keyboard navigation improved * months focus state fixed * days navigation fixed * code fixed * ScrollIntoView added * Update anchors in components demos * Update Scheduler focus styles * Update premium themes --------- Co-authored-by: yordanov <vasil@yordanov.info>
2024-02-19 10:31:27 +02:00
/// string html = "@lt;strong&gt;Hello&lt;/strong&gt; world!";
2021-10-15 15:07:50 +03:00
/// }
/// </code>
/// </example>
Keyboard navigation and accessibility improvements added to all components (#1379) * Components keyboard navigation improved * Tree CheckBox TabIndex set to -1 * DataGrid and Pager keyboard navigation section added to first demo * DataFilter keyboard navigation info added to first page * Tree keyboard navigation info added to first page * Scheduler keyboard navigation info added to first page * DropDownDataGrid keyboard navigation info added to first page * DatePicker keyboard navigation info added to first page * FileInput keyboard navigation info added to first page * demo updated * SplitButton keyboard navigation info added to first page * Upload keyboard navigation info added * Chart keyboard navigation info added to first page * demo updated * focusTableRow() fixed * more focusTableRow() fixes * even more focusTableRow() fixes * Update Accessibility page content * Update anchors in navigation components demos and add keyboard navigation shortcuts * Update MainLayout * Update Scheduler focus styles * Update keyboard navigation wording * Appointments focus improved * Update and document HTMLEditor shortcuts * Appointment focus improvements for week view * Replace ripple's background transition with background-size * focus contentView on enter * focus View on enter * persist selected theme * YearPlannerView keyboard navigation improved * YearTimelineView keyboard navigation improved * months focus state fixed * days navigation fixed * code fixed * ScrollIntoView added * Update anchors in components demos * Update Scheduler focus styles * Update premium themes --------- Co-authored-by: yordanov <vasil@yordanov.info>
2024-02-19 10:31:27 +02:00
public partial class RadzenHtmlEditorLink : RadzenHtmlEditorButtonBase
2021-10-15 15:07:50 +03:00
{
class LinkAttributes
{
public string? InnerText { get; set; }
public string? InnerHtml { get; set; }
public string? Href { get; set; }
public string? Target { get; set; }
2021-10-15 15:07:50 +03:00
}
/// <summary>
/// Specifies the title (tooltip) displayed when the user hovers the tool. Set to <c>"Insert link"</c> by default.
/// </summary>
[Parameter]
public string Title { get; set; } = "Insert link";
/// <summary>
/// Specifies the text of the label suggesting the user to enter a web address. Set to <c>"Web address"</c> by default.
/// </summary>
[Parameter]
public string UrlText { get; set; } = "Web address";
/// <summary>
/// Specifies the text of the checkbox that opens the link in new window. Set to <c>"Open in new window"</c> by default.
/// </summary>
[Parameter]
public string OpenInNewWindowText { get; set; } = "Open in new window";
/// <summary>
/// Specifies the text of the label suggesting the user to change the text of the link. Set to <c>"Text"</c> by default.
/// </summary>
[Parameter]
public string LinkText { get; set; } = "Text";
/// <summary>
/// Specifies the text of button which inserts the image. Set to <c>"OK"</c> by default.
/// </summary>
[Parameter]
public string OkText { get; set; } = "OK";
/// <summary>
/// Specifies the text of button which cancels image insertion and closes the dialog. Set to <c>"Cancel"</c> by default.
/// </summary>
[Parameter]
public string CancelText { get; set; } = "Cancel";
Keyboard navigation and accessibility improvements added to all components (#1379) * Components keyboard navigation improved * Tree CheckBox TabIndex set to -1 * DataGrid and Pager keyboard navigation section added to first demo * DataFilter keyboard navigation info added to first page * Tree keyboard navigation info added to first page * Scheduler keyboard navigation info added to first page * DropDownDataGrid keyboard navigation info added to first page * DatePicker keyboard navigation info added to first page * FileInput keyboard navigation info added to first page * demo updated * SplitButton keyboard navigation info added to first page * Upload keyboard navigation info added * Chart keyboard navigation info added to first page * demo updated * focusTableRow() fixed * more focusTableRow() fixes * even more focusTableRow() fixes * Update Accessibility page content * Update anchors in navigation components demos and add keyboard navigation shortcuts * Update MainLayout * Update Scheduler focus styles * Update keyboard navigation wording * Appointments focus improved * Update and document HTMLEditor shortcuts * Appointment focus improvements for week view * Replace ripple's background transition with background-size * focus contentView on enter * focus View on enter * persist selected theme * YearPlannerView keyboard navigation improved * YearTimelineView keyboard navigation improved * months focus state fixed * days navigation fixed * code fixed * ScrollIntoView added * Update anchors in components demos * Update Scheduler focus styles * Update premium themes --------- Co-authored-by: yordanov <vasil@yordanov.info>
2024-02-19 10:31:27 +02:00
/// <summary>
/// Specifies the shortcut for the command. Set to <c>"Ctrl+K"</c> by default.
/// </summary>
[Parameter]
public override string? Shortcut { get; set; } = "Ctrl+K";
2021-10-15 15:07:50 +03:00
}
2021-10-25 10:06:11 +03:00
}