• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

102

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);

 

Votes

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);

 

Votes

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