selection problem
This commit is contained in:
		
							parent
							
								
									0421b1ab6a
								
							
						
					
					
						commit
						9f9ba33428
					
				
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -313,7 +313,6 @@ module.exports = (HB)->
 | 
				
			|||||||
        createRange = (fix)->
 | 
					        createRange = (fix)->
 | 
				
			||||||
          textnode = textfield.childNodes[0]
 | 
					          textnode = textfield.childNodes[0]
 | 
				
			||||||
          s = window.getSelection().getRangeAt(0)
 | 
					          s = window.getSelection().getRangeAt(0)
 | 
				
			||||||
          if s.startContainer is textnode and s.endContainer is textnode
 | 
					 | 
				
			||||||
          left = s.startOffset
 | 
					          left = s.startOffset
 | 
				
			||||||
          right = s.endOffset
 | 
					          right = s.endOffset
 | 
				
			||||||
          if fix?
 | 
					          if fix?
 | 
				
			||||||
@ -324,11 +323,7 @@ module.exports = (HB)->
 | 
				
			|||||||
            right: right
 | 
					            right: right
 | 
				
			||||||
            isReal: true
 | 
					            isReal: true
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
          else
 | 
					
 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
              left: 0
 | 
					 | 
				
			||||||
              right: 0
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        writeRange = (range)->
 | 
					        writeRange = (range)->
 | 
				
			||||||
          textnode = textfield.childNodes[0]
 | 
					          textnode = textfield.childNodes[0]
 | 
				
			||||||
          if range.isReal
 | 
					          if range.isReal
 | 
				
			||||||
 | 
				
			|||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user