@tiny-mce-umbraco/backoffice 16.0.0-rc2 → 16.0.0-rc2.1

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.
Files changed (214) hide show
  1. package/README.md +1 -0
  2. package/dist-cms/README.md +1 -0
  3. package/dist-cms/api/client.gen.d.ts +13 -0
  4. package/dist-cms/api/client.gen.d.ts.map +1 -0
  5. package/dist-cms/api/client.gen.js +5 -0
  6. package/dist-cms/api/index.d.ts +3 -0
  7. package/dist-cms/api/index.d.ts.map +1 -0
  8. package/dist-cms/api/index.js +3 -0
  9. package/dist-cms/api/sdk.gen.d.ts +19 -0
  10. package/dist-cms/api/sdk.gen.d.ts.map +1 -0
  11. package/dist-cms/api/sdk.gen.js +16 -0
  12. package/dist-cms/api/types.gen.d.ts +72 -0
  13. package/dist-cms/api/types.gen.d.ts.map +1 -0
  14. package/dist-cms/api/types.gen.js +7 -0
  15. package/dist-cms/components/constants.d.ts +2 -0
  16. package/dist-cms/components/constants.d.ts.map +1 -0
  17. package/dist-cms/components/constants.js +1 -0
  18. package/dist-cms/components/index.d.ts +6 -0
  19. package/dist-cms/components/index.d.ts.map +1 -0
  20. package/dist-cms/components/index.js +5 -0
  21. package/dist-cms/components/input-tiny-mce/index.d.ts +7 -0
  22. package/dist-cms/components/input-tiny-mce/index.d.ts.map +1 -0
  23. package/dist-cms/components/input-tiny-mce/index.js +6 -0
  24. package/dist-cms/components/input-tiny-mce/input-tiny-mce.defaults.d.ts +5 -0
  25. package/dist-cms/components/input-tiny-mce/input-tiny-mce.defaults.d.ts.map +1 -0
  26. package/dist-cms/components/input-tiny-mce/input-tiny-mce.defaults.js +159 -0
  27. package/dist-cms/components/input-tiny-mce/input-tiny-mce.element.d.ts +37 -0
  28. package/dist-cms/components/input-tiny-mce/input-tiny-mce.element.d.ts.map +1 -0
  29. package/dist-cms/components/input-tiny-mce/input-tiny-mce.element.js +449 -0
  30. package/dist-cms/components/input-tiny-mce/input-tiny-mce.handlers.d.ts +3 -0
  31. package/dist-cms/components/input-tiny-mce/input-tiny-mce.handlers.d.ts.map +1 -0
  32. package/dist-cms/components/input-tiny-mce/input-tiny-mce.handlers.js +8 -0
  33. package/dist-cms/components/input-tiny-mce/input-tiny-mce.languages.d.ts +2 -0
  34. package/dist-cms/components/input-tiny-mce/input-tiny-mce.languages.d.ts.map +1 -0
  35. package/dist-cms/components/input-tiny-mce/input-tiny-mce.languages.js +78 -0
  36. package/dist-cms/components/input-tiny-mce/input-tiny-mce.sanitizer.d.ts +9 -0
  37. package/dist-cms/components/input-tiny-mce/input-tiny-mce.sanitizer.d.ts.map +1 -0
  38. package/dist-cms/components/input-tiny-mce/input-tiny-mce.sanitizer.js +47 -0
  39. package/dist-cms/components/input-tiny-mce/tiny-mce-plugin.d.ts +24 -0
  40. package/dist-cms/components/input-tiny-mce/tiny-mce-plugin.d.ts.map +1 -0
  41. package/dist-cms/components/input-tiny-mce/tiny-mce-plugin.js +16 -0
  42. package/dist-cms/components/manifests.d.ts +2 -0
  43. package/dist-cms/components/manifests.d.ts.map +1 -0
  44. package/dist-cms/components/manifests.js +2 -0
  45. package/dist-cms/components/stylesheet-rule-input/constants.d.ts +3 -0
  46. package/dist-cms/components/stylesheet-rule-input/constants.d.ts.map +1 -0
  47. package/dist-cms/components/stylesheet-rule-input/constants.js +2 -0
  48. package/dist-cms/components/stylesheet-rule-input/manifests.d.ts +3 -0
  49. package/dist-cms/components/stylesheet-rule-input/manifests.d.ts.map +1 -0
  50. package/dist-cms/components/stylesheet-rule-input/manifests.js +9 -0
  51. package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-input.element.d.ts +18 -0
  52. package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-input.element.d.ts.map +1 -0
  53. package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-input.element.js +119 -0
  54. package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.element.d.ts +12 -0
  55. package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.element.d.ts.map +1 -0
  56. package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.element.js +142 -0
  57. package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.token.d.ts +7 -0
  58. package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.token.d.ts.map +1 -0
  59. package/dist-cms/components/stylesheet-rule-input/stylesheet-rule-settings-modal.token.js +9 -0
  60. package/dist-cms/components/stylesheet-rule-ref/stylesheet-rule-ref.element.d.ts +16 -0
  61. package/dist-cms/components/stylesheet-rule-ref/stylesheet-rule-ref.element.d.ts.map +1 -0
  62. package/dist-cms/components/stylesheet-rule-ref/stylesheet-rule-ref.element.js +24 -0
  63. package/dist-cms/constants.d.ts +2 -0
  64. package/dist-cms/constants.d.ts.map +1 -0
  65. package/dist-cms/constants.js +1 -0
  66. package/dist-cms/entry-points/entry-point.d.ts +4 -0
  67. package/dist-cms/entry-points/entry-point.d.ts.map +1 -0
  68. package/dist-cms/entry-points/entry-point.js +25 -0
  69. package/dist-cms/entry-points/manifest.d.ts +2 -0
  70. package/dist-cms/entry-points/manifest.d.ts.map +1 -0
  71. package/dist-cms/entry-points/manifest.js +8 -0
  72. package/dist-cms/external/tinymce/index.d.ts +22 -0
  73. package/dist-cms/external/tinymce/index.d.ts.map +1 -0
  74. package/dist-cms/external/tinymce/index.js +18 -0
  75. package/dist-cms/icons/icons.d.ts +6 -0
  76. package/dist-cms/icons/icons.d.ts.map +1 -0
  77. package/dist-cms/icons/icons.js +1 -0
  78. package/dist-cms/icons/manifests.d.ts +2 -0
  79. package/dist-cms/icons/manifests.d.ts.map +1 -0
  80. package/dist-cms/icons/manifests.js +8 -0
  81. package/dist-cms/index.d.ts +5 -0
  82. package/dist-cms/index.d.ts.map +1 -0
  83. package/dist-cms/index.js +3 -0
  84. package/dist-cms/localizations/ar.d.ts +4 -0
  85. package/dist-cms/localizations/ar.d.ts.map +1 -0
  86. package/dist-cms/localizations/ar.js +5 -0
  87. package/dist-cms/localizations/bs.d.ts +4 -0
  88. package/dist-cms/localizations/bs.d.ts.map +1 -0
  89. package/dist-cms/localizations/bs.js +5 -0
  90. package/dist-cms/localizations/cs.d.ts +4 -0
  91. package/dist-cms/localizations/cs.d.ts.map +1 -0
  92. package/dist-cms/localizations/cs.js +5 -0
  93. package/dist-cms/localizations/cy.d.ts +4 -0
  94. package/dist-cms/localizations/cy.d.ts.map +1 -0
  95. package/dist-cms/localizations/cy.js +5 -0
  96. package/dist-cms/localizations/da.d.ts +4 -0
  97. package/dist-cms/localizations/da.d.ts.map +1 -0
  98. package/dist-cms/localizations/da.js +5 -0
  99. package/dist-cms/localizations/de.d.ts +4 -0
  100. package/dist-cms/localizations/de.d.ts.map +1 -0
  101. package/dist-cms/localizations/de.js +5 -0
  102. package/dist-cms/localizations/en.d.ts +4 -0
  103. package/dist-cms/localizations/en.d.ts.map +1 -0
  104. package/dist-cms/localizations/en.js +5 -0
  105. package/dist-cms/localizations/fr.d.ts +4 -0
  106. package/dist-cms/localizations/fr.d.ts.map +1 -0
  107. package/dist-cms/localizations/fr.js +5 -0
  108. package/dist-cms/localizations/hr.d.ts +4 -0
  109. package/dist-cms/localizations/hr.d.ts.map +1 -0
  110. package/dist-cms/localizations/hr.js +5 -0
  111. package/dist-cms/localizations/it.d.ts +4 -0
  112. package/dist-cms/localizations/it.d.ts.map +1 -0
  113. package/dist-cms/localizations/it.js +5 -0
  114. package/dist-cms/localizations/manifests.d.ts +2 -0
  115. package/dist-cms/localizations/manifests.d.ts.map +1 -0
  116. package/dist-cms/localizations/manifests.js +97 -0
  117. package/dist-cms/localizations/nl.d.ts +4 -0
  118. package/dist-cms/localizations/nl.d.ts.map +1 -0
  119. package/dist-cms/localizations/nl.js +5 -0
  120. package/dist-cms/localizations/tr.d.ts +4 -0
  121. package/dist-cms/localizations/tr.d.ts.map +1 -0
  122. package/dist-cms/localizations/tr.js +5 -0
  123. package/dist-cms/manifests.d.ts +2 -0
  124. package/dist-cms/manifests.d.ts.map +1 -0
  125. package/dist-cms/manifests.js +16 -0
  126. package/dist-cms/plugins/core/a11ychecker.tinymce-api.d.ts +6 -0
  127. package/dist-cms/plugins/core/a11ychecker.tinymce-api.d.ts.map +1 -0
  128. package/dist-cms/plugins/core/a11ychecker.tinymce-api.js +7 -0
  129. package/dist-cms/plugins/core/ai-assistant.tinymce-api.d.ts +9 -0
  130. package/dist-cms/plugins/core/ai-assistant.tinymce-api.d.ts.map +1 -0
  131. package/dist-cms/plugins/core/ai-assistant.tinymce-api.js +41 -0
  132. package/dist-cms/plugins/core/ai-request-factory.d.ts +2 -0
  133. package/dist-cms/plugins/core/ai-request-factory.d.ts.map +1 -0
  134. package/dist-cms/plugins/core/ai-request-factory.js +33 -0
  135. package/dist-cms/plugins/core/basic.tinymce-api.d.ts +6 -0
  136. package/dist-cms/plugins/core/basic.tinymce-api.d.ts.map +1 -0
  137. package/dist-cms/plugins/core/basic.tinymce-api.js +7 -0
  138. package/dist-cms/plugins/manifests.d.ts +3 -0
  139. package/dist-cms/plugins/manifests.d.ts.map +1 -0
  140. package/dist-cms/plugins/manifests.js +506 -0
  141. package/dist-cms/plugins/tiny-mce-block-picker.plugin.d.ts +8 -0
  142. package/dist-cms/plugins/tiny-mce-block-picker.plugin.d.ts.map +1 -0
  143. package/dist-cms/plugins/tiny-mce-block-picker.plugin.js +99 -0
  144. package/dist-cms/plugins/tiny-mce-code-editor.plugin.d.ts +7 -0
  145. package/dist-cms/plugins/tiny-mce-code-editor.plugin.d.ts.map +1 -0
  146. package/dist-cms/plugins/tiny-mce-code-editor.plugin.js +42 -0
  147. package/dist-cms/plugins/tiny-mce-embeddedmedia.plugin.d.ts +7 -0
  148. package/dist-cms/plugins/tiny-mce-embeddedmedia.plugin.d.ts.map +1 -0
  149. package/dist-cms/plugins/tiny-mce-embeddedmedia.plugin.js +74 -0
  150. package/dist-cms/plugins/tiny-mce-mediapicker.plugin.d.ts +7 -0
  151. package/dist-cms/plugins/tiny-mce-mediapicker.plugin.d.ts.map +1 -0
  152. package/dist-cms/plugins/tiny-mce-mediapicker.plugin.js +224 -0
  153. package/dist-cms/plugins/tiny-mce-multi-url-picker.plugin.d.ts +8 -0
  154. package/dist-cms/plugins/tiny-mce-multi-url-picker.plugin.d.ts.map +1 -0
  155. package/dist-cms/plugins/tiny-mce-multi-url-picker.plugin.js +172 -0
  156. package/dist-cms/plugins/tinymce-plugin.extension.d.ts +70 -0
  157. package/dist-cms/plugins/tinymce-plugin.extension.d.ts.map +1 -0
  158. package/dist-cms/plugins/tinymce-plugin.extension.js +1 -0
  159. package/dist-cms/plugins/types.d.ts +2 -0
  160. package/dist-cms/plugins/types.d.ts.map +1 -0
  161. package/dist-cms/plugins/types.js +1 -0
  162. package/dist-cms/property-editors/configEditor/property-editor-ui-tiny-mce-config-editor.element.d.ts +23 -0
  163. package/dist-cms/property-editors/configEditor/property-editor-ui-tiny-mce-config-editor.element.d.ts.map +1 -0
  164. package/dist-cms/property-editors/configEditor/property-editor-ui-tiny-mce-config-editor.element.js +102 -0
  165. package/dist-cms/property-editors/constants.d.ts +2 -0
  166. package/dist-cms/property-editors/constants.d.ts.map +1 -0
  167. package/dist-cms/property-editors/constants.js +1 -0
  168. package/dist-cms/property-editors/manifests.d.ts +2 -0
  169. package/dist-cms/property-editors/manifests.d.ts.map +1 -0
  170. package/dist-cms/property-editors/manifests.js +37 -0
  171. package/dist-cms/property-editors/plugin/property-editor-ui-tiny-mce-plugin-configuration.element.d.ts +25 -0
  172. package/dist-cms/property-editors/plugin/property-editor-ui-tiny-mce-plugin-configuration.element.d.ts.map +1 -0
  173. package/dist-cms/property-editors/plugin/property-editor-ui-tiny-mce-plugin-configuration.element.js +212 -0
  174. package/dist-cms/property-editors/tiny-mce/constants.d.ts +2 -0
  175. package/dist-cms/property-editors/tiny-mce/constants.d.ts.map +1 -0
  176. package/dist-cms/property-editors/tiny-mce/constants.js +1 -0
  177. package/dist-cms/property-editors/tiny-mce/manifests.d.ts +2 -0
  178. package/dist-cms/property-editors/tiny-mce/manifests.d.ts.map +1 -0
  179. package/dist-cms/property-editors/tiny-mce/manifests.js +149 -0
  180. package/dist-cms/property-editors/tiny-mce/property-editor-ui-tiny-mce.element.d.ts +16 -0
  181. package/dist-cms/property-editors/tiny-mce/property-editor-ui-tiny-mce.element.d.ts.map +1 -0
  182. package/dist-cms/property-editors/tiny-mce/property-editor-ui-tiny-mce.element.js +79 -0
  183. package/dist-cms/property-editors/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.d.ts +25 -0
  184. package/dist-cms/property-editors/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.d.ts.map +1 -0
  185. package/dist-cms/property-editors/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.js +201 -0
  186. package/dist-cms/stylesheets/entity-actions/manifests.d.ts +2 -0
  187. package/dist-cms/stylesheets/entity-actions/manifests.d.ts.map +1 -0
  188. package/dist-cms/stylesheets/entity-actions/manifests.js +15 -0
  189. package/dist-cms/stylesheets/entity-actions/rte-stylesheet-create-option-action.d.ts +7 -0
  190. package/dist-cms/stylesheets/entity-actions/rte-stylesheet-create-option-action.d.ts.map +1 -0
  191. package/dist-cms/stylesheets/entity-actions/rte-stylesheet-create-option-action.js +8 -0
  192. package/dist-cms/stylesheets/manifests.d.ts +2 -0
  193. package/dist-cms/stylesheets/manifests.d.ts.map +1 -0
  194. package/dist-cms/stylesheets/manifests.js +3 -0
  195. package/dist-cms/stylesheets/stylesheet-rule-manager.d.ts +20 -0
  196. package/dist-cms/stylesheets/stylesheet-rule-manager.d.ts.map +1 -0
  197. package/dist-cms/stylesheets/stylesheet-rule-manager.js +57 -0
  198. package/dist-cms/stylesheets/workspace-views/manifests.d.ts +2 -0
  199. package/dist-cms/stylesheets/workspace-views/manifests.d.ts.map +1 -0
  200. package/dist-cms/stylesheets/workspace-views/manifests.js +22 -0
  201. package/dist-cms/stylesheets/workspace-views/stylesheet-rich-text-rule-workspace-view.element.d.ts +18 -0
  202. package/dist-cms/stylesheets/workspace-views/stylesheet-rich-text-rule-workspace-view.element.d.ts.map +1 -0
  203. package/dist-cms/stylesheets/workspace-views/stylesheet-rich-text-rule-workspace-view.element.js +100 -0
  204. package/dist-cms/tinymce.d.ts +2 -0
  205. package/dist-cms/tinymce.d.ts.map +1 -0
  206. package/dist-cms/tinymce.js +1 -0
  207. package/dist-cms/types.d.ts +6 -0
  208. package/dist-cms/types.d.ts.map +1 -0
  209. package/dist-cms/types.js +1 -0
  210. package/dist-cms/utils/index.d.ts +26 -0
  211. package/dist-cms/utils/index.d.ts.map +1 -0
  212. package/dist-cms/utils/index.js +108 -0
  213. package/package.json +10 -4
  214. package/dist/tiny-mce-umbraco.d.ts +0 -252
@@ -0,0 +1,102 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _UmbPropertyEditorUITinyMceConfigEditorElement_instances, _UmbPropertyEditorUITinyMceConfigEditorElement_showCodeEditor;
13
+ import { css, customElement, html, property, state } from '@umbraco-cms/backoffice/external/lit';
14
+ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
15
+ import { UmbChangeEvent } from '@umbraco-cms/backoffice/event';
16
+ import { UMB_CODE_EDITOR_MODAL } from '@umbraco-cms/backoffice/code-editor';
17
+ import { umbOpenModal } from '@umbraco-cms/backoffice/modal';
18
+ /**
19
+ * @element umb-property-editor-ui-tiny-mce-config-editor
20
+ */
21
+ let UmbPropertyEditorUITinyMceConfigEditorElement = class UmbPropertyEditorUITinyMceConfigEditorElement extends UmbLitElement {
22
+ constructor() {
23
+ super(...arguments);
24
+ _UmbPropertyEditorUITinyMceConfigEditorElement_instances.add(this);
25
+ this._customConfig = JSON.parse('{}');
26
+ }
27
+ set value(value) {
28
+ if (!value)
29
+ return;
30
+ this._customConfig = value;
31
+ }
32
+ get value() {
33
+ return this._customConfig;
34
+ }
35
+ async firstUpdated(_changedProperties) {
36
+ super.firstUpdated(_changedProperties);
37
+ this._customConfig = this.value;
38
+ this.requestUpdate('_customConfig');
39
+ }
40
+ render() {
41
+ return html `
42
+ <umb-body-layout>
43
+ <button @click=${__classPrivateFieldGet(this, _UmbPropertyEditorUITinyMceConfigEditorElement_instances, "m", _UmbPropertyEditorUITinyMceConfigEditorElement_showCodeEditor)}>Open Code Editor</button>
44
+ <div id="editor-box"><pre>${JSON.stringify(this.value, null, 2)}</pre></div>
45
+ </umb-body-layout>
46
+ `;
47
+ }
48
+ };
49
+ _UmbPropertyEditorUITinyMceConfigEditorElement_instances = new WeakSet();
50
+ _UmbPropertyEditorUITinyMceConfigEditorElement_showCodeEditor = async function _UmbPropertyEditorUITinyMceConfigEditorElement_showCodeEditor() {
51
+ const value = await umbOpenModal(this, UMB_CODE_EDITOR_MODAL, {
52
+ data: {
53
+ headline: 'Edit custom configuration',
54
+ content: JSON.stringify(this._customConfig) ?? '',
55
+ language: 'json',
56
+ },
57
+ }).catch(() => undefined);
58
+ if (!value) {
59
+ return;
60
+ }
61
+ if (!value.content) {
62
+ this._customConfig = JSON.parse('{}');
63
+ }
64
+ else {
65
+ try {
66
+ this._customConfig = JSON.parse(value.content.toString());
67
+ console.log('Parsed object:', this._customConfig);
68
+ // Proceed with using jsonObj
69
+ }
70
+ catch (err) {
71
+ console.error('Invalid JSON:', err);
72
+ }
73
+ }
74
+ this.dispatchEvent(new UmbChangeEvent());
75
+ };
76
+ UmbPropertyEditorUITinyMceConfigEditorElement.styles = [
77
+ css `
78
+ #editor-box {
79
+ padding: var(--uui-box-default-padding, var(--uui-size-space-5, 18px));
80
+ height: 100%;
81
+ display: flex;
82
+ background: #FFFFFF;
83
+ padding: 1em;
84
+ border-radius: 4px;
85
+ font-family: monospace;
86
+ }
87
+ `,
88
+ ];
89
+ __decorate([
90
+ property({ attribute: false })
91
+ ], UmbPropertyEditorUITinyMceConfigEditorElement.prototype, "value", null);
92
+ __decorate([
93
+ property({ attribute: false })
94
+ ], UmbPropertyEditorUITinyMceConfigEditorElement.prototype, "config", void 0);
95
+ __decorate([
96
+ state()
97
+ ], UmbPropertyEditorUITinyMceConfigEditorElement.prototype, "_customConfig", void 0);
98
+ UmbPropertyEditorUITinyMceConfigEditorElement = __decorate([
99
+ customElement('umb-property-editor-ui-tiny-mce-config-editor')
100
+ ], UmbPropertyEditorUITinyMceConfigEditorElement);
101
+ export { UmbPropertyEditorUITinyMceConfigEditorElement };
102
+ export default UmbPropertyEditorUITinyMceConfigEditorElement;
@@ -0,0 +1,2 @@
1
+ export * from './tiny-mce/constants.js';
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/property-editors/constants.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './tiny-mce/constants.js';
@@ -0,0 +1,2 @@
1
+ export declare const manifests: Array<UmbExtensionManifest>;
2
+ //# sourceMappingURL=manifests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifests.d.ts","sourceRoot":"","sources":["../../src/property-editors/manifests.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,oBAAoB,CAmCjD,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { manifests as tinyMceManifest } from './tiny-mce/manifests.js';
2
+ export const manifests = [
3
+ ...tinyMceManifest,
4
+ {
5
+ type: 'propertyEditorUi',
6
+ alias: 'TinyMCE.PropertyEditorUI.TinyMCE.PluginConfiguration',
7
+ name: 'TinyMCE Plugin Property Editor UI',
8
+ element: () => import('./plugin/property-editor-ui-tiny-mce-plugin-configuration.element.js'),
9
+ meta: {
10
+ label: 'TinyMCE Plugin Configuration',
11
+ icon: 'icon-autofill',
12
+ group: 'common',
13
+ },
14
+ },
15
+ {
16
+ type: 'propertyEditorUi',
17
+ alias: 'Umb.PropertyEditorUI.TinyMCE.ToolbarConfiguration',
18
+ name: 'TinyMCE Toolbar Property Editor UI',
19
+ element: () => import('./toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.js'),
20
+ meta: {
21
+ label: 'TinyMCE Toolbar Configuration',
22
+ icon: 'icon-autofill',
23
+ group: 'common',
24
+ },
25
+ },
26
+ {
27
+ type: 'propertyEditorUi',
28
+ alias: 'Umb.PropertyEditorUI.TinyMCE.CustomConfig',
29
+ name: 'TinyMCE Custom Config Property Editor UI',
30
+ element: () => import('./configEditor/property-editor-ui-tiny-mce-config-editor.element.js'),
31
+ meta: {
32
+ label: 'TinyMCE Custom Configuration',
33
+ icon: 'icon-autofill',
34
+ group: 'common',
35
+ },
36
+ },
37
+ ];
@@ -0,0 +1,25 @@
1
+ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
2
+ import type { PropertyValueMap } from '@umbraco-cms/backoffice/external/lit';
3
+ import type { UmbPropertyEditorUiElement, UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor';
4
+ /**
5
+ * @element umb-property-editor-ui-tiny-mce-plugin-configuration
6
+ */
7
+ export declare class UmbPropertyEditorUITinyMcePluginConfigurationElement extends UmbLitElement implements UmbPropertyEditorUiElement {
8
+ #private;
9
+ set value(value: string | string[] | null);
10
+ get value(): string[];
11
+ config?: UmbPropertyEditorConfigCollection;
12
+ private _pluginConfig;
13
+ protected firstUpdated(_changedProperties: PropertyValueMap<unknown>): Promise<void>;
14
+ private getPlugins;
15
+ private onChange;
16
+ render(): import("lit-html").TemplateResult<1>;
17
+ static readonly styles: import("lit").CSSResult[];
18
+ }
19
+ export default UmbPropertyEditorUITinyMcePluginConfigurationElement;
20
+ declare global {
21
+ interface HTMLElementTagNameMap {
22
+ 'umb-property-editor-ui-tiny-mce-plugin-configuration': UmbPropertyEditorUITinyMcePluginConfigurationElement;
23
+ }
24
+ }
25
+ //# sourceMappingURL=property-editor-ui-tiny-mce-plugin-configuration.element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"property-editor-ui-tiny-mce-plugin-configuration.element.d.ts","sourceRoot":"","sources":["../../../src/property-editors/plugin/property-editor-ui-tiny-mce-plugin-configuration.element.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,KAAK,EACX,0BAA0B,EAC1B,iCAAiC,EACjC,MAAM,yCAAyC,CAAC;AAejD;;GAEG;AACH,qBACa,oDACZ,SAAQ,aACR,YAAW,0BAA0B;;IAErC,IACI,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,EAexC;IACD,IAAI,KAAK,IAAI,MAAM,EAAE,CAEpB;IAGD,MAAM,CAAC,EAAE,iCAAiC,CAAC;IAG3C,OAAO,CAAC,aAAa,CAAsB;cAIlB,YAAY,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,OAAO,CAAC;YAuBrE,UAAU;IA4FxB,OAAO,CAAC,QAAQ;IAaP,MAAM;IAoBf,gBAAyB,MAAM,4BAS7B;CACF;AAED,eAAe,oDAAoD,CAAC;AAEpE,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,sDAAsD,EAAE,oDAAoD,CAAC;KAC7G;CACD"}
@@ -0,0 +1,212 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8
+ if (kind === "m") throw new TypeError("Private method is not writable");
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
11
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12
+ };
13
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
15
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
16
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
17
+ };
18
+ var _UmbPropertyEditorUITinyMcePluginConfigurationElement_instances, _UmbPropertyEditorUITinyMcePluginConfigurationElement_selectedValues, _UmbPropertyEditorUITinyMcePluginConfigurationElement_getTinyMceConfig;
19
+ import { css, customElement, html, property, state, repeat } from '@umbraco-cms/backoffice/external/lit';
20
+ import { firstValueFrom } from '@umbraco-cms/backoffice/external/rxjs';
21
+ import { TinyMceService } from '../../api/index.js';
22
+ import { tryExecute } from '@umbraco-cms/backoffice/resources';
23
+ import { umbHttpClient } from '@umbraco-cms/backoffice/http-client';
24
+ //import { tinymce } from '@umbraco-cms/backoffice/external/tinymce';
25
+ import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
26
+ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
27
+ import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
28
+ import { UmbChangeEvent } from '@umbraco-cms/backoffice/event';
29
+ import { defaultFallbackConfig } from '../../components/input-tiny-mce/input-tiny-mce.defaults.js';
30
+ import { defaultPremiumPluginsList } from '../../components/input-tiny-mce/input-tiny-mce.defaults.js';
31
+ /**
32
+ * @element umb-property-editor-ui-tiny-mce-plugin-configuration
33
+ */
34
+ let UmbPropertyEditorUITinyMcePluginConfigurationElement = class UmbPropertyEditorUITinyMcePluginConfigurationElement extends UmbLitElement {
35
+ constructor() {
36
+ super(...arguments);
37
+ _UmbPropertyEditorUITinyMcePluginConfigurationElement_instances.add(this);
38
+ this._pluginConfig = [];
39
+ _UmbPropertyEditorUITinyMcePluginConfigurationElement_selectedValues.set(this, []);
40
+ }
41
+ set value(value) {
42
+ if (!value)
43
+ return;
44
+ if (typeof value === 'string') {
45
+ __classPrivateFieldSet(this, _UmbPropertyEditorUITinyMcePluginConfigurationElement_selectedValues, value.split(',').filter((x) => x.length > 0), "f");
46
+ }
47
+ else if (Array.isArray(value)) {
48
+ __classPrivateFieldSet(this, _UmbPropertyEditorUITinyMcePluginConfigurationElement_selectedValues, value, "f");
49
+ }
50
+ else {
51
+ __classPrivateFieldSet(this, _UmbPropertyEditorUITinyMcePluginConfigurationElement_selectedValues, [], "f");
52
+ return;
53
+ }
54
+ this._pluginConfig.forEach((v) => {
55
+ v.selected = __classPrivateFieldGet(this, _UmbPropertyEditorUITinyMcePluginConfigurationElement_selectedValues, "f").includes(v.alias);
56
+ });
57
+ }
58
+ get value() {
59
+ return __classPrivateFieldGet(this, _UmbPropertyEditorUITinyMcePluginConfigurationElement_selectedValues, "f");
60
+ }
61
+ async firstUpdated(_changedProperties) {
62
+ super.firstUpdated(_changedProperties);
63
+ this.config?.getValueByAlias('plugins')?.forEach((v) => {
64
+ this._pluginConfig.push({
65
+ ...v,
66
+ selected: this.value.includes(v.alias),
67
+ });
68
+ });
69
+ await this.getPlugins();
70
+ this.requestUpdate('_pluginConfig');
71
+ }
72
+ async getPlugins() {
73
+ // Get all the tinymce plugins
74
+ const plugin$ = umbExtensionsRegistry.byType('tinyMcePlugin');
75
+ const plugins = await firstValueFrom(plugin$);
76
+ const appSettingsConfig = await __classPrivateFieldGet(this, _UmbPropertyEditorUITinyMcePluginConfigurationElement_instances, "m", _UmbPropertyEditorUITinyMcePluginConfigurationElement_getTinyMceConfig).call(this);
77
+ // Get list of plugins to exclude from the list
78
+ let apiKey = '';
79
+ let excludeList = [];
80
+ let configPlugins = [];
81
+ if (appSettingsConfig) {
82
+ apiKey = appSettingsConfig.richTextEditor?.cloudApiKey || '';
83
+ if (appSettingsConfig.config?.apikey) {
84
+ apiKey = appSettingsConfig.config?.apikey;
85
+ }
86
+ if (Array.isArray(appSettingsConfig.config?.pluginsToExclude)) {
87
+ excludeList = appSettingsConfig.config?.pluginsToExclude;
88
+ }
89
+ if (!apiKey) {
90
+ // Remove pre-loaded premium plugins if no key present
91
+ excludeList = [...new Set([...excludeList, ...defaultPremiumPluginsList])];
92
+ }
93
+ if (Array.isArray(appSettingsConfig.richTextEditor?.plugins)) {
94
+ configPlugins = appSettingsConfig.richTextEditor?.plugins;
95
+ }
96
+ }
97
+ // Add defaultPlugins
98
+ if (typeof defaultFallbackConfig.plugins === 'string') {
99
+ this._pluginConfig.push({
100
+ alias: defaultFallbackConfig.plugins,
101
+ label: defaultFallbackConfig.plugins + ' (default plugin)',
102
+ icon: undefined,
103
+ selected: true,
104
+ disabled: true,
105
+ });
106
+ }
107
+ else if (Array.isArray(defaultFallbackConfig.plugins)) {
108
+ defaultFallbackConfig.plugins.forEach((pl) => {
109
+ this._pluginConfig.push({
110
+ alias: pl,
111
+ label: pl + ' (default plugin)',
112
+ selected: true,
113
+ disabled: true,
114
+ });
115
+ });
116
+ }
117
+ const defaultPluginAliases = this._pluginConfig.map((p) => p.alias);
118
+ configPlugins.forEach((p) => {
119
+ if (!excludeList.includes(p) && !defaultPluginAliases.includes(p)) {
120
+ this._pluginConfig.push({
121
+ alias: p,
122
+ label: p,
123
+ icon: undefined,
124
+ selected: this.value.includes(p),
125
+ disabled: false,
126
+ });
127
+ }
128
+ });
129
+ plugins.forEach((p) => {
130
+ if (p.meta?.plugins) {
131
+ if (typeof p.meta.plugins === 'string' && !excludeList.includes(p.meta.plugins)) {
132
+ this._pluginConfig.push({
133
+ alias: p.meta.plugins,
134
+ label: p.meta.plugins,
135
+ icon: undefined,
136
+ selected: this.value.includes(p.meta.plugins),
137
+ disabled: false,
138
+ });
139
+ }
140
+ else if (Array.isArray(p.meta.plugins)) {
141
+ p.meta.plugins.forEach((pl) => {
142
+ if (!excludeList.includes(pl)) {
143
+ this._pluginConfig.push({
144
+ alias: pl,
145
+ label: pl,
146
+ icon: undefined,
147
+ selected: this.value.includes(pl),
148
+ disabled: false,
149
+ });
150
+ }
151
+ });
152
+ }
153
+ }
154
+ });
155
+ }
156
+ onChange(event) {
157
+ const checkbox = event.target;
158
+ const alias = checkbox.value;
159
+ const value = this._pluginConfig
160
+ .filter((t) => (t.alias !== alias && t.selected) || (t.alias === alias && checkbox.checked))
161
+ .map((v) => v.alias);
162
+ this.value = value;
163
+ this.dispatchEvent(new UmbChangeEvent());
164
+ }
165
+ render() {
166
+ return html `<ul>
167
+ ${repeat(this._pluginConfig, (v) => v.alias, (v) => html `<li>
168
+ <uui-checkbox
169
+ label=${v.label}
170
+ value=${v.alias}
171
+ ?disabled=${v.disabled}
172
+ ?checked=${v.selected}
173
+ @change=${this.onChange}>
174
+ ${v.label}
175
+ </uui-checkbox>
176
+ </li>`)}
177
+ </ul>`;
178
+ }
179
+ };
180
+ _UmbPropertyEditorUITinyMcePluginConfigurationElement_selectedValues = new WeakMap();
181
+ _UmbPropertyEditorUITinyMcePluginConfigurationElement_instances = new WeakSet();
182
+ _UmbPropertyEditorUITinyMcePluginConfigurationElement_getTinyMceConfig = async function _UmbPropertyEditorUITinyMcePluginConfigurationElement_getTinyMceConfig() {
183
+ // @ts-ignore
184
+ const { data } = await tryExecute(this, TinyMceService.getConfig({ client: umbHttpClient }));
185
+ if (!data)
186
+ return;
187
+ return data;
188
+ };
189
+ UmbPropertyEditorUITinyMcePluginConfigurationElement.styles = [
190
+ UmbTextStyles,
191
+ css `
192
+ ul {
193
+ list-style: none;
194
+ padding: 0;
195
+ margin: 0;
196
+ }
197
+ `,
198
+ ];
199
+ __decorate([
200
+ property({ attribute: false })
201
+ ], UmbPropertyEditorUITinyMcePluginConfigurationElement.prototype, "value", null);
202
+ __decorate([
203
+ property({ attribute: false })
204
+ ], UmbPropertyEditorUITinyMcePluginConfigurationElement.prototype, "config", void 0);
205
+ __decorate([
206
+ state()
207
+ ], UmbPropertyEditorUITinyMcePluginConfigurationElement.prototype, "_pluginConfig", void 0);
208
+ UmbPropertyEditorUITinyMcePluginConfigurationElement = __decorate([
209
+ customElement('umb-property-editor-ui-tiny-mce-plugin-configuration')
210
+ ], UmbPropertyEditorUITinyMcePluginConfigurationElement);
211
+ export { UmbPropertyEditorUITinyMcePluginConfigurationElement };
212
+ export default UmbPropertyEditorUITinyMcePluginConfigurationElement;
@@ -0,0 +1,2 @@
1
+ export declare const UMB_BLOCK_RTE_PROPERTY_EDITOR_UI_ALIAS = "Umb.PropertyEditorUi.TinyMCE";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/property-editors/tiny-mce/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sCAAsC,iCAAiC,CAAC"}
@@ -0,0 +1 @@
1
+ export const UMB_BLOCK_RTE_PROPERTY_EDITOR_UI_ALIAS = 'Umb.PropertyEditorUi.TinyMCE';
@@ -0,0 +1,2 @@
1
+ export declare const manifests: Array<UmbExtensionManifest>;
2
+ //# sourceMappingURL=manifests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifests.d.ts","sourceRoot":"","sources":["../../../src/property-editors/tiny-mce/manifests.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,oBAAoB,CAkJjD,CAAC"}
@@ -0,0 +1,149 @@
1
+ import { UMB_BLOCK_RTE_PROPERTY_EDITOR_UI_ALIAS } from './constants.js';
2
+ import { UMB_BLOCK_RTE_PROPERTY_EDITOR_SCHEMA_ALIAS } from '@umbraco-cms/backoffice/rte';
3
+ export const manifests = [
4
+ {
5
+ type: 'propertyEditorUi',
6
+ alias: UMB_BLOCK_RTE_PROPERTY_EDITOR_UI_ALIAS,
7
+ name: 'Rich Text Editor Property Editor UI',
8
+ element: () => import('./property-editor-ui-tiny-mce.element.js'),
9
+ meta: {
10
+ label: 'Rich Text Editor [TinyMCE]',
11
+ propertyEditorSchemaAlias: UMB_BLOCK_RTE_PROPERTY_EDITOR_SCHEMA_ALIAS,
12
+ icon: 'icon-tinymce',
13
+ group: 'richContent',
14
+ supportsReadOnly: true,
15
+ settings: {
16
+ properties: [
17
+ {
18
+ alias: 'plugins',
19
+ label: 'Plugins',
20
+ description: 'Pick the plugins to activate for this editor',
21
+ propertyEditorUiAlias: 'TinyMCE.PropertyEditorUI.TinyMCE.PluginConfiguration',
22
+ weight: 5,
23
+ config: [],
24
+ },
25
+ {
26
+ alias: 'toolbar',
27
+ label: 'Toolbar',
28
+ description: 'Pick the toolbar options that should be available when editing',
29
+ propertyEditorUiAlias: 'Umb.PropertyEditorUI.TinyMCE.ToolbarConfiguration',
30
+ weight: 10,
31
+ config: [
32
+ {
33
+ alias: 'toolbar',
34
+ value: [
35
+ { alias: 'undo', label: 'Undo', icon: 'undo' },
36
+ { alias: 'redo', label: 'Redo', icon: 'redo' },
37
+ { alias: 'cut', label: 'Cut', icon: 'cut' },
38
+ { alias: 'copy', label: 'Copy', icon: 'copy' },
39
+ { alias: 'paste', label: 'Paste', icon: 'paste' },
40
+ { alias: 'styles', label: 'Style select', icon: 'permanent-pen' },
41
+ { alias: 'fontname', label: 'Font select', icon: 'text-color' },
42
+ { alias: 'fontsize', label: 'Font size', icon: 'text-color' },
43
+ { alias: 'forecolor', label: 'Text color', icon: 'text-color' },
44
+ { alias: 'backcolor', label: 'Background color', icon: 'highlight-bg-color' },
45
+ { alias: 'blockquote', label: 'Blockquote', icon: 'quote' },
46
+ { alias: 'formatblock', label: 'Format block', icon: 'format' },
47
+ { alias: 'removeformat', label: 'Remove format', icon: 'remove-formatting' },
48
+ { alias: 'bold', label: 'Bold', icon: 'bold' },
49
+ { alias: 'italic', label: 'Italic', icon: 'italic' },
50
+ { alias: 'underline', label: 'Underline', icon: 'underline' },
51
+ { alias: 'strikethrough', label: 'Strikethrough', icon: 'strike-through' },
52
+ { alias: 'alignleft', label: 'Align left', icon: 'align-left' },
53
+ { alias: 'aligncenter', label: 'Align center', icon: 'align-center' },
54
+ { alias: 'alignright', label: 'Align right', icon: 'align-right' },
55
+ { alias: 'alignjustify', label: 'Align justify', icon: 'align-justify' },
56
+ { alias: 'bullist', label: 'Bullet list', icon: 'unordered-list' },
57
+ { alias: 'numlist', label: 'Numbered list', icon: 'ordered-list' },
58
+ { alias: 'outdent', label: 'Outdent', icon: 'outdent' },
59
+ { alias: 'indent', label: 'Indent', icon: 'indent' },
60
+ { alias: 'anchor', label: 'Anchor', icon: 'bookmark' },
61
+ { alias: 'table', label: 'Table', icon: 'table' },
62
+ { alias: 'hr', label: 'Horizontal rule', icon: 'horizontal-rule' },
63
+ { alias: 'subscript', label: 'Subscript', icon: 'subscript' },
64
+ { alias: 'superscript', label: 'Superscript', icon: 'superscript' },
65
+ { alias: 'charmap', label: 'Character map', icon: 'insert-character' },
66
+ { alias: 'rtl', label: 'Right to left', icon: 'rtl' },
67
+ { alias: 'ltr', label: 'Left to right', icon: 'ltr' },
68
+ ],
69
+ },
70
+ ],
71
+ },
72
+ {
73
+ alias: 'stylesheets',
74
+ label: '#treeHeaders_stylesheets',
75
+ description: 'Pick the stylesheets whose editor styles should be available when editing',
76
+ propertyEditorUiAlias: 'Umb.PropertyEditorUi.StylesheetPicker',
77
+ weight: 20,
78
+ },
79
+ {
80
+ alias: 'dimensions',
81
+ label: '#general_dimensions',
82
+ description: 'Set the editor dimensions',
83
+ propertyEditorUiAlias: 'Umb.PropertyEditorUI.Dimensions',
84
+ weight: 30,
85
+ },
86
+ {
87
+ alias: 'maxImageSize',
88
+ label: '#rte_config_maxImageSize',
89
+ description: '{#rte_config_maxImageSize_description}',
90
+ propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
91
+ config: [{ alias: 'min', value: 0 }],
92
+ weight: 40,
93
+ },
94
+ {
95
+ alias: 'mode',
96
+ label: 'Mode',
97
+ description: 'Select the mode for the editor',
98
+ propertyEditorUiAlias: 'Umb.PropertyEditorUi.RadioButtonList',
99
+ config: [{ alias: 'items', value: ['Classic', 'Inline'] }],
100
+ weight: 50,
101
+ },
102
+ {
103
+ alias: 'overlaySize',
104
+ label: '#rte_config_overlaySize',
105
+ description: '{#rte_config_overlaySize_description}',
106
+ propertyEditorUiAlias: 'Umb.PropertyEditorUi.OverlaySize',
107
+ weight: 81,
108
+ },
109
+ {
110
+ alias: 'hideLabel',
111
+ label: 'Hide Label',
112
+ propertyEditorUiAlias: 'Umb.PropertyEditorUi.Toggle',
113
+ weight: 82,
114
+ },
115
+ {
116
+ alias: 'customConfig',
117
+ label: 'Custom Configuration',
118
+ description: 'Set specific custom configuration for this TinyMCE editor',
119
+ propertyEditorUiAlias: 'Umb.PropertyEditorUI.TinyMCE.CustomConfig',
120
+ weight: 90,
121
+ },
122
+ ],
123
+ defaultData: [
124
+ {
125
+ alias: 'toolbar',
126
+ value: [
127
+ 'styles',
128
+ 'bold',
129
+ 'italic',
130
+ 'alignleft',
131
+ 'aligncenter',
132
+ 'alignright',
133
+ 'bullist',
134
+ 'numlist',
135
+ 'outdent',
136
+ 'indent',
137
+ 'sourcecode',
138
+ 'link',
139
+ 'umbmediapicker',
140
+ 'umbembeddialog',
141
+ ],
142
+ },
143
+ { alias: 'mode', value: 'Classic' },
144
+ { alias: 'maxImageSize', value: 500 },
145
+ ],
146
+ },
147
+ },
148
+ },
149
+ ];
@@ -0,0 +1,16 @@
1
+ import { UmbPropertyEditorUiRteElementBase } from '@umbraco-cms/backoffice/rte';
2
+ import '../../components/input-tiny-mce/input-tiny-mce.element.js';
3
+ /**
4
+ * @element umb-property-editor-ui-tiny-mce
5
+ */
6
+ export declare class UmbPropertyEditorUITinyMceElement extends UmbPropertyEditorUiRteElementBase {
7
+ #private;
8
+ render(): import("lit-html").TemplateResult<1>;
9
+ }
10
+ export default UmbPropertyEditorUITinyMceElement;
11
+ declare global {
12
+ interface HTMLElementTagNameMap {
13
+ 'umb-property-editor-ui-tiny-mce': UmbPropertyEditorUITinyMceElement;
14
+ }
15
+ }
16
+ //# sourceMappingURL=property-editor-ui-tiny-mce.element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"property-editor-ui-tiny-mce.element.d.ts","sourceRoot":"","sources":["../../../src/property-editors/tiny-mce/property-editor-ui-tiny-mce.element.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AAEhF,OAAO,2DAA2D,CAAC;AAEnE;;GAEG;AACH,qBACa,iCAAkC,SAAQ,iCAAiC;;IAgD9E,MAAM;CAUf;AAED,eAAe,iCAAiC,CAAC;AAEjD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iCAAiC,EAAE,iCAAiC,CAAC;KACrE;CACD"}