##// END OF EJS Templates
Fix instantiating config in editor and terminal
Thomas Kluyver -
Show More
@@ -32,7 +32,7 require([
32 contents = new contents.Contents({base_url: base_url});
32 contents = new contents.Contents({base_url: base_url});
33 var config = new configmod.ConfigSection('edit', {base_url: base_url});
33 var config = new configmod.ConfigSection('edit', {base_url: base_url});
34 config.load();
34 config.load();
35 var common_config = new configmod.ConfigSection('common', common_options);
35 var common_config = new configmod.ConfigSection('common', {base_url: base_url});
36 common_config.load();
36 common_config.load();
37
37
38 var editor = new editmod.Editor('#texteditor-container', {
38 var editor = new editmod.Editor('#texteditor-container', {
@@ -19,7 +19,8 require([
19 ){
19 ){
20 page = new page.Page();
20 page = new page.Page();
21
21
22 var common_config = new configmod.ConfigSection('common', common_options);
22 var common_config = new configmod.ConfigSection('common',
23 {base_url: utils.get_body_data('baseUrl')});
23 common_config.load();
24 common_config.load();
24
25
25 // Test size: 25x80
26 // Test size: 25x80
General Comments 0
You need to be logged in to leave comments. Login now