JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://cdnjs.cloudflare.com/ajax/libs/ckeditor/4.2/ckeditor.js"></script>
<button type="button" onclick="appendEditor()">Append the new editor</button>

CSS

.cke_editable {
    outline: 1px solid red;
    padding: 10px;
    background: #eee;
}

JavaScript

function appendEditor() {
    // A dynamically created element.
    var el = $( '<p contenteditable="true">I\'m editable!</p>' );
    
    // Append the element to <body>.
    $( 'body' ).append( el );
        
    // CKEDITOR.inline accepts DOM element as parameter.
    CKEDITOR.inline( el.get( 0 ) );    
}