mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	support unicode in button names, closes #1250
This commit is contained in:
		
							parent
							
								
									6220b02ef0
								
							
						
					
					
						commit
						c371873b7e
					
				| @ -87,7 +87,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain | ||||
|      * @param {ToolbarButtonOptions} opts | ||||
|      */ | ||||
|     this.addButtonToToolbar = opts => { | ||||
|         const buttonId = "toolbar-button-" + opts.title.replace(/[^a-zA-Z0-9]/g, "-"); | ||||
|         const buttonId = "toolbar-button-" + opts.title.replace(/\s/g, "-"); | ||||
| 
 | ||||
|         const button = $('<button>') | ||||
|             .addClass("btn btn-sm") | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam