mirror of
https://github.com/ozavodny/obsidian-copy-inline-code-plugin.git
synced 2026-07-22 08:10:25 +00:00
fix: change space to non-breaking space
This commit is contained in:
parent
19daaa894f
commit
e3cca040c7
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue