Переглянути джерело

Added docs to _attachToForm method in StandardEditor.

Szymon Kupś 8 роки тому
батько
коміт
a055633ada
1 змінених файлів з 6 додано та 0 видалено
  1. 6 0
      packages/ckeditor5-core/src/editor/standardeditor.js

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

@@ -106,6 +106,12 @@ export default class StandardEditor extends Editor {
 		this.setData( getDataFromElement( this.element ) );
 	}
 
+	/**
+	 * Checks if editor is initialized on textarea element that belongs to a form. If yes - updates editor's element
+	 * contents before submitting the form.
+	 *
+	 * @private
+	 */
 	_attachToForm() {
 		const element = this.element;