Fix #4316: add text editor interfaces.

This commit is contained in:
Ben
2024-06-06 16:39:35 +08:00
parent a42ab32436
commit c125a7fe07
8 changed files with 506 additions and 197 deletions

View File

@ -0,0 +1,22 @@
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, bool updated);
/// <summary>
/// get content from the editor.
/// </summary>
/// <returns></returns>
Task<string> GetContent();
}
}