Changeset 1753:344c253dc891
- Timestamp:
- 09/07/13 19:37:18 (11 years ago)
- Branch:
- Ticket #611
- Files:
-
- 4 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 r1753 152 152 153 153 switchMode: function(mode) { 154 mode = mode || 'xhtml';155 154 this.draw(mode); 156 155 }, … … 167 166 space: function(toolName) { 168 167 var tool = new jsSpace(toolName); 168 if (!this.elements[toolName].format[this.mode]) return null; 169 169 if (this.elements[toolName].width !== undefined) { 170 170 tool.width = this.elements[toolName].width; … … 174 174 combo: function(toolName) { 175 175 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]; 176 177 if( tool[this.mode] != undefined) { 178 179 var length = tool[this.mode].list.length; 180 181 if (typeof tool[this.mode].fn != 'function' || length == 0) { 182 return null; 183 } else { 184 var options = {}; 185 for (var i=0; i < length; i++) { 186 var opt = tool[this.mode].list[i]; 187 options[opt] = tool.options[opt]; 188 } 189 return new jsCombo(tool.title, options, this, tool[this.mode].fn); 185 190 } 186 return new jsCombo(tool.title, options, this, tool[this.mode].fn); 187 } 191 192 } 193 188 194 }, 189 195 draw: function(mode) { … … 347 353 348 354 // spacer 349 jsToolBar.prototype.elements.space0 = {type: 'space'}; 355 jsToolBar.prototype.elements.space0 = { 356 type:'space', 357 format:{ 358 wysiwyg:true, 359 wiki:true, 360 xhtml:true 361 } 362 }; 350 363 351 364 // strong … … 410 423 411 424 // spacer 412 jsToolBar.prototype.elements.space1 = {type: 'space'}; 425 jsToolBar.prototype.elements.space1 = { 426 type:'space', 427 format:{ 428 wysiwyg:true, 429 wiki:true, 430 xhtml:true 431 } 432 }; 413 433 414 434 // br … … 423 443 424 444 // spacer 425 jsToolBar.prototype.elements.space2 = {type: 'space'}; 445 jsToolBar.prototype.elements.space2 = { 446 type:'space', 447 format:{ 448 wysiwyg:true, 449 wiki:true, 450 xhtml:true 451 } 452 }; 426 453 427 454 // blockquote … … 494 521 495 522 // spacer 496 jsToolBar.prototype.elements.space3 = {type: 'space'}; 523 jsToolBar.prototype.elements.space3 = { 524 type:'space', 525 format:{ 526 wysiwyg:true, 527 wiki:true, 528 xhtml:true 529 } 530 }; 497 531 498 532 // link -
admin/js/jsToolBar/jsToolBar.wysiwyg.js
r1750 r1753 43 43 44 44 jsToolBar.prototype.switchMode = function(mode) { 45 mode = mode || 'xhtml'; 46 45 47 if (mode == 'xhtml') { 46 48 this.draw(mode); 47 } else if (mode == 'wiki'){49 } else { 48 50 if (this.wwg_mode) { 49 51 this.syncContents('iframe'); … … 52 54 this.textarea.style.display = ''; 53 55 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 }60 56 } 61 57 }; -
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.