|
@@ -2698,9 +2698,9 @@ var EditorViewModel = (function() {
|
|
|
_notebook.type('query-' + options.editor_type);
|
|
_notebook.type('query-' + options.editor_type);
|
|
|
}
|
|
}
|
|
|
_notebook.snippets(_newSnippets);
|
|
_notebook.snippets(_newSnippets);
|
|
|
- if (_newSnippets.length > 0) {
|
|
|
|
|
- huePubSub.publish('editor.redraw.data', {snippet: _newSnippets[0]});
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ _newSnippets.forEach(function (snippet) {
|
|
|
|
|
+ huePubSub.publish('editor.redraw.data', {snippet: snippet});
|
|
|
|
|
+ });
|
|
|
};
|
|
};
|
|
|
self.togglePresentationMode = function() {
|
|
self.togglePresentationMode = function() {
|
|
|
if (options.editor_type != 'notebook') {
|
|
if (options.editor_type != 'notebook') {
|