Fix #4358: RichTextEditor Provider Abstraction.

This commit is contained in:
Ben
2024-07-01 17:11:26 +08:00
parent 1eafed755d
commit e00c261777
21 changed files with 726 additions and 342 deletions

View File

@ -1,6 +1,8 @@
using Oqtane.Models;
using Oqtane.Shared;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Oqtane.Modules
{
@ -31,6 +33,17 @@ namespace Oqtane.Modules
/// </summary>
List<Resource> Resources { get; }
/// <summary>
/// The component types which need to register it's own resources.
/// </summary>
List<string> ResourcesRegistrationTypes { get; }
/// <summary>
/// Identifies all resources in a module including resources from resources registration types.
/// </summary>
/// <returns></returns>
Task<List<Resource>> GetResources(IServiceProvider serviceProvider, Page page);
/// <summary>
/// Specifies the required render mode for the module control ie. Static,Interactive
/// </summary>

View File

@ -14,5 +14,10 @@ namespace Oqtane.Interfaces
/// The text editor type full name.
/// </summary>
string EditorType { get; }
/// <summary>
/// The text editor settings type full name.
/// </summary>
string SettingsType { get; }
}
}

View File

@ -81,7 +81,9 @@ namespace Oqtane.Shared
public const string DefaultSearchProviderName = "Database";
public const string SearchPageIdPropertyName = "PageId";
public const string SearchModuleIdPropertyName = "ModuleId";
public const string DefaultTextEditorProvider = "Oqtane.Modules.Controls.QuillJSTextEditor, Oqtane.Client";
// Obsolete constants
const string RoleObsoleteMessage = "Use the corresponding member from Oqtane.Shared.RoleNames";