generated from Nodarx/template
8799ad0e70
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
24 lines
664 B
TypeScript
24 lines
664 B
TypeScript
import type { ModuleIntegrations } from '@KTXC/types/moduleTypes'
|
|
|
|
const integrations: ModuleIntegrations = {
|
|
/**
|
|
* Register the text editor for text/plain, text/markdown, and text/html MIME types.
|
|
*
|
|
* Editor component contract:
|
|
* props: { entity: EntityObject, mime: string, readFile: Function, writeFile: Function }
|
|
*/
|
|
documents_file_editor: [
|
|
{
|
|
id: 'text_editor',
|
|
label: 'Text Editor',
|
|
priority: 20,
|
|
meta: {
|
|
mimeTypes: ['text/plain', 'text/markdown', 'text/x-markdown', 'text/html'],
|
|
},
|
|
component: () => import('./components/TextEditorViewer.vue'),
|
|
},
|
|
],
|
|
}
|
|
|
|
export default integrations
|