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

CK editor instance initializing many time.

Open Gajesh-LH opened this issue 6 years ago • 2 comments
trafficstars

  • When I am populating value from other sources on CK editor than it is initializing on every value update.

  • But when I am typing then it is working properly.

Here is Demo Link

Gajesh-LH avatar Sep 25 '19 15:09 Gajesh-LH

Please share the code you are using to import CKEditor in your project

codeslayer1 avatar Sep 26 '19 04:09 codeslayer1

import CKEditor from 'react-ckeditor-component';

<CKEditor
       scriptUrl="/static/JS/ckeditor/ckeditor.js"
       content={this.props.value}
       config={{height: 50, autoGrow_minHeight: 50, bottom: 0}}
        events={{
              blur: this.onBlur,
               afterPaste: this.afterPaste,
              change: this.onChange
        }}
 />

Gajesh-LH avatar Sep 26 '19 05:09 Gajesh-LH