소스 검색

Docs: Added `<div>` as a common solution for the editor-wrong-element error. See ckeditor/ckeditor5#1806.

Marek Lewandowski 6 년 전
부모
커밋
2b7fd4939e
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      packages/ckeditor5-core/src/editor/editor.js

+ 6 - 0
packages/ckeditor5-core/src/editor/editor.js

@@ -331,6 +331,12 @@ mix( Editor, ObservableMixin );
  * Content of an editor should be nicely present to the user and show him how it's going to looks like. Textarea element
  * doesn't support such behavior.
  *
+ * Typically you can use a `div` for storing editor content instead:
+ *
+ *		<div id="editor">
+ *			<p>Initial content.</p>
+ *		</div>
+ *
  * Only {@glink builds/guides/overview#classic-editor Classic Editor} has implemented a special system, which
  * **replace** DOM element and load data from it
  * ({@link module:editor-classic/classiceditor~ClassicEditor.create more information}). All other editors