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
Copy file name to clipboardExpand all lines: modules/ROOT/pages/react-cloud.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,6 @@
5
5
:productSource: cloud
6
6
7
7
8
-
This guide shows how to integrate TinyMCE from Tiny Cloud into a React project using link:https://github.com/tinymce/tinymce-react[{productname} React component]
8
+
This guide shows how to integrate TinyMCE from Tiny Cloud into a React application using link:https://github.com/tinymce/tinymce-react[{productname} React component].
For more live examples of {productname} React component, visit https://tinymce.github.io/tinymce-react/[the tinymce-react storybook].
4
-
5
3
== Prerequisites
6
4
7
5
This procedure requires https://nodejs.org/[Node.js (and NPM)].
@@ -85,21 +83,21 @@ npm install -D fs-extra
85
83
----
86
84
+
87
85
88
-
. Setup a `postinstall` script to copy {productname} to `public` directory which makes {productname} available as static assets
86
+
. Setup a `postinstall` script to copy {productname} to `public` directory, which automatically makes {productname} and other components available as static assets after each installation.
. In this instance, run the `postinstall` to copy {productname} to the `public` directory. Note: This script will run automatically after every package installation.
120
+
. In this instance, run the `postinstall` to copy {productname} to the `public` directory.
125
121
+
126
122
[source,sh]
127
123
----
128
124
npm run postinstall
129
125
----
130
-
+
131
126
132
-
. Add `Editor` component to `+./src/App.jsx+` and point `tinymceScriptSrc` the `tinymce` location.
127
+
. Add `Editor` component to `+./src/App.jsx+` and point `tinymceScriptSrc` to the `tinymce` location.
133
128
+
134
129
[source,jsx]
135
130
----
@@ -171,15 +166,15 @@ export default function App() {
171
166
);
172
167
}
173
168
----
174
-
+
175
169
176
170
endif::[]
171
+
177
172
ifeval::["{productUse}" == "bundle"]
178
-
. Install the `+tinymce+` and `+@tinymce/tinymce-react+` packages
@@ -359,8 +429,6 @@ export default function BundledEditor(props) {
359
429
);
360
430
}
361
431
----
362
-
+
363
-
. Update the `+licenseKey+` option to include your xref:license-key.adoc[License Key].
364
432
365
433
. Add `BundleEditor` component into `+./src/App.jsx+` as the following:
366
434
+
@@ -406,27 +474,20 @@ endif::[]
406
474
endif::[]
407
475
408
476
. Test the application.
409
-
+
410
477
* To start the development server run:
411
478
+
412
479
[source,sh]
413
480
----
414
481
npm run dev
415
482
----
416
483
417
-
* To stop the development server, select on the command line or command prompt and press _Ctrl+C_.
418
-
419
-
420
-
== Deploying the application
421
-
422
-
The application will require further configuration before it can be deployed to a production environment. For information on configuring the application for deployment, see: https://vitejs.dev/guide/build[Building for Production] or https://vitejs.dev/guide/static-deploy.html[Deploying a Static Site].
423
-
424
-
== Next Steps
484
+
== Other resources
425
485
426
486
ifeval::["{productUse}" == "bundle"]
427
487
* For information on bundling, see: xref:introduction-to-bundling-tinymce.adoc[]
428
488
endif::[]
429
-
* For examples of the {productname} integration, see: https://tinymce.github.io/tinymce-react/[the tinymce-react storybook].
489
+
* For examples of the {productname} React integration, see: https://tinymce.github.io/tinymce-react/[the tinymce-react storybook].
490
+
* For guides on integrating {productname} premium plugins, see: xref:bundling-plugins.adoc#using-premium-plugins[Using premium plugins].
0 commit comments