You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
. Setup a `postinstall` script to copy {productname} to the public directory for hosting
@@ -175,11 +177,11 @@ export default function App() {
175
177
176
178
endif::[]
177
179
ifeval::["{productUse}" == "bundle"]
178
-
. Install the `+tinymce+` and `+@tinymce/tinymce-react+` packages and save them to your `+package.json+` with `+--save+`.
180
+
. Install the `+tinymce+` and `+@tinymce/tinymce-react+` packages
179
181
+
180
182
[source,sh]
181
183
----
182
-
npm install --save tinymce @tinymce/tinymce-react
184
+
npm install tinymce @tinymce/tinymce-react
183
185
----
184
186
185
187
. Using a text editor, create `+./src/BundledEditor.jsx+` and set the contents to:
@@ -265,6 +267,7 @@ export default function App() {
265
267
console.log(editorRef.current.getContent());
266
268
}
267
269
};
270
+
268
271
return (
269
272
<>
270
273
<BundledEditor
@@ -293,11 +296,10 @@ endif::[]
293
296
endif::[]
294
297
ifeval::["{productSource}" == "zip"]
295
298
ifeval::["{productUse}" == "host"]
296
-
. Install the `+@tinymce/tinymce-react+` package and save it to your `+package.json+` with `+--save+`.
297
-
+
299
+
. Install the `+@tinymce/tinymce-react+` package.
298
300
[source,sh]
299
301
----
300
-
npm install --save @tinymce/tinymce-react
302
+
npm install @tinymce/tinymce-react
301
303
----
302
304
303
305
. Unzip the content of the `+tinymce/js+` folder from the link:{download-enterprise}[{productname} zip] into the `+public+` folder. Afterwards the directory listing should be similar to below:
@@ -324,24 +326,17 @@ public
324
326
└── tinymce.min.js
325
327
----
326
328
327
-
. Using a text editor, open `+./eslintrc.cjs+` and add `+'src/tinymce'+` to the `+ignorePatterns+` array.
329
+
. Using a text editor, open `+./eslint.config.js` and add `+'src/tinymce'+` to the `+ignores+` array.
. Unzip the content of the `+tinymce/js+` folder from the link:{download-enterprise}[{productname} zip] into the `+src+` folder. Afterwards the directory listing should be similar to below:
@@ -423,24 +418,24 @@ src
423
418
└── tinymce.min.js
424
419
----
425
420
426
-
. Using a text editor, open `+./eslintrc.cjs+` and add `+'src/tinymce'+` to the `+ignorePatterns+` array.
421
+
. Using a text editor, open `+./eslint.config.js+` and add `+'src/tinymce'+` to the `+ignores+` array.
** The React application, see: https://vitejs.dev/guide/#getting-started[Getting Started with Vite] or https://reactjs.org/docs/getting-started.html[the React documentation].
594
+
** The React application, see: https://vitejs.dev/guide/#getting-started[Getting Started with Vite] or https://react.dev/learn[the React documentation].
Copy file name to clipboardExpand all lines: modules/ROOT/partials/integrations/react-tech-ref.adoc
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ To install the `+tinymce-react+` package and save it to your `+package.json+`.
34
34
35
35
[source,sh]
36
36
----
37
-
npm install --save @tinymce/tinymce-react
37
+
npm install @tinymce/tinymce-react
38
38
----
39
39
40
40
or with Yarn
@@ -104,7 +104,7 @@ The `+tinymce-react+` integration will try to source {productname} in the follow
104
104
105
105
These props are used to configure how the editor is sourced:
106
106
107
-
xref:apikey[`+apiKey+`]:: The {cloudname} API key. When loading from {cloudname}, use this prop to remove the "This domain is not registered..." warning message.
107
+
xref:apikey[`+apiKey+`]:: The {cloudname} API key. When loading from {cloudname}, use this prop to remove the "A valid API key is required to continue using TinyMCE. Please alert the admin to check the current API key. Click here to learn more." warning message.
108
108
109
109
xref:licenseKey[`+licenseKey+`]:: The {cloudname} License key. Use this when self-hosting {productname} instead of loading from {cloudname}.
110
110
@@ -167,7 +167,7 @@ None of the configuration props are *required* for the {productname} React compo
167
167
168
168
{cloudname} API key.
169
169
170
-
Required for deployments using the {cloudname} to provide the {productname} editor without the warning message "This domain is not registered...".
170
+
Required for deployments using the {cloudname} to provide the {productname} editor without the warning message "A valid API key is required to continue using TinyMCE. Please alert the admin to check the current API key. Click here to learn more".
@@ -663,7 +663,7 @@ function MyComponent({initialValue}) {
663
663
664
664
CAUTION: The controlled component can have performance problems on large documents as it requires converting the entire document to a string on each keystroke or modification.
665
665
666
-
To use the editor as a https://reactjs.org/docs/forms.html#controlled-components[controlled component], both the `+value+` and `+onEditorChange+` props are required.
666
+
To use the editor as a https://legacy.reactjs.org/docs/forms.html#controlled-components[controlled component], both the `+value+` and `+onEditorChange+` props are required.
667
667
668
668
The `+value+` prop is used to set and re-set the editor content. If it is not updated to the latest version of the editor content, the editor will rollback any changes.
669
669
@@ -767,7 +767,7 @@ function MyComponent({initialValue, limit}) {
767
767
};
768
768
----
769
769
770
-
For information on controlled components in React, see: https://reactjs.org/docs/forms.html#controlled-components[React Docs - Controlled Components].
770
+
For information on controlled components in React, see: https://legacy.reactjs.org/docs/forms.html#controlled-components[React Docs - Controlled Components].
0 commit comments