Explorar o código

Docs (patch): Add note about createEditableElement in the data view. Closes #7274.

See comments on #7274 for more information.
rshipp %!s(int64=5) %!d(string=hai) anos
pai
achega
d30eb51df7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      packages/ckeditor5-engine/src/view/downcastwriter.js

+ 2 - 0
packages/ckeditor5-engine/src/view/downcastwriter.js

@@ -214,6 +214,8 @@ export default class DowncastWriter {
 	 *		writer.createEditableElement( 'div' );
 	 *		writer.createEditableElement( 'div', { id: 'foo-1234' } );
 	 *
+	 * Note: There is no reason to use createEditableElement in the data view; the properties it adds are only used in the editing view.
+	 *
 	 * @param {String} name Name of the element.
 	 * @param {Object} [attributes] Elements attributes.
 	 * @returns {module:engine/view/editableelement~EditableElement} Created element.