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
+3-3Lines changed: 3 additions & 3 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
@@ -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