Index: src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
===================================================================
--- src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js	(revision 32702)
+++ src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js	(working copy)
@@ -1,3 +1,17 @@
+/**
+ * WP Text Pattern plugin for TinyMCE
+ *
+ * @since 4.3.0
+ *
+ * This plugin can automatically format text patterns as you type. It includes two patterns:
+ *  - unordered (`* ` and `- `)
+ *  - ordered list (`1. ` and `1) `)
+ *
+ * If the transformation in unwanted, the user can undo the change by pressing backspace,
+ * using the undo shortcut, or the undo button in the toolbar.
+ */
+
+/* global tinymce */
 ( function( tinymce, setTimeout ) {
 	tinymce.PluginManager.add( 'wptextpattern', function( editor ) {
 		var $$ = editor.$,
@@ -4,6 +18,14 @@
 			patterns = [],
 			canUndo = false;
 
+		/**
+		 * Add a pattern to format with a callback.
+		 *
+		 * @since 4.3.0
+		 *
+		 * @param {RegExp}   regExp
+		 * @param {Function} callback
+		 */
 		function add( regExp, callback ) {
 			patterns.push( {
 				regExp: regExp,
