Open examples.docs.editText in the Object Database. Select any line of text in the window that has some styled text in it and then type and execute:
editMenu.copy ()
» true
This will select some data of type TEXT. Click elsewhere in the word processing window and execute:
editMenu.paste ()
» true
Notice that the copied material is placed into the document at the insertion point.
Now open the outline document examples.docs.editOutline and execute again:
editMenu.paste ()
» true
Notice that the text is inserted into the outline on the selected line or, if no line is selected, immediately below the line on which the cursor is located. Note, too, that it has lost its styling. This is because text in an outline does not have styles
and the pasted text has now taken on the data type of the contents of an outline.