1.3.98 • Published 8 months ago

idist-jodit-react v1.3.98

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Installation

npm install jodit-pro-react --save
# or
yarn add jodit-pro-react

Update editor version

npm update jodit-react-pro

Usage

1. Require and use Jodit-react component inside your application.

import React, {useState, useRef} from 'react';
import JoditEditor from "jodit-pro-react";

const Example = ({}) => {
	const editor = useRef(null)
	const [content, setContent] = useState('')

	const config = {
		readonly: false, // all options from https://xdsoft.net/jodit/doc/,
		uploader: {
			url: 'https://xdsoft.net/jodit/finder/?action=fileUpload'
		},
		filebrowser: {
			ajax: {
				url: 'https://xdsoft.net/jodit/finder/'
			},
			height: 580,
		}
	}

	return (
		<JoditEditor
			ref={editor}
      image={image}
			value={content}
			config={config}
			tabIndex={1} // tabIndex of textarea
			onBlur={newContent => setContent(newContent)} // preferred to use only this option to update the content for performance reasons
			onChange={newContent => {}}
		/>
	);
}

License

This package is available under License.

1.3.94

8 months ago

1.3.97

8 months ago

1.3.98

8 months ago

1.3.95

8 months ago

1.3.96

8 months ago

1.3.93

11 months ago

1.3.91

11 months ago

1.3.92

11 months ago

1.3.90

12 months ago

1.3.76

1 year ago

1.3.79

1 year ago

1.3.77

1 year ago

1.3.78

1 year ago

1.3.80

1 year ago

1.3.86

12 months ago

1.3.87

12 months ago

1.3.84

1 year ago

1.3.85

12 months ago

1.3.88

12 months ago

1.3.89

12 months ago

1.3.70

1 year ago

1.3.68

2 years ago

1.3.69

2 years ago

1.3.67

2 years ago

1.3.66

2 years ago

1.3.65

2 years ago

1.3.64

2 years ago

1.3.63

2 years ago

1.3.60

2 years ago

1.3.61

2 years ago

1.3.62

2 years ago

1.3.53

2 years ago

1.3.54

2 years ago

1.3.51

2 years ago

1.3.52

2 years ago

1.3.57

2 years ago

1.3.58

2 years ago

1.3.55

2 years ago

1.3.56

2 years ago

1.3.59

2 years ago

1.3.50

2 years ago

1.3.46

2 years ago

1.3.47

2 years ago

1.3.48

2 years ago

1.3.49

2 years ago

1.3.44

2 years ago

1.3.45

2 years ago

1.3.42

2 years ago

1.3.43

2 years ago

1.3.41

2 years ago

1.3.40

2 years ago

1.3.35

2 years ago

1.3.36

2 years ago

1.3.33

2 years ago

1.3.34

2 years ago

1.3.39

2 years ago

1.3.37

2 years ago

1.3.38

2 years ago

1.3.31

3 years ago

1.3.32

2 years ago

1.3.30

3 years ago

1.3.28

3 years ago

1.3.29

3 years ago

1.3.27

3 years ago

1.3.26

3 years ago

1.3.25

3 years ago