1.0.18 • Published 4 years ago
@mroc/react-div-contenteditable v1.0.18
React Div ContentEditable
The package provides a small functional React component for a content editable div limited to plain text (no formatting "bold", "italic", etc.).
Installation
npm install @mroc/react-div-contenteditable
Example
import DivContentEditable from "@mroc/react-div-contenteditable";
...
<DivContentEditable
value={text0}
placeholder="Type here..."
autoFocus={true}
lastCaretRect={undefined}
onClick={hndleClick}
onInput={handleInput}
onFocus={handleFocus}
onFocusLost={handleFocusLost}
onKeyDown={handleKeyDown}
onKeyDown={handleKeyUp}
onCopy={handleCopy}
onCut={handleCut}
onPaste={handlePaste}
/>
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.11
5 years ago
1.0.12
5 years ago
1.0.9
5 years ago
1.0.10
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago