Ignore:
Timestamp:
01/22/07 02:09:48 (13 years ago)
Author:
ray
Message:

Ticket #916 TODO: Change plugins to use Xinha object name

Location:
trunk/plugins/SuperClean
Files:
2 edited

Legend:

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

    r560 r681  
    2424 
    2525SuperClean.prototype._lc = function(string) { 
    26     return HTMLArea._lc(string, 'SuperClean'); 
     26    return Xinha._lc(string, 'SuperClean'); 
    2727}; 
    2828 
     
    5959    if(opts.tidy) 
    6060    { 
    61       HTMLArea._postback(editor.config.SuperClean.tidy_handler, {'content' : editor.getInnerHTML()}, 
     61      Xinha._postback(editor.config.SuperClean.tidy_handler, {'content' : editor.getInnerHTML()}, 
    6262                         function(javascriptResponse) { eval(javascriptResponse) }); 
    6363    } 
     
    9292}; 
    9393 
    94 HTMLArea.Config.prototype.SuperClean = 
     94Xinha.Config.prototype.SuperClean = 
    9595{ 
    9696  // set to the URL of a handler for html tidy, this handler 
     
    107107  // filterFunction in the second format above is optional. 
    108108 
    109   'filters': { 'tidy': HTMLArea._lc('General tidy up and correction of some problems.', 'SuperClean'), 
    110                'word_clean': HTMLArea._lc('Clean bad HTML from Microsoft Word', 'SuperClean'), 
    111                'remove_faces': HTMLArea._lc('Remove custom typefaces (font "styles").', 'SuperClean'), 
    112                'remove_sizes': HTMLArea._lc('Remove custom font sizes.', 'SuperClean'), 
    113                'remove_colors': HTMLArea._lc('Remove custom text colors.', 'SuperClean'), 
    114                'remove_lang': HTMLArea._lc('Remove lang attributes.', 'SuperClean'), 
    115                'remove_fancy_quotes': {label:HTMLArea._lc('Replace directional quote marks with non-directional quote marks.', 'SuperClean'), checked:false} 
     109  'filters': { 'tidy': Xinha._lc('General tidy up and correction of some problems.', 'SuperClean'), 
     110               'word_clean': Xinha._lc('Clean bad HTML from Microsoft Word', 'SuperClean'), 
     111               'remove_faces': Xinha._lc('Remove custom typefaces (font "styles").', 'SuperClean'), 
     112               'remove_sizes': Xinha._lc('Remove custom font sizes.', 'SuperClean'), 
     113               'remove_colors': Xinha._lc('Remove custom text colors.', 'SuperClean'), 
     114               'remove_lang': Xinha._lc('Remove lang attributes.', 'SuperClean'), 
     115               'remove_fancy_quotes': {label:Xinha._lc('Replace directional quote marks with non-directional quote marks.', 'SuperClean'), checked:false} 
    116116  //additional custom filters (defined in plugins/SuperClean/filters/word.js) 
    117117               //'paragraph': 'remove paragraphs'}, 
     
    171171SuperClean.filterFunctions.tidy = function(html, editor) 
    172172{ 
    173   HTMLArea._postback(editor.config.SuperClean.tidy_handler, {'content' : html}, 
     173  Xinha._postback(editor.config.SuperClean.tidy_handler, {'content' : html}, 
    174174                      function(javascriptResponse) { eval(javascriptResponse) }); 
    175175}; 
     
    207207      else 
    208208      { 
    209         HTMLArea._getback(_editor_url + 'plugins/SuperClean/filters/'+filter+'.js', 
     209        Xinha._getback(_editor_url + 'plugins/SuperClean/filters/'+filter+'.js', 
    210210                      function(func) { 
    211211                        eval('SuperClean.filterFunctions.'+filter+'='+func+';'); 
     
    244244  if(this.html == false) 
    245245  { 
    246     HTMLArea._getback(_editor_url + 'plugins/SuperClean/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); }); 
     246    Xinha._getback(_editor_url + 'plugins/SuperClean/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); }); 
    247247    return; 
    248248  } 
     
    270270 
    271271  // Now we have everything we need, so we can build the dialog. 
    272   var dialog = this.dialog = new HTMLArea.Dialog(SuperClean.editor, this.html, 'SuperClean'); 
     272  var dialog = this.dialog = new Xinha.Dialog(SuperClean.editor, this.html, 'SuperClean'); 
    273273 
    274274  this.ready = true; 
  • trunk/plugins/SuperClean/tidy.php

    r284 r681  
    11<?php 
    2   /** This PHP file is intended for use with XMLHTTPRequest from an HTMLArea 
    3    * it requrns javascript to set the htmlarea html with tidied html that is 
     2  /** This PHP file is intended for use with XMLHTTPRequest from Xinha 
     3   * it requrns javascript to set the Xinha html with tidied html that is 
    44   * submitted in a $_POST parameter called 'content' 
    55   */ 
Note: See TracChangeset for help on using the changeset viewer.