Files
provider_editor_text/lib/Module.php
T

56 lines
1.2 KiB
PHP

<?php
namespace KTXM\ProviderEditorText;
use KTXF\Module\Configuration\BrowserModuleContextInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleInstanceAbstract;
/**
* Text Editor Provider — provides inline editing for text, Markdown, and HTML files
* via the documents_editor integration point.
*/
class Module extends ModuleInstanceAbstract
{
public function __construct()
{ }
public function handle(): string
{
return 'provider_editor_text';
}
public function label(): string
{
return 'Text Editor Provider';
}
public function author(): string
{
return 'Ktrix';
}
public function description(): string
{
return 'Provides inline text, Markdown, and HTML editing for the Documents module via the file editor integration point.';
}
public function version(): string
{
return '0.0.1';
}
public function permissions(): array
{
return [];
}
public function configure(ModuleContextInterface $context): void
{
if ($context instanceof BrowserModuleContextInterface) {
$context->registerModule($this, 'ProviderEditorText', 'static/module.mjs');
}
}
}