Copy and Paste issue for content control

Liu, Sandy 0 Reputation points
2023-03-13T00:21:50.2633333+00:00

We are using content control to bind XML Data. Here is a sample of XML. I created a repeating content to show fields for Finding and create a table in this content control to show actions.

<Root> 

        <FINDING> 

              <Fields1/> 

              <Actions> 

                   <Field1/> 

               <Actions> 

        </FINDING> 

</Root>

File: https://github.com/zuosongliu/Audit/blob/main/Demo%20-%20Copy.docx

Detail Decription: https://github.com/zuosongliu/Audit/blob/main/README.md

Issue:

  1. Random Text pasted Reproduce steps:
    1. More than one Finding needs to exist
    2. Select entire content of a field from Finding 2 & copy
    3. Select field from a Finding 1 & delete entire contents
    4. Paste into this field using ctrl & v
    5. Random text taken from somewhere else
  2. Default formatting setting
    1. Set Merge Formatting as default paste option
    2. Copy entire text from field in Finding or Action Plan
    3. If you paste into field with no text already entered using ctrl &v, then change to Keep Source Formatting using change paste option popup, result is that nothing will paste & field remains blank
    4. If you are pasting into a field which has text in it already, first delete the text, paste using ctrl & v, then change to KSF, and result is that field either disappears or jumps to another part of the Finding. Usually it just disappears
    5. Clicking undo does not fix anything except remove the field in cases where it jumped instead of immediately disappearing
Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
701 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 22,716 Reputation points Microsoft Vendor
    2023-03-13T07:58:03.2733333+00:00

    Hi @Liu, Sandy,

    What's the version of Word did you use?

    I tied to test you document with your steps but I can reproduce this problem. Then I found if I copy the fields 2 first, then delete Filed 1 title content and ctrl + v to paste the content in Title 1, I can get the same result.

    If I delete the Title 1 and then copy the fields 2 and ctrl + v to Title 1, the result will correct.

    Delete Title 1:

    User's image

    Copy Field 2:

    Ctrl + V to Title:

    User's image

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.