1.4.3 • Published 3 years ago
formula-editor v1.4.3
Formula Editor
React based rich text editor for chemical formula
Install
npm install formula-editor
Usage
import React, { useState } from 'react';
import FormulaEditor from 'formula-editor';
const FormulaEditorDemo = () => {
const [editorValue, changeEditorValue] = useState('');
return (
<FormulaEditor
editorValue = {editorValue}
onChange = {event => changeEditorValue(event.target.value)}
placeholder = {'Start typing...'}
/>
);
};
Available props
prop | type | description |
---|---|---|
editorValue | string | Content of the editor |
placeholder | string | placeholder |
onChange | func | called whenever innerHTML changes |
onFocus | func | called whenever editor input gets focus |
onBlur | func | called whenever editor input looses focus |
1.4.3
3 years ago
1.4.2
3 years ago
1.4.1
3 years ago
1.4.0
3 years ago
1.3.2
3 years ago
1.3.1
4 years ago
1.3.0
4 years ago
1.2.4
4 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.3.0
5 years ago
0.2.5
5 years ago
0.2.4
5 years ago
0.2.3
5 years ago
0.2.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago