Page 1 of 1

remove the nuReadonly class from a nuHTML

PostPosted: Tue Nov 17, 2020 9:10 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

PostPosted: Wed Nov 18, 2020 6:41 pm
by kev1n
In JS, like this?
Code: Select all
$("#your_html_id").removeClass( "nuReadonly " )

Re: remove the nuReadonly class from a nuHTML

PostPosted: Mon Nov 23, 2020 8:39 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

PostPosted: Mon Nov 23, 2020 9:13 pm
by kev1n
Try this:
Code: Select all
$('#your_html_id').css('user-select','text');

Re: remove the nuReadonly class from a nuHTML

PostPosted: Mon Nov 23, 2020 9:45 pm
by vanman
Hi Kevin

Thanks that worked just right

Paul

Re: remove the nuReadonly class from a nuHTML

PostPosted: Wed Dec 09, 2020 5:29 am
by admin
.