Skip to main content
Participating Frequently
March 8, 2022
Question

BUG: Copy Paste

  • March 8, 2022
  • 5 replies
  • 977 views

When I copy and paste in Dreamweaver 21.2 the pasted code is not displayed correctly with a left shift of the characters.  When I edit to correct, save and then review the information is incorrect because I was editing something different to what was pasted because it wasn't displaying correctly.

 

Things get worse when I undo, with wierd stuff displaying.  Very hard to use the code editor when these behaviours are witnessed.

This topic has been closed for replies.

5 replies

RoxA7Author
Participating Frequently
March 9, 2022

OK, so this is a new install on Macos Monterey.

 

Here is some sample text used in the following screenshots:

 

Dez also had his own gallery from 2011 to 2017 as artist in residence at Houghtons
Which was very popular with the tourists and locals alike

 

So in Developer layout / Code view

 

Code before pasting:

 

Code after going to the end of the </p> clicking enter and pasting the text above:

If you look at line 51 there is no "w"

If I go to the start of the line and put a "w" in and then save, close and reopen this is what I get:

The copied text is from Outlook but it has been put into a text editor and copied as text also and the same problem happens.

The same problem happens with Edit | Paste Special | Text Only

Pretty certain that is a bug.

 

BenPleysier
Community Expert
Community Expert
March 9, 2022

That is not code, it is just text. For it to be code, it needs to be encapsulated within 'p' (paragraph) tags.

 

Please take a course in HTML See https://www.w3schools.com/html/

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
RoxA7Author
Participating Frequently
March 15, 2022

Thanks Ben but I am just pasting as a sample.  I don't need help with HTML, I need help with fixing Dreamweavers strange pasting behaviour.  

Legend
March 9, 2022

Hi - What do you mean by a 'left shift' ? Send a screenshot example if you can.

 

Do you have extensions installed?

Paul-M - Community Expert
Nancy OShea
Community Expert
Community Expert
March 8, 2022

Also it's not a BUG unless other users can reproduce it.

 

Which app are you copying & pasting from?

Are you pasting content directly into CODE view, DESIGN view or LIVE view panel?

 

When copying formatted content from MS Office, it's best to Use Edit > Paste Special > Text only or Text with structure.  This ensures no unwanted junk code gets into your HTML document.

 

Nancy O'Shea— Product User & Community Expert
Nancy OShea
Community Expert
Community Expert
March 8, 2022

Which DW version?

Which operating system?

It sounds like your clipboard contents are corrupted.  Have you restarted your computer lately?

 

Nancy O'Shea— Product User & Community Expert
BenPleysier
Community Expert
Community Expert
March 8, 2022

I am assuming that you have some HTML code that you have copied from an example and you have pasted the code into Code View in Dreamweaver. Are you saying that the first characters are removed causing the other characters to shift left?

 

Showing the code that you want to paste would help use to understand.

 

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!