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

Can't modify the mode and language

Open Zacle opened this issue 6 years ago • 0 comments

I've tried several time to modify the initial theme and language but without success. Here's my code. Any help would be appreciated render() { return (<> <ReactAce mode={this.props.language} theme={this.props.them} name="code" style={{width: "100%", height: "500px", fontSize: "12px"}} editorProps={{$blockScrolling: Infinity}} onLoad={(editor) => { editor.focus(); editor.getSession().setUseWrapMode(true); }} ref={instance => { this.ace = instance; }} /> </>); }

Zacle avatar Aug 27 '19 01:08 Zacle