oqtane.framework/Oqtane.Shared/Interfaces/ITextEditor.cs

23 lines
547 B
C#

using System.Threading.Tasks;
namespace Oqtane.Interfaces
{
/// <summary>
/// Text editor interface.
/// </summary>
public interface ITextEditor
{
/// <summary>
/// initializes the editor with the initialize content.
/// </summary>
/// <param name="content">the initialize content.</param>
void Initialize(string content);
/// <summary>
/// get content from the editor.
/// </summary>
/// <returns></returns>
Task<string> GetContent();
}
}