JSFiddle - React, Tailwind, and code Playground

by mfine2

HTML

<textarea cols="80" id="editor1" name="editor1" rows="10">
</textarea>
<script src="//cdn.ckeditor.com/4.4.6/standard/ckeditor.js"></script>

JavaScript

//Issue Description
//After setting blurDelay = 0, then click Bold and Paste in toolbar, it will throw the error below
//Uncaught IndexSizeError: Failed to execute 'extend' on 'Selection': 1 is larger than the given node's length.
//Only in Chrome, FF and IE work fine.

CKEDITOR.focusManager._.blurDelay = 0;

var ck = CKEDITOR.replace( 'editor1', {
  fullPage: true
});

ck.on( "blur", function( evt ){
   console.log(this.getData());
});