Changeset 815 for trunk


Ignore:
Timestamp:
04/14/07 20:53:19 (12 years ago)
Author:
ray
Message:

Ticket #1000 public method for getting/setting editor content (including outwardHtml()/inwardHtml())

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r807 r815  
    41294129}; 
    41304130 
     4131/** Get the edited HTML 
     4132 *   
     4133 *  @public 
     4134 *  @returns {string} HTML content 
     4135 */ 
     4136Xinha.prototype.getEditorContent = function() 
     4137{ 
     4138  return this.outwardHtml(this.getHTML()); 
     4139} 
     4140 
     4141/** Completely change the HTML inside 
     4142 * 
     4143 *  @public 
     4144 *  @param {string} html new content 
     4145 */ 
     4146Xinha.prototype.setEditorContent = function(html) 
     4147{ 
     4148  this.setHTML(this.inwardHtml(html)); 
     4149} 
     4150 
    41314151// retrieve the HTML 
    41324152Xinha.prototype.getHTML = function() 
Note: See TracChangeset for help on using the changeset viewer.