Ticket #191 (closed defect: fixed)
WymClassMozilla...getTagForStyle may be returning wrong super tag
| Reported by: | mikehoward | Owned by: | jf.hovinne | 
|---|---|---|---|
| Priority: | minor | Milestone: | 0.5 | 
| Component: | editor | Version: | |
| Keywords: | Cc: | 
Description
Version 0.5-rc1 - not from scc repository.
I think the line if(/sub/.test(style)) return 'super'; should probably read if(/sup/.test(style)) return 'sup';
from 0.5 RC 1
WYMeditor.WymClassMozilla.prototype.getTagForStyle = function(style) {
  if(/bold/.test(style)) return 'strong';
  if(/italic/.test(style)) return 'em';
  if(/sub/.test(style)) return 'sub';
  if(/sub/.test(style)) return 'super';
  return false;
};
    Change History
Note: See
        TracTickets for help on using
        tickets.
    

I cant get Firefox to use spans for sub-/superscript, even when styleWithCSS is set to true. But never the less I've corrected that last if statement.