Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read only property? #60

Open
tailongnguyen opened this issue Nov 21, 2018 · 5 comments
Open

Read only property? #60

tailongnguyen opened this issue Nov 21, 2018 · 5 comments

Comments

@tailongnguyen
Copy link

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?

@jrm2k6
Copy link
Owner

jrm2k6 commented Nov 28, 2018

What version of the library and react are you using?

@sociablesasha
Copy link

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

@sociablesasha
Copy link

TypeError: Cannot read property 'string' of undefined

@jrm2k6
Copy link
Owner

jrm2k6 commented Mar 7, 2019

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

@jrm2k6
Copy link
Owner

jrm2k6 commented Mar 7, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants