Show More
@@ -7,6 +7,7 require([ | |||||
7 | 'base/js/page', |
|
7 | 'base/js/page', | |
8 | 'base/js/events', |
|
8 | 'base/js/events', | |
9 | 'contents', |
|
9 | 'contents', | |
|
10 | 'services/config', | |||
10 | 'edit/js/editor', |
|
11 | 'edit/js/editor', | |
11 | 'edit/js/menubar', |
|
12 | 'edit/js/menubar', | |
12 | 'edit/js/notificationarea', |
|
13 | 'edit/js/notificationarea', | |
@@ -17,6 +18,7 require([ | |||||
17 | page, |
|
18 | page, | |
18 | events, |
|
19 | events, | |
19 | contents, |
|
20 | contents, | |
|
21 | configmod, | |||
20 | editor, |
|
22 | editor, | |
21 | menubar, |
|
23 | menubar, | |
22 | notificationarea |
|
24 | notificationarea | |
@@ -26,6 +28,8 require([ | |||||
26 | var base_url = utils.get_body_data('baseUrl'); |
|
28 | var base_url = utils.get_body_data('baseUrl'); | |
27 | var file_path = utils.get_body_data('filePath'); |
|
29 | var file_path = utils.get_body_data('filePath'); | |
28 | contents = new contents.Contents({base_url: base_url}); |
|
30 | contents = new contents.Contents({base_url: base_url}); | |
|
31 | var config = new configmod.ConfigSection('edit', {base_url: base_url}) | |||
|
32 | config.load(); | |||
29 |
|
33 | |||
30 | var editor = new editor.Editor('#texteditor-container', { |
|
34 | var editor = new editor.Editor('#texteditor-container', { | |
31 | base_url: base_url, |
|
35 | base_url: base_url, | |
@@ -48,6 +52,13 require([ | |||||
48 | }); |
|
52 | }); | |
49 | notification_area.init_notification_widgets(); |
|
53 | notification_area.init_notification_widgets(); | |
50 |
|
54 | |||
|
55 | config.loaded.then(function() { | |||
|
56 | if (config.data.load_extensions) { | |||
|
57 | var nbextension_paths = Object.getOwnPropertyNames( | |||
|
58 | config.data.load_extensions); | |||
|
59 | IPython.load_extensions.apply(this, nbextension_paths); | |||
|
60 | } | |||
|
61 | }); | |||
51 | editor.load(); |
|
62 | editor.load(); | |
52 | page.show(); |
|
63 | page.show(); | |
53 | }); |
|
64 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now