Dreamweaver

Copy and paste steps between documents

Each open document has its own history of steps. You can copy steps from one document and paste them into another.

Closing a document clears its history. If you know you will want to use steps from a document later, copy or save the steps before you close the document.

  1. In the document containing the steps you want to reuse, select the steps in the History panel.
  2. Click Copy Steps in the History panel .
    Note: The Copy Steps button in the History panel is different from the Copy command in the Edit menu. You can’t use Edit > Copy to copy steps, although you do use Edit > Paste to paste them.

    Be careful when you copy steps that include a Copy or a Paste command:

    • Don’t use Copy Steps if one of the steps is a Copy command; you may not be able to paste such steps the way you want.

    • If your steps include a Paste command, you can’t paste those steps, unless the steps also include a Copy command before the Paste command.

  3. Open the other document.
  4. Place the insertion point where you want it, or select an object to apply the steps to.
  5. Select Edit > Paste.

    The steps are played back as they’re pasted into the document’s History panel. The History panel shows them as only one step, called Paste Steps.

    If you pasted steps into a text editor or into Code view or the Code inspector, they appear as JavaScript code. This can be useful for learning to write your own scripts.