Changeset 390
- Timestamp:
- 10/22/05 02:05:27 (8 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/TableOperations/table-operations.js (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/TableOperations/table-operations.js
r376 r390 224 224 <tr> \ 225 225 <td> \ 226 <fieldset><legend> Frame and borders</legend> \226 <fieldset><legend>" + HTMLArea._lc("Frame and borders", "TableOperations") + "</legend> \ 227 227 <table width='100%'> \ 228 228 <tr> \ … … 779 779 } 780 780 style.textAlign = '"' + ch + '"'; 781 } else if (val == "-") { 782 style.textAlign = ""; 781 783 } else { 782 784 style.textAlign = val; … … 784 786 break; 785 787 case "f_st_verticalAlign": 786 style.verticalAlign = val; 788 element.vAlign = ""; 789 if (val == "-") { 790 style.verticalAlign = ""; 791 792 } else { 793 style.verticalAlign = val; 794 } 787 795 break; 788 796 case "f_st_float": … … 925 933 td.appendChild(select); 926 934 select.name = "f_st_textAlign"; 927 options = ["Left", "Center", "Right", "Justify" ];935 options = ["Left", "Center", "Right", "Justify", "-"]; 928 936 if (tagname == "td") { 929 937 options.push("Char"); … … 940 948 option.value = val; 941 949 option.innerHTML = HTMLArea._lc(Val, "TableOperations"); 942 option.selected = ( el.style.textAlign.toLowerCase() == val);950 option.selected = ((el.style.textAlign.toLowerCase() == val) || (el.style.textAlign == "" && Val == "-")); 943 951 select.appendChild(option); 944 952 } … … 988 996 select.style.marginLeft = "0.5em"; 989 997 td.appendChild(select); 990 options = ["Top", "Middle", "Bottom", "Baseline" ];998 options = ["Top", "Middle", "Bottom", "Baseline", "-"]; 991 999 for (var i = 0; i < options.length; ++i) { 992 1000 var Val = options[i]; … … 995 1003 option.value = val; 996 1004 option.innerHTML = HTMLArea._lc(Val, "TableOperations"); 997 option.selected = ( el.style.verticalAlign.toLowerCase() == val);1005 option.selected = ((el.style.verticalAlign.toLowerCase() == val) || (el.style.verticalAlign == "" && Val == "-")); 998 1006 select.appendChild(option); 999 1007 }
