You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							410 B
						
					
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							410 B
						
					
					
				import Inline from '../blots/inline'; | 
						|
 | 
						|
class Bold extends Inline { | 
						|
  static create() { | 
						|
    return super.create(); | 
						|
  } | 
						|
 | 
						|
  static formats() { | 
						|
    return true; | 
						|
  } | 
						|
 | 
						|
  optimize(context) { | 
						|
    super.optimize(context); | 
						|
    if (this.domNode.tagName !== this.statics.tagName[0]) { | 
						|
      this.replaceWith(this.statics.blotName); | 
						|
    } | 
						|
  } | 
						|
} | 
						|
Bold.blotName = 'bold'; | 
						|
Bold.tagName = ['STRONG', 'B']; | 
						|
 | 
						|
export default Bold;
 | 
						|
 |