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
. Add `Editor` component to `+./src/App.jsx+` and update `tinymceScriptSrc` as below:
132
+
. Add `Editor` component to `+./src/App.jsx+` and point `tinymceScriptSrc` the `tinymce` location.
133
133
+
134
134
[source,jsx]
135
135
----
@@ -247,51 +247,25 @@ endif::[]
247
247
endif::[]
248
248
ifeval::["{productSource}" == "zip"]
249
249
ifeval::["{productUse}" == "host"]
250
-
. Install the `+@tinymce/tinymce-react+` package.
251
-
+
252
-
[source,sh]
253
-
----
254
-
npm install @tinymce/tinymce-react
255
-
----
256
-
+
257
-
. 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:
258
-
+
259
-
.> `tree -L 2 public`
260
-
[source,text]
261
-
----
262
-
public
263
-
├── favicon.ico
264
-
├── index.html
265
-
├── logo192.png
266
-
├── logo512.png
267
-
├── manifest.json
268
-
├── robots.txt
269
-
└── tinymce
270
-
├── icons
271
-
├── langs
272
-
├── license.txt
273
-
├── models
274
-
├── plugins
275
-
├── skins
276
-
├── themes
277
-
├── tinymce.d.ts
278
-
└── tinymce.min.js
279
-
----
250
+
251
+
. Unzip the content of the `+tinymce/js+` folder from the link:{download-enterprise}[{productname} zip] into the `+public+` folder
280
252
+
281
-
. Using a text editor, open `+./eslint.config.js` and add `+'src/tinymce'+` to the `+ignores+` array.
253
+
254
+
. Add `+'public/tinymce'+` to the `+ignores+` array to `+./eslint.config.js` file.
. Using a text editor, open `+./src/App.jsx+` and replace the contents with:
267
+
268
+
. Update `+./src/App.jsx+` as below. *Note*: Remember to point `tinymceScriptSrc` the `tinymce` location.
295
269
+
296
270
[source,jsx]
297
271
----
@@ -334,44 +308,21 @@ export default function App() {
334
308
}
335
309
----
336
310
+
311
+
337
312
. Update the `+licenseKey+` option in the editor element and include your xref:license-key.adoc[License Key].
338
313
endif::[]
339
314
ifeval::["{productUse}" == "bundle"]
340
315
341
-
. Install the `+@tinymce/tinymce-react+` and `+script-loader+` packages.
316
+
. Install `+script-loader+` package.
342
317
+
343
318
[source,sh]
344
319
----
345
-
npm install @tinymce/tinymce-react script-loader
320
+
npm install script-loader
346
321
----
347
322
+
348
-
. 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:
349
-
+
350
-
.> `tree -L 2 src`
351
-
[source,text]
352
-
----
353
-
src
354
-
├── App.css
355
-
├── App.js
356
-
├── App.test.js
357
-
├── index.css
358
-
├── index.js
359
-
├── logo.svg
360
-
├── reportWebVitals.js
361
-
├── setupTests.js
362
-
└── tinymce
363
-
├── icons
364
-
├── langs
365
-
├── license.txt
366
-
├── models
367
-
├── plugins
368
-
├── skins
369
-
├── themes
370
-
├── tinymce.d.ts
371
-
└── tinymce.min.js
372
-
----
373
-
+
374
-
. Using a text editor, open `+./eslint.config.js+` and add `+'src/tinymce'+` to the `+ignores+` array.
323
+
. Unzip the content of the `+tinymce/js+` folder from the link:{download-enterprise}[{productname} zip] into the `+src+` folder.
324
+
325
+
. Add `+'src/tinymce'+` to the `+ignores+` array to `+./eslint.config.js` file.
375
326
+
376
327
.Diff of `.eslint.config.js`
377
328
[source,patch]
@@ -391,60 +342,13 @@ index 092408a..1ab8db4 100644
391
342
files: ['**/*.{ts,tsx}'],
392
343
----
393
344
+
394
-
. Using a text editor, create `+./src/BundledEditor.jsx+` and set the contents to:
345
+
346
+
. Create `+./src/BundledEditor.jsx+` and set the contents to:
395
347
+
396
348
[source,jsx]
397
349
----
398
350
import { Editor } from '@tinymce/tinymce-react';
399
-
400
-
// TinyMCE so the global var exists
401
-
import './tinymce/tinymce.min.js';
402
-
// DOM model
403
-
import './tinymce/models/dom/model.min.js'
404
-
// Theme
405
-
import './tinymce/themes/silver/theme.min.js';
406
-
// Toolbar icons
407
-
import './tinymce/icons/default/icons.min.js';
408
-
// Editor styles
409
-
import './tinymce/skins/ui/oxide/skin.min.js';
410
-
411
-
// importing the plugin index.js file.
412
-
// if you use a plugin that is not listed here the editor will fail to load
0 commit comments