1.3.70 • Published 2 months ago
idist-jodit-react v1.3.70
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.70
2 months ago
1.3.68
4 months ago
1.3.69
4 months ago
1.3.67
4 months ago
1.3.66
5 months ago
1.3.65
5 months ago
1.3.64
5 months ago
1.3.63
5 months ago
1.3.60
5 months ago
1.3.61
5 months ago
1.3.62
5 months ago
1.3.53
7 months ago
1.3.54
7 months ago
1.3.51
7 months ago
1.3.52
7 months ago
1.3.57
6 months ago
1.3.58
5 months ago
1.3.55
7 months ago
1.3.56
7 months ago
1.3.59
5 months ago
1.3.50
7 months ago
1.3.46
8 months ago
1.3.47
8 months ago
1.3.48
8 months ago
1.3.49
8 months ago
1.3.44
9 months ago
1.3.45
9 months ago
1.3.42
11 months ago
1.3.43
11 months ago
1.3.41
12 months ago
1.3.40
1 year ago
1.3.35
1 year ago
1.3.36
1 year ago
1.3.33
1 year ago
1.3.34
1 year ago
1.3.39
1 year ago
1.3.37
1 year ago
1.3.38
1 year ago
1.3.31
1 year ago
1.3.32
1 year ago
1.3.30
1 year ago
1.3.28
1 year ago
1.3.29
1 year ago
1.3.27
1 year ago
1.3.26
1 year ago
1.3.25
1 year ago