Changeset 1448 for trunk/modules


Ignore:
Timestamp:
05/23/18 23:42:12 (3 years ago)
Author:
gogo
Message:

Add UseStrongEm? plugin and preserveI, preserveB core configuration options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/Gecko/Gecko.js

    r1402 r1448  
    361361   // Midas uses b and i internally instead of strong and em 
    362362   // Xinha will use strong and em externally (see Xinha.prototype.outwardHtml)    
    363    html = html.replace(/<(\/?)strong(\s|>|\/)/ig, "<$1b$2"); 
    364    html = html.replace(/<(\/?)em(\s|>|\/)/ig, "<$1i$2");     
     363   if(!this.editor.config.preserveB) 
     364   { 
     365     html = html.replace(/<(\/?)strong(\s|>|\/)/ig, "<$1b$2"); 
     366   } 
     367    
     368   if(!this.editor.config.preserveI) 
     369   { 
     370     html = html.replace(/<(\/?)em(\s|>|\/)/ig, "<$1i$2");     
     371   } 
    365372    
    366373   // Both IE and Gecko use strike internally instead of del (#523) 
Note: See TracChangeset for help on using the changeset viewer.