Sha256: bf530ae351664d93e419de13b129ab21ce753b0ed958bb0a61d89cfefcaf3bea

Contents?: true

Size: 1.06 KB

Versions: 7

Compression:

Stored size: 1.06 KB

Contents

/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

(function()
{
  /**
   * A lightweight representation of HTML text.
   * @constructor
   * @example
   */
   CKEDITOR.htmlParser.text = function( value )
  {
    /**
     * The text value.
     * @type String
     * @example
     */
    this.value = value;

    /** @private */
    this._ =
    {
      isBlockLike : false
    };
  };

  CKEDITOR.htmlParser.text.prototype =
  {
    /**
     * The node type. This is a constant value set to {@link CKEDITOR.NODE_TEXT}.
     * @type Number
     * @example
     */
    type : CKEDITOR.NODE_TEXT,

    /**
     * Writes the HTML representation of this text to a CKEDITOR.htmlWriter.
     * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
     * @example
     */
    writeHtml : function( writer, filter )
    {
      var text = this.value;

      if ( filter && !( text = filter.onText( text, this ) ) )
        return;

      writer.text( text );
    }
  };
})();

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
esp-ckeditor-0.1.7 vendor/assets/javascripts/_source/core/htmlparser/text.js
esp-ckeditor-0.1.6 vendor/assets/javascripts/esp-ckeditor/_source/core/htmlparser/text.js
esp-ckeditor-0.1.4 vendor/assets/javascripts/esp-ckeditor/_source/core/htmlparser/text.js
esp-ckeditor-0.1.3 app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/text.js
esp-ckeditor-0.1.2 app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/text.js
esp-ckeditor-0.1.1 app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/text.js
esp-ckeditor-0.1.0 app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/text.js