Changeset 52


Ignore:
Timestamp:
03/23/05 11:06:58 (15 years ago)
Author:
guillaumed
Message:

Change _createToobar to allow it to be incremented dynamically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r51 r52  
    578578  var tb_objects = new Object(); 
    579579  this._toolbarObjects = tb_objects; 
     580 
     581        this._createToolbar1(editor, toolbar, tb_objects); 
     582        this._htmlArea.appendChild(toolbar); 
     583} 
     584         
     585         
     586HTMLArea.prototype._setConfig = function(config) { 
     587        this.config = config; 
     588} 
     589 
     590HTMLArea.prototype._addToolbar = function() { 
     591        this._createToolbar1(this, this._toolbar, this._toolbarObjects); 
     592} 
     593 
     594// separate from previous createToolBar to allow dynamic change of toolbar 
     595HTMLArea.prototype._createToolbar1 = function (editor, toolbar, tb_objects) { 
    580596 
    581597  // creates a new line in the toolbar 
     
    844860    } 
    845861  } 
    846  
    847   this._htmlArea.appendChild(toolbar); 
    848862}; 
    849863 
Note: See TracChangeset for help on using the changeset viewer.