Copy link to clipboard
Copied
Hello,
I have a problem with Dreamweaver version 21.3.
When I copy new text I have written with MS Word into the draft view of Dreamweaver, I get the following error message:
This change would require changing code that is locked by a template or translator. The change will be discarded.
It is sufficient if I copy a single sentence from Word into the design view, to get this message.
I have no problems if I select the "Paste text only" option. That works.
However, Dreamweaver refuses to accept pre-formatted text.
Does anyone know of this problem and perhaps has a solution?
Thank you very much
Copy link to clipboard
Copied
This isn't Dreamweaver refusing to accept the text. From the sounds of your issue, you are trying to paste code into a Dreamweaver template into an area that is not marked as editable. Thus if you make this change, it would impact all files associated with that template and this change must be made on the .dwt file and not in the html document itself. If you want to post an example of where you are trying to copy/paste and code, we can highlight this for you.
Copy link to clipboard
Copied
Hi Ben,
Thank you very much for your reply.
I have discovered the cause of the problem in the meantime.
Dreamweaver seems to be sensitive to text from different versions of MS Word.
My problem only occurs when I use the text from the latest version of MS Word.
Everything is ok with an older version.
Copy link to clipboard
Copied
Formatted text from MS Word contains unwanted junk code that can adversely effect the performance of your HTML document.
Given that you're working with Template child pages, it's vitally important to keep code errors to a minimum.
For best results, use Paste Special > Text only or Text with structure.
If needed, restyle your unformatted text with CSS from your external or embedded stylesheet(s).
Hope that helps.