Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension Manifest Map: Tiny MCE Plugin #2372

Merged
merged 4 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/packages/core/extension-registry/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { ManifestCurrentUserAction, ManifestCurrentUserActionDefaultKind }
import type { ManifestDynamicRootOrigin, ManifestDynamicRootQueryStep } from './dynamic-root.model.js';
import type { ManifestFileUploadPreview } from './file-upload-preview.model.js';
import type { ManifestExternalLoginProvider } from './external-login-provider.model.js';
import type { ManifestTinyMcePlugin } from './tinymce-plugin.model.js';
import type { ManifestUfmComponent } from './ufm-component.model.js';
import type { ManifestUfmFilter } from './ufm-filter.model.js';
import type { ManifestUserProfileApp } from './user-profile-app.model.js';
Expand All @@ -23,7 +22,6 @@ export type * from './mfa-login-provider.model.js';
export type * from './monaco-markdown-editor-action.model.js';
export type * from './mfa-login-provider.model.js';
export type * from './monaco-markdown-editor-action.model.js';
export type * from './tinymce-plugin.model.js';
export type * from './ufm-component.model.js';
export type * from './ufm-filter.model.js';
export type * from './user-granular-permission.model.js';
Expand All @@ -42,7 +40,6 @@ export type ManifestTypes =
| ManifestGranularUserPermission
| ManifestMfaLoginProvider
| ManifestMonacoMarkdownEditorAction
| ManifestTinyMcePlugin
| ManifestUfmComponent
| ManifestUfmFilter
| ManifestUserProfileApp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { UmbTinyMcePluginBase } from './tiny-mce-plugin.js';
import { type ClassConstructor, loadManifestApi } from '@umbraco-cms/backoffice/extension-api';
import { css, customElement, html, property, query } from '@umbraco-cms/backoffice/external/lit';
import { getProcessedImageUrl, umbDeepMerge } from '@umbraco-cms/backoffice/utils';
import { type ManifestTinyMcePlugin, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
import { UmbChangeEvent } from '@umbraco-cms/backoffice/event';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import { UmbStylesheetDetailRepository, UmbStylesheetRuleManager } from '@umbraco-cms/backoffice/stylesheet';
Expand All @@ -18,6 +18,7 @@ import {
renderEditor,
} from '@umbraco-cms/backoffice/external/tinymce';
import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor';
import type { ManifestTinyMcePlugin } from '@umbraco-cms/backoffice/tiny-mce';

/**
* Handles the resize event
Expand Down
1 change: 1 addition & 0 deletions src/packages/tiny-mce/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './components/index.js';
export * from './modals/index.js';
export * from './plugins/index.js';
1 change: 1 addition & 0 deletions src/packages/tiny-mce/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './tinymce-plugin.extension.js';
2 changes: 1 addition & 1 deletion src/packages/tiny-mce/plugins/manifests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ManifestTinyMcePlugin } from '@umbraco-cms/backoffice/extension-registry';
import type { ManifestTinyMcePlugin } from './tinymce-plugin.extension.js';

export const manifests: Array<ManifestTinyMcePlugin> = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ export interface ManifestTinyMcePlugin extends ManifestApi<UmbTinyMcePluginBase>
type: 'tinyMcePlugin';
meta?: MetaTinyMcePlugin;
}

declare global {
interface UmbExtensionManifestMap {
umbTinyMcePlugin: ManifestTinyMcePlugin;
}
}
Loading