Paste text in a new text frame with styling intact (scripting)

Explorer ,
Aug 25, 2022 Aug 25, 2022

Copy link to clipboard

Copied

Hi

Is there a way to take a paragraph I've found via scripting and paste it in a new text frame but preserving it's style not just the contents?

thanks!

TOPICS
Scripting

Views

47

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 25, 2022 Aug 25, 2022

Use myParagraph.duplicate()

var s = aNewFrame.parentStory;
myFoundGraph.duplicate(LocationOptions.AT_BEGINNING, s);

 

Likes

Translate

Translate
Community Expert ,
Aug 25, 2022 Aug 25, 2022

Copy link to clipboard

Copied

LATEST

Use myParagraph.duplicate()

var s = aNewFrame.parentStory;
myFoundGraph.duplicate(LocationOptions.AT_BEGINNING, s);

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines