Disable selection of glyph for copying and pasting? #4
Labels
Difficulty: [2] Intermediate
Priority: [1] Low
Type: Enhancement 💡
Issues related to enhancements, improvements, new features, or new analyses
This is a neat extension!
In a recent blog post, I did something similar with little swatches (though not for hex codes specifically):
I added
user-select: none
to the CSS for the glyph so that when users select/copy the text, the glyph doesn't get picked up too:Would it be worth adding that to the inline CSS at https://github.com/mcanouil/quarto-preview-colour/blob/b2f38e4d35037e8b4f1334b5e51871f8d812856f/_extensions/preview-colour/preview-colour.lua#LL51C70-L51C70 or would that go beyond the scope of the extension?
The text was updated successfully, but these errors were encountered: