Skip to main content
Open

Improved HTML control in regards to Copy-Paste

Related products:Universal GUI
  • July 25, 2025
  • 1 reply
  • 44 views

Can we get a better control for the HTML fields in universal? Trying to copy advanced text into a html control is a chore.

Here are some examples of annoyances:

Copying from Notepad/notepad++ removes all kind of text

When putting this text in Notepad/Notepad++:

<this is not copied> this is copied <not there> <not there as well> is there

And copy pasting into the HTML editor in Universal, I end up with:

this is copied is there


Copying from sql removes the layout. 

When putting this text in SQL Server Management Studio:

    -- Drop all referenced foreign keys
    select @sql = @sql + N'alter table ' + quotename(t2.name) + N' drop constraint ' + quotename(f.name) + N' ' + char(10) + char(13)
      from sys.foreign_keys f
      join sys.tables t
        on t.object_id = f.referenced_object_id
      join sys.tables t2
        on t2.object_id = f.parent_object_id
     where t.name = @tab_id

And copy pasting into the HTML editor in Universal, I end up with:

  -- Drop all referenced foreign keys select @sql = @sql + N'alter table ' + quotename(t2.name) + N' drop constraint ' + quotename(f.name) + N' ' + char(10) + char(13) from sys.foreign_keys f join sys.tables t on t.object_id = f.referenced_object_id join sys.tables t2 on t2.object_id = f.parent_object_id where t.name = @tab_id


- When copying from Teams, the newlines also get removed. 
- Copying from webbrowser also copies the background colour

This makes creating a simple instruction in an html field almost impossible. So I regularly choose to upload a Word file instead of trying to get this to work in a html field. 

Did this topic help you find an answer to your question?

1 reply

Mark Jongeling
Administrator
Forum|alt.badge.img+23
NewOpen

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings