Bug 1703164 - convert mail/components/compose/content/dialogs/EdDictionary.xhtml to top level <html>. r=elizabeth

Spell checking dialog | Personal Directory | Edit...

Differential Revision: https://phabricator.services.mozilla.com/D194556

--HG--
extra : rebase_source : 0f2a372eba84913820bee84c1efc9671c42eac71
extra : amend_source : d0bd8fa1f5cf6f8a56f7c0905284289f638df68c
This commit is contained in:
Magnus Melin 2023-11-28 12:25:04 +02:00
Родитель 81a9d6c515
Коммит 1892d73222
3 изменённых файлов: 113 добавлений и 83 удалений

Просмотреть файл

@ -8,6 +8,10 @@
var gSpellChecker;
var gWordToAdd;
window.addEventListener("load", event => {
Startup();
});
function Startup() {
if (!GetCurrentEditor()) {
window.close();

Просмотреть файл

@ -3,92 +3,111 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE window SYSTEM "chrome://messenger/locale/messengercompose/EditorPersonalDictionary.dtd">
<window
id="dictionaryDlg"
title="&windowTitle.label;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
<!DOCTYPE html SYSTEM "chrome://messenger/locale/messengercompose/EditorPersonalDictionary.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
id="dictionaryDlg"
scrolling="false"
persist="screenX screenY"
lightweightthemes="true"
onload="Startup()"
>
<html:link rel="stylesheet" href="chrome://global/skin/global.css" />
<html:link rel="stylesheet" href="chrome://editor/skin/EditorDialog.css" />
<html:link
rel="stylesheet"
href="chrome://messenger/skin/shared/grid-layout.css"
/>
<html:link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
<html:link rel="stylesheet" href="chrome://messenger/skin/variables.css" />
<html:link rel="stylesheet" href="chrome://messenger/skin/colors.css" />
<html:link
rel="stylesheet"
href="chrome://messenger/skin/themeableDialog.css"
/>
<dialog
buttonlabelaccept="&CloseButton.label;"
buttonaccesskeyaccept="&CloseButton.accessKey;"
buttons="accept"
<head>
<title>&windowTitle.label;</title>
<link rel="stylesheet" href="chrome://global/skin/global.css" />
<link rel="stylesheet" href="chrome://editor/skin/EditorDialog.css" />
<link
rel="stylesheet"
href="chrome://messenger/skin/shared/grid-layout.css"
/>
<link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
<link rel="stylesheet" href="chrome://messenger/skin/variables.css" />
<link rel="stylesheet" href="chrome://messenger/skin/colors.css" />
<link rel="stylesheet" href="chrome://messenger/skin/themeableDialog.css" />
<link rel="localization" href="branding/brand.ftl" />
<script
defer="defer"
src="chrome://messenger/content/globalOverlay.js"
></script>
<script
defer="defer"
src="chrome://global/content/editMenuOverlay.js"
></script>
<script
defer="defer"
src="chrome://messenger/content/messengercompose/editorUtilities.js"
></script>
<script
defer="defer"
src="chrome://messenger/content/messengercompose/EdDialogCommon.js"
></script>
<script
defer="defer"
src="chrome://messenger/content/dialogShadowDom.js"
></script>
<script
defer="defer"
src="chrome://messenger/content/messengercompose/EdDictionary.js"
></script>
</head>
<html:body
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<script src="chrome://messenger/content/globalOverlay.js" />
<script src="chrome://global/content/editMenuOverlay.js" />
<!-- Methods common to all editor dialogs -->
<script src="chrome://messenger/content/messengercompose/editorUtilities.js" />
<script src="chrome://messenger/content/messengercompose/EdDialogCommon.js" />
<script src="chrome://messenger/content/messengercompose/EdDictionary.js" />
<script src="chrome://messenger/content/dialogShadowDom.js" />
<hbox flex="1">
<div xmlns="http://www.w3.org/1999/xhtml" class="grid-two-column">
<div class="flex-items-center grid-item-span-row">
<xul:label
id="WordInputLabel"
value="&wordEditField.label;"
control="WordInput"
accesskey="&wordEditField.accessKey;"
/>
<dialog
buttonlabelaccept="&CloseButton.label;"
buttonaccesskeyaccept="&CloseButton.accessKey;"
buttons="accept"
>
<hbox flex="1">
<div xmlns="http://www.w3.org/1999/xhtml" class="grid-two-column">
<div class="flex-items-center grid-item-span-row">
<xul:label
id="WordInputLabel"
value="&wordEditField.label;"
control="WordInput"
accesskey="&wordEditField.accessKey;"
/>
</div>
<div>
<input
id="WordInput"
type="text"
style="width: 14.5em"
aria-labelledby="WordInputLabel"
/>
</div>
<div>
<xul:button
id="AddWord"
oncommand="AddWord()"
label="&AddButton.label;"
accesskey="&AddButton.accessKey;"
/>
</div>
<div class="flex-items-center grid-item-span-row">
<xul:label
value="&DictionaryList.label;"
control="DictionaryList"
accesskey="&DictionaryList.accessKey;"
/>
</div>
<div>
<xul:richlistbox
id="DictionaryList"
style="width: 15em; height: 10em"
/>
</div>
<div>
<xul:button
id="RemoveWord"
oncommand="RemoveWord()"
label="&RemoveButton.label;"
accesskey="&RemoveButton.accessKey;"
/>
</div>
</div>
<div>
<input
id="WordInput"
type="text"
style="width: 14.5em"
aria-labelledby="WordInputLabel"
/>
</div>
<div>
<xul:button
id="AddWord"
oncommand="AddWord()"
label="&AddButton.label;"
accesskey="&AddButton.accessKey;"
/>
</div>
<div class="flex-items-center grid-item-span-row">
<xul:label
value="&DictionaryList.label;"
control="DictionaryList"
accesskey="&DictionaryList.accessKey;"
/>
</div>
<div>
<xul:richlistbox
id="DictionaryList"
style="width: 15em; height: 10em"
/>
</div>
<div>
<xul:button
id="RemoveWord"
oncommand="RemoveWord()"
label="&RemoveButton.label;"
accesskey="&RemoveButton.accessKey;"
/>
</div>
</div>
</hbox>
</dialog>
</window>
</hbox>
</dialog>
</html:body>
</html>

Просмотреть файл

@ -9,6 +9,13 @@
color: var(--lwt-text-color);
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
margin: 0;
}
#imageDlg {
overflow: auto;
max-width: inherit;