Copy Paste from LuCI web interface (not possible on some data)

Friends,
Using 24.10 on x86_64 (accessing via chrome or firefox)

This is probably "by design", some rows/data on the luci interface appears as text, but it is not possible to copy/paste, instead of selection, the cursor moves entire ROW.. this is not really an "image" it's something in between, the DDNS rows/data as an example.

This makes it hard to copy/paste/share data when using the UI.. is there anything on the client/browser/setup to allow copy/paste from all text (non graphic, statistics pages) ?

Thanks.

Disable refreshing on the upper right hand corner and try again, this works on some pages (but not on all)

3 Likes

RE: Pasting a MAC into network->DHCP/DNS->static leases on an android tablet with gboard keyboard - can't finalize entry ...

Adding a new host to the network->wireless->dhcp->static_leases ... To make a temp connected host permanent I can copy a host's MAC (for instance) to a new static lease entry - paste works - but there is no way to 'hit enter' to accept the pasted MAC and move on to the next field. The tablet "return" key isn't recognized by the web interface. The entry is lost when focus moves to the next entry to be completed and the MAC disappears.

Multiple versions of android, multiple keyboard apps (I think). Anyone know of a fix/workaround?

Thanks, but that didn't help, take the "Static lease" page.

all IP/MACs, are not copy-able .. anyway to change that? via some extension, or settings in the main program? that's a usability thing, probably something with java/script, not sure the technical issue, but copy should be possible and very helpful ...
Thanks for listening.

If you click Edit on that page on the respective static lease you can simply copy the static lease.

Not sure why you want to do that?

Much simpler from command line cat /etc/config/dhcp

This holds true for most editable items, if you click edit you can copy the fields

I just checked If I stop refreshing I can simply copy most items from the Status > Overview page

Thanks, just to be clear, not complaining or anything, just discovering/learning the env/framework.

I'm sure CLI can do it all much simpler, but topic right now is the UI, and specifically copy (paste).

The "edit" trick is nice, but requires more clicking, pop up, and i don't think IP can be copied that way?

why someone wants to copy text of IPs on their network is left to imagination :slight_smile:

bit off-topic:
BTW, while on the IP over view page which you mentioned, there all is copy-able (GREAT)..

noticed the "set static" is "dim" if already set, and bold if not, to be honest, only noticed it now, and wondered why it does not work in some cases, so, saved another silly thread :slight_smile: :slight_smile: Maybe that button should be removed completely if the static is already set up? or link it to the static ip setup page?

I use either firefox/edge on my PC, and have created a 'Bookmark' specifically to enable text selection for copying text... It's not just the luci interface but other websites that fall into that category. This is the content of the shortcut:

javascript:(function(){ document.onselectstart = null; document.onmousedown = null; document.body.style.userSelect = "auto"; let style = document.createElement('style'); style.innerHTML = '* { user-select: text !important; }'; document.head.appendChild(style); })();

More info here, Method 2: Using a Bookmarklet

WOW!!
Thanks so much for that javascript tip!! that definitely is way more than I bargained for :slight_smile: :slight_smile:
Thanks for sharing!!!!!!

Glad asked that question!!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.