Adding menu item to start Composer from Browser debug menu as workaround for bug 16789 (can't start editor on command line). Also removed editor init page from code that's not even run?
git-svn-id: svn://10.0.0.236/trunk@51240 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -538,7 +538,8 @@ Contributor(s): ______________________________________. -->
|
||||
|
||||
<menuitem value="&domviewer.label;" oncommand="window.content.location.href='resource:/res/samples/rdf/DOMDataSourceViewer.xul'"/>
|
||||
<menuitem value="&browserbuster.label;" oncommand="window.content.location.href='http://komodo.mozilla.org/buster'"/>
|
||||
|
||||
<!-- TEMPORARY UNTIL -edit WORKS TO STARTUP COMPOSER (bug 16789) -->
|
||||
<menuitem value="Composer with Test Page" oncommand="window.openDialog('chrome://editor/content','_blank','chrome,all,dialog=no','chrome://editor/content/EditorInitPage.html')"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
||||
|
||||
@@ -264,7 +264,7 @@ static nsresult HandleEditorStartup( nsICmdLineService* cmdLineArgs, nsIPref *pr
|
||||
{
|
||||
if (forceLaunchEditor || (cmdResult && (PL_strcmp("1",cmdResult)==0))) {
|
||||
urlstr = "chrome://editor/content/";
|
||||
withArgs = "chrome://editor/content/EditorInitPage.html";
|
||||
withArgs = "about:blank";
|
||||
|
||||
OpenWindow( urlstr, withArgs.GetUnicode() );
|
||||
}
|
||||
@@ -366,7 +366,7 @@ static nsresult HandleMailStartup( nsICmdLineService* cmdLineArgs, nsIPref *pref
|
||||
if (cmdResult && (PL_strcmp("1",cmdResult)==0))
|
||||
{
|
||||
urlstr = "chrome://messengercompose/content/";
|
||||
withArgs = "chrome://editor/content/EditorInitPage.html";
|
||||
withArgs = "about:blank";
|
||||
|
||||
OpenWindow( urlstr, withArgs.GetUnicode() );
|
||||
}
|
||||
|
||||
@@ -538,7 +538,8 @@ Contributor(s): ______________________________________. -->
|
||||
|
||||
<menuitem value="&domviewer.label;" oncommand="window.content.location.href='resource:/res/samples/rdf/DOMDataSourceViewer.xul'"/>
|
||||
<menuitem value="&browserbuster.label;" oncommand="window.content.location.href='http://komodo.mozilla.org/buster'"/>
|
||||
|
||||
<!-- TEMPORARY UNTIL -edit WORKS TO STARTUP COMPOSER (bug 16789) -->
|
||||
<menuitem value="Composer with Test Page" oncommand="window.openDialog('chrome://editor/content','_blank','chrome,all,dialog=no','chrome://editor/content/EditorInitPage.html')"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
||||
|
||||
@@ -173,11 +173,7 @@ function CycleWindow( inType, inChromeURL )
|
||||
function toEditor()
|
||||
{
|
||||
//TODO: Find and existing editor window using CycleWindow()
|
||||
// For now, this opens a new blank window
|
||||
// toNewTextEditorWindow();
|
||||
|
||||
// brade commented out above line since this gives a text editor not an html editor
|
||||
// add the following line to create editor window or call NewEditorWindow() in globalOverlay.js
|
||||
// For now, just start a new blank document
|
||||
window.openDialog( "chrome://editor/content", "_blank", "chrome,all,dialog=no", "about:blank");
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!ENTITY tasksMenu.label "Tasks">
|
||||
<!ENTITY navigatorCmd.label "Navigator">
|
||||
<!ENTITY messengerCmd.label "Messenger">
|
||||
<!ENTITY editorCmd.label "Editor">
|
||||
<!ENTITY editorCmd.label "Composer">
|
||||
<!ENTITY textEditorCmd.label "Plaintext Editor">
|
||||
|
||||
<!ENTITY addressBookCmd.label "Address Book">
|
||||
|
||||
Reference in New Issue
Block a user