Changeset 4640


Ignore:
Timestamp:
08/10/09 15:41:19 (3 years ago)
Author:
MichaelTempest
Message:

Item1915: Tell WysiwygPlugin to protect <latex> ... </latex> markup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MathModePlugin/lib/Foswiki/Plugins/MathModePlugin.pm

    r3649 r4640  
    3333sub initPlugin { 
    3434  ($topic, $web) = @_; 
    35          
     35 
    3636  undef $core; 
     37 
     38  # Tell WyswiygPlugin to protect <latex>...</latex> markup 
     39  if (defined &Foswiki::Plugins::WysiwygPlugin::addXMLTag) { 
     40    Foswiki::Plugins::WysiwygPlugin::addXMLTag('latex', sub { 1 } ); 
     41  } 
     42 
    3743  return 1; 
    3844} 
Note: See TracChangeset for help on using the changeset viewer.