mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 09:28:45 +02: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