I am trying to only allow a user to select text from only one element at a
time .
(I don't want the user to be able to select text from more than one element
at a time)
Consequently by default text selection is disabled via css eg
body{-moz-user-select::-moz-none}
I attempted to enable text selection via a mousedown event and apply it to
the current element
this.setAttribute('style','-moz-user-select:text')
However this does not take effect immediately. It seems that the user must
click once to enable
text selection and a second time to make the selection
What I want is a single click action that enables selection of text for the
"target" element of the initial mouse down event
Any ideas or solutions?
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout