diff --git a/src/decouplededitor.js b/src/decouplededitor.js index 0f6f9b4..1604746 100644 --- a/src/decouplededitor.js +++ b/src/decouplededitor.js @@ -214,6 +214,13 @@ export default class DecoupledEditor extends Editor { */ static create( sourceElementOrData, config = {} ) { return new Promise( resolve => { + const isHTMLElement = isElement( sourceElementOrData ); + + if ( isHTMLElement && sourceElementOrData.tagName === 'TEXTAREA' ) { + // Documented in core/editor/editor.js + throw new CKEditorError( 'editor-wrong-element: This type of editor cannot be initialized inside