|  | @@ -361,15 +361,6 @@ const emrEvent = {
 | 
	
		
			
				|  |  |      readonlyPattern()
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    "insertFragment": async (evt, rootView, nodes, _fragment, _defaultData) => {
 | 
	
		
			
				|  |  | -    if (nodes.length > 1) {
 | 
	
		
			
				|  |  | -      for (let i = 0; i < nodes.length; i++) {
 | 
	
		
			
				|  |  | -        const node = nodes[i]
 | 
	
		
			
				|  |  | -        if (!(node.view && node.view.type === 'area')) {
 | 
	
		
			
				|  |  | -          node.remove()
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      fragmentsCannotBeInserted = true
 | 
	
		
			
				|  |  |      //插入的内容是区域片段
 | 
	
		
			
				|  |  |      if (nodes.length > 0 && nodes[0].view && nodes[0].view.type === 'area') {
 | 
	
	
		
			
				|  | @@ -389,8 +380,7 @@ const emrEvent = {
 | 
	
		
			
				|  |  |          deptDirector: extractFields('主任医生编码'),
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    editor!.setCursor('DOCUMENT_END');
 | 
	
		
			
				|  |  | -    editor!.scrollToCursor();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      fragmentsCannotBeInserted = false
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    "areaFocus": (evt, view) => {
 | 
	
	
		
			
				|  | @@ -889,7 +879,8 @@ const clickSnippet = async ({content, styles, code}) => {
 | 
	
		
			
				|  |  |    if (isReadonly) {
 | 
	
		
			
				|  |  |      lastView.setAttribute('readonly', true);
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +  editor!.setCursor('DOCUMENT_END');
 | 
	
		
			
				|  |  | +  editor!.scrollToCursor();
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 |