generated from Nodarx/template
8799ad0e70
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
61 lines
1.3 KiB
PHP
61 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace KTXM\DocumentsTextEditor;
|
|
|
|
use KTXF\Module\ModuleBrowserInterface;
|
|
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 implements ModuleBrowserInterface
|
|
{
|
|
|
|
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 registerBI(): array
|
|
{
|
|
return [
|
|
'handle' => $this->handle(),
|
|
'namespace' => 'DocumentsTextEditor',
|
|
'version' => $this->version(),
|
|
'label' => $this->label(),
|
|
'author' => $this->author(),
|
|
'description' => $this->description(),
|
|
'boot' => 'static/module.mjs',
|
|
];
|
|
}
|
|
}
|