move the plugin models

This commit is contained in:
Jacob Overgaard
2023-06-23 14:53:44 +02:00
parent 78f1bed56f
commit b9e9ec98e3
5 changed files with 24 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ export * from './input-color/index.js';
export * from './input-eye-dropper/index.js';
export * from './input-list-base/index.js';
export * from './input-multi-url/index.js';
export * from './input-tiny-mce/input-tiny-mce.element.js';
export * from './input-tiny-mce/index.js';
export * from './input-number-range/index.js';
export * from './input-radio-button-list/index.js';
export * from './input-section/index.js';

View File

@@ -2,4 +2,5 @@ export * from './input-tiny-mce.defaults.js';
export * from './input-tiny-mce.element.js';
export * from './input-tiny-mce.languages.js';
export * from './input-tiny-mce.sanitizer.js';
export * from './input-tiny-mce.handlers.js';
export * from './input-tiny-mce.handlers.js';
export * from './tiny-mce-plugin.js';

View File

@@ -0,0 +1,21 @@
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
import type { UmbDataTypePropertyCollection } from '@umbraco-cms/backoffice/components';
import type { tinymce } from '@umbraco-cms/backoffice/external/tinymce';
export class UmbTinyMcePluginBase {
host: UmbLitElement;
editor: tinymce.Editor;
configuration?: UmbDataTypePropertyCollection;
constructor(arg: TinyMcePluginArguments) {
this.host = arg.host;
this.editor = arg.editor;
this.configuration = arg.configuration;
}
}
export interface TinyMcePluginArguments {
host: UmbLitElement;
editor: tinymce.Editor;
configuration?: UmbDataTypePropertyCollection;
}

View File

@@ -2,4 +2,3 @@ export * from './interfaces/index.js';
export * from './models/index.js';
export * from './registry.js';
export * from './extension-class-initializer.js';
export * from './tiny-mce-plugin.js';

View File

@@ -1,21 +0,0 @@
import { UmbLitElement } from "@umbraco-cms/internal/lit-element";
import { UmbDataTypePropertyCollection } from "@umbraco-cms/backoffice/components";
import { tinymce } from "@umbraco-cms/backoffice/external/tinymce";
export class UmbTinyMcePluginBase {
host: UmbLitElement;
editor: tinymce.Editor;
configuration?: UmbDataTypePropertyCollection;
constructor(arg: TinyMcePluginArguments) {
this.host = arg.host;
this.editor = arg.editor;
this.configuration = arg.configuration;
}
}
export interface TinyMcePluginArguments {
host: UmbLitElement;
editor: tinymce.Editor;
configuration?: UmbDataTypePropertyCollection;
}