1 parent f3ee81a commit ff83d4eCopy full SHA for ff83d4e
1 file changed
utils/misc/nodejs-terminal/html/snippet-nodejs/v1.0/snippet-nodejs-v1.0.html
@@ -96,7 +96,9 @@
96
97
var viewport;
98
var editor;
99
+ obj.editor = null;
100
var term;
101
+ obj.term = null;
102
103
var process;
104
@@ -115,13 +117,15 @@
115
117
116
118
obj.init = async function(){
119
debug('init');
- editor = mod['web-editor'];
120
+ editor = mod['web-editor'];
121
+ obj.editor = editor;
122
editor.initmod({kd});
123
124
mod.base.add({ace});
125
await mod.auto();
126
- term = mod['web-terminal'];
127
+ term = mod['web-terminal'];
128
+ obj.term = term;
129
130
131
await initdom();
0 commit comments