- Timestamp:
- 06/07/05 14:38:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/htmlarea.js
r223 r224 277 277 // even neater, if you resize the window the toolbars will reflow. Niiiice. 278 278 279 this.flowToolbars = true;279 this.flowToolbars = false; 280 280 281 281 /** CUSTOMIZING THE TOOLBAR … … 725 725 // when we float toolbar sections, so we have to clear:both here as well 726 726 // as at the end (which we do have to do). 727 if(editor.config.flowToolbars)728 {729 727 var brk = document.createElement('div'); 730 728 brk.style.height = … … 733 731 brk.style.fontSize = '1px'; 734 732 brk.style.clear = 'both'; 735 toolbar.appendChild(brk); 736 } 733 return brk; 737 734 } 738 735 … … 740 737 function newLine() { 741 738 if(typeof tb_row != 'undefined' && tb_row.childNodes.length == 0) return; 742 743 739 tb_row = document.createElement("div"); 744 740 if(editor.config.flowToolbars) { … … 934 930 }; 935 931 936 clearBoth();932 toolbar.appendChild(clearBoth()); 937 933 newLine(); // init first line 938 934 for (var i = 0; i < this.config.toolbar.length; ++i) { … … 949 945 var label = RegExp.$2; 950 946 if (l7ed) { 951 947 label = HTMLArea._lc(label); 952 948 } 953 949 var tb_element = document.createElement("div"); … … 969 965 break; 970 966 case "linebreak": 967 if(typeof tb_row != 'undefined' && tb_row.childNodes.length >0) 968 tb_row.appendChild(clearBoth()); 971 969 newLine(); 972 970 break; … … 1002 1000 tb_row.appendChild(tb_element); 1003 1001 } 1004 else if (tb_element == null) {1002 else if (tb_element == null) { 1005 1003 alert("FIXME: Unknown toolbar item: " + code); 1006 1004 } … … 1008 1006 } 1009 1007 } 1010 clearBoth(); 1008 if(typeof tb_row != 'undefined' && tb_row.childNodes.length >0) 1009 tb_row.appendChild(clearBoth()); 1010 toolbar.appendChild(clearBoth()); 1011 1011 return toolbar; 1012 1012 };
Note: See TracChangeset
for help on using the changeset viewer.