Changes in [1824:eed1c6769645:1825:5fdad3202f9c]
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/jsToolBar/jsToolBar.dotclear.js
r723 r1753 377 377 378 378 // Last space element 379 jsToolBar.prototype.elements.space3 = {type: 'space'}; 379 jsToolBar.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 167 167 space: function(toolName) { 168 168 var tool = new jsSpace(toolName); 169 if (!this.elements[toolName].format[this.mode]) return null; 169 170 if (this.elements[toolName].width !== undefined) { 170 171 tool.width = this.elements[toolName].width; … … 174 175 combo: function(toolName) { 175 176 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); 185 191 } 186 return new jsCombo(tool.title, options, this, tool[this.mode].fn); 187 } 192 193 } 194 188 195 }, 189 196 draw: function(mode) { … … 347 354 348 355 // spacer 349 jsToolBar.prototype.elements.space0 = {type: 'space'}; 356 jsToolBar.prototype.elements.space0 = { 357 type:'space', 358 format:{ 359 wysiwyg:true, 360 wiki:true, 361 xhtml:true 362 } 363 }; 350 364 351 365 // strong … … 410 424 411 425 // spacer 412 jsToolBar.prototype.elements.space1 = {type: 'space'}; 426 jsToolBar.prototype.elements.space1 = { 427 type:'space', 428 format:{ 429 wysiwyg:true, 430 wiki:true, 431 xhtml:true 432 } 433 }; 413 434 414 435 // br … … 423 444 424 445 // spacer 425 jsToolBar.prototype.elements.space2 = {type: 'space'}; 446 jsToolBar.prototype.elements.space2 = { 447 type:'space', 448 format:{ 449 wysiwyg:true, 450 wiki:true, 451 xhtml:true 452 } 453 }; 426 454 427 455 // blockquote … … 494 522 495 523 // spacer 496 jsToolBar.prototype.elements.space3 = {type: 'space'}; 524 jsToolBar.prototype.elements.space3 = { 525 type:'space', 526 format:{ 527 wysiwyg:true, 528 wiki:true, 529 xhtml:true 530 } 531 }; 497 532 498 533 // link -
plugins/tags/js/post.js
r1699 r1753 67 67 68 68 // Toolbar button for tags 69 jsToolBar.prototype.elements.tagSpace = {type: 'space'}; 69 jsToolBar.prototype.elements.tagSpace = { 70 type: 'space', 71 format:{ 72 wysiwyg:true, 73 wiki:true, 74 xhtml:true 75 } 76 }; 70 77 71 78 jsToolBar.prototype.elements.tag = {type: 'button', title: 'Keyword', fn:{} };
Note: See TracChangeset
for help on using the changeset viewer.