Changeset 774 for branches


Ignore:
Timestamp:
03/13/07 12:03:09 (13 years ago)
Author:
ray
Message:

updated branch

Location:
branches/ray
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/ray/examples/testbed.html

    r762 r774  
    5454      xinha_plugins = xinha_plugins ? xinha_plugins : 
    5555      [ 
    56         'CharacterMap', 'SpellChecker', 'SmartReplace','PasteText','SuperClean' 
    57         //'Linker'//,'GetHtml' 
     56        //'CharacterMap',  
     57        //'SpellChecker',  
     58       //'SmartReplace'//, 
     59        //'PasteText'//,'SuperClean', 
     60        'Linker'//,'GetHtml' 
    5861      ]; 
    5962             // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :) 
     
    8992   xinha_config.height = 300; 
    9093       xinha_config.fullPage = false; 
    91       xinha_config.CharacterMap.mode = 'panel'; 
     94      // xinha_config.CharacterMap.mode = 'panel'; 
    9295       xinha_config.toolbar = 
    9396  [ 
    94     ["popupeditor"], 
    95     ["separator","formatblock","fontname","fontsize","bold","italic","underline","strikethrough"], 
    96     ["separator","forecolor","hilitecolor","textindicator"], 
    97     ["separator","subscript","superscript"], 
    98     ["linebreak","separator","justifyleft","justifycenter","justifyright","justifyfull"], 
    99     ["separator","insertorderedlist","insertunorderedlist","outdent","indent"], 
    100     ["separator","inserthorizontalrule","createlink","insertimage","inserttable"], 
    101     ["linebreak","separator","undo","redo","selectall","print"], (Xinha.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]), 
    102     ["separator","killword","clearfonts","removeformat","toggleborders","splitblock","lefttoright", "righttoleft"], 
    103     ["separator","htmlmode","showhelp","about"] 
     97   ["htmlmode","formatblock"] 
    10498  ]; 
    10599/* 
  • branches/ray/modules/Dialogs/inline-dialog.js

    r762 r774  
    5858    document.body.appendChild(backG); 
    5959    Xinha.Dialog.background[this.layer].push(backG); 
    60    
     60     
    6161    backG = document.createElement("div"); 
    6262    with (backG.style) 
     
    7171    document.body.appendChild(backG); 
    7272    Xinha.Dialog.background[this.layer].push(backG); 
     73    backG = null; 
     74    Xinha.freeLater(Xinha.Dialog.background[this.layer]); 
    7375  } 
    7476  var rootElem = document.createElement('div'); 
     
    157159  but.onmouseup = function() { this.className = "closeButton"; dialog.hide(); return false;}; 
    158160  titleBar.appendChild(but); 
    159    
     161 
    160162  var butX = document.createElement('span'); 
     163  butX.className = 'innerX'; 
    161164  butX.style.position = 'relative'; 
    162165  butX.style.top = '-3px'; 
     
    164167  butX.appendChild(document.createTextNode('\u00D7')); 
    165168  but.appendChild(butX); 
    166    
     169  butX = null; 
     170  but = null; 
    167171  var icon = document.createElement('img'); 
     172  icon.className = 'icon'; 
    168173  icon.src = _editor_url + 'images/xinha-small-icon.gif'; 
    169174  icon.style.position = 'absolute'; 
     
    172177  titleBar.style.paddingLeft = '30px'; 
    173178  titleBar.appendChild(icon); 
    174     
     179  icon = null; 
     180   
    175181  var all = rootElem.getElementsByTagName("*"); 
    176182 
     
    199205  resizeHandle.onmousedown = function(ev) { dialog._resizeStart(ev); }; 
    200206  rootElem.appendChild(resizeHandle); 
     207  resizeHandle = null; 
    201208  this.rootElem = rootElem; 
    202209  // for caching size & position after dragging & resizing 
    203210  this.size = {}; 
     211  titleBar = null; 
     212  rootElem = null; 
     213  Xinha.freeLater(this,'rootElem'); 
    204214}; 
    205215 
  • branches/ray/plugins/Linker/linker.js

    r762 r774  
    394394  ddTree.style.backgroundColor = 'white'; 
    395395  this.ddTree = ddTree; 
     396   
    396397  this.dTree._linker_premade = this.dTree.toString(); 
    397398 
     
    415416      if (h<0) h = 0; 
    416417      //options.style.height = 
    417        ddTree.style.height = h + 'px'; 
    418       ddTree.style.width  = w + 'px'; 
     418      lDialog.ddTree.style.height = h + 'px'; 
     419      lDialog.ddTree.style.width  = w + 'px'; 
    419420    } 
    420421  this.ready = true; 
     422  ddTree = null; 
     423  Xinha.freeLater(lDialog, 'ddTree'); 
     424  options = null; 
    421425}; 
    422426 
  • branches/ray/plugins/SmartReplace/smart-replace.js

    r762 r774  
    303303  // Now we have everything we need, so we can build the dialog. 
    304304  this.dialog = new Xinha.Dialog(editor, this.html, 'SmartReplace',{width:300}); 
    305  
    306305  this.ready = true; 
    307306}; 
Note: See TracChangeset for help on using the changeset viewer.