JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.2
[ckeditor.git] / _source / core / htmlparser.js
index acd5ef5..c2252e9 100644 (file)
@@ -4,9 +4,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 */\r
 \r
 /**\r
- * HTML text parser.\r
- * @constructor\r
+ * Creates a {@link CKEDITOR.htmlParser} class instance.\r
+ * @class Provides an "event like" system to parse strings of HTML data.\r
  * @example\r
+ * var parser = new CKEDITOR.htmlParser();\r
+ * parser.onTagOpen = function( tagName, attributes, selfClosing )\r
+ *     {\r
+ *         alert( tagName );\r
+ *     };\r
+ * parser.parse( '<p>Some <b>text</b>.</p>' );\r
  */\r
 CKEDITOR.htmlParser = function()\r
 {\r
@@ -92,7 +98,7 @@ CKEDITOR.htmlParser = function()
                 * @param {String} comment The comment text.\r
                 * @example\r
                 * var parser = new CKEDITOR.htmlParser();\r
-                * parser.onText = function( comment )\r
+                * parser.onComment = function( comment )\r
                 *     {\r
                 *         alert( comment );  // e.g. " Example "\r
                 *     });\r