Skip to content

Read only property? #60

@tailongnguyen

Description

@tailongnguyen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions