@dotcms/react 26.9.29-1-next.2806 → 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.
|
@@ -24,6 +24,9 @@ function TinyMCEEditor({
|
|
|
24
24
|
return jsx(Editor, {
|
|
25
25
|
tinymceScriptSrc: scriptSrc,
|
|
26
26
|
inline: true,
|
|
27
|
+
// dotCMS ships TinyMCE under the GPL license, never commercial. This wrapper only
|
|
28
|
+
// honors a license key passed as this top-level prop — `init.license_key` is ignored.
|
|
29
|
+
licenseKey: "gpl",
|
|
27
30
|
onInit: (_, editor) => onEditorInit(editor),
|
|
28
31
|
init: TINYMCE_CONFIG[mode],
|
|
29
32
|
initialValue: initialValue,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { __DEFAULT_TINYMCE_CONFIG__, __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ } from '@dotcms/uve/internal';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
// license_key is set via the top-level `licenseKey` prop on `<Editor>` (`TinyMCEEditor.tsx`),
|
|
4
|
+
// not here: `@tinymce/tinymce-react`'s wrapper only reads `props.licenseKey`, never
|
|
5
|
+
// `props.init.licenseKey` — a value here would be silently inert.
|
|
6
|
+
const DEFAULT_TINYMCE_CONFIG = Object.assign({}, __DEFAULT_TINYMCE_CONFIG__);
|
|
6
7
|
const TINYMCE_CONFIG = {
|
|
7
8
|
full: Object.assign({}, DEFAULT_TINYMCE_CONFIG, __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__.full),
|
|
8
9
|
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.9.29-1-next.
|
|
3
|
+
"version": "26.9.29-1-next.2808",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=18",
|
|
6
6
|
"react-dom": ">=18",
|
|
7
|
-
"@dotcms/uve": "26.9.29-1-next.
|
|
8
|
-
"@dotcms/client": "26.9.29-1-next.
|
|
9
|
-
"@dotcms/types": "26.9.29-1-next.
|
|
7
|
+
"@dotcms/uve": "26.9.29-1-next.2808",
|
|
8
|
+
"@dotcms/client": "26.9.29-1-next.2808",
|
|
9
|
+
"@dotcms/types": "26.9.29-1-next.2808"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@tinymce/tinymce-react": "6.
|
|
12
|
+
"@tinymce/tinymce-react": "6.3.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@dotcms/types": "26.9.29-1-next.
|
|
15
|
+
"@dotcms/types": "26.9.29-1-next.2808"
|
|
16
16
|
},
|
|
17
17
|
"description": "Official React Components library to render a dotCMS page.",
|
|
18
18
|
"repository": {
|