8
0
Szymon Kupś 8 лет назад
Родитель
Сommit
6f150e24cb

+ 3 - 3
packages/ckeditor5-engine/src/view/document.js

@@ -67,7 +67,7 @@ export default class Document {
 		this.set( 'isFocused', false );
 
 		/**
-		 * Post-fixer callbacks registered to the model document.
+		 * Post-fixer callbacks registered to the view document.
 		 *
 		 * @private
 		 * @member {Set}
@@ -88,8 +88,8 @@ export default class Document {
 	}
 
 	/**
-	 * Used to register a post-fixer callback. A post-fixer mechanism that allows to update view tree just before rendering
-	 * to the DOM is started.
+	 * Used to register a post-fixer callback. A post-fixers mechanism allows to update view tree just before rendering
+	 * to the DOM.
 	 *
 	 * Post-fixers are fired just after all changes from the outermost change block were applied but
 	 * before the {@link module:engine/view/view~View#event:render render event} is fired. If a post-fixer callback made

+ 5 - 3
packages/ckeditor5-engine/src/view/placeholder.js

@@ -16,6 +16,7 @@ const documentPlaceholders = new WeakMap();
  * Attaches placeholder to provided element and updates it's visibility. To change placeholder simply call this method
  * once again with new parameters.
  *
+ * @param {module:engine/view/view~View} view View controller.
  * @param {module:engine/view/element~Element} element Element to attach placeholder to.
  * @param {String} placeholderText Placeholder text to use.
  * @param {Function} [checkFunction] If provided it will be called before checking if placeholder should be displayed.
@@ -61,7 +62,8 @@ export function detachPlaceholder( view, element ) {
 // Updates all placeholders of given document.
 //
 // @private
-// @param {module:engine/view/view~View} view
+// @param {module:engine/view/document~Document} view
+// @param {module:engine/view/writer~Writer} writer
 function updateAllPlaceholders( document, writer ) {
 	const placeholders = documentPlaceholders.get( document );
 	let changed = false;
@@ -78,9 +80,9 @@ function updateAllPlaceholders( document, writer ) {
 // Updates placeholder class of given element.
 //
 // @private
-// @param {module:engine/view/view~View} view
+// @param {module:engine/view/writer~Writer} writer
 // @param {module:engine/view/element~Element} element
-// @param {Function} checkFunction
+// @param {Object} info
 function updateSinglePlaceholder( writer, element, info ) {
 	const document = element.document;
 	const text = info.placeholderText;