Changeset 988
- Timestamp:
- 04/12/08 13:46:09 (5 years ago)
- Location:
- trunk/plugins
- Files:
-
- 2 modified
-
ContextMenu/context-menu.js (modified) (2 diffs)
-
TableOperations/table-operations.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ContextMenu/context-menu.js
r987 r988 26 26 }; 27 27 28 Xinha.Config.prototype.ContextMenu = { 29 disableMozillaSpellCheck : false 30 } 31 28 32 ContextMenu.prototype.onGenerate = function() { 29 33 var self = this; … … 34 38 }); 35 39 this.currentMenu = null; 36 this.editordoc.body.spellcheck = false; // Firefox spellchecking is quite confusing for the user when they don't get the browser context menu 40 41 if (this.editor.config.ContextMenu.disableMozillaSpellCheck) { 42 this.editordoc.body.spellcheck = false; // Firefox spellchecking is quite confusing for the user when they don't get the browser context menu 43 } 37 44 }; 38 45 -
trunk/plugins/TableOperations/table-operations.js
r856 r988 836 836 } 837 837 break; 838 case "f_st_float": 839 style.cssFloat = val; 838 case "f_st_float": 839 if (Xinha.is_ie) { 840 style.styleFloat = val; 841 } 842 else { 843 style.cssFloat = val; 844 } 840 845 break; 841 846 // case "f_st_margin": … … 935 940 option.innerHTML = Xinha._lc(Val, "TableOperations"); 936 941 option.value = val; 937 option.selected = (("" + el.style.cssFloat).toLowerCase() == val); 942 if (Xinha.is_ie) { 943 option.selected = (("" + el.style.styleFloat).toLowerCase() == val); 944 } 945 else { 946 option.selected = (("" + el.style.cssFloat).toLowerCase() == val); 947 } 938 948 select.appendChild(option); 939 949 } … … 1129 1139 // That is, "top right bottom left" -- we only consider the first 1130 1140 // value. 1131 (currentBorderStyle.match(/([^\s]*)\s/)) && (currentBorderStyle = RegExp.$1); 1132 for (var i in options) { 1133 if(typeof options[i] == 'function') continue; 1141 if (currentBorderStyle.match(/([^\s]*)\s/)) currentBorderStyle = RegExp.$1; 1142 for (var i=0;i<options.length;i++) { 1134 1143 var val = options[i]; 1135 1144 option = doc.createElement("option"); 1136 1145 option.value = val; 1137 1146 option.innerHTML = val; 1138 (val == currentBorderStyle) && (option.selected = true);1147 if (val == currentBorderStyle) option.selected = true; 1139 1148 select.appendChild(option); 1140 1149 }
