Load base style sheet for Composer. b=168576, r=akkana, sr=kin

This commit is contained in:
cmanske%netscape.com 2002-09-16 17:42:30 +00:00
Родитель 307dbcfbea
Коммит 8755789e27
1 изменённых файлов: 11 добавлений и 0 удалений

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

@ -52,6 +52,7 @@ const gDisplayModePreview = 0;
const gDisplayModeNormal = 1;
const gDisplayModeAllTags = 2;
const gDisplayModeSource = 3;
const gBaseEditorStyleSheet = "chrome://editor/content/EditorOverride.css";
const gNormalStyleSheet = "chrome://editor/content/EditorContent.css";
const gAllTagsStyleSheet = "chrome://editor/content/EditorAllTags.css";
const gParagraphMarksStyleSheet = "chrome://editor/content/EditorParagraphMarks.css";
@ -283,6 +284,11 @@ var MessageComposeDocumentStateListener =
DoAllQueryInterfaceOnEditor();
addEditorClickEventListener();
try {
// Add the base sheet for editor cursor etc.
gEditor.addOverrideStyleSheet(gBaseEditorStyleSheet);
} catch (e) {}
},
NotifyDocumentWillBeDestroyed: function()
@ -351,6 +357,11 @@ var DocumentStateListener =
if (isHTMLEditor())
addEditorClickEventListener();
try {
// Add the base sheet for editor cursor etc.
gEditor.addOverrideStyleSheet(gBaseEditorStyleSheet);
} catch (e) {}
// Start in "Normal" edit mode
SetDisplayMode(gDisplayModeNormal);
},