When removing SpellCheck menu item, must also remove following separator. Changed style to use background image for NamedAnchor, now that we know how to select it!

This commit is contained in:
cmanske%netscape.com 2000-05-16 22:53:01 +00:00
parent 68897b7076
commit dc01b18767
4 changed files with 15 additions and 11 deletions

View File

@ -37,13 +37,8 @@
background-position: top left;
}
a[name]:before {
content: "";
/*url(chrome://editor/content/images/tag-a.gif);*/
}
a {
min-height: 35px; margin-left: 2px; margin-top: 2px;
min-height: 16px; margin-left: 2px; margin-top: 2px;
padding-left: 20px;
background-image: url(chrome://editor/content/images/tag-a.gif);
background-repeat: no-repeat;

View File

@ -27,9 +27,12 @@
* place in EditorOverride.css, instead of here.
*/
/* Use "before" rule so single click can select icon */
a[name]:before {
content: url(chrome://editor/content/images/tag-anchor.gif);
a[name] {
min-height: 17px; margin-left: 2px; margin-top: 2px;
padding-left: 20px;
background-image: url(chrome://editor/content/images/tag-anchor.gif);
background-repeat: no-repeat;
background-position: top left;
}
/* Force border display for empty cells

View File

@ -1384,6 +1384,12 @@ function HideInapplicableUIElements()
var spellingMenuItem = document.getElementById("menu_checkspelling");
if (spellingMenuItem)
spellingMenuItem.setAttribute("hidden", "true");
// Spelling item is in its own menu block, so remove it
// (we can't use "hidden" since class="hide-in-IM" CSS rule overrides!)
var spellingSepItem = document.getElementById("sep_checkspelling");
if (spellingSepItem)
spellingSepItem.parentNode.removeChild(spellingSepItem);
}
}

View File

@ -302,7 +302,7 @@
<menuitem id="menu_findnext" accesskey="&editfindnext.accesskey;" key="findnextkb" observes="cmd_findNext"/>
<menuseparator class="hide-in-IM" />
<menuitem id="menu_checkspelling" accesskey="&editcheckspelling.accesskey;" key="checkspellingkb" observes="cmd_spelling" value="&checkSpellingCmd.label;"/>
<menuseparator class="hide-in-IM"/>
<menuseparator id="sep_checkspelling" class="hide-in-IM"/>
<menuitem class="hide-in-IM" id="menu_editHTML" accesskey="&HTMLsource.accesskey;" observes="cmd_editHTML"/>
<menuseparator/>
<menuitem id="menu_preferences" observes="cmd_preferences"/>
@ -319,7 +319,7 @@
<menuitem value="&taskbarCmd.label;" accesskey="&taskbarCmd.accesskey;" observes="cmd_viewtaskbar" />
</menupopup>
</menu>
<menuitem id="viewSourceMenuitem" value="&viewPageSource.label;" accesskey="&viewpagesource.accesskey;" oncommand="EditorViewSource();"/>
<menuitem id="viewSourceMenuitem" accesskey="&HTMLsource.accesskey;" observes="cmd_editHTML"/>
<menuitem id="viewParagraphMarks" value="&viewParagraphMarks.label;" accesskey="&viewparagraphmarks.accesskey;" oncommand="EditorToggleParagraphMarks();" persist="checked"/>
<menu id="charsetMenu" value="&dcharMenu.label;" accesskey="&viewcharsetmenu.accesskey;">