@tiny-mce-umbraco/backoffice 16.0.0-rc2 → 16.0.0-rc2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist-cms/README.md +1 -0
- package/dist-cms/api/client.gen.d.ts +13 -0
- package/dist-cms/api/client.gen.d.ts.map +1 -0
- package/dist-cms/api/client.gen.js +5 -0
- package/dist-cms/api/index.d.ts +3 -0
- package/dist-cms/api/index.d.ts.map +1 -0
- package/dist-cms/api/index.js +3 -0
- package/dist-cms/api/sdk.gen.d.ts +19 -0
- package/dist-cms/api/sdk.gen.d.ts.map +1 -0
- package/dist-cms/api/sdk.gen.js +16 -0
- package/dist-cms/api/types.gen.d.ts +72 -0
- package/dist-cms/api/types.gen.d.ts.map +1 -0
- package/dist-cms/api/types.gen.js +7 -0
- package/dist-cms/components/constants.d.ts +2 -0
- package/dist-cms/components/constants.d.ts.map +1 -0
- package/dist-cms/components/constants.js +1 -0
- package/dist-cms/components/index.d.ts +6 -0
- package/dist-cms/components/index.d.ts.map +1 -0
- package/dist-cms/components/index.js +5 -0
- package/dist-cms/components/input-tiny-mce/index.d.ts +7 -0
- package/dist-cms/components/input-tiny-mce/index.d.ts.map +1 -0
- package/dist-cms/components/input-tiny-mce/index.js +6 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.defaults.d.ts +5 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.defaults.d.ts.map +1 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.defaults.js +159 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.element.d.ts +37 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.element.d.ts.map +1 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.element.js +449 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.handlers.d.ts +3 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.handlers.d.ts.map +1 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.handlers.js +8 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.languages.d.ts +2 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.languages.d.ts.map +1 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.languages.js +78 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.sanitizer.d.ts +9 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.sanitizer.d.ts.map +1 -0
- package/dist-cms/components/input-tiny-mce/input-tiny-mce.sanitizer.js +47 -0
- package/dist-cms/components/input-tiny-mce/tiny-mce-plugin.d.ts +24 -0
- package/dist-cms/components/input-tiny-mce/tiny-mce-plugin.d.ts.map +1 -0
- package/dist-cms/components/input-tiny-mce/tiny-mce-plugin.js +16 -0
- package/dist-cms/components/manifests.d.ts +2 -0
- package/dist-cms/components/manifests.d.ts.map +1 -0
- package/dist-cms/components/manifests.js +2 -0
- package/dist-cms/components/stylesheet-rule-input/constants.d.ts +3 -0
- package/dist-cms/components/stylesheet-rule-input/constants.d.ts.map +1 -0
- package/dist-cms/components/stylesheet-rule-input/constants.js +2 -0
- package/dist-cms/components/stylesheet-rule-input/manifests.d.ts +3 -0
- package/dist-cms/components/stylesheet-rule-input/manifests.d.ts.map +1 -0
- package/dist-cms/components/stylesheet-rule-input/manifests.js +9 -0
- package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-input.element.d.ts +18 -0
- package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-input.element.d.ts.map +1 -0
- package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-input.element.js +119 -0
- package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.element.d.ts +12 -0
- package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.element.d.ts.map +1 -0
- package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.element.js +142 -0
- package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.token.d.ts +7 -0
- package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.token.d.ts.map +1 -0
- package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.token.js +9 -0
- package/dist-cms/components/stylesheet-rule-ref/stylesheet-rule-ref.element.d.ts +16 -0
- package/dist-cms/components/stylesheet-rule-ref/stylesheet-rule-ref.element.d.ts.map +1 -0
- package/dist-cms/components/stylesheet-rule-ref/stylesheet-rule-ref.element.js +24 -0
- package/dist-cms/constants.d.ts +2 -0
- package/dist-cms/constants.d.ts.map +1 -0
- package/dist-cms/constants.js +1 -0
- package/dist-cms/entry-points/entry-point.d.ts +4 -0
- package/dist-cms/entry-points/entry-point.d.ts.map +1 -0
- package/dist-cms/entry-points/entry-point.js +25 -0
- package/dist-cms/entry-points/manifest.d.ts +2 -0
- package/dist-cms/entry-points/manifest.d.ts.map +1 -0
- package/dist-cms/entry-points/manifest.js +8 -0
- package/dist-cms/external/tinymce/index.d.ts +22 -0
- package/dist-cms/external/tinymce/index.d.ts.map +1 -0
- package/dist-cms/external/tinymce/index.js +18 -0
- package/dist-cms/icons/icons.d.ts +6 -0
- package/dist-cms/icons/icons.d.ts.map +1 -0
- package/dist-cms/icons/icons.js +1 -0
- package/dist-cms/icons/manifests.d.ts +2 -0
- package/dist-cms/icons/manifests.d.ts.map +1 -0
- package/dist-cms/icons/manifests.js +8 -0
- package/dist-cms/index.d.ts +5 -0
- package/dist-cms/index.d.ts.map +1 -0
- package/dist-cms/index.js +3 -0
- package/dist-cms/localizations/ar.d.ts +4 -0
- package/dist-cms/localizations/ar.d.ts.map +1 -0
- package/dist-cms/localizations/ar.js +5 -0
- package/dist-cms/localizations/bs.d.ts +4 -0
- package/dist-cms/localizations/bs.d.ts.map +1 -0
- package/dist-cms/localizations/bs.js +5 -0
- package/dist-cms/localizations/cs.d.ts +4 -0
- package/dist-cms/localizations/cs.d.ts.map +1 -0
- package/dist-cms/localizations/cs.js +5 -0
- package/dist-cms/localizations/cy.d.ts +4 -0
- package/dist-cms/localizations/cy.d.ts.map +1 -0
- package/dist-cms/localizations/cy.js +5 -0
- package/dist-cms/localizations/da.d.ts +4 -0
- package/dist-cms/localizations/da.d.ts.map +1 -0
- package/dist-cms/localizations/da.js +5 -0
- package/dist-cms/localizations/de.d.ts +4 -0
- package/dist-cms/localizations/de.d.ts.map +1 -0
- package/dist-cms/localizations/de.js +5 -0
- package/dist-cms/localizations/en.d.ts +4 -0
- package/dist-cms/localizations/en.d.ts.map +1 -0
- package/dist-cms/localizations/en.js +5 -0
- package/dist-cms/localizations/fr.d.ts +4 -0
- package/dist-cms/localizations/fr.d.ts.map +1 -0
- package/dist-cms/localizations/fr.js +5 -0
- package/dist-cms/localizations/hr.d.ts +4 -0
- package/dist-cms/localizations/hr.d.ts.map +1 -0
- package/dist-cms/localizations/hr.js +5 -0
- package/dist-cms/localizations/it.d.ts +4 -0
- package/dist-cms/localizations/it.d.ts.map +1 -0
- package/dist-cms/localizations/it.js +5 -0
- package/dist-cms/localizations/manifests.d.ts +2 -0
- package/dist-cms/localizations/manifests.d.ts.map +1 -0
- package/dist-cms/localizations/manifests.js +97 -0
- package/dist-cms/localizations/nl.d.ts +4 -0
- package/dist-cms/localizations/nl.d.ts.map +1 -0
- package/dist-cms/localizations/nl.js +5 -0
- package/dist-cms/localizations/tr.d.ts +4 -0
- package/dist-cms/localizations/tr.d.ts.map +1 -0
- package/dist-cms/localizations/tr.js +5 -0
- package/dist-cms/manifests.d.ts +2 -0
- package/dist-cms/manifests.d.ts.map +1 -0
- package/dist-cms/manifests.js +16 -0
- package/dist-cms/plugins/core/a11ychecker.tinymce-api.d.ts +6 -0
- package/dist-cms/plugins/core/a11ychecker.tinymce-api.d.ts.map +1 -0
- package/dist-cms/plugins/core/a11ychecker.tinymce-api.js +7 -0
- package/dist-cms/plugins/core/ai-assistant.tinymce-api.d.ts +9 -0
- package/dist-cms/plugins/core/ai-assistant.tinymce-api.d.ts.map +1 -0
- package/dist-cms/plugins/core/ai-assistant.tinymce-api.js +41 -0
- package/dist-cms/plugins/core/ai-request-factory.d.ts +2 -0
- package/dist-cms/plugins/core/ai-request-factory.d.ts.map +1 -0
- package/dist-cms/plugins/core/ai-request-factory.js +33 -0
- package/dist-cms/plugins/core/basic.tinymce-api.d.ts +6 -0
- package/dist-cms/plugins/core/basic.tinymce-api.d.ts.map +1 -0
- package/dist-cms/plugins/core/basic.tinymce-api.js +7 -0
- package/dist-cms/plugins/manifests.d.ts +3 -0
- package/dist-cms/plugins/manifests.d.ts.map +1 -0
- package/dist-cms/plugins/manifests.js +506 -0
- package/dist-cms/plugins/tiny-mce-block-picker.plugin.d.ts +8 -0
- package/dist-cms/plugins/tiny-mce-block-picker.plugin.d.ts.map +1 -0
- package/dist-cms/plugins/tiny-mce-block-picker.plugin.js +99 -0
- package/dist-cms/plugins/tiny-mce-code-editor.plugin.d.ts +7 -0
- package/dist-cms/plugins/tiny-mce-code-editor.plugin.d.ts.map +1 -0
- package/dist-cms/plugins/tiny-mce-code-editor.plugin.js +42 -0
- package/dist-cms/plugins/tiny-mce-embeddedmedia.plugin.d.ts +7 -0
- package/dist-cms/plugins/tiny-mce-embeddedmedia.plugin.d.ts.map +1 -0
- package/dist-cms/plugins/tiny-mce-embeddedmedia.plugin.js +74 -0
- package/dist-cms/plugins/tiny-mce-mediapicker.plugin.d.ts +7 -0
- package/dist-cms/plugins/tiny-mce-mediapicker.plugin.d.ts.map +1 -0
- package/dist-cms/plugins/tiny-mce-mediapicker.plugin.js +224 -0
- package/dist-cms/plugins/tiny-mce-multi-url-picker.plugin.d.ts +8 -0
- package/dist-cms/plugins/tiny-mce-multi-url-picker.plugin.d.ts.map +1 -0
- package/dist-cms/plugins/tiny-mce-multi-url-picker.plugin.js +172 -0
- package/dist-cms/plugins/tinymce-plugin.extension.d.ts +70 -0
- package/dist-cms/plugins/tinymce-plugin.extension.d.ts.map +1 -0
- package/dist-cms/plugins/tinymce-plugin.extension.js +1 -0
- package/dist-cms/plugins/types.d.ts +2 -0
- package/dist-cms/plugins/types.d.ts.map +1 -0
- package/dist-cms/plugins/types.js +1 -0
- package/dist-cms/property-editors/configEditor/property-editor-ui-tiny-mce-config-editor.element.d.ts +23 -0
- package/dist-cms/property-editors/configEditor/property-editor-ui-tiny-mce-config-editor.element.d.ts.map +1 -0
- package/dist-cms/property-editors/configEditor/property-editor-ui-tiny-mce-config-editor.element.js +102 -0
- package/dist-cms/property-editors/constants.d.ts +2 -0
- package/dist-cms/property-editors/constants.d.ts.map +1 -0
- package/dist-cms/property-editors/constants.js +1 -0
- package/dist-cms/property-editors/manifests.d.ts +2 -0
- package/dist-cms/property-editors/manifests.d.ts.map +1 -0
- package/dist-cms/property-editors/manifests.js +37 -0
- package/dist-cms/property-editors/plugin/property-editor-ui-tiny-mce-plugin-configuration.element.d.ts +25 -0
- package/dist-cms/property-editors/plugin/property-editor-ui-tiny-mce-plugin-configuration.element.d.ts.map +1 -0
- package/dist-cms/property-editors/plugin/property-editor-ui-tiny-mce-plugin-configuration.element.js +212 -0
- package/dist-cms/property-editors/tiny-mce/constants.d.ts +2 -0
- package/dist-cms/property-editors/tiny-mce/constants.d.ts.map +1 -0
- package/dist-cms/property-editors/tiny-mce/constants.js +1 -0
- package/dist-cms/property-editors/tiny-mce/manifests.d.ts +2 -0
- package/dist-cms/property-editors/tiny-mce/manifests.d.ts.map +1 -0
- package/dist-cms/property-editors/tiny-mce/manifests.js +149 -0
- package/dist-cms/property-editors/tiny-mce/property-editor-ui-tiny-mce.element.d.ts +16 -0
- package/dist-cms/property-editors/tiny-mce/property-editor-ui-tiny-mce.element.d.ts.map +1 -0
- package/dist-cms/property-editors/tiny-mce/property-editor-ui-tiny-mce.element.js +79 -0
- package/dist-cms/property-editors/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.d.ts +25 -0
- package/dist-cms/property-editors/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.d.ts.map +1 -0
- package/dist-cms/property-editors/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.js +201 -0
- package/dist-cms/stylesheets/entity-actions/manifests.d.ts +2 -0
- package/dist-cms/stylesheets/entity-actions/manifests.d.ts.map +1 -0
- package/dist-cms/stylesheets/entity-actions/manifests.js +15 -0
- package/dist-cms/stylesheets/entity-actions/rte-stylesheet-create-option-action.d.ts +7 -0
- package/dist-cms/stylesheets/entity-actions/rte-stylesheet-create-option-action.d.ts.map +1 -0
- package/dist-cms/stylesheets/entity-actions/rte-stylesheet-create-option-action.js +8 -0
- package/dist-cms/stylesheets/manifests.d.ts +2 -0
- package/dist-cms/stylesheets/manifests.d.ts.map +1 -0
- package/dist-cms/stylesheets/manifests.js +3 -0
- package/dist-cms/stylesheets/stylesheet-rule-manager.d.ts +20 -0
- package/dist-cms/stylesheets/stylesheet-rule-manager.d.ts.map +1 -0
- package/dist-cms/stylesheets/stylesheet-rule-manager.js +57 -0
- package/dist-cms/stylesheets/workspace-views/manifests.d.ts +2 -0
- package/dist-cms/stylesheets/workspace-views/manifests.d.ts.map +1 -0
- package/dist-cms/stylesheets/workspace-views/manifests.js +22 -0
- package/dist-cms/stylesheets/workspace-views/stylesheet-rich-text-rule-workspace-view.element.d.ts +18 -0
- package/dist-cms/stylesheets/workspace-views/stylesheet-rich-text-rule-workspace-view.element.d.ts.map +1 -0
- package/dist-cms/stylesheets/workspace-views/stylesheet-rich-text-rule-workspace-view.element.js +100 -0
- package/dist-cms/tinymce.d.ts +2 -0
- package/dist-cms/tinymce.d.ts.map +1 -0
- package/dist-cms/tinymce.js +1 -0
- package/dist-cms/types.d.ts +6 -0
- package/dist-cms/types.d.ts.map +1 -0
- package/dist-cms/types.js +1 -0
- package/dist-cms/utils/index.d.ts +26 -0
- package/dist-cms/utils/index.d.ts.map +1 -0
- package/dist-cms/utils/index.js +108 -0
- package/package.json +11 -4
- package/dist/tiny-mce-umbraco.d.ts +0 -252
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
This is an Umbraco CMS package that enables access to the paid features in the TinyMCE-based Rich Text Editor (RTE) in version 12+ with a license. It also adds a new TinyMCE Premium property editor with additional settings, providing a more targeted configuration setup for RTE Data Types in Umbraco. Finally, it allows for additional settings that support JSON directly in the configuration for .NET (appsettings.config).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
This is an Umbraco CMS package that enables access to the paid features in the TinyMCE-based Rich Text Editor (RTE) in version 12+ with a license. It also adds a new TinyMCE Premium property editor with additional settings, providing a more targeted configuration setup for RTE Data Types in Umbraco. Finally, it allows for additional settings that support JSON directly in the configuration for .NET (appsettings.config).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ClientOptions } from './types.gen';
|
|
2
|
+
import { type Config, type ClientOptions as DefaultClientOptions } from '@hey-api/client-fetch';
|
|
3
|
+
/**
|
|
4
|
+
* The `createClientConfig()` function will be called on client initialization
|
|
5
|
+
* and the returned object will become the client's initial configuration.
|
|
6
|
+
*
|
|
7
|
+
* You may want to initialize your client this way instead of calling
|
|
8
|
+
* `setConfig()`. This is useful for example if you're using Next.js
|
|
9
|
+
* to ensure your client always has the correct values.
|
|
10
|
+
*/
|
|
11
|
+
export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> = (override?: Config<DefaultClientOptions & T>) => Config<Required<DefaultClientOptions> & T>;
|
|
12
|
+
export declare const client: import("@hey-api/client-fetch").Client;
|
|
13
|
+
//# sourceMappingURL=client.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../../src/api/client.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,IAAI,oBAAoB,EAA8B,MAAM,uBAAuB,CAAC;AAE5H;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,oBAAoB,GAAG,aAAa,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,oBAAoB,GAAG,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC;AAE7K,eAAO,MAAM,MAAM,wCAEhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
|
|
2
|
+
import type { GetConfigData } from './types.gen';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
export declare class TinyMceService {
|
|
17
|
+
static getConfig<ThrowOnError extends boolean = false>(options?: Options<GetConfigData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<import("./types.gen").TinyMceConfigResponseModel, unknown, ThrowOnError>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=sdk.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../src/api/sdk.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAqC,MAAM,aAAa,CAAC;AAGpF,MAAM,MAAM,OAAO,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EAAE,YAAY,SAAS,OAAO,GAAG,OAAO,IAAI,aAAa,CAAC,KAAK,EAAE,YAAY,CAAC,GAAG;IACtI;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,qBAAa,cAAc;WACT,SAAS,CAAC,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,EAAE,YAAY,CAAC;CAa/G"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client as _heyApiClient } from './client.gen';
|
|
3
|
+
export class TinyMceService {
|
|
4
|
+
static getConfig(options) {
|
|
5
|
+
return (options?.client ?? _heyApiClient).get({
|
|
6
|
+
security: [
|
|
7
|
+
{
|
|
8
|
+
scheme: 'bearer',
|
|
9
|
+
type: 'http'
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
url: '/umbraco/management/api/v1/tiny-mce/config',
|
|
13
|
+
...options
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export type ProblemDetails = {
|
|
2
|
+
type?: string | null;
|
|
3
|
+
title?: string | null;
|
|
4
|
+
status?: number | null;
|
|
5
|
+
detail?: string | null;
|
|
6
|
+
instance?: string | null;
|
|
7
|
+
[key: string]: unknown | (string | null) | (string | null) | (number | null) | (string | null) | (string | null) | undefined;
|
|
8
|
+
};
|
|
9
|
+
export type RichTextEditorCommand = {
|
|
10
|
+
alias: string;
|
|
11
|
+
name: string;
|
|
12
|
+
mode: RichTextEditorCommandModeModel;
|
|
13
|
+
};
|
|
14
|
+
export declare enum RichTextEditorCommandModeModel {
|
|
15
|
+
INSERT = "Insert",
|
|
16
|
+
SELECTION = "Selection",
|
|
17
|
+
ALL = "All"
|
|
18
|
+
}
|
|
19
|
+
export type RichTextEditorSettings = {
|
|
20
|
+
commands: Array<RichTextEditorCommand>;
|
|
21
|
+
plugins: Array<string>;
|
|
22
|
+
customConfig: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
25
|
+
validElements: string;
|
|
26
|
+
invalidElements: string;
|
|
27
|
+
cloudApiKey?: string | null;
|
|
28
|
+
};
|
|
29
|
+
export type TinyMceConfigResponseModel = {
|
|
30
|
+
richTextEditor?: RichTextEditorSettings | null;
|
|
31
|
+
config?: TinyMceSettings | null;
|
|
32
|
+
};
|
|
33
|
+
export type TinyMceSettings = {
|
|
34
|
+
apikey: string;
|
|
35
|
+
tinyMceVersion: string;
|
|
36
|
+
tinyMceUrl: string;
|
|
37
|
+
openAiApikey: string;
|
|
38
|
+
pluginsToExclude: Array<string>;
|
|
39
|
+
customConfig: {};
|
|
40
|
+
};
|
|
41
|
+
export type GetConfigData = {
|
|
42
|
+
body?: never;
|
|
43
|
+
path?: never;
|
|
44
|
+
query?: never;
|
|
45
|
+
url: '/umbraco/management/api/v1/tiny-mce/config';
|
|
46
|
+
};
|
|
47
|
+
export type GetConfigErrors = {
|
|
48
|
+
/**
|
|
49
|
+
* The resource is protected and requires an authentication token
|
|
50
|
+
*/
|
|
51
|
+
401: unknown;
|
|
52
|
+
/**
|
|
53
|
+
* The authenticated user does not have access to this resource
|
|
54
|
+
*/
|
|
55
|
+
403: unknown;
|
|
56
|
+
/**
|
|
57
|
+
* Not Found
|
|
58
|
+
*/
|
|
59
|
+
404: ProblemDetails;
|
|
60
|
+
};
|
|
61
|
+
export type GetConfigError = GetConfigErrors[keyof GetConfigErrors];
|
|
62
|
+
export type GetConfigResponses = {
|
|
63
|
+
/**
|
|
64
|
+
* OK
|
|
65
|
+
*/
|
|
66
|
+
200: TinyMceConfigResponseModel;
|
|
67
|
+
};
|
|
68
|
+
export type GetConfigResponse = GetConfigResponses[keyof GetConfigResponses];
|
|
69
|
+
export type ClientOptions = {
|
|
70
|
+
baseUrl: 'https://localhost:44308' | (string & {});
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../src/api/types.gen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;CAChI,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,8BAA8B,CAAC;CACxC,CAAC;AAEF,oBAAY,8BAA8B;IACtC,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,GAAG,QAAQ;CACd;AAED,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACvC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,YAAY,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACzB,CAAC;IACF,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,cAAc,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC/C,MAAM,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,YAAY,EAAE,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,EAAE,4CAA4C,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,cAAc,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,MAAM,eAAe,CAAC,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;OAEG;IACH,GAAG,EAAE,0BAA0B,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,MAAM,kBAAkB,CAAC,CAAC;AAE7E,MAAM,MAAM,aAAa,GAAG;IACxB,OAAO,EAAE,yBAAyB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACtD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
export var RichTextEditorCommandModeModel;
|
|
3
|
+
(function (RichTextEditorCommandModeModel) {
|
|
4
|
+
RichTextEditorCommandModeModel["INSERT"] = "Insert";
|
|
5
|
+
RichTextEditorCommandModeModel["SELECTION"] = "Selection";
|
|
6
|
+
RichTextEditorCommandModeModel["ALL"] = "All";
|
|
7
|
+
})(RichTextEditorCommandModeModel || (RichTextEditorCommandModeModel = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/components/constants.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './stylesheet-rule-input/constants.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './stylesheet-rule-input/stylesheet-rule-input.element.js';
|
|
2
|
+
import './stylesheet-rule-ref/stylesheet-rule-ref.element.js';
|
|
3
|
+
export * from './input-tiny-mce/index.js';
|
|
4
|
+
export * from './stylesheet-rule-input/stylesheet-rule-input.element.js';
|
|
5
|
+
export * from './stylesheet-rule-ref/stylesheet-rule-ref.element.js';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,0DAA0D,CAAC;AAClE,OAAO,sDAAsD,CAAC;AAE9D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0DAA0D,CAAC;AACzE,cAAc,sDAAsD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './stylesheet-rule-input/stylesheet-rule-input.element.js';
|
|
2
|
+
import './stylesheet-rule-ref/stylesheet-rule-ref.element.js';
|
|
3
|
+
export * from './input-tiny-mce/index.js';
|
|
4
|
+
export * from './stylesheet-rule-input/stylesheet-rule-input.element.js';
|
|
5
|
+
export * from './stylesheet-rule-ref/stylesheet-rule-ref.element.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './input-tiny-mce.defaults.js';
|
|
2
|
+
export * from './input-tiny-mce.element.js';
|
|
3
|
+
export * from './input-tiny-mce.languages.js';
|
|
4
|
+
export * from './input-tiny-mce.sanitizer.js';
|
|
5
|
+
export * from './input-tiny-mce.handlers.js';
|
|
6
|
+
export * from './tiny-mce-plugin.js';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/input-tiny-mce/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './input-tiny-mce.defaults.js';
|
|
2
|
+
export * from './input-tiny-mce.element.js';
|
|
3
|
+
export * from './input-tiny-mce.languages.js';
|
|
4
|
+
export * from './input-tiny-mce.sanitizer.js';
|
|
5
|
+
export * from './input-tiny-mce.handlers.js';
|
|
6
|
+
export * from './tiny-mce-plugin.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RawEditorOptions } from '@umbraco-cms/backoffice/external/tinymce';
|
|
2
|
+
export declare const UMB_BLOCK_ENTRY_WEB_COMPONENTS_ABSOLUTE_PATH = "@umbraco-cms/backoffice/block-rte";
|
|
3
|
+
export declare const defaultPremiumPluginsList: readonly ["a11ychecker", "advcode", "advtable", "advtemplate", "typography", "ai", "casechange", "checklist", "mediaembed", "export", "footnotes", "formatpainter", "mergetags", "pageembed", "powerpaste", "permanentpen", "tinymcespellchecker", "tableofcontents"];
|
|
4
|
+
export declare const defaultFallbackConfig: RawEditorOptions;
|
|
5
|
+
//# sourceMappingURL=input-tiny-mce.defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-tiny-mce.defaults.d.ts","sourceRoot":"","sources":["../../../src/components/input-tiny-mce/input-tiny-mce.defaults.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAGjF,eAAO,MAAM,4CAA4C,sCAAsC,CAAC;AAEhG,eAAO,MAAM,yBAAyB,uQAmB5B,CAAC;AAIX,eAAO,MAAM,qBAAqB,EAAE,gBAiKnC,CAAC"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { UMB_CONTEXT_REQUEST_EVENT_TYPE } from '@umbraco-cms/backoffice/context-api';
|
|
2
|
+
import { UUIIconRequestEvent } from '@umbraco-cms/backoffice/external/uui';
|
|
3
|
+
export const UMB_BLOCK_ENTRY_WEB_COMPONENTS_ABSOLUTE_PATH = '@umbraco-cms/backoffice/block-rte';
|
|
4
|
+
export const defaultPremiumPluginsList = [
|
|
5
|
+
'a11ychecker',
|
|
6
|
+
'advcode',
|
|
7
|
+
'advtable',
|
|
8
|
+
'advtemplate',
|
|
9
|
+
'typography',
|
|
10
|
+
'ai',
|
|
11
|
+
'casechange',
|
|
12
|
+
'checklist',
|
|
13
|
+
'mediaembed',
|
|
14
|
+
'export',
|
|
15
|
+
'footnotes',
|
|
16
|
+
'formatpainter',
|
|
17
|
+
'mergetags',
|
|
18
|
+
'pageembed',
|
|
19
|
+
'powerpaste',
|
|
20
|
+
'permanentpen',
|
|
21
|
+
'tinymcespellchecker',
|
|
22
|
+
'tableofcontents',
|
|
23
|
+
];
|
|
24
|
+
//we put these as extended elements because they get merged on top of the normal allowed elements by tiny mce
|
|
25
|
+
//so we don't have to specify all the normal elements again
|
|
26
|
+
export const defaultFallbackConfig = {
|
|
27
|
+
plugins: ['anchor', 'charmap', 'table', 'lists', 'advlist', 'autolink', 'directionality', 'searchreplace'],
|
|
28
|
+
valid_elements: '+a[id|style|rel|data-id|data-udi|rev|charset|hreflang|dir|lang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],-strong/-b[class|style],-em/-i[class|style],-strike[class|style],-s[class|style],-u[class|style],#p[id|style|dir|class|align],-ol[class|reversed|start|style|type],-ul[class|style],-li[class|style],br[class],img[id|dir|lang|longdesc|usemap|style|class|src|onmouseover|onmouseout|border|alt=|title|hspace|vspace|width|height|align|umbracoorgwidth|umbracoorgheight|onresize|onresizestart|onresizeend|rel|data-id],-sub[style|class],-sup[style|class],-blockquote[dir|style|class],-table[border=0|cellspacing|cellpadding|width|height|class|align|summary|style|dir|id|lang|bgcolor|background|bordercolor],-tr[id|lang|dir|class|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor],tbody[id|class],thead[id|class],tfoot[id|class],#td[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor|scope],-th[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|scope],caption[id|lang|dir|class|style],-div[id|dir|class|align|style],-span[class|align|style],-pre[class|align|style],address[class|align|style],-h1[id|dir|class|align|style],-h2[id|dir|class|align|style],-h3[id|dir|class|align|style],-h4[id|dir|class|align|style],-h5[id|dir|class|align|style],-h6[id|style|dir|class|align|style],hr[class|style],small[class|style],dd[id|class|title|style|dir|lang],dl[id|class|title|style|dir|lang],dt[id|class|title|style|dir|lang],object[class|id|width|height|codebase|*],param[name|value|_value|class],embed[type|width|height|src|class|*],map[name|class],area[shape|coords|href|alt|target|class],bdo[class],button[class],iframe[*],figure,figcaption,cite,video[*],audio[*],picture[*],source[*],canvas[*],details[*],summary[*],-code',
|
|
29
|
+
invalid_elements: 'font',
|
|
30
|
+
extended_valid_elements: '@[id|class|style],+umb-rte-block[!data-content-key],+umb-rte-block-inline[!data-content-key],-div[id|dir|class|align|style],ins[datetime|cite],-ul[class|style],-li[class|style],-h1[id|dir|class|align|style],-h2[id|dir|class|align|style],-h3[id|dir|class|align|style],-h4[id|dir|class|align|style],-h5[id|dir|class|align|style],-h6[id|style|dir|class|align],span[id|class|style|lang],figure,figcaption',
|
|
31
|
+
custom_elements: 'umb-rte-block,~umb-rte-block-inline',
|
|
32
|
+
toolbar: [
|
|
33
|
+
'styles',
|
|
34
|
+
'bold',
|
|
35
|
+
'italic',
|
|
36
|
+
'alignleft',
|
|
37
|
+
'aligncenter',
|
|
38
|
+
'alignright',
|
|
39
|
+
'bullist',
|
|
40
|
+
'numlist',
|
|
41
|
+
'outdent',
|
|
42
|
+
'indent',
|
|
43
|
+
'link',
|
|
44
|
+
'umbmediapicker',
|
|
45
|
+
'umbembeddialog',
|
|
46
|
+
],
|
|
47
|
+
// debugging option:
|
|
48
|
+
//setup: function (editor) {
|
|
49
|
+
// console.log('TinyMCE editor is initializing...');
|
|
50
|
+
// editor.on('init', function () {
|
|
51
|
+
// console.log('TinyMCE initialized.');
|
|
52
|
+
// });
|
|
53
|
+
// editor.on('PluginLoad', function (e) {
|
|
54
|
+
// console.log('Plugin loaded:', e.plugin);
|
|
55
|
+
// });
|
|
56
|
+
//},
|
|
57
|
+
init_instance_callback: function (editor) {
|
|
58
|
+
// The following code is the context api proxy. [NL]
|
|
59
|
+
// It re-dispatches the context api request event to the origin target of this modal, in other words the element that initiated the modal. [NL]
|
|
60
|
+
editor.dom.doc.addEventListener(UMB_CONTEXT_REQUEST_EVENT_TYPE, ((event) => {
|
|
61
|
+
if (!editor.iframeElement)
|
|
62
|
+
return;
|
|
63
|
+
event.stopImmediatePropagation();
|
|
64
|
+
editor.iframeElement.dispatchEvent(event.clone());
|
|
65
|
+
}));
|
|
66
|
+
//TODO: wire this up
|
|
67
|
+
//editor.dom.doc.addEventListener(UMB_CONTEXT_PROVIDE_EVENT_TYPE, ((event: UmbContextProvideEvent) => {
|
|
68
|
+
// if (!editor.iframeElement) return;
|
|
69
|
+
// event.stopImmediatePropagation();
|
|
70
|
+
// editor.iframeElement.dispatchEvent(event.clone());
|
|
71
|
+
//}) as EventListener);
|
|
72
|
+
// Proxy for retrieving icons from outside the iframe [NL]
|
|
73
|
+
editor.dom.doc.addEventListener(UUIIconRequestEvent.ICON_REQUEST, ((event) => {
|
|
74
|
+
if (!editor.iframeElement)
|
|
75
|
+
return;
|
|
76
|
+
const newEvent = new UUIIconRequestEvent(UUIIconRequestEvent.ICON_REQUEST, {
|
|
77
|
+
detail: event.detail,
|
|
78
|
+
});
|
|
79
|
+
editor.iframeElement.dispatchEvent(newEvent);
|
|
80
|
+
if (newEvent.icon !== null) {
|
|
81
|
+
event.acceptRequest(newEvent.icon);
|
|
82
|
+
}
|
|
83
|
+
}));
|
|
84
|
+
// Transfer our import-map to the iframe: [NL]
|
|
85
|
+
const importMapTag = document.head.querySelector('script[type="importmap"]');
|
|
86
|
+
if (importMapTag) {
|
|
87
|
+
const importMap = document.createElement('script');
|
|
88
|
+
importMap.type = 'importmap';
|
|
89
|
+
importMap.text = importMapTag.innerHTML;
|
|
90
|
+
editor.dom.doc.head.appendChild(importMap);
|
|
91
|
+
}
|
|
92
|
+
// Transfer our stylesheets to the iframe: [NL]
|
|
93
|
+
const stylesheetTags = document.head.querySelectorAll('link[rel="stylesheet"]');
|
|
94
|
+
stylesheetTags.forEach((stylesheetTag) => {
|
|
95
|
+
const stylesheet = document.createElement('link');
|
|
96
|
+
stylesheet.rel = 'stylesheet';
|
|
97
|
+
stylesheet.href = stylesheetTag.href;
|
|
98
|
+
editor.dom.doc.head.appendChild(stylesheet);
|
|
99
|
+
});
|
|
100
|
+
editor.dom.doc.addEventListener('click', (e) => {
|
|
101
|
+
// If we try to open link in a new tab, then we want to skip skip:
|
|
102
|
+
//if ((isWindows && e.ctrlKey) || (!isWindows && e.metaKey)) return;
|
|
103
|
+
const composedPaths = 'composedPath' in e ? e.composedPath() : null;
|
|
104
|
+
// Find the target by using the composed path to get the element through the shadow boundaries.
|
|
105
|
+
// Notice the difference here compared to RouterSlots implementation [NL]
|
|
106
|
+
const $anchor = composedPaths?.find(($elem) => $elem instanceof HTMLAnchorElement || $elem.tagName === 'A') ?? e.target;
|
|
107
|
+
// Abort if the event is not about the anchor tag or the anchor tag has the attribute [data-router-slot]="disabled"
|
|
108
|
+
if ($anchor == null ||
|
|
109
|
+
!($anchor instanceof HTMLAnchorElement || $anchor.tagName === 'A') ||
|
|
110
|
+
$anchor.dataset['routerSlot'] === 'disabled') {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
// Abort if the anchor tag is not inside a block element
|
|
114
|
+
const isInsideBlockElement = composedPaths?.some(($elem) => $elem.tagName === 'UMB-RTE-BLOCK' || $elem.tagName === 'UMB-RTE-BLOCK-INLINE') ?? false;
|
|
115
|
+
if (!isInsideBlockElement) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
// Remove the origin from the start of the HREF to get the path
|
|
119
|
+
const path = $anchor.pathname + $anchor.search + $anchor.hash;
|
|
120
|
+
// Prevent the default behavior
|
|
121
|
+
e.preventDefault();
|
|
122
|
+
// Change the history!
|
|
123
|
+
window.history.pushState(null, '', path);
|
|
124
|
+
});
|
|
125
|
+
// Load backoffice JS so we can get the umb-rte-block component registered inside the iframe [NL]
|
|
126
|
+
const script = document.createElement('script');
|
|
127
|
+
script.type = 'text/javascript';
|
|
128
|
+
script.setAttribute('type', 'module');
|
|
129
|
+
script.text = `import "@umbraco-cms/backoffice/extension-registry";`;
|
|
130
|
+
script.text = `import "${UMB_BLOCK_ENTRY_WEB_COMPONENTS_ABSOLUTE_PATH}";`;
|
|
131
|
+
editor.dom.doc.head.appendChild(script);
|
|
132
|
+
},
|
|
133
|
+
style_formats: [
|
|
134
|
+
{
|
|
135
|
+
title: 'Headers',
|
|
136
|
+
items: [
|
|
137
|
+
{ title: 'Page header', block: 'h2' },
|
|
138
|
+
{ title: 'Section header', block: 'h3' },
|
|
139
|
+
{ title: 'Paragraph header', block: 'h4' },
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
title: 'Blocks',
|
|
144
|
+
items: [{ title: 'Paragraph', block: 'p' }],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
title: 'Containers',
|
|
148
|
+
items: [
|
|
149
|
+
{ title: 'Quote', block: 'blockquote' },
|
|
150
|
+
{ title: 'Code', block: 'code' },
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
/**
|
|
155
|
+
* @description The maximum image size in pixels that can be inserted into the editor.
|
|
156
|
+
* @remarks This is registered and used by the UmbMediaPicker plugin
|
|
157
|
+
*/
|
|
158
|
+
maxImageSize: 500,
|
|
159
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
2
|
+
import type { Editor } from '../../external/tinymce/index.js';
|
|
3
|
+
import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor';
|
|
4
|
+
declare const UmbInputTinyMceElement_base: (new (...args: any[]) => import("@umbraco-ui/uui-base").UUIFormControlMixinElement<FormDataEntryValue | FormData>) & typeof UmbLitElement;
|
|
5
|
+
export declare class UmbInputTinyMceElement extends UmbInputTinyMceElement_base {
|
|
6
|
+
#private;
|
|
7
|
+
configuration?: UmbPropertyEditorConfigCollection;
|
|
8
|
+
protected getFormElement(): HTMLIFrameElement | undefined;
|
|
9
|
+
set value(newValue: FormDataEntryValue | FormData);
|
|
10
|
+
get value(): FormDataEntryValue | FormData;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.
|
|
13
|
+
* @type {boolean}
|
|
14
|
+
* @attr
|
|
15
|
+
* @default
|
|
16
|
+
*/
|
|
17
|
+
get readonly(): boolean;
|
|
18
|
+
set readonly(value: boolean);
|
|
19
|
+
private readonly _editorElement?;
|
|
20
|
+
getEditor(): Editor | null | undefined;
|
|
21
|
+
firstUpdated(): void;
|
|
22
|
+
disconnectedCallback(): void;
|
|
23
|
+
getFormatStyles(stylesheetPaths: Array<string>): Promise<any[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Nothing rendered by default - TinyMCE initialization creates
|
|
26
|
+
* a target div and binds the RTE to that element
|
|
27
|
+
*/
|
|
28
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
29
|
+
static readonly styles: import("lit").CSSResult[];
|
|
30
|
+
}
|
|
31
|
+
export default UmbInputTinyMceElement;
|
|
32
|
+
declare global {
|
|
33
|
+
interface HTMLElementTagNameMap {
|
|
34
|
+
'umb-input-tiny-mce': UmbInputTinyMceElement;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=input-tiny-mce.element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-tiny-mce.element.d.ts","sourceRoot":"","sources":["../../../src/components/input-tiny-mce/input-tiny-mce.element.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAIpE,OAAO,KAAK,EAAe,MAAM,EAAoB,MAAM,iCAAiC,CAAC;AAE7F,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;;AAmCjG,qBACa,sBAAuB,SAAQ,2BAAsC;;IAEjF,aAAa,CAAC,EAAE,iCAAiC,CAAC;cAQ/B,cAAc;IAIjC,IAAa,KAAK,CAAC,QAAQ,EAAE,kBAAkB,GAAG,QAAQ,EAOzD;IAED,IAAa,KAAK,IAAI,kBAAkB,GAAG,QAAQ,CAElD;IAED;;;;;OAKG;IACH,IACW,QAAQ,YAElB;IACD,IAAW,QAAQ,CAAC,KAAK,SAAA,EAKxB;IAID,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAc;IAE9C,SAAS;IAIA,YAAY;IAsBZ,oBAAoB;IA0BvB,eAAe,CAAC,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC;IAkUpD;;;OAGG;IACM,MAAM;IAIf,gBAAyB,MAAM,4BAkB7B;CACF;AAED,eAAe,sBAAsB,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,oBAAoB,EAAE,sBAAsB,CAAC;KAC7C;CACD"}
|