Dotclear


Ignore:
Files:
3 edited

Legend:

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

    r723 r1753  
    377377 
    378378// Last space element 
    379 jsToolBar.prototype.elements.space3 = {type: 'space'}; 
     379jsToolBar.prototype.elements.space3 = { 
     380     type:'space',  
     381     format:{ 
     382          wysiwyg:true, 
     383          wiki:true, 
     384          xhtml:true 
     385     } 
     386}; 
  • admin/js/jsToolBar/jsToolBar.js

    r1047 r1755  
    167167     space: function(toolName) { 
    168168          var tool = new jsSpace(toolName); 
     169          if (!this.elements[toolName].format[this.mode]) return null; 
    169170          if (this.elements[toolName].width !== undefined) { 
    170171               tool.width = this.elements[toolName].width; 
     
    174175     combo: function(toolName) { 
    175176          var tool = this.elements[toolName]; 
    176           var length = tool[this.mode].list.length; 
    177            
    178           if (typeof tool[this.mode].fn != 'function' || length == 0) { 
    179                return null; 
    180           } else { 
    181                var options = {}; 
    182                for (var i=0; i < length; i++) { 
    183                     var opt = tool[this.mode].list[i]; 
    184                     options[opt] = tool.options[opt]; 
     177           
     178          if( tool[this.mode] != undefined) { 
     179                
     180               var length = tool[this.mode].list.length; 
     181                
     182               if (typeof tool[this.mode].fn != 'function' || length == 0) { 
     183                    return null; 
     184               } else { 
     185                    var options = {}; 
     186                    for (var i=0; i < length; i++) { 
     187                         var opt = tool[this.mode].list[i]; 
     188                         options[opt] = tool.options[opt]; 
     189                    } 
     190                    return new jsCombo(tool.title, options, this, tool[this.mode].fn); 
    185191               } 
    186                return new jsCombo(tool.title, options, this, tool[this.mode].fn); 
    187           } 
     192                
     193          } 
     194           
    188195     }, 
    189196     draw: function(mode) { 
     
    347354 
    348355// spacer 
    349 jsToolBar.prototype.elements.space0 = {type: 'space'}; 
     356jsToolBar.prototype.elements.space0 = { 
     357     type:'space',  
     358     format:{ 
     359          wysiwyg:true, 
     360          wiki:true, 
     361          xhtml:true 
     362     } 
     363}; 
    350364 
    351365// strong 
     
    410424 
    411425// spacer 
    412 jsToolBar.prototype.elements.space1 = {type: 'space'}; 
     426jsToolBar.prototype.elements.space1 = { 
     427     type:'space',  
     428     format:{ 
     429          wysiwyg:true, 
     430          wiki:true, 
     431          xhtml:true 
     432     } 
     433}; 
    413434 
    414435// br 
     
    423444 
    424445// spacer 
    425 jsToolBar.prototype.elements.space2 = {type: 'space'}; 
     446jsToolBar.prototype.elements.space2 = { 
     447     type:'space',  
     448     format:{ 
     449          wysiwyg:true, 
     450          wiki:true, 
     451          xhtml:true 
     452     } 
     453}; 
    426454 
    427455// blockquote 
     
    494522 
    495523// spacer 
    496 jsToolBar.prototype.elements.space3 = {type: 'space'}; 
     524jsToolBar.prototype.elements.space3 = { 
     525     type:'space',  
     526     format:{ 
     527          wysiwyg:true, 
     528          wiki:true, 
     529          xhtml:true 
     530     } 
     531}; 
    497532 
    498533// link 
  • plugins/tags/js/post.js

    r1699 r1753  
    6767 
    6868// Toolbar button for tags 
    69 jsToolBar.prototype.elements.tagSpace = {type: 'space'}; 
     69jsToolBar.prototype.elements.tagSpace = { 
     70     type: 'space',  
     71     format:{ 
     72          wysiwyg:true, 
     73          wiki:true, 
     74          xhtml:true 
     75     } 
     76}; 
    7077 
    7178jsToolBar.prototype.elements.tag = {type: 'button', title: 'Keyword', fn:{} }; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map