diff --git a/mozilla/editor/ui/composer/content/ComposerCommands.js b/mozilla/editor/ui/composer/content/ComposerCommands.js index 0078097bfa1..c22b59db440 100644 --- a/mozilla/editor/ui/composer/content/ComposerCommands.js +++ b/mozilla/editor/ui/composer/content/ComposerCommands.js @@ -719,7 +719,10 @@ var nsEditHTMLCommand = }, doCommand: function(aCommand) { - _EditorNotImplemented(); //TODO: IMPLEMENT ME! + if (gEditorDisplayMode === DisplayModeSource) + SetEditMode(DisplayModeNormal); + else + SetEditMode(DisplayModeSource); } }; @@ -736,7 +739,11 @@ function EditorInitTableMenu() // table border? Try to figure out all cells // included in the selection? var menuText; - if (editorShell.GetFirstSelectedCell()) + + // Use "Join selected cells if there's more than 1 cell selected + var tagNameObj = new Object; + var countObj = new Object; + if (window.editorShell.GetSelectedOrParentTableElement(tagNameObj, countObj) && countObj.value > 1) menuText = GetString("JoinSelectedCells"); else menuText = GetString("JoinCellToRight"); @@ -765,10 +772,8 @@ function EditorInitTableMenu() function goUpdateTableMenuItems(commandset) { - // Insert table can be done any time (if editable document) - goUpdateCommand("cmd_InsertTable"); - var enabled = false; + var enabledIfTable = false; if (window.editorShell && window.editorShell.documentEditable) { @@ -777,8 +782,7 @@ function goUpdateTableMenuItems(commandset) var element = editorShell.GetSelectedOrParentTableElement(tagNameObj, selectedCountObj); if (element) { - // We can delete or normalize table if inside a table - // or any table element is selected + // Value when we need to have a selected table or inside a table enabledIfTable = true; // All others require being inside a cell or selected cell @@ -786,19 +790,27 @@ function goUpdateTableMenuItems(commandset) } } - goSetCommandEnabled("cmd_DeleteTable", enabledIfTable); - goSetCommandEnabled("cmd_NormalizeTable", enabledIfTable); - - // Loop through command nodes to set all the others + // Loop through command nodes for (var i = 0; i < commandset.childNodes.length; i++) { var commandID = commandset.childNodes[i].getAttribute("id"); - if (commandID && - commandID != "cmd_InsertTable" && - commandID != "cmd_DeleteTable" && - commandID != "cmd_NormalizeTable") + if (commandID) { - goSetCommandEnabled(commandID, enabled); + if (commandID == "cmd_InsertTable" || + commandID == "cmd_tableJoinCells" || + commandID == "cmd_tableSplitCell") + { + // Call the update method in the command class + goUpdateCommand(commandID); + } + // Directly set with the values calculated here + else if (commandID == "cmd_DeleteTable" || + commandID == "cmd_NormalizeTable") + { + goSetCommandEnabled(commandID, enabledIfTable); + } else { + goSetCommandEnabled(commandID, enabled); + } } } } @@ -991,7 +1003,7 @@ var nsInsertTableRowAboveCommand = { if (this.isCommandEnabled(aCommand)) { - window.editorShell.InsertTableRow(false); + window.editorShell.InsertTableRow(1, false); window.content.focus(); } } @@ -1007,7 +1019,7 @@ var nsInsertTableRowBelowCommand = { if (this.isCommandEnabled(aCommand)) { - window.editorShell.InsertTableRow(true); + window.editorShell.InsertTableRow(1,true); window.content.focus(); } } @@ -1023,7 +1035,7 @@ var nsInsertTableColumnBeforeCommand = { if (this.isCommandEnabled(aCommand)) { - window.editorShell.InsertTableColumn(false); + window.editorShell.InsertTableColumn(1, false); window.content.focus(); } } @@ -1039,7 +1051,7 @@ var nsInsertTableColumnAfterCommand = { if (this.isCommandEnabled(aCommand)) { - window.editorShell.InsertTableColumn(true); + window.editorShell.InsertTableColumn(1, true); window.content.focus(); } } @@ -1054,7 +1066,7 @@ var nsInsertTableCellBeforeCommand = doCommand: function(aCommand) { if (this.isCommandEnabled(aCommand)) - window.editorShell.InsertTableCell(false); + window.editorShell.InsertTableCell(1, false); } }; @@ -1068,7 +1080,7 @@ var nsInsertTableCellAfterCommand = { if (this.isCommandEnabled(aCommand)) { - window.editorShell.InsertTableCell(true); + window.editorShell.InsertTableCell(1, true); window.content.focus(); } } @@ -1177,8 +1189,22 @@ var nsJoinTableCellsCommand = { isCommandEnabled: function(aCommand, dummy) { - //TODO: This should really only be allowed if there's a cell to the right - return IsInTableCell(); + if (window.editorShell && window.editorShell.documentEditable) + { + var tagNameObj = new Object; + var countObj = new Object; + var cell = window.editorShell.GetSelectedOrParentTableElement(tagNameObj, countObj); + + // We need a cell and either > 1 selected cell or a sibling cell to the right + // (Note that editorShell returns "td" for "th" also) + // (This is a pain! Editor and gecko use lowercase tagNames, JS uses uppercase!) + if (cell && tagNameObj.value != "td") + return ( (countObj.value > 1) || + (cell.nextSibling && + (cell.nextSibling.tagName == "TD" || + cell.nextSibling.tagName == "TH")) ); + } + return false; }, doCommand: function(aCommand) { @@ -1195,8 +1221,12 @@ var nsSplitTableCellCommand = { isCommandEnabled: function(aCommand, dummy) { - //TODO: This should be allowed only if rowspan or colspan > 0; - return IsInTableCell(); + if (window.editorShell && window.editorShell.documentEditable) + { + var cell = window.editorShell.GetElementOrParentByTagName("td", null); + return (cell != null && (cell.colSpan > 1 || cell.rowSpan > 1)); + } + return false; }, doCommand: function(aCommand) { diff --git a/mozilla/editor/ui/composer/content/EditorAllTags.css b/mozilla/editor/ui/composer/content/EditorAllTags.css index 9852ea7769d..124c753e8b8 100644 --- a/mozilla/editor/ui/composer/content/EditorAllTags.css +++ b/mozilla/editor/ui/composer/content/EditorAllTags.css @@ -37,14 +37,14 @@ background-position: top left; } -a:before { - content: none; +a[name]:before { + content: ""; /*url(chrome://editor/content/images/tag-a.gif);*/ } a { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 20px; background-image: url(chrome://editor/content/images/tag-a.gif); background-repeat: no-repeat; background-position: top left; @@ -52,7 +52,7 @@ a { abbr { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 35px; background-image: url(chrome://editor/content/images/tag-abr.gif); background-repeat: no-repeat; background-position: top left; @@ -61,7 +61,7 @@ abbr { acronym { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 57px; background-image: url(chrome://editor/content/images/tag-acr.gif); background-repeat: no-repeat; background-position: top left; @@ -69,7 +69,7 @@ acronym { address { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-adr.gif); background-repeat: no-repeat; background-position: top left; @@ -77,7 +77,7 @@ address { applet { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 47px; background-image: url(chrome://editor/content/images/tag-app.gif); background-repeat: no-repeat; background-position: top left; @@ -85,7 +85,7 @@ applet { area { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 39px; background-image: url(chrome://editor/content/images/tag-ara.gif); background-repeat: no-repeat; background-position: top left; @@ -93,7 +93,7 @@ area { b { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 20px; background-image: url(chrome://editor/content/images/tag-b.gif); background-repeat: no-repeat; background-position: top left; @@ -101,7 +101,7 @@ b { basefont { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 57px; background-image: url(chrome://editor/content/images/tag-bsf.gif); background-repeat: no-repeat; background-position: top left; @@ -109,7 +109,7 @@ basefont { bdo { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-bdo.gif); background-repeat: no-repeat; background-position: top left; @@ -117,7 +117,7 @@ bdo { big { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-big.gif); background-repeat: no-repeat; background-position: top left; @@ -125,7 +125,7 @@ big { blockquote { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-blq.gif); background-repeat: no-repeat; background-position: top left; @@ -133,7 +133,7 @@ blockquote { body { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-body.gif); background-repeat: no-repeat; background-position: top left; @@ -141,7 +141,7 @@ body { br { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 23px; background-image: url(chrome://editor/content/images/tag-br.gif); background-repeat: no-repeat; background-position: top left; @@ -149,7 +149,7 @@ br { button { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 57px; background-image: url(chrome://editor/content/images/tag-btn.gif); background-repeat: no-repeat; background-position: top left; @@ -157,7 +157,7 @@ button { caption { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 55px; background-image: url(chrome://editor/content/images/tag-cpt.gif); background-repeat: no-repeat; background-position: top left; @@ -165,7 +165,7 @@ caption { center { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-ctr.gif); background-repeat: no-repeat; background-position: top left; @@ -173,7 +173,7 @@ center { cite { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 39px; background-image: url(chrome://editor/content/images/tag-cit.gif); background-repeat: no-repeat; background-position: top left; @@ -181,7 +181,7 @@ cite { code { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 39px; background-image: url(chrome://editor/content/images/tag-cod.gif); background-repeat: no-repeat; background-position: top left; @@ -189,7 +189,7 @@ code { col { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-col.gif); background-repeat: no-repeat; background-position: top left; @@ -197,7 +197,7 @@ col { colgroup { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 51px; background-image: url(chrome://editor/content/images/tag-clg.gif); background-repeat: no-repeat; background-position: top left; @@ -205,7 +205,7 @@ colgroup { dd { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 23px; background-image: url(chrome://editor/content/images/tag-dd.gif); background-repeat: no-repeat; background-position: top left; @@ -213,7 +213,7 @@ dd { del { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-del.gif); background-repeat: no-repeat; background-position: top left; @@ -221,7 +221,7 @@ del { dfn { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-dfn.gif); background-repeat: no-repeat; background-position: top left; @@ -229,7 +229,7 @@ dfn { dir { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-dir.gif); background-repeat: no-repeat; background-position: top left; @@ -238,7 +238,7 @@ dir { div { min-height: 35px; margin-left: 2px; margin-top: 2px; /* TEMPORARY TO COMPENSATE FOR BUG */ - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-div.gif); background-repeat: no-repeat; background-position: top left; @@ -246,7 +246,7 @@ div { dl { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-dl.gif); background-repeat: no-repeat; background-position: top left; @@ -254,7 +254,7 @@ dl { dt { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 23px; background-image: url(chrome://editor/content/images/tag-dt.gif); background-repeat: no-repeat; background-position: top left; @@ -262,7 +262,7 @@ dt { em { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 23px; background-image: url(chrome://editor/content/images/tag-em.gif); background-repeat: no-repeat; background-position: top left; @@ -270,7 +270,7 @@ em { fieldset { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-fld.gif); background-repeat: no-repeat; background-position: top left; @@ -278,7 +278,7 @@ fieldset { font { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 39px; background-image: url(chrome://editor/content/images/tag-fnt.gif); background-repeat: no-repeat; background-position: top left; @@ -286,7 +286,7 @@ font { form { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-for.gif); background-repeat: no-repeat; background-position: top left; @@ -294,7 +294,7 @@ form { frame { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-frm.gif); background-repeat: no-repeat; background-position: top left; @@ -302,7 +302,7 @@ frame { frameset { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-fst.gif); background-repeat: no-repeat; background-position: top left; @@ -310,7 +310,7 @@ frameset { h1 { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-h1.gif); background-repeat: no-repeat; background-position: top left; @@ -318,7 +318,7 @@ h1 { h2 { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-h2.gif); background-repeat: no-repeat; background-position: top left; @@ -326,7 +326,7 @@ h2 { h3 { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-h3.gif); background-repeat: no-repeat; background-position: top left; @@ -334,7 +334,7 @@ h3 { h4 { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-h4.gif); background-repeat: no-repeat; background-position: top left; @@ -342,7 +342,7 @@ h4 { h5 { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-h5.gif); background-repeat: no-repeat; background-position: top left; @@ -350,7 +350,7 @@ h5 { h6 { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-h6.gif); background-repeat: no-repeat; background-position: top left; @@ -358,7 +358,7 @@ h6 { hr { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-hr.gif); background-repeat: no-repeat; background-position: top left; @@ -366,7 +366,7 @@ hr { i { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 20px; background-image: url(chrome://editor/content/images/tag-i.gif); background-repeat: no-repeat; background-position: top left; @@ -374,7 +374,7 @@ i { iframe { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 47px; background-image: url(chrome://editor/content/images/tag-ifr.gif); background-repeat: no-repeat; background-position: top left; @@ -382,7 +382,7 @@ iframe { img { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-img.gif); background-repeat: no-repeat; background-position: top left; @@ -390,7 +390,7 @@ img { input { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 39px; background-image: url(chrome://editor/content/images/tag-inp.gif); background-repeat: no-repeat; background-position: top left; @@ -398,7 +398,7 @@ input { ins { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-ins.gif); background-repeat: no-repeat; background-position: top left; @@ -406,7 +406,7 @@ ins { isindex { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-isx.gif); background-repeat: no-repeat; background-position: top left; @@ -414,7 +414,7 @@ isindex { kbd { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-kbd.gif); background-repeat: no-repeat; background-position: top left; @@ -422,7 +422,7 @@ kbd { label { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 39px; background-image: url(chrome://editor/content/images/tag-lbl.gif); background-repeat: no-repeat; background-position: top left; @@ -430,7 +430,7 @@ label { legend { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 49px; background-image: url(chrome://editor/content/images/tag-lgn.gif); background-repeat: no-repeat; background-position: top left; @@ -438,7 +438,7 @@ legend { li { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 23px; background-image: url(chrome://editor/content/images/tag-li.gif); background-repeat: no-repeat; background-position: top left; @@ -446,7 +446,7 @@ li { listing { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 57px; background-image: url(chrome://editor/content/images/tag-lst.gif); background-repeat: no-repeat; background-position: top left; @@ -454,7 +454,7 @@ listing { map { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-map.gif); background-repeat: no-repeat; background-position: top left; @@ -462,7 +462,7 @@ map { menu { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 39px; background-image: url(chrome://editor/content/images/tag-men.gif); background-repeat: no-repeat; background-position: top left; @@ -470,7 +470,7 @@ menu { noframes { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-nfr.gif); background-repeat: no-repeat; background-position: top left; @@ -478,7 +478,7 @@ noframes { noscript { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-nsc.gif); background-repeat: no-repeat; background-position: top left; @@ -486,7 +486,7 @@ noscript { object { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 49px; background-image: url(chrome://editor/content/images/tag-obj.gif); background-repeat: no-repeat; background-position: top left; @@ -494,7 +494,7 @@ object { ol { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-ol.gif); background-repeat: no-repeat; background-position: top left; @@ -502,7 +502,7 @@ ol { optgroup { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 51px; background-image: url(chrome://editor/content/images/tag-opg.gif); background-repeat: no-repeat; background-position: top left; @@ -510,7 +510,7 @@ optgroup { option { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 47px; background-image: url(chrome://editor/content/images/tag-opt.gif); background-repeat: no-repeat; background-position: top left; @@ -518,7 +518,7 @@ option { p { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-p.gif); background-repeat: no-repeat; background-position: top left; @@ -526,7 +526,7 @@ p { param { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 43px; background-image: url(chrome://editor/content/images/tag-prm.gif); background-repeat: no-repeat; background-position: top left; @@ -534,7 +534,7 @@ param { plaintext { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 57px; background-image: url(chrome://editor/content/images/tag-pln.gif); background-repeat: no-repeat; background-position: top left; @@ -542,7 +542,7 @@ plaintext { pre { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-pre.gif); background-repeat: no-repeat; background-position: top left; @@ -550,7 +550,7 @@ pre { q { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 20px; background-image: url(chrome://editor/content/images/tag-q.gif); background-repeat: no-repeat; background-position: top left; @@ -558,7 +558,7 @@ q { s { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 20px; background-image: url(chrome://editor/content/images/tag-s.gif); background-repeat: no-repeat; background-position: top left; @@ -566,7 +566,7 @@ s { samp { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 39px; background-image: url(chrome://editor/content/images/tag-smp.gif); background-repeat: no-repeat; background-position: top left; @@ -574,7 +574,7 @@ samp { script { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 45px; background-image: url(chrome://editor/content/images/tag-scr.gif); background-repeat: no-repeat; background-position: top left; @@ -582,7 +582,7 @@ script { select { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 47px; background-image: url(chrome://editor/content/images/tag-slc.gif); background-repeat: no-repeat; background-position: top left; @@ -590,7 +590,7 @@ select { small { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 41px; background-image: url(chrome://editor/content/images/tag-sml.gif); background-repeat: no-repeat; background-position: top left; @@ -599,7 +599,7 @@ small { span { min-height: 35px; margin-left: 2px; margin-top: 2px; /* TEMPORARY TO COMPENSATE FOR BUG */ - padding-left: 16px; + padding-left: 39px; background-image: url(chrome://editor/content/images/tag-spn.gif); background-repeat: no-repeat; background-position: top left; @@ -607,7 +607,7 @@ span { strike { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 45px; background-image: url(chrome://editor/content/images/tag-stk.gif); background-repeat: no-repeat; background-position: top left; @@ -615,7 +615,7 @@ strike { strong { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 51px; background-image: url(chrome://editor/content/images/tag-stn.gif); background-repeat: no-repeat; background-position: top left; @@ -623,7 +623,7 @@ strong { sub { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-sub.gif); background-repeat: no-repeat; background-position: top left; @@ -631,7 +631,7 @@ sub { sup { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-sup.gif); background-repeat: no-repeat; background-position: top left; @@ -643,23 +643,23 @@ sup { table { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-tbl.gif); background-repeat: no-repeat; background-position: top left; } tbody { - min-height: 35px; margin-left: 2px; margin-top: 1px; - padding-left: 16px; + min-height: 42px; margin-left: 2px; margin-top: 1px; + padding-left: 17px; content: url(chrome://editor/content/images/tag-tbd.gif); background-repeat: no-repeat; background-position: top left; } td { - min-height: 35px; margin-left: 2px; - padding-left: 16px; + min-height: 22px; margin-left: 2px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-td.gif); background-repeat: no-repeat; @@ -668,31 +668,31 @@ td { textarea { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 59px; background-image: url(chrome://editor/content/images/tag-txt.gif); background-repeat: no-repeat; background-position: top left; } tfoot { - min-height: 35px; margin-left: 2px; margin-top: 1px; - padding-left: 16px; + min-height: 42px; margin-left: 2px; margin-top: 1px; + padding-left: 17px; content: url(chrome://editor/content/images/tag-tft.gif); background-repeat: no-repeat; background-position: top left; } th { - min-height: 35px; margin-left: 2px; - padding-left: 16px; + min-height: 22px; margin-left: 2px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-th.gif); background-repeat: no-repeat; background-position: top left; } thead { - min-height: 35px; margin-left: 2px; margin-top: 1px; - padding-left: 16px; + min-height: 42px; margin-left: 2px; margin-top: 1px; + padding-left: 17px; content: url(chrome://editor/content/images/tag-thd.gif); background-repeat: no-repeat; background-position: top left; @@ -700,7 +700,7 @@ thead { tr { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 23px; background-image: url(chrome://editor/content/images/tag-tr.gif); background-repeat: no-repeat; background-position: top left; @@ -708,14 +708,15 @@ tr { tt { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 23px; background-image: url(chrome://editor/content/images/tag-tt.gif); background-repeat: no-repeat; background-position: top left; } u { - padding-left: 16px; + min-height: 35px; margin-left: 2px; margin-top: 2px; + padding-left: 23px; background-image: url(chrome://editor/content/images/tag-u.gif); background-repeat: no-repeat; background-position: top left; @@ -723,7 +724,7 @@ u { ul { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-ul.gif); background-repeat: no-repeat; background-position: top left; @@ -731,7 +732,7 @@ ul { var { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-var.gif); background-repeat: no-repeat; background-position: top left; @@ -739,7 +740,7 @@ var { xmp { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 31px; background-image: url(chrome://editor/content/images/tag-xmp.gif); background-repeat: no-repeat; background-position: top left; @@ -752,7 +753,7 @@ xmp { html { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-html.gif); background-repeat: no-repeat; background-position: top left; @@ -760,7 +761,7 @@ html { head { min-height: 35px; margin-left: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-hed.gif); background-repeat: no-repeat; background-position: top left; @@ -770,7 +771,7 @@ These are tags that are ONLY allowed as children of HEAD: title { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-ttl.gif); background-repeat: no-repeat; background-position: top left; @@ -778,7 +779,7 @@ title { base { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-bas.gif); background-repeat: no-repeat; background-position: top left; @@ -786,7 +787,7 @@ base { style { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-stl.gif); background-repeat: no-repeat; background-position: top left; @@ -794,7 +795,7 @@ style { meta { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-met.gif); background-repeat: no-repeat; background-position: top left; @@ -802,7 +803,7 @@ meta { link { min-height: 35px; margin-left: 2px; margin-top: 2px; - padding-left: 16px; + padding-left: 17px; background-image: url(chrome://editor/content/images/tag-lnk.gif); background-repeat: no-repeat; background-position: top left; diff --git a/mozilla/editor/ui/composer/content/editor.js b/mozilla/editor/ui/composer/content/editor.js index 908a20708e2..cd0a8896d0c 100644 --- a/mozilla/editor/ui/composer/content/editor.js +++ b/mozilla/editor/ui/composer/content/editor.js @@ -37,7 +37,7 @@ var DisplayModeNormal = 1; var DisplayModeAllTags = 2; var DisplayModeSource = 3; var PreviousNonSourceDisplayMode = 1; -var EditorDisplayMode = 1; // Normal Editor mode +var gEditorDisplayMode = 1; // Normal Editor mode var EditModeType = ""; var WebCompose = false; // Set true for Web Composer, leave false for Messenger Composer var docWasModified = false; // Check if clean document, if clean then unload when user "Opens" @@ -45,6 +45,7 @@ var gContentWindow = 0; var gSourceContentWindow = 0; var gContentWindowDeck; var gFormatToolbar; +var gEditModeBar; // Bummer! Can't get at enums from nsIDocumentEncoder.h var gOutputSelectionOnly = 1; var gOutputFormatted = 2; @@ -138,12 +139,13 @@ var DocumentStateListener = function EditorStartup(editorType, editorElement) { - gContentWindow = window.content; - gSourceContentWindow = document.getElementById("content-source"); gIsHTMLEditor = (editorType == "html"); if (gIsHTMLEditor) { + gSourceContentWindow = document.getElementById("content-source"); + + gEditModeBar = document.getElementById("EditModeToolbar"); gEditModeLabel = document.getElementById("EditModeLabel"); gNormalModeButton = document.getElementById("NormalModeButton"); gTagModeButton = document.getElementById("TagModeButton"); @@ -152,7 +154,6 @@ function EditorStartup(editorType, editorElement) // The "type" attribute persists, so use that value // to setup edit mode buttons -dump("Edit Mode: "+gNormalModeButton.getAttribute('type')+"\n"); ToggleEditModeType(gNormalModeButton.getAttribute("type")); // XUL elements we use when switching from normal editor to edit source @@ -160,12 +161,6 @@ dump("Edit Mode: "+gNormalModeButton.getAttribute('type')+"\n"); gFormatToolbar = document.getElementById("FormatToolbar"); } - gIsWin = navigator.appVersion.indexOf("Win") != -1; - gIsUNIX = (navigator.appVersion.indexOf("X11") || - navigator.appVersion.indexOf("nux")) != -1; - gIsMac = !gIsWin && !gIsUNIX; - dump("IsWin="+gIsWin+", IsUNIX="+gIsUNIX+", IsMac="+gIsMac+"\n"); - // store the editor shell in the window, so that child windows can get to it. editorShell = editorElement.editorShell; @@ -173,17 +168,14 @@ dump("Edit Mode: "+gNormalModeButton.getAttribute('type')+"\n"); editorShell.SetEditorType(editorType); editorShell.webShellWindow = window; - editorShell.contentWindow = gContentWindow; + editorShell.contentWindow = window.content; - // hide UI that we don't have components for - HideInapplicableUIElements(); - - // set up JS-implemented commands - SetupControllerCommands(); - // add a listener to be called when document is really done loading editorShell.RegisterDocumentStateListener( DocumentStateListener ); - + + // Startup also used by other editor users, such as Message Composer + EditorSharedStartup() + // set up our global prefs object GetPrefsService(); @@ -193,6 +185,26 @@ dump("Edit Mode: "+gNormalModeButton.getAttribute('type')+"\n"); editorShell.LoadUrl(url); } +// This is the only method also called by Message Composer +function EditorSharedStartup() +{ + // set up JS-implemented commands + SetupControllerCommands(); + + // Just for convenience + gContentWindow = window.content; + + gIsWin = navigator.appVersion.indexOf("Win") != -1; + gIsUNIX = (navigator.appVersion.indexOf("X11") || + navigator.appVersion.indexOf("nux")) != -1; + gIsMac = !gIsWin && !gIsUNIX; + dump("IsWin="+gIsWin+", IsUNIX="+gIsUNIX+", IsMac="+gIsMac+"\n"); + + // hide UI that we don't have components for + HideInapplicableUIElements(); + +} + function _EditorNotImplemented() { dump("Function not implemented\n"); @@ -201,6 +213,7 @@ function _EditorNotImplemented() function EditorShutdown() { dump("In EditorShutdown..\n"); + return editorShell.Shutdown(); } // We use this alot! @@ -701,6 +714,13 @@ function SetEditMode(mode) { if (gIsHTMLEditor) { + // Be sure toolbar is visible + gEditModeBar.setAttribute("hidden", ""); + gEditModeBar.setAttribute("collapsed", ""); + // Remember the state + document.persist("EditModeToolbar","hidden"); + document.persist("EditModeToolbar","collapsed"); + var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { @@ -709,7 +729,7 @@ function SetEditMode(mode) } // Switch the UI mode before inserting contents // so user can't type in source window while new window is being filled - var previousMode = EditorDisplayMode; + var previousMode = gEditorDisplayMode; if (!SetDisplayMode(mode)) return; @@ -764,10 +784,10 @@ function SetDisplayMode(mode) { // Already in requested mode: // return false to indicate we didn't switch - if (mode == EditorDisplayMode) + if (mode == gEditorDisplayMode) return false; - EditorDisplayMode = mode; + gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayModeSource) @@ -788,7 +808,8 @@ function SetDisplayMode(mode) // Switch to the sourceWindow (second in the deck) gContentWindowDeck.setAttribute("index","1"); - // TODO: WE MUST DISABLE ALL KEYBOARD COMMANDS! + // TODO: WE MUST DISABLE APPROPRIATE COMMANDS + // and change UI to appropriate // THIS DOESN'T WORK! gSourceContentWindow.focus(); @@ -798,7 +819,8 @@ function SetDisplayMode(mode) // Switch to the normal editor (first in the deck) gContentWindowDeck.setAttribute("index","0"); - // TODO: WE MUST ENABLE ALL KEYBOARD COMMANDS! + // TODO: WE MUST ENABLE APPROPRIATE COMMANDS + // and change UI back to "normal" gContentWindow.focus(); } @@ -827,13 +849,16 @@ function ToggleEditModeType() gTagModeButton.setAttribute("value","Show All Tags"); gSourceModeButton.setAttribute("value","HTML Source"); gPreviewModeButton.setAttribute("value","Edit Preview"); - gEditModeLabel.removeAttribute("hidden"); + gEditModeLabel.setAttribute("hidden",""); } gNormalModeButton.setAttribute("type",EditModeType); gTagModeButton.setAttribute("type",EditModeType); gSourceModeButton.setAttribute("type",EditModeType); gPreviewModeButton.setAttribute("type",EditModeType); + + // Remember the state + document.persist("NormalModeButton","type"); } } diff --git a/mozilla/editor/ui/composer/content/editorOverlay.xul b/mozilla/editor/ui/composer/content/editorOverlay.xul index d16771aafdb..1cb42313ce9 100644 --- a/mozilla/editor/ui/composer/content/editorOverlay.xul +++ b/mozilla/editor/ui/composer/content/editorOverlay.xul @@ -545,18 +545,19 @@ --> + + oncommand="goDoCommand('cmd_removeStyles')" position="7"/> - + oncommand="EditorRemoveLinks()" position="8"/> + + position="10"> @@ -571,7 +572,7 @@ + position="11"> @@ -584,8 +585,10 @@ - - + + @@ -594,13 +597,13 @@ - + + observes="cmd_indent" position="15"/> - + observes="cmd_outdent" position="16"/> + @@ -616,16 +619,6 @@ - - - - - - - - - @@ -640,6 +633,16 @@ + + + + + + + + + diff --git a/mozilla/editor/ui/composer/content/images/tag-a.gif b/mozilla/editor/ui/composer/content/images/tag-a.gif index 5d1a1b34bbc..3a63d01d189 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-a.gif and b/mozilla/editor/ui/composer/content/images/tag-a.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-abr.gif b/mozilla/editor/ui/composer/content/images/tag-abr.gif index df9fdaaf0e2..e97c5b8008e 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-abr.gif and b/mozilla/editor/ui/composer/content/images/tag-abr.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-acr.gif b/mozilla/editor/ui/composer/content/images/tag-acr.gif index 436ff271365..23cbe54574b 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-acr.gif and b/mozilla/editor/ui/composer/content/images/tag-acr.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-adr.gif b/mozilla/editor/ui/composer/content/images/tag-adr.gif index f87083aa598..1ed1d3d4e5c 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-adr.gif and b/mozilla/editor/ui/composer/content/images/tag-adr.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-anchor.gif b/mozilla/editor/ui/composer/content/images/tag-anchor.gif index 79a53bb5afc..ccb809b50be 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-anchor.gif and b/mozilla/editor/ui/composer/content/images/tag-anchor.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-app.gif b/mozilla/editor/ui/composer/content/images/tag-app.gif index 525b6e8390b..70bcf5624aa 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-app.gif and b/mozilla/editor/ui/composer/content/images/tag-app.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-ara.gif b/mozilla/editor/ui/composer/content/images/tag-ara.gif index 48c78f46cfc..e201b3052c6 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-ara.gif and b/mozilla/editor/ui/composer/content/images/tag-ara.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-b.gif b/mozilla/editor/ui/composer/content/images/tag-b.gif index 0828c453a98..06835c87f47 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-b.gif and b/mozilla/editor/ui/composer/content/images/tag-b.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-bas.gif b/mozilla/editor/ui/composer/content/images/tag-bas.gif index 80bab5e3aec..1485303d01f 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-bas.gif and b/mozilla/editor/ui/composer/content/images/tag-bas.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-bdo.gif b/mozilla/editor/ui/composer/content/images/tag-bdo.gif index b17bb849d9f..e49a8918914 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-bdo.gif and b/mozilla/editor/ui/composer/content/images/tag-bdo.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-big.gif b/mozilla/editor/ui/composer/content/images/tag-big.gif index 9d3afdcc330..22c927e017d 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-big.gif and b/mozilla/editor/ui/composer/content/images/tag-big.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-blq.gif b/mozilla/editor/ui/composer/content/images/tag-blq.gif index 21bd7cb1f16..65f42c3fc9e 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-blq.gif and b/mozilla/editor/ui/composer/content/images/tag-blq.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-body.gif b/mozilla/editor/ui/composer/content/images/tag-body.gif index b26547d3ba4..71576058ac1 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-body.gif and b/mozilla/editor/ui/composer/content/images/tag-body.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-br.gif b/mozilla/editor/ui/composer/content/images/tag-br.gif index 031f2d3c315..b47ecb52bbd 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-br.gif and b/mozilla/editor/ui/composer/content/images/tag-br.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-bsf.gif b/mozilla/editor/ui/composer/content/images/tag-bsf.gif index c026761761d..c94090f3262 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-bsf.gif and b/mozilla/editor/ui/composer/content/images/tag-bsf.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-btn.gif b/mozilla/editor/ui/composer/content/images/tag-btn.gif index 8ca4d65cdb3..6aaee64dd20 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-btn.gif and b/mozilla/editor/ui/composer/content/images/tag-btn.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-cit.gif b/mozilla/editor/ui/composer/content/images/tag-cit.gif index 93e9e5c7d8b..7c343063fd7 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-cit.gif and b/mozilla/editor/ui/composer/content/images/tag-cit.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-clg.gif b/mozilla/editor/ui/composer/content/images/tag-clg.gif index 24bcc7f268a..011d0ab94ca 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-clg.gif and b/mozilla/editor/ui/composer/content/images/tag-clg.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-cod.gif b/mozilla/editor/ui/composer/content/images/tag-cod.gif index 19c316c09c4..f6f02d8cebf 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-cod.gif and b/mozilla/editor/ui/composer/content/images/tag-cod.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-col.gif b/mozilla/editor/ui/composer/content/images/tag-col.gif index b413c8d6710..21e385d11aa 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-col.gif and b/mozilla/editor/ui/composer/content/images/tag-col.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-cpt.gif b/mozilla/editor/ui/composer/content/images/tag-cpt.gif index f2f80aeb0ad..5e47c6ca699 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-cpt.gif and b/mozilla/editor/ui/composer/content/images/tag-cpt.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-ctr.gif b/mozilla/editor/ui/composer/content/images/tag-ctr.gif index 21baacca23d..b5d8bd6c3ff 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-ctr.gif and b/mozilla/editor/ui/composer/content/images/tag-ctr.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-dd.gif b/mozilla/editor/ui/composer/content/images/tag-dd.gif index c4b05855022..8c74436a697 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-dd.gif and b/mozilla/editor/ui/composer/content/images/tag-dd.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-del.gif b/mozilla/editor/ui/composer/content/images/tag-del.gif index 6e3dfc63825..badc579f3f4 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-del.gif and b/mozilla/editor/ui/composer/content/images/tag-del.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-dfn.gif b/mozilla/editor/ui/composer/content/images/tag-dfn.gif index a29ec32c9c5..6ebdb45121f 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-dfn.gif and b/mozilla/editor/ui/composer/content/images/tag-dfn.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-dir.gif b/mozilla/editor/ui/composer/content/images/tag-dir.gif index 0ebaff1d0a9..a5834b79472 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-dir.gif and b/mozilla/editor/ui/composer/content/images/tag-dir.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-div.gif b/mozilla/editor/ui/composer/content/images/tag-div.gif index bfe56a82b30..759025712dc 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-div.gif and b/mozilla/editor/ui/composer/content/images/tag-div.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-dl.gif b/mozilla/editor/ui/composer/content/images/tag-dl.gif index e7c885798a1..76c419b2f9c 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-dl.gif and b/mozilla/editor/ui/composer/content/images/tag-dl.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-dt.gif b/mozilla/editor/ui/composer/content/images/tag-dt.gif index 0af149e9c4e..c50097dce3a 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-dt.gif and b/mozilla/editor/ui/composer/content/images/tag-dt.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-em.gif b/mozilla/editor/ui/composer/content/images/tag-em.gif index d5705ee0e60..5159afc6495 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-em.gif and b/mozilla/editor/ui/composer/content/images/tag-em.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-fld.gif b/mozilla/editor/ui/composer/content/images/tag-fld.gif index ad0050b0a06..717e8b7ef47 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-fld.gif and b/mozilla/editor/ui/composer/content/images/tag-fld.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-fnt.gif b/mozilla/editor/ui/composer/content/images/tag-fnt.gif index 6ed95de2d74..bbd7050c75f 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-fnt.gif and b/mozilla/editor/ui/composer/content/images/tag-fnt.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-for.gif b/mozilla/editor/ui/composer/content/images/tag-for.gif index 96c8a6628aa..ca3d153a662 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-for.gif and b/mozilla/editor/ui/composer/content/images/tag-for.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-frm.gif b/mozilla/editor/ui/composer/content/images/tag-frm.gif index 3cfdaea36bf..6995bd522ee 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-frm.gif and b/mozilla/editor/ui/composer/content/images/tag-frm.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-fst.gif b/mozilla/editor/ui/composer/content/images/tag-fst.gif index 37515f7c775..3bd3e4e5ca2 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-fst.gif and b/mozilla/editor/ui/composer/content/images/tag-fst.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-h1.gif b/mozilla/editor/ui/composer/content/images/tag-h1.gif index 808d2181262..84d262f961c 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-h1.gif and b/mozilla/editor/ui/composer/content/images/tag-h1.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-h2.gif b/mozilla/editor/ui/composer/content/images/tag-h2.gif index cc059644030..db5fe500594 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-h2.gif and b/mozilla/editor/ui/composer/content/images/tag-h2.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-h3.gif b/mozilla/editor/ui/composer/content/images/tag-h3.gif index 9c6b27e346d..cc68bbea5e0 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-h3.gif and b/mozilla/editor/ui/composer/content/images/tag-h3.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-h4.gif b/mozilla/editor/ui/composer/content/images/tag-h4.gif index fa737c14214..20f2194085e 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-h4.gif and b/mozilla/editor/ui/composer/content/images/tag-h4.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-h5.gif b/mozilla/editor/ui/composer/content/images/tag-h5.gif index 3e8b16e60a2..4c5785654fe 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-h5.gif and b/mozilla/editor/ui/composer/content/images/tag-h5.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-h6.gif b/mozilla/editor/ui/composer/content/images/tag-h6.gif index a5a6a25bad4..53f604d1cde 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-h6.gif and b/mozilla/editor/ui/composer/content/images/tag-h6.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-hed.gif b/mozilla/editor/ui/composer/content/images/tag-hed.gif index d89faef8092..bffa1df6413 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-hed.gif and b/mozilla/editor/ui/composer/content/images/tag-hed.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-hr.gif b/mozilla/editor/ui/composer/content/images/tag-hr.gif index 75227ed5c17..14423269860 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-hr.gif and b/mozilla/editor/ui/composer/content/images/tag-hr.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-html.gif b/mozilla/editor/ui/composer/content/images/tag-html.gif index 1b1ecb1f9a2..aff7703cc19 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-html.gif and b/mozilla/editor/ui/composer/content/images/tag-html.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-i.gif b/mozilla/editor/ui/composer/content/images/tag-i.gif index 6222ce52a90..b9b982fd6c6 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-i.gif and b/mozilla/editor/ui/composer/content/images/tag-i.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-ifr.gif b/mozilla/editor/ui/composer/content/images/tag-ifr.gif index c94257557f1..3f7c5adbab4 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-ifr.gif and b/mozilla/editor/ui/composer/content/images/tag-ifr.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-img.gif b/mozilla/editor/ui/composer/content/images/tag-img.gif index 5b08b5dfd59..f8840251dcd 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-img.gif and b/mozilla/editor/ui/composer/content/images/tag-img.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-inp.gif b/mozilla/editor/ui/composer/content/images/tag-inp.gif index b0997a6d405..a2cabfd2896 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-inp.gif and b/mozilla/editor/ui/composer/content/images/tag-inp.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-ins.gif b/mozilla/editor/ui/composer/content/images/tag-ins.gif index f8d84d61ce7..2420253f558 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-ins.gif and b/mozilla/editor/ui/composer/content/images/tag-ins.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-isx.gif b/mozilla/editor/ui/composer/content/images/tag-isx.gif index 6f305c2b00b..97a7e5a07a8 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-isx.gif and b/mozilla/editor/ui/composer/content/images/tag-isx.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-kbd.gif b/mozilla/editor/ui/composer/content/images/tag-kbd.gif index a0275c72c37..3752398cbb7 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-kbd.gif and b/mozilla/editor/ui/composer/content/images/tag-kbd.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-lbl.gif b/mozilla/editor/ui/composer/content/images/tag-lbl.gif index c8b9f6a7418..c3b32b7239d 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-lbl.gif and b/mozilla/editor/ui/composer/content/images/tag-lbl.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-lgn.gif b/mozilla/editor/ui/composer/content/images/tag-lgn.gif index c7c34fd3ca7..3cb24dfab40 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-lgn.gif and b/mozilla/editor/ui/composer/content/images/tag-lgn.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-li.gif b/mozilla/editor/ui/composer/content/images/tag-li.gif index 44946422b83..9c84f46b90b 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-li.gif and b/mozilla/editor/ui/composer/content/images/tag-li.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-lnk.gif b/mozilla/editor/ui/composer/content/images/tag-lnk.gif index b2cb75ead1a..d966d724a31 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-lnk.gif and b/mozilla/editor/ui/composer/content/images/tag-lnk.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-lst.gif b/mozilla/editor/ui/composer/content/images/tag-lst.gif index bebd970065f..722011fc5ca 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-lst.gif and b/mozilla/editor/ui/composer/content/images/tag-lst.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-map.gif b/mozilla/editor/ui/composer/content/images/tag-map.gif index 614203a5075..8976056114b 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-map.gif and b/mozilla/editor/ui/composer/content/images/tag-map.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-men.gif b/mozilla/editor/ui/composer/content/images/tag-men.gif index 5fdc96d4f44..fab0cd91f2b 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-men.gif and b/mozilla/editor/ui/composer/content/images/tag-men.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-met.gif b/mozilla/editor/ui/composer/content/images/tag-met.gif index 597622b2e93..c24cd8647ac 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-met.gif and b/mozilla/editor/ui/composer/content/images/tag-met.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-nfr.gif b/mozilla/editor/ui/composer/content/images/tag-nfr.gif index 3be3ef60bc4..9a898d68da2 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-nfr.gif and b/mozilla/editor/ui/composer/content/images/tag-nfr.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-nsc.gif b/mozilla/editor/ui/composer/content/images/tag-nsc.gif index 6263e7ff255..275bf7d5dfc 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-nsc.gif and b/mozilla/editor/ui/composer/content/images/tag-nsc.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-obj.gif b/mozilla/editor/ui/composer/content/images/tag-obj.gif index 46705ba0b29..883707d767e 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-obj.gif and b/mozilla/editor/ui/composer/content/images/tag-obj.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-ol.gif b/mozilla/editor/ui/composer/content/images/tag-ol.gif index 6aba09f6334..875d998e676 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-ol.gif and b/mozilla/editor/ui/composer/content/images/tag-ol.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-opg.gif b/mozilla/editor/ui/composer/content/images/tag-opg.gif index 7e5a8b9e6ef..e09806da70d 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-opg.gif and b/mozilla/editor/ui/composer/content/images/tag-opg.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-opt.gif b/mozilla/editor/ui/composer/content/images/tag-opt.gif index 95fe8ddc08a..2ed12400d99 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-opt.gif and b/mozilla/editor/ui/composer/content/images/tag-opt.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-p.gif b/mozilla/editor/ui/composer/content/images/tag-p.gif index f835d0dd686..421a6189a7c 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-p.gif and b/mozilla/editor/ui/composer/content/images/tag-p.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-pre.gif b/mozilla/editor/ui/composer/content/images/tag-pre.gif index ce41d477f3c..3b592058fb9 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-pre.gif and b/mozilla/editor/ui/composer/content/images/tag-pre.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-prm.gif b/mozilla/editor/ui/composer/content/images/tag-prm.gif index 86d1f9d411c..b422da6d59c 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-prm.gif and b/mozilla/editor/ui/composer/content/images/tag-prm.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-q.gif b/mozilla/editor/ui/composer/content/images/tag-q.gif index c0985a38564..3061c283ebd 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-q.gif and b/mozilla/editor/ui/composer/content/images/tag-q.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-s.gif b/mozilla/editor/ui/composer/content/images/tag-s.gif index 399e802dee5..50b687700aa 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-s.gif and b/mozilla/editor/ui/composer/content/images/tag-s.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-scr.gif b/mozilla/editor/ui/composer/content/images/tag-scr.gif index 453c7e6f69a..0def640d50b 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-scr.gif and b/mozilla/editor/ui/composer/content/images/tag-scr.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-slc.gif b/mozilla/editor/ui/composer/content/images/tag-slc.gif index f79ce8ea8a7..8aae0813833 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-slc.gif and b/mozilla/editor/ui/composer/content/images/tag-slc.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-sml.gif b/mozilla/editor/ui/composer/content/images/tag-sml.gif index 044a33157de..b9bdb2a8292 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-sml.gif and b/mozilla/editor/ui/composer/content/images/tag-sml.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-smp.gif b/mozilla/editor/ui/composer/content/images/tag-smp.gif index 12bfa983ae3..81695adab0c 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-smp.gif and b/mozilla/editor/ui/composer/content/images/tag-smp.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-spn.gif b/mozilla/editor/ui/composer/content/images/tag-spn.gif index 2eb16f581e8..234186c78ae 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-spn.gif and b/mozilla/editor/ui/composer/content/images/tag-spn.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-stk.gif b/mozilla/editor/ui/composer/content/images/tag-stk.gif index 621ef64a148..6480a6ca359 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-stk.gif and b/mozilla/editor/ui/composer/content/images/tag-stk.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-stl.gif b/mozilla/editor/ui/composer/content/images/tag-stl.gif index f78da88f72f..5ae261d673a 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-stl.gif and b/mozilla/editor/ui/composer/content/images/tag-stl.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-stn.gif b/mozilla/editor/ui/composer/content/images/tag-stn.gif index 8bfa503102c..c1b460e46bb 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-stn.gif and b/mozilla/editor/ui/composer/content/images/tag-stn.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-sub.gif b/mozilla/editor/ui/composer/content/images/tag-sub.gif index 7e55b655cde..85c8950bc55 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-sub.gif and b/mozilla/editor/ui/composer/content/images/tag-sub.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-sup.gif b/mozilla/editor/ui/composer/content/images/tag-sup.gif index c1461b43337..077fe75e606 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-sup.gif and b/mozilla/editor/ui/composer/content/images/tag-sup.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-tbd.gif b/mozilla/editor/ui/composer/content/images/tag-tbd.gif index ef77e2df724..ae86a5b8cfe 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-tbd.gif and b/mozilla/editor/ui/composer/content/images/tag-tbd.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-tbl.gif b/mozilla/editor/ui/composer/content/images/tag-tbl.gif index a4f102f9cf6..2567190bf07 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-tbl.gif and b/mozilla/editor/ui/composer/content/images/tag-tbl.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-td.gif b/mozilla/editor/ui/composer/content/images/tag-td.gif index 795277f3b73..3375eb3f42d 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-td.gif and b/mozilla/editor/ui/composer/content/images/tag-td.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-tft.gif b/mozilla/editor/ui/composer/content/images/tag-tft.gif index b93a775d0b3..68cd601293e 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-tft.gif and b/mozilla/editor/ui/composer/content/images/tag-tft.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-th.gif b/mozilla/editor/ui/composer/content/images/tag-th.gif index 3cb303e2cf3..08b3ae8266f 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-th.gif and b/mozilla/editor/ui/composer/content/images/tag-th.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-thd.gif b/mozilla/editor/ui/composer/content/images/tag-thd.gif index 00af5952cd3..fcfd13ee5ab 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-thd.gif and b/mozilla/editor/ui/composer/content/images/tag-thd.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-tr.gif b/mozilla/editor/ui/composer/content/images/tag-tr.gif index b79af999c63..83b52e50a13 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-tr.gif and b/mozilla/editor/ui/composer/content/images/tag-tr.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-tt.gif b/mozilla/editor/ui/composer/content/images/tag-tt.gif index 73febb37ab7..0e06c9846a9 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-tt.gif and b/mozilla/editor/ui/composer/content/images/tag-tt.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-ttl.gif b/mozilla/editor/ui/composer/content/images/tag-ttl.gif index 8ccddb19db6..9638f781c83 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-ttl.gif and b/mozilla/editor/ui/composer/content/images/tag-ttl.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-txt.gif b/mozilla/editor/ui/composer/content/images/tag-txt.gif index f46af3cf621..03ca5f2a681 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-txt.gif and b/mozilla/editor/ui/composer/content/images/tag-txt.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-u.gif b/mozilla/editor/ui/composer/content/images/tag-u.gif index ea39884825c..ab6c02bea92 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-u.gif and b/mozilla/editor/ui/composer/content/images/tag-u.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-ul.gif b/mozilla/editor/ui/composer/content/images/tag-ul.gif index 3046c53b34b..71ce8c1ede0 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-ul.gif and b/mozilla/editor/ui/composer/content/images/tag-ul.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-userdefined.gif b/mozilla/editor/ui/composer/content/images/tag-userdefined.gif index 8fba4d3eb9c..5ba1470c8d7 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-userdefined.gif and b/mozilla/editor/ui/composer/content/images/tag-userdefined.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-var.gif b/mozilla/editor/ui/composer/content/images/tag-var.gif index 57c13262fcb..5a2ee4801cc 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-var.gif and b/mozilla/editor/ui/composer/content/images/tag-var.gif differ diff --git a/mozilla/editor/ui/composer/content/images/tag-xmp.gif b/mozilla/editor/ui/composer/content/images/tag-xmp.gif index 1a0c6505154..96f09f99092 100644 Binary files a/mozilla/editor/ui/composer/content/images/tag-xmp.gif and b/mozilla/editor/ui/composer/content/images/tag-xmp.gif differ