Files
radzen-blazor/Radzen.Blazor/RadzenHtmlEditorSource.razor.cs
Paul Ruston 73e1974583 Addition of a Source View for Html Editor (#838)
* Creation of a Source View for Html Editor

* Updated changes #1 as per conversations

* Make the view source tool last. Use the private mode field to track the state as parameters should not do that. View Source should blur the editor in order to update its state when switching modes. Simplify the CSS.

* Change GetMode() access to Public

* Add comment for GetMode() method

---------

Co-authored-by: Paul Ruston <paul.ruston@live.co.uk>
Co-authored-by: Atanas Korchev <akorchev@gmail.com>
2023-03-06 09:07:30 +02:00

21 lines
563 B
C#

using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
namespace Radzen.Blazor
{
/// <summary>
/// A tool which switches between rendered and source views in <see cref="RadzenHtmlEditor" />.
/// </summary>
public partial class RadzenHtmlEditorSource
{
/// <summary>
/// Specifies the title (tooltip) displayed when the user hovers the tool. Set to <c>"View source"</c> by default.
/// </summary>
[Parameter]
public string Title { get; set; } = "View source";
}
}