瀏覽代碼

Fix TextWatcher events documentation.

Maciej Gołaszewski 6 年之前
父節點
當前提交
6a1259b218
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      packages/ckeditor5-typing/src/textwatcher.js

+ 5 - 3
packages/ckeditor5-typing/src/textwatcher.js

@@ -106,14 +106,16 @@ export default class TextWatcher {
 			 * Fired whenever the text watcher found a match for data changes.
 			 *
 			 * @event matched:data
-			 * @param {String} text The full text before selection.
-			 * @param {Boolean} isTyping Set to true for user typing changes.
+			 * @param {Object} data Event data.
+			 * @param {String} data.text The full text before selection.
+			 * @param {Boolean} data.isTyping Set to true for user typing changes.
 			 */
 			/**
 			 * Fired whenever the text watcher found a match for selection changes.
 			 *
 			 * @event matched:selection
-			 * @param {String} text The full text before selection.
+			 * @param {Object} data Event data.
+			 * @param {String} data.text The full text before selection.
 			 */
 			this.fire( `matched:${ suffix }`, eventData );
 		}