Ignore:
Timestamp:
10/22/09 03:54:35 (3 years ago)
Author:
PaulHarvey
Message:

Item2254: First attempt at making TMCE (without forced_root_block: false) and WysiwygPlugin play nice with each other

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/scratch/pharvey/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/TML2HTML.pm

    r5240 r5347  
    4747my $TT2 = chr(2); 
    4848 
     49# SMELL: Item2254: Accomodates a temporary work-around, where TML2HTML 
     50#        needs to wrap content in <div></div> 
     51my $Item2254start = '<div>'; 
     52my $Item2254end = '</div>'; 
     53 
    4954# HTML elements that are palatable to editors. Other HTML tags will be 
    5055# rendered in 'protected' regions to prevent the WYSIWYG editor mussing 
     
    129134 
    130135    # This should really use a template, but what the heck... 
    131     return $content; 
     136    # SMELL: Item2254 - see var declaration up top 
     137    return $Item2254start . $content . $Item2254end; 
     138 
     139    #return $content; 
    132140} 
    133141 
Note: See TracChangeset for help on using the changeset viewer.