fix: change space to non-breaking space

This commit is contained in:
Michal Vavra 2023-08-27 01:41:38 +02:00
parent 19daaa894f
commit e3cca040c7
No known key found for this signature in database
GPG key ID: 0EEADE8EAA583DDC
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ export class CopyWidget extends WidgetType {
}
toDOM(view: EditorView): HTMLElement {
const icon = createSpan({cls: "copy-to-clipboard-icon", text: " 📋"})
const icon = createSpan({cls: "copy-to-clipboard-icon", text: "\xa0📋"})
icon.onclick = (event) => {
const element = (event.target as HTMLElement)
@ -25,4 +25,4 @@ export class CopyWidget extends WidgetType {
return icon;
}
}
}

View file

@ -13,7 +13,7 @@ export default class CopyInlineCodePlugin extends Plugin {
return
}
const icon = createSpan({cls: "copy-to-clipboard-icon", text: " 📋"})
const icon = createSpan({cls: "copy-to-clipboard-icon", text: "\xa0📋"})
const textToCopy = code.textContent
icon.onclick = () => {