Ticket #191 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by mr_lundis

  • Status changed from new to closed
  • Resolution set to fixed

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.

Note: See TracTickets for help on using tickets.