@dotcms/react 26.10.26-2 → 26.10.26-2-next.2945

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.
@@ -23,6 +23,7 @@ function TinyMCEEditor({
23
23
  }) {
24
24
  return jsx(Editor, {
25
25
  tinymceScriptSrc: scriptSrc,
26
+ licenseKey: "gpl",
26
27
  inline: true,
27
28
  onInit: (_, editor) => onEditorInit(editor),
28
29
  init: TINYMCE_CONFIG[mode],
@@ -1,8 +1,8 @@
1
1
  import { __DEFAULT_TINYMCE_CONFIG__, __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ } from '@dotcms/uve/internal';
2
2
 
3
- const DEFAULT_TINYMCE_CONFIG = Object.assign({}, __DEFAULT_TINYMCE_CONFIG__, {
4
- licenseKey: 'gpl' // Using self-hosted license key
5
- });
3
+ // The GPL license is set via the Editor's `licenseKey` prop, not here: the
4
+ // tinymce-react integration forbids `license_key` inside `init`.
5
+ const DEFAULT_TINYMCE_CONFIG = Object.assign({}, __DEFAULT_TINYMCE_CONFIG__);
6
6
  const TINYMCE_CONFIG = {
7
7
  full: Object.assign({}, DEFAULT_TINYMCE_CONFIG, __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__.full),
8
8
  plain: Object.assign({}, DEFAULT_TINYMCE_CONFIG, __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__.plain),
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@dotcms/react",
3
- "version": "26.10.26-2",
3
+ "version": "26.10.26-2-next.2945",
4
4
  "peerDependencies": {
5
5
  "react": ">=18",
6
6
  "react-dom": ">=18",
7
- "@dotcms/uve": "26.10.26-2",
8
- "@dotcms/client": "26.10.26-2",
9
- "@dotcms/types": "26.10.26-2"
7
+ "@dotcms/uve": "26.10.26-2-next.2945",
8
+ "@dotcms/client": "26.10.26-2-next.2945",
9
+ "@dotcms/types": "26.10.26-2-next.2945"
10
10
  },
11
11
  "dependencies": {
12
12
  "@tinymce/tinymce-react": "6.2.1"
13
13
  },
14
14
  "devDependencies": {
15
- "@dotcms/types": "26.10.26-2"
15
+ "@dotcms/types": "26.10.26-2-next.2945"
16
16
  },
17
17
  "description": "Official React Components library to render a dotCMS page.",
18
18
  "repository": {