X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fhtmlparser.js;h=93a86b79e6fe090b4aef71364b9ac4caedd13e11;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=acd5ef5efb4752cd1951a2930d9b9883f699c0e2;hpb=055b6b0792ce7dc53d47af606b367c04b927c2ab;p=ckeditor.git diff --git a/_source/core/htmlparser.js b/_source/core/htmlparser.js index acd5ef5..93a86b7 100644 --- a/_source/core/htmlparser.js +++ b/_source/core/htmlparser.js @@ -1,12 +1,18 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** - * HTML text parser. - * @constructor + * Creates a {@link CKEDITOR.htmlParser} class instance. + * @class Provides an "event like" system to parse strings of HTML data. * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onTagOpen = function( tagName, attributes, selfClosing ) + * { + * alert( tagName ); + * }; + * parser.parse( '<p>Some <b>text</b>.</p>' ); */ CKEDITOR.htmlParser = function() { @@ -92,7 +98,7 @@ CKEDITOR.htmlParser = function() * @param {String} comment The comment text. * @example * var parser = new CKEDITOR.htmlParser(); - * parser.onText = function( comment ) + * parser.onComment = function( comment ) * { * alert( comment ); // e.g. " Example " * });