CKEditor 5 inline editor features are not working when initiate it with input element

Viewed 146

I have configure CKEditor 5 for my project as below:

Html:

<input type="text" class="form-control question_input" placeholder="Question" autocomplete="off">

JavaScript:

InlineEditor
            .create( document.querySelector( '.question_input' ) )
            .catch( error => {
                console.error( error );
            } );

It is initiating CKEditor on input but I am not able to use the features of CKEditor like bold, italic etc.

JSFiddle

Thanks.

0 Answers
Related