diff --git a/mozilla/editor/ui/composer/content/EditorCommands.js b/mozilla/editor/ui/composer/content/EditorCommands.js index b7e882680d3..7133517075e 100644 --- a/mozilla/editor/ui/composer/content/EditorCommands.js +++ b/mozilla/editor/ui/composer/content/EditorCommands.js @@ -680,15 +680,18 @@ function EditorDecreaseFontSize() editorShell.DecreaseFontSize(); } -function EditorSelectTextColor() +function EditorSelectTextColor(ColorPickerID, ColorWellID) { - - dump("EditorSelectTextColor\n"); + var color = getColorAndSetColorWell(ColorPickerID, ColorWellID); + dump("EditorSelectTextColor: "+color+"\n"); + EditorSetFontColor(color); } -function EditorSelectBackColor() +function EditorSelectBackColor(ColorPickerID, ColorWellID) { - dump("EditorSelectBackColor\n"); + var color = getColorAndSetColorWell(ColorPickerID, ColorWellID); + dump("EditorSelectBackColor: "+color+"\n"); + EditorSetBackgroundColor(color); } function EditorSetFontColor(color) diff --git a/mozilla/editor/ui/composer/content/editor.xul b/mozilla/editor/ui/composer/content/editor.xul index 4f2342ecd0d..e5b9511329f 100644 --- a/mozilla/editor/ui/composer/content/editor.xul +++ b/mozilla/editor/ui/composer/content/editor.xul @@ -61,8 +61,8 @@ - - + + diff --git a/mozilla/editor/ui/composer/content/editorOverlay.xul b/mozilla/editor/ui/composer/content/editorOverlay.xul index 7981fb36f48..be323f4bc08 100644 --- a/mozilla/editor/ui/composer/content/editorOverlay.xul +++ b/mozilla/editor/ui/composer/content/editorOverlay.xul @@ -573,17 +573,17 @@ - + &textColorCaption.label; - + - + Background Color - + @@ -676,8 +676,8 @@ - - + + diff --git a/mozilla/editor/ui/dialogs/content/EdDialogCommon.js b/mozilla/editor/ui/dialogs/content/EdDialogCommon.js index 35a7cd44274..d1be99a99ab 100644 --- a/mozilla/editor/ui/dialogs/content/EdDialogCommon.js +++ b/mozilla/editor/ui/dialogs/content/EdDialogCommon.js @@ -367,19 +367,16 @@ function forceInteger(elementID) return; var stringIn = editField.value; - var pat = new RegExp("/\D+/g"); - if (pat.test(stringIn)) { -dump("TEST SUCCEEDED\n") - editField.value = stringIn.replace(pat,""); + if (stringIn && stringIn.length > 0) + { + // Strip out all nonnumeric characters + editField.value = stringIn.replace(/\D+/g,""); // we hope to remove the following line for blur() once xp widgets land // cmanske (9/15) testing this now that GFX ender widget is active //editField.blur(); sysBeep.Beep(); } - else { -dump("TEST didn't SUCCEEDED\n") - } } diff --git a/mozilla/editor/ui/dialogs/content/EdHLineProps.js b/mozilla/editor/ui/dialogs/content/EdHLineProps.js index 31e7309e3e6..7e7c5401604 100644 --- a/mozilla/editor/ui/dialogs/content/EdHLineProps.js +++ b/mozilla/editor/ui/dialogs/content/EdHLineProps.js @@ -75,26 +75,12 @@ function Startup() // by AdvancedEdit(), which is shared by all property dialogs function InitDialog() { -//******** Debuggin weird RegExp problems - var stringIn = "123abc456"; - dump("Test string = "+stringIn+"\n"); - var pat = new RegExp("/\D+/g"); - if (pat.test(stringIn)) { - var tempStr = stringIn.replace(pat,""); - dump("Replaced pattern = "+tempStr+"\n"); - } else { - dump("Failed test for nonnumeral characters\n"); - } -//***************** end of test - - // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { dump("NO SIZE FOUND FOR HLINE"); height = 2; //Default value } -dump("HLine size = "+height+"\n"); // We will use "height" here and in UI dialog.heightInput.value = height;