Changeset 2732

Show
Ignore:
Timestamp:
10/31/07 04:02:53 (1 year ago)
Author:
jun66j5
Message:

fixed #2128 - fix a bug when [[BR]] macro is lower-case.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tracwysiwygplugin/0.10/tracwysiwyg/htdocs/wysiwyg.js

    r2681 r2732  
    16571657                var tmp; 
    16581658                if (matchFirstIndex == 16) { 
    1659                     tmp = matchText == "[[BR]]" 
     1659                    tmp = matchText.toLowerCase() == "[[br]]" 
    16601660                        ? contentDocument.createElement("br") 
    16611661                        : contentDocument.createTextNode(matchText); 
  • tracwysiwygplugin/0.11/tracwysiwyg/htdocs/wysiwyg.js

    r2681 r2732  
    16571657                var tmp; 
    16581658                if (matchFirstIndex == 16) { 
    1659                     tmp = matchText == "[[BR]]" 
     1659                    tmp = matchText.toLowerCase() == "[[br]]" 
    16601660                        ? contentDocument.createElement("br") 
    16611661                        : contentDocument.createTextNode(matchText);