generated from Nodarx/template
675e2ecc7b
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
56 lines
1.2 KiB
PHP
56 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace KTXM\DocumentsTextEditor;
|
|
|
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
|
|
/**
|
|
* Documents Text Editor — provides inline editing for text, Markdown, and HTML files
|
|
* via the documents_file_editor integration point.
|
|
*/
|
|
class Module extends ModuleInstanceAbstract
|
|
{
|
|
|
|
public function __construct()
|
|
{ }
|
|
|
|
public function handle(): string
|
|
{
|
|
return 'documents_text_editor';
|
|
}
|
|
|
|
public function label(): string
|
|
{
|
|
return 'Documents Text Editor';
|
|
}
|
|
|
|
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, 'DocumentsTextEditor', 'static/module.mjs');
|
|
}
|
|
}
|
|
}
|