react-markdown-editor icon indicating copy to clipboard operation
react-markdown-editor copied to clipboard

Read only property?

Open tailongnguyen opened this issue 6 years ago • 5 comments

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?

tailongnguyen avatar Nov 21 '18 16:11 tailongnguyen

What version of the library and react are you using?

jrm2k6 avatar Nov 28 '18 23:11 jrm2k6

"dependencies": { "react": "^16.8.3", "react-dom": "^16.8.3", "react-markdown-editor": "^0.6.2", "react-scripts": "2.1.5" },

sociablesasha avatar Mar 04 '19 06:03 sociablesasha

TypeError: Cannot read property 'string' of undefined

sociablesasha avatar Mar 04 '19 06:03 sociablesasha

@sociablesasha Can you try npm install --save react-markdown-editor@beta?

jrm2k6 avatar Mar 07 '19 15:03 jrm2k6

If it works, I will try to publish it later today.

jrm2k6 avatar Mar 07 '19 15:03 jrm2k6