Fix #4316: add text editor interfaces.
This commit is contained in:
22
Oqtane.Shared/Interfaces/ITextEditor.cs
Normal file
22
Oqtane.Shared/Interfaces/ITextEditor.cs
Normal 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();
|
||||
}
|
||||
}
|
18
Oqtane.Shared/Interfaces/ITextEditorProvider.cs
Normal file
18
Oqtane.Shared/Interfaces/ITextEditorProvider.cs
Normal file
@ -0,0 +1,18 @@
|
||||
namespace Oqtane.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Rich text editor provider interface.
|
||||
/// </summary>
|
||||
public interface ITextEditorProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// The text editor provider name.
|
||||
/// </summary>
|
||||
string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The text editor type full name.
|
||||
/// </summary>
|
||||
string EditorType { get; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user