equal
deleted
inserted
replaced
1 /** |
1 /** |
2 * Word or character counting functionality. Count words or characters in a provided text string. |
2 * Word or character counting functionality. Count words or characters in a |
3 * |
3 * provided text string. |
4 * @summary Count words or characters in a text. |
|
5 * |
4 * |
6 * @namespace wp.utils |
5 * @namespace wp.utils |
7 * @since 2.6.0 |
6 * @since 2.6.0 |
|
7 * @output wp-admin/js/word-count.js |
8 */ |
8 */ |
9 |
9 |
10 ( function() { |
10 ( function() { |
11 /** |
11 /** |
12 * Word counting utility |
12 * Word counting utility |
141 }; |
141 }; |
142 |
142 |
143 /** |
143 /** |
144 * Counts the number of words (or other specified type) in the specified text. |
144 * Counts the number of words (or other specified type) in the specified text. |
145 * |
145 * |
146 * @summary Count the number of elements in a text. |
|
147 * |
|
148 * @since 2.6.0 |
146 * @since 2.6.0 |
149 * @memberof wp.utils.wordcounter |
147 * @memberof wp.utils.wordcounter |
150 * |
148 * |
151 * @param {String} text Text to count elements in. |
149 * @param {String} text Text to count elements in. |
152 * @param {String} type Optional. Specify type to use. |
150 * @param {String} type Optional. Specify type to use. |