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
{{ message }}
Repository navigation
Commit 9cf53fc
Browse filesBrowse the repository at this point in the historyBrowse files
* Update readme, contributing and metadata
* More changes to package.json
* Minor changes
* Update package.json
Co-authored-by: Millie <milliemacdonald4@gmail.com>
* Fix quick start
* Update test platforms config to use lambdatest
* Attempt to fix failing tests
* Fix other tests
* Undo a mistake
* Add a workaround to handle fetching licensemanager
* Replace tinydrive with casechange plugin hoping that it fixes tests on firefox
* Use checklist as it exists across all versions
* Try formatpainter
* fix lint
* Load formatpainter through external_plugins
---------
Co-authored-by: Millie <milliemacdonald4@gmail.com>
This package is a thin wrapper around [TinyMCE](https://github.com/tinymce/tinymce) to make it easier to use in a React application.
5
+
Official React component for TinyMCE, the rich text editor. It wraps TinyMCE as a React `<Editor />` component, supporting controlled and uncontrolled usage. By default, it pulls TinyMCE from the Tiny Cloud CDN unless configured to use a different setup, such as self-hosting the [tinymce NPM package](https://www.npmjs.com/package/tinymce).
6
6
7
-
* If you need detailed documentation on TinyMCE, see: [TinyMCE Documentation](https://www.tiny.cloud/docs/tinymce/8/).
8
-
* For the TinyMCE React Quick Start, see: [TinyMCE Documentation - React Integration](https://www.tiny.cloud/docs/tinymce/8/react-cloud/).
9
-
* For the TinyMCE React Technical Reference, see: [TinyMCE Documentation - TinyMCE React Technical Reference](https://www.tiny.cloud/docs/tinymce/8/react-ref/).
10
-
* For our quick demos, check out the TinyMCE React [Storybook](https://tinymce.github.io/tinymce-react/).
7
+
## Quickstart
11
8
9
+
### Cloud CDN
12
10
13
-
### Issues
11
+
1.[Sign up for a Tiny Cloud account](https://www.tiny.cloud/pricing/) to receive a Tiny Cloud API key.
12
+
1. Then in your React project:
13
+
1. Run `npm install @tinymce/tinymce-react`
14
+
1. Include the following code:
14
15
15
-
Have you found an issue with tinymce-react or do you have a feature request? Open up an [issue](https://github.com/tinymce/tinymce-react/issues) and let us know or submit a [pull request](https://github.com/tinymce/tinymce-react/pulls). *Note: For issues concerning TinyMCE please visit the [TinyMCE repository](https://github.com/tinymce/tinymce).*
16
+
```js
17
+
importReactfrom'react';
18
+
import { Editor } from'@tinymce/tinymce-react';
19
+
20
+
exportdefaultfunctionApp() {
21
+
return (
22
+
<>
23
+
<h1>TinyMCE React demo</h1>
24
+
<Editor
25
+
apiKey="your-api-key"
26
+
init={{
27
+
plugins:'lists link image table code help wordcount'
28
+
}}
29
+
/>
30
+
</>
31
+
);
32
+
}
33
+
```
34
+
1. Update the `apiKey` prop on the `Editor` component to include your Tiny Cloud API key.
35
+
36
+
For more information: [Using TinyMCE with React - Cloud CDN](https://www.tiny.cloud/docs/tinymce/latest/react-cloud/)
37
+
38
+
### Self hosted via NPMpackage
39
+
40
+
Using TinyMCE from NPMin a React project requires a couple of extra steps. See the documentation for more information: [Using TinyMCE with React - Self hosted via NPM](https://www.tiny.cloud/docs/tinymce/latest/react-pm/)
41
+
42
+
43
+
## Demos
44
+
45
+
For our quick demos, check out the TinyMCE React [Storybook](https://tinymce.github.io/tinymce-react/).
Have you found an issue with`tinymce-react` or do you have a feature request?
56
+
Open up an [issue](https://github.com/tinymce/tinymce-react/issues) and let us know
57
+
or submit a [pull request](https://github.com/tinymce/tinymce-react/pulls).
58
+
59
+
_Note:for issues concerning TinyMCE please visit the [TinyMCE repository](https://github.com/tinymce/tinymce)._
60
+
61
+
62
+
## License
63
+
64
+
`tinymce-react` is licensed under the MITLicense. See the LICENSE.txt file for details.
65
+
66
+
Depending on use case, the TinyMCE core editor can be used under either GPL-2.0-or-later or a commercial license. See the [tinymce package](https://www.npmjs.com/package/tinymce) for details.
This project follows the [beehive-flow](https://github.com/tinymce/beehive-flow/) branching process ("Basic process - release from main branch").
4
-
Please read the [beehive-flow readme](https://github.com/tinymce/beehive-flow/blob/main/README.md) for more information.
5
-
This mainly affects branching and merging for Tiny staff.
3
+
External contributors are free to submit PRs against the `main` branch.
6
4
7
-
External contributors are free to submit PRs against the `main` branch.
8
-
Note that contributions will require signing of our Contributor License Agreement.
5
+
In order for Tiny to accept your contribution, we will need legal permission from you to use your code. Please email `legal@tiny.cloud` with the subject `CLA request for [your Github username]`. Our legal team will send you a Contributors License Agreement (CLA) which you will need to sign and return.
0 commit comments