(newValue)
| 244 | } |
| 245 | |
| 246 | handleChange(newValue) { |
| 247 | const cursor = this.cm.doc.getCursor(); |
| 248 | const selections = this.cm.doc.listSelections(); |
| 249 | this.setState({ lastKnownValue: newValue }); |
| 250 | this.props.onChange(this.toValue('code', newValue), { cursor, selections }); |
| 251 | } |
| 252 | |
| 253 | showSettings = () => { |
| 254 | this.setState({ settingsVisible: true }); |