Changeset 606


Ignore:
Timestamp:
04/26/09 22:54:20 (3 years ago)
Author:
mr_lundis
Message:

Experimental embed plugin, based on initial patch by Simon Woodside. See:  http://simonwoodside.com/weblog/2009/2/8/how_to_make_wym_editor/

Location:
trunk/src
Files:
3 added
1 edited

Legend:

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

    r532 r606  
    8484    //replace em by i and strong by bold 
    8585    //(designMode issue) 
    86     html = html.replace(/<em([^>]*)>/gi, "<i$1>") 
     86    html = html.replace(/<em(\b[^>]*)>/gi, "<i$1>") 
    8787      .replace(/<\/em>/gi, "</i>") 
    88       .replace(/<strong([^>]*)>/gi, "<b$1>") 
     88      .replace(/<strong(\b[^>]*)>/gi, "<b$1>") 
    8989      .replace(/<\/strong>/gi, "</b>"); 
    90      
     90 
    9191    //update the html body 
    9292    jQuery(this._doc.body).html(html); 
Note: See TracChangeset for help on using the changeset viewer.