@dotcms/uve 26.9.29-1 → 26.9.29-1-next.2808

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/internal.cjs.js CHANGED
@@ -15,9 +15,11 @@ const __DEFAULT_TINYMCE_CONFIG__ = {
15
15
  valid_styles: {
16
16
  '*': 'font-size,font-family,color,text-decoration,text-align'
17
17
  },
18
- powerpaste_word_import: 'clean',
19
- powerpaste_html_import: 'clean',
20
- suffix: '.min' // Suffix to use when loading resources
18
+ suffix: '.min',
19
+ // Suffix to use when loading resources
20
+ // TinyMCE 6+ shows a premium-features promotion element by default; the pre-upgrade version
21
+ // (4.9.6) had no such thing, so this keeps the toolbar matching the original look.
22
+ promotion: false
21
23
  };
22
24
  /**
23
25
  * TinyMCE config to use per mode
@@ -67,12 +69,21 @@ const __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = {
67
69
  valid_elements: 'strong,em,span[style],a[href]'
68
70
  }
69
71
  };
72
+ /**
73
+ * Directory dotCMS serves the version-neutral vendored TinyMCE copy from.
74
+ *
75
+ * Single source of truth for both the script path and TinyMCE's own `base_url` option — the two
76
+ * were previously hardcoded separately in `dotcms-editable-text.component.ts` and could drift.
77
+ *
78
+ * @internal
79
+ */
80
+ const __TINYMCE_BASE_PATH_ON_DOTCMS__ = '/ext/tinymce';
70
81
  /**
71
82
  * TinyMCE path
72
83
  *
73
84
  * @internal
74
85
  */
75
- const __TINYMCE_PATH_ON_DOTCMS__ = '/ext/tinymcev7/tinymce.min.js';
86
+ const __TINYMCE_PATH_ON_DOTCMS__ = `${__TINYMCE_BASE_PATH_ON_DOTCMS__}/tinymce.min.js`;
76
87
 
77
88
  /**
78
89
  * Normalizes a field definition into the schema format expected by UVE.
@@ -408,6 +419,7 @@ exports.readContentletDataset = _public.readContentletDataset;
408
419
  exports.setBounds = _public.setBounds;
409
420
  exports.__BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__;
410
421
  exports.__DEFAULT_TINYMCE_CONFIG__ = __DEFAULT_TINYMCE_CONFIG__;
422
+ exports.__TINYMCE_BASE_PATH_ON_DOTCMS__ = __TINYMCE_BASE_PATH_ON_DOTCMS__;
411
423
  exports.__TINYMCE_PATH_ON_DOTCMS__ = __TINYMCE_PATH_ON_DOTCMS__;
412
424
  exports.defineStyleEditorSchema = defineStyleEditorSchema;
413
425
  exports.normalizeForm = normalizeForm;
package/internal.esm.js CHANGED
@@ -14,9 +14,11 @@ const __DEFAULT_TINYMCE_CONFIG__ = {
14
14
  valid_styles: {
15
15
  '*': 'font-size,font-family,color,text-decoration,text-align'
16
16
  },
17
- powerpaste_word_import: 'clean',
18
- powerpaste_html_import: 'clean',
19
- suffix: '.min' // Suffix to use when loading resources
17
+ suffix: '.min',
18
+ // Suffix to use when loading resources
19
+ // TinyMCE 6+ shows a premium-features promotion element by default; the pre-upgrade version
20
+ // (4.9.6) had no such thing, so this keeps the toolbar matching the original look.
21
+ promotion: false
20
22
  };
21
23
  /**
22
24
  * TinyMCE config to use per mode
@@ -66,12 +68,21 @@ const __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = {
66
68
  valid_elements: 'strong,em,span[style],a[href]'
67
69
  }
68
70
  };
71
+ /**
72
+ * Directory dotCMS serves the version-neutral vendored TinyMCE copy from.
73
+ *
74
+ * Single source of truth for both the script path and TinyMCE's own `base_url` option — the two
75
+ * were previously hardcoded separately in `dotcms-editable-text.component.ts` and could drift.
76
+ *
77
+ * @internal
78
+ */
79
+ const __TINYMCE_BASE_PATH_ON_DOTCMS__ = '/ext/tinymce';
69
80
  /**
70
81
  * TinyMCE path
71
82
  *
72
83
  * @internal
73
84
  */
74
- const __TINYMCE_PATH_ON_DOTCMS__ = '/ext/tinymcev7/tinymce.min.js';
85
+ const __TINYMCE_PATH_ON_DOTCMS__ = `${__TINYMCE_BASE_PATH_ON_DOTCMS__}/tinymce.min.js`;
75
86
 
76
87
  /**
77
88
  * Normalizes a field definition into the schema format expected by UVE.
@@ -369,4 +380,4 @@ const styleEditorField = {
369
380
  })
370
381
  };
371
382
 
372
- export { __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__, __DEFAULT_TINYMCE_CONFIG__, __TINYMCE_PATH_ON_DOTCMS__, defineStyleEditorSchema, getUVEState, normalizeForm, registerStyleEditorSchemas, styleEditorField };
383
+ export { __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__, __DEFAULT_TINYMCE_CONFIG__, __TINYMCE_BASE_PATH_ON_DOTCMS__, __TINYMCE_PATH_ON_DOTCMS__, defineStyleEditorSchema, getUVEState, normalizeForm, registerStyleEditorSchemas, styleEditorField };
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@dotcms/uve",
3
- "version": "26.9.29-1",
3
+ "version": "26.9.29-1-next.2808",
4
4
  "description": "Official JavaScript library for interacting with Universal Visual Editor (UVE)",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/dotCMS/core.git#main"
8
8
  },
9
9
  "peerDependencies": {
10
- "@dotcms/types": "26.9.29-1"
10
+ "@dotcms/types": "26.9.29-1-next.2808"
11
11
  },
12
12
  "devDependencies": {
13
- "@dotcms/types": "26.9.29-1"
13
+ "@dotcms/types": "26.9.29-1-next.2808"
14
14
  },
15
15
  "keywords": [
16
16
  "dotCMS",
@@ -9,9 +9,8 @@ export declare const __DEFAULT_TINYMCE_CONFIG__: {
9
9
  valid_styles: {
10
10
  '*': string;
11
11
  };
12
- powerpaste_word_import: string;
13
- powerpaste_html_import: string;
14
12
  suffix: string;
13
+ promotion: boolean;
15
14
  };
16
15
  /**
17
16
  * TinyMCE config to use per mode
@@ -37,9 +36,18 @@ export declare const __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__: {
37
36
  valid_elements: string;
38
37
  };
39
38
  };
39
+ /**
40
+ * Directory dotCMS serves the version-neutral vendored TinyMCE copy from.
41
+ *
42
+ * Single source of truth for both the script path and TinyMCE's own `base_url` option — the two
43
+ * were previously hardcoded separately in `dotcms-editable-text.component.ts` and could drift.
44
+ *
45
+ * @internal
46
+ */
47
+ export declare const __TINYMCE_BASE_PATH_ON_DOTCMS__ = "/ext/tinymce";
40
48
  /**
41
49
  * TinyMCE path
42
50
  *
43
51
  * @internal
44
52
  */
45
- export declare const __TINYMCE_PATH_ON_DOTCMS__ = "/ext/tinymcev7/tinymce.min.js";
53
+ export declare const __TINYMCE_PATH_ON_DOTCMS__ = "/ext/tinymce/tinymce.min.js";