Changeset 623


Ignore:
Timestamp:
05/24/09 13:13:33 (3 years ago)
Author:
jf.hovinne
Message:

Fix #81, adding replaceBrInPreWith option.

File:
1 edited

Legend:

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

    r620 r623  
    347347 
    348348    direction:  "ltr", 
     349 
     350    replaceBrInPreWith: '
', 
    349351 
    350352    boxHtml:   "<div class='wym_box'>" 
     
    908910 */ 
    909911WYMeditor.editor.prototype.xhtml = function() { 
     912    if(this._options.replaceBrInPreWith) 
     913      jQuery('pre > br', this._doc.body).replaceWith(this._options.replaceBrInPreWith); //Fix PRE bug #81 
    910914    return this.parser.parse(this.html()); 
    911915}; 
Note: See TracChangeset for help on using the changeset viewer.