Преглед изворни кода

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;