Dotclear

Changeset 1750:5dac57fee3c4 for admin/js


Ignore:
Timestamp:
09/04/13 15:27:14 (12 years ago)
Author:
kevin@…
Branch:
Ticket #611
Children:
1751:ee2ab5a303c8, 1752:c9ff9890c55e
Message:

Ticket #611 : la barre d'édition ne disparaissait pas quand on passe du mode wiki ou XHTML à un autres mode en plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/jsToolBar/jsToolBar.wysiwyg.js

    r1626 r1750  
    4343 
    4444jsToolBar.prototype.switchMode = function(mode) { 
    45      mode = mode || 'xhtml'; 
    46       
    4745     if (mode == 'xhtml') { 
    4846          this.draw(mode); 
    49      } else { 
     47     } else if (mode == 'wiki')  { 
    5048          if (this.wwg_mode) { 
    5149               this.syncContents('iframe'); 
     
    5452          this.textarea.style.display = ''; 
    5553          this.drawToolBar(mode); 
     54     } else { 
     55          this.removeEditor(); 
     56          this.textarea.style.display = ''; 
     57          while (this.toolbar.hasChildNodes()) { 
     58               this.toolbar.removeChild(this.toolbar.firstChild) 
     59          } 
    5660     } 
    5761}; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map