Skip to main content
Participating Frequently
Mar 8, 2022 8:35 AM UTC
Question

BUG: Copy Paste

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 is closed to new replies. Start a new post to keep the conversation going.

17 replies

RoxA7Author
Participating Frequently
Mar 9, 2022 8:34 AM UTC

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.

 

Translate
BenPleysier
Community Expert
Community Expert
Mar 9, 2022 10:50 AM UTC

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/

Translate
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
RoxA7Author
Participating Frequently
Mar 15, 2022 4:43 PM UTC

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.  

Translate
Legend
Mar 9, 2022 12:58 AM UTC

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

 

Do you have extensions installed?

Translate
Paul-M - Community Expert
Nancy OShea
Community Expert
Community Expert
Mar 8, 2022 10:05 PM UTC

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.

 

Translate
Nancy O'Shea— Product User & Community Expert
Nancy OShea
Community Expert
Community Expert
Mar 8, 2022 9:46 PM UTC

Which DW version?

Which operating system?

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

 

Translate
Nancy O'Shea— Product User & Community Expert
BenPleysier
Community Expert
Community Expert
Mar 8, 2022 10:24 AM UTC

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.

 

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