react-markdown-editor
react-markdown-editor copied to clipboard
Read only property?
Hi, I experienced this error when trying to increase the height of the textarea
using:
import React from 'react';
import {MarkdownEditor} from 'react-markdown-editor';
class ReactMdeDemo extends React.Component{
render() {
return (
<MarkdownEditor initialContent="Test" iconsSet="font-awesome" styles ={{styleMarkdownTextArea: {height: '300px'}}}/>
// <MarkdownEditor initialContent="Test" iconsSet="materialize-ui"/>
);
}
}
export default ReactMdeDemo;
Uncaught TypeError: Cannot assign to read only property 'height' of object '#<Object>'
Can anyone know to fix it?
What version of the library and react are you using?
"dependencies": { "react": "^16.8.3", "react-dom": "^16.8.3", "react-markdown-editor": "^0.6.2", "react-scripts": "2.1.5" },
TypeError: Cannot read property 'string' of undefined
@sociablesasha Can you try npm install --save react-markdown-editor@beta
?
If it works, I will try to publish it later today.