0.0.3 ā¢ Published 4 years ago
@ridi/ridi-prosemirror-editor v0.0.3
ridi-prosemirror-editor
š§ This project is under development, not complete yet.
How to use
ArticleEditor
import { ArticleEditor } from '@ridi/ridi-prosemirror-editor';
const existingValue = JSON.parse(localStorage.getItem('content'));
class App extends Component {
onChange = (value) => {
localStorage.setItem('content', JSON.stringify(value.toJSON()));
};
render() {
return (
<ArticleEditor
initialValue={existingValue}
onChange={this.onChange}
/>
);
}
}
ReactDOM.render(
<App />,
document.getElementById('root'),
);
Article
import { Article } from '@ridi/ridi-prosemirror-editor';
const existingValue = JSON.parse(localStorage.getItem('content'));
ReactDOM.render(
<Article
json={existingValue}
style={{
background: 'white',
padding: '16px',
}}
/>,
document.getElementById('root'),
);
Development
To build
yarn build
To see demos with webpack-dev-server
cd playground
yarn start
0.0.3
4 years ago
0.0.3-rc.1
4 years ago
0.0.2
4 years ago
0.0.2-rc.11
4 years ago
0.0.2-rc.10
4 years ago
0.0.2-rc.9
4 years ago
0.0.2-rc.8
4 years ago
0.0.2-rc.7
4 years ago
0.0.2-rc.6
4 years ago
0.0.2-rc.5
4 years ago
0.0.2-rc.4
4 years ago
0.0.2-rc.3
4 years ago
0.0.2-rc.2
4 years ago
0.0.2-rc.1
4 years ago
0.0.1
5 years ago