Changeset 669


Ignore:
Timestamp:
06/14/10 21:16:18 (2 years ago)
Author:
mr_lundis
Message:

Remove stray line breaks in body on update. Fixes #189.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wymeditor/jquery.wymeditor.js

    r668 r669  
    11421142 */ 
    11431143WYMeditor.editor.prototype.update = function() { 
    1144  
    1145   var html = this.xhtml(); 
    1146   jQuery(this._element).val(html); 
    1147   jQuery(this._box).find(this._options.htmlValSelector).not('.hasfocus').val(html); //#147 
     1144    var html; 
     1145     
     1146    // Dirty fix to remove stray line breaks (#189) 
     1147    jQuery(this._doc.body).children(WYMeditor.BR).remove(); 
     1148     
     1149    html = this.xhtml(); 
     1150    jQuery(this._element).val(html); 
     1151    jQuery(this._box).find(this._options.htmlValSelector).not('.hasfocus').val(html); //#147 
    11481152}; 
    11491153 
Note: See TracChangeset for help on using the changeset viewer.