diff --git a/mozilla/editor/ui/composer/content/EditorCommands.js b/mozilla/editor/ui/composer/content/EditorCommands.js
index d09159b1b36..7ae2911cbd0 100644
--- a/mozilla/editor/ui/composer/content/EditorCommands.js
+++ b/mozilla/editor/ui/composer/content/EditorCommands.js
@@ -971,6 +971,12 @@ function EditorInsertOrEditHLine()
contentWindow.focus();
}
+function EditorInsertChars()
+{
+ window.openDialog("chrome://editor/content/EdInsertChars.xul", "_blank", "chrome,close,titlebar", "");
+ contentWindow.focus();
+}
+
function EditorInsertOrEditNamedAnchor()
{
window.openDialog("chrome://editor/content/EdNamedAnchorProps.xul", "_blank", "chrome,close,titlebar,modal", "");
diff --git a/mozilla/editor/ui/composer/content/editor.xul b/mozilla/editor/ui/composer/content/editor.xul
index 7b10230c562..7ef4bb11847 100644
--- a/mozilla/editor/ui/composer/content/editor.xul
+++ b/mozilla/editor/ui/composer/content/editor.xul
@@ -42,7 +42,7 @@
titlemodifier="&editorWindow.titlemodifier;"
titlemenuseparator="&editorWindow.titlemodifiermenuseparator;"
windowtype="composer:html"
- align="vertical"
+ orient="vertical"
width="640" height="480"
screenX="10" screenY="10"
persist="screenX screenY width height"
@@ -147,7 +147,7 @@
-
+
@@ -188,12 +188,12 @@
-
+
-
+
&displayMode.label;
diff --git a/mozilla/editor/ui/composer/content/editorOverlay.xul b/mozilla/editor/ui/composer/content/editorOverlay.xul
index 584f8e997d0..d4204d4496e 100644
--- a/mozilla/editor/ui/composer/content/editorOverlay.xul
+++ b/mozilla/editor/ui/composer/content/editorOverlay.xul
@@ -139,6 +139,7 @@
+
@@ -317,6 +318,7 @@
+
@@ -508,43 +510,17 @@
-
-
-
+ position="14"/>
-
+ position="15"/>
+
@@ -811,7 +787,7 @@ function EditorApplyStyleSheet(styleSheetURL)
-
+
diff --git a/mozilla/editor/ui/composer/content/sidebar-editor.xul b/mozilla/editor/ui/composer/content/sidebar-editor.xul
index 76b3f93fdc7..effd3a67dc8 100644
--- a/mozilla/editor/ui/composer/content/sidebar-editor.xul
+++ b/mozilla/editor/ui/composer/content/sidebar-editor.xul
@@ -33,10 +33,10 @@
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="Init('chrome://editor/content/sidebar-editor.rdf',
- 'NC:EditorSidebarRoot');" align="vertical">
+ 'NC:EditorSidebarRoot');" orient="vertical">
-
+
-
+
@@ -78,7 +78,7 @@
-
+
-
+
@@ -111,7 +111,7 @@
-
+
@@ -123,7 +123,7 @@
-
+
@@ -141,7 +141,7 @@
-
+
@@ -153,7 +153,7 @@
-
+
diff --git a/mozilla/editor/ui/dialogs/content/EdColorProps.xul b/mozilla/editor/ui/dialogs/content/EdColorProps.xul
index 97233679aa0..cdaf8b3df27 100644
--- a/mozilla/editor/ui/dialogs/content/EdColorProps.xul
+++ b/mozilla/editor/ui/dialogs/content/EdColorProps.xul
@@ -34,7 +34,7 @@
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="Startup()"
- align="vertical">
+ orient="vertical">
@@ -42,9 +42,9 @@
-
+
-
+
@@ -55,7 +55,7 @@
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
@@ -134,7 +134,7 @@
-
+
diff --git a/mozilla/editor/ui/dialogs/content/EdDialogCommon.js b/mozilla/editor/ui/dialogs/content/EdDialogCommon.js
index 5c5222dd327..6f50bf3e7b5 100644
--- a/mozilla/editor/ui/dialogs/content/EdDialogCommon.js
+++ b/mozilla/editor/ui/dialogs/content/EdDialogCommon.js
@@ -72,7 +72,7 @@ function ClearList(list)
list.remove(i);
}
}
-
+//TODO: WE NEED EQUIVALENT OF THIS FOR "TREELIST"
function ReplaceStringInList(list, index, string)
{
if (index < list.options.length)
@@ -328,7 +328,7 @@ function AppendStringToMenulist(menulist, string)
menulist.appendChild(menupopup);
else
{
-dump("Failed to create menupoup\n");
+ dump("Failed to create menupoup\n");
return null;
}
}
@@ -337,7 +337,6 @@ dump("Failed to create menupoup\n");
{
menuItem.setAttribute("value", string);
menupopup.appendChild(menuItem);
-dump("AppendStringToMenulist, menuItem="+menuItem+", value="+string+"\n");
return menuItem;
}
}
@@ -350,7 +349,6 @@ function ClearMenulist(menulist)
// but look for > 1 children anyway.
// Note -- this doesn't remove menuitems from the menupopop -- SHOULD WE?
if (menulist) {
-dump(menulist+"=menulist in ClearMenulist\n");
menulist.selectedItem = null;
while (menulist.firstChild)
menulist.removeChild(menulist.firstChild);
@@ -383,7 +381,7 @@ function AppendStringToTreelist(tree, string)
tree.appendChild(treechildren);
else
{
-dump("Failed to create \n");
+ dump("Failed to create \n");
return null;
}
}
@@ -409,6 +407,7 @@ function ClearTreelist(tree)
{
if (tree)
{
+ tree.clearItemSelection();
while (tree.firstChild)
tree.removeChild(tree.firstChild);
@@ -419,16 +418,12 @@ function ClearTreelist(tree)
function GetSelectedTreelistValue(tree)
{
- var treeCell = tree.selectedCell;
- if (treeCell)
- return treeCell.getAttribute("value");
-
- return "";
+ if (tree)
+ return tree.selectedCells[0].getAttribute("value");
+
+ return "";
}
-function SetSelectedTreelistItem()
-{
-}
// USE onkeyup!
// forceInteger by petejc (pete@postpagan.com)
@@ -506,30 +501,25 @@ function getContainer ()
selImage = editorShell.GetSelectedElement(tagName);
if (selImage) // existing image
{
- dump("Is an image element\n");
+ //dump("Is an image element\n");
oneup = selImage.parentNode;
- dump("Parent = " + oneup.nodeName + "\n");
+ //dump("Parent = " + oneup.nodeName + "\n");
//twoup = oneup.parentNode;
//dump("Grand Parent is " + twoup.nodeName + "\n");
return oneup;
}
else if (!selImage) // new image insertion
{
- dump("Not an image element\n");
- dump("Trying for caret selection\n");
+ dump("Not an image element -- Trying for caret selection\n");
var selection = window.editorShell.editorSelection;
if (selection)
{
- dump("Got selection\n");
- //dump("Selection is " + selection.nodeName + "\n");
var focusN = selection.focusNode;
- dump("FOCUS is now on " + focusN.nodeName + "\n");
if (focusN.nodeName == "TD")
return focusN
else
{
oneup = focusN.parentNode;
- dump("PARENT is " + oneup.nodeName + "\n");
return oneup;
}
}
@@ -628,7 +618,6 @@ function InitMoreFewer()
// attribute on the dialog.MoreFewerButton button
// onMoreFewer will toggle it and redraw the dialog
SeeMore = (dialog.MoreFewerButton.getAttribute("more") != "1");
-dump(SeeMore+"=SeeMore - InitMoreFewer\n");
onMoreFewer();
}
@@ -637,8 +626,7 @@ function onMoreFewer()
if (SeeMore)
{
dialog.MoreSection.setAttribute("style","display: none");
- //TODO: Bugs in box layout prevent us from using this:
- //dialog.MoreSection.setAttribute("style","visibility: collapse");
+ //dialog.MoreSection.setAttribute("collapsed","true");
window.sizeToContent();
dialog.MoreFewerButton.setAttribute("more","0");
dialog.MoreFewerButton.setAttribute("value",GetString("MoreProperties"));
@@ -647,7 +635,7 @@ function onMoreFewer()
else
{
dialog.MoreSection.setAttribute("style","display: inherit");
- //dialog.MoreSection.setAttribute("style","visibility: inherit");
+ //dialog.MoreSection.removeAttribute("collapsed");
window.sizeToContent();
dialog.MoreFewerButton.setAttribute("more","1");
dialog.MoreFewerButton.setAttribute("value",GetString("FewerProperties"));
diff --git a/mozilla/editor/ui/dialogs/content/EdDialogTemplate.xul b/mozilla/editor/ui/dialogs/content/EdDialogTemplate.xul
index 164e50fdf0f..ab806ad8ae3 100644
--- a/mozilla/editor/ui/dialogs/content/EdDialogTemplate.xul
+++ b/mozilla/editor/ui/dialogs/content/EdDialogTemplate.xul
@@ -34,7 +34,7 @@
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.w3.org/TR/REC-html40"
onload = "Startup()"
- align="vertical">
+ orient="vertical">