react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

simplescrollbar addon

Open bezreyhan opened this issue 7 years ago • 0 comments

I've been trying to get the simplescrollbar addon to work, but have not been successful. I am using V1.0

My imports look like the following:

import * as React from 'react';
import * as CodeMirror from 'react-codemirror';
import 'codemirror/addon/scroll/simplescrollbars.js';
import 'codemirror/addon/scroll/simplescrollbars.css';

My component looks like the following:

<CodeMirror
     value={JSON.stringify(this.props.json, null, 2)}
     options={{
          readOnly: true,
          lineNumbers: true,
          scrollbarStyle: 'simple'
      }}
/>

Is there something I am doing incorrectly?

bezreyhan avatar Sep 11 '17 23:09 bezreyhan