Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

remove the nuReadonly class from a nuHTML

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

remove the nuReadonly class from a nuHTML

Unread post 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
kev1n
nuBuilder Team
Posts: 4304
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: remove the nuReadonly class from a nuHTML

Unread post by kev1n »

In JS, like this?

Code: Select all

$("#your_html_id").removeClass( "nuReadonly " )
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

Re: remove the nuReadonly class from a nuHTML

Unread post 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
kev1n
nuBuilder Team
Posts: 4304
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: remove the nuReadonly class from a nuHTML

Unread post by kev1n »

Try this:

Code: Select all

$('#your_html_id').css('user-select','text');
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

Re: remove the nuReadonly class from a nuHTML

Unread post by vanman »

Hi Kevin

Thanks that worked just right

Paul
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: remove the nuReadonly class from a nuHTML

Unread post by admin »

.
Post Reply