1.0.18 • Published 3 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
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.11
3 years ago
1.0.12
3 years ago
1.0.9
3 years ago
1.0.10
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago