|  | @@ -6,6 +6,14 @@ if (Meteor.isClient) {
 | 
	
		
			
				|  |  |      docid: function () {
 | 
	
		
			
				|  |  |        let doc = Documents.findOne();
 | 
	
		
			
				|  |  |        return doc ? doc._id : undefined;
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    config: function () {
 | 
	
		
			
				|  |  | +      return function (editor) {
 | 
	
		
			
				|  |  | +        editor.on("change", function (cm_editor, info) {
 | 
	
		
			
				|  |  | +          let $preview = $("#viewer_iframe");
 | 
	
		
			
				|  |  | +          $preview.contents().find("html").html(cm_editor.getValue());
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +      };
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    });
 | 
	
		
			
				|  |  |  
 |