Hi,
Is there a way to make text selectable in a browse only form to copy paste (to google translate), without having it open the edit view. Don't need the edit view.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Copy of text in browse only form
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 446 times
- Contact:
Re: Copy of text in browse only form
Add this JavaScript in your form's Custom Code:
Code: Select all
$("DIV[id^='nucell']").css({userSelect: 'text'});
-
- Posts: 27
- Joined: Sun Feb 07, 2021 8:07 pm
-
- Posts: 27
- Joined: Sun Feb 07, 2021 8:07 pm
Re: Copy of text in browse only form
It's still not allowing me to select and copy the text.
Modsec gave an error. Disabled it to enter the JS.
Code: Select all
<div id="nucell_0_1" data-nu-row="0" data-nu-column="1" class="nuCellEven nuBrowseBorderTop nuBrowseTable" style="text-align: left; overflow: hidden; width: 930px; top: 27px; left: 179px; height: 20px; position: absolute; user-select: text;" data-nu-primary-key="1414035670998396928" onclick="nuSelectBrowse(event, this)">@Neobaianismo vamos fazer uma nova epidemia da dengue na argentina</div>
<div id="nucell_1_1" data-nu-row="1" data-nu-column="1" class="nuCellOdd nuBrowseTable" style="text-align: left; overflow: hidden; width: 930px; top: 54px; left: 179px; height: 20px; position: absolute; user-select: text;" data-nu-primary-key="1414063227034558466" onclick="nuSelectBrowse(event, this)">Já é a 7x seguida q eu vejo o vídeo do pânico botando dengue na Argentina</div>
-
- Posts: 27
- Joined: Sun Feb 07, 2021 8:07 pm
Re: Copy of text in browse only form
Issue solved.
JS Code from Kevin to place into 'Cuscom Code' of the form:
JS Code from Kevin to place into 'Cuscom Code' of the form:
Code: Select all
function nuSelectBrowse() {
}
$("DIV[id^='nucell']").css({userSelect: 'text'});