зеркало из https://github.com/mozilla/pjs.git
For some strange reason, the string for editor type was undefined as is. I changed it to a literal.
This commit is contained in:
Родитель
6b66e31ba1
Коммит
bd5cf6dee2
|
@ -1,7 +1,6 @@
|
|||
/* Main Composer window UI control */
|
||||
|
||||
/*the editor type, i.e. "text" or "html" */
|
||||
var editorType = "html";
|
||||
/* the name of the editor. Must be unique to this window clique */
|
||||
var editorName = "EditorAppCoreHTML";
|
||||
var appCore = null;
|
||||
|
@ -19,8 +18,8 @@
|
|||
appCore = new EditorAppCore();
|
||||
if (appCore) {
|
||||
dump("EditorAppCore has been created.\n");
|
||||
appCore.Init(editorName);
|
||||
appCore.setEditorType(editorType);
|
||||
appCore.Init(editorName);
|
||||
appCore.setEditorType("html");
|
||||
appCore.setContentWindow( window.frames[0] );
|
||||
appCore.setWebShellWindow(window);
|
||||
appCore.setToolbarWindow(window);
|
||||
|
|
Загрузка…
Ссылка в новой задаче