Page 1 of 1
remove the nuReadonly class from a nuHTML
Posted: Tue Nov 17, 2020 12:40 pm
by vanman
hi
Is it possible to remove the nuReadonly class from a nuHTML field so the user can copy to the clipboard text from the HTML field. I still want it so then fileds cannot be edited.
Thanks
Paul
Re: remove the nuReadonly class from a nuHTML
Posted: Wed Nov 18, 2020 10:11 am
by kev1n
In JS, like this?
Code: Select all
$("#your_html_id").removeClass( "nuReadonly " )
Re: remove the nuReadonly class from a nuHTML
Posted: Mon Nov 23, 2020 12:09 pm
by vanman
kev1n wrote:In JS, like this?
Code: Select all
$("#your_html_id").removeClass( "nuReadonly " )
Hi Kevin
Tried that
tried different things
Thought of is I double clicked it and was put in a different input like a Text Area and then dblclick again and it would return to nuHtml
What do you think?
Paul
Re: remove the nuReadonly class from a nuHTML
Posted: Mon Nov 23, 2020 12:43 pm
by kev1n
Try this:
Code: Select all
$('#your_html_id').css('user-select','text');
Re: remove the nuReadonly class from a nuHTML
Posted: Mon Nov 23, 2020 1:15 pm
by vanman
Hi Kevin
Thanks that worked just right
Paul
Re: remove the nuReadonly class from a nuHTML
Posted: Tue Dec 08, 2020 8:59 pm
by admin
.