Changeset 364 for trunk/plugins


Ignore:
Timestamp:
09/30/05 08:14:36 (14 years ago)
Author:
niko
Message:

added removal of lang-attributes (see #536)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/SuperClean/super-clean.js

    r363 r364  
    106106               'remove_faces': HTMLArea._lc('Remove custom typefaces (font "styles").', 'SuperClean'), 
    107107               'remove_sizes': HTMLArea._lc('Remove custom font sizes.', 'SuperClean'), 
    108                'remove_colors': HTMLArea._lc('Remove custom text colors.', 'SuperClean') 
     108               'remove_colors': HTMLArea._lc('Remove custom text colors.', 'SuperClean'), 
     109               'remove_lang': HTMLArea._lc('Remove lang attributes.', 'SuperClean') 
    109110  //additional custom filters (defined in plugins/SuperClean/filters/word.js) 
    110111               //'paragraph': 'remove paragraphs'}, 
     
    137138  return(D); 
    138139}; 
     140SuperClean.filterFunctions.remove_lang = function(D) 
     141{ 
     142  D = D.replace(/lang="?[^" >]*"?/gi, ''); 
     143  return(D); 
     144}; 
    139145SuperClean.filterFunctions.word_clean = function(html, editor) 
    140146{ 
Note: See TracChangeset for help on using the changeset viewer.