as the subject says: is tehere anyway to disable the selection of a text element?
Here I have a simple circle with a number within: if u click 2 times the browser select the number to let you copy it, but I need to prevent this selection.
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="100%"
height="100%"
viewBox="0 0 1552 881"
id="svg2">
<path
d="m 547.74525,358.7305 a 166.4716,146.78142 0 1 1 -332.9432,0 166.4716,146.78142 0 1 1 332.9432,0 z"
id="italia"
style="fill:#000000;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
onclick="change(evt)" />
<text id="italia value" onclick="change(id)" fill="#FFFFFF" stroke="black" font-size="200" font-family="Verdana" x="260" y="430">11</text>
</svg>