Copy text with styleinformation

Hello

I work in Indesign CS5 with javascript.


The problem:

I want to replace the parentStory of managers of related texts related with the contents of a Table of contents newly created (which is a story). After which I can delete the newly created TOC.

Why not just update the Table of contents? Simple, at a Table of contents of a tocStyle which is not in the document, I get a new table of contents in a new textFrame. I only need 1 table of contents, but the tocStyle may change, so it's not quite an update. (If someone has an idea to solve this problem, it is fine also.)

My first thoughts went to put the history of the textFrame I need to replace in the oldStory and do it with content: oldStory.content = newStory.contents;

But when I copied the content I lost all the style information. All paragraphs have the same style, and I lost the characterstyles.

Maybe my mind has a bad day, but I don't seem to be able to copy text with the style from one place to the other information.

Can someone help me?

Thanks in advance,

Glen

By his description, the "content" of all text objects only contain ASCII/Unicode characters and overall SpecialCharacters stuff. Formatting is handled "elsewhere".

Try oldStory.move (), that should work.

Tags: InDesign

Similar Questions

  • copy text with formatting in acrobat api

    Is it possible to copy the text with formatting via plugin api to a file? provide samples or methods to achieve this functionality.

    Most likely an API IAC, I would have thought.  No need to google randomly, don't use it to find the SDK plugin https://www.google.co.uk/search?q=clipboard%3A+site%3Alivedocs.adobe.com%2Facrobat_sdk%2F1 0% 2FAcrobat10_HTMLHelp % 2FAPI_References % 2FAcrobat_API_Reference & oq = Clipboard % 3 a + % 3Aliv edocs.adobe.com%2Facrobat_sdk%2F10%2FAcrobat10_HTMLHelp%2FAPI_References%2FAcrobat_API_Ref erence of the site

  • Suddenly the Clipboard does not work. Don't reload with the new copied text.

    Guard-paste previously copied text. What is going on?

    How to clear the Clipboard in Windows 7 [tip] | Next to Windows

    How to clear the Clipboard on Mac | eHow

    It is usually a memory problem. Clears the Clipboard.

    Nancy O.

  • How to remove hyperlinks from copied text without deleting the text in the pages 08

    How to remove hyperlinks out of copied text without deleting the text in the pages 08

    One post is enough.

    I do not have Pages ' 08, but in Pages ' 09, you select the text with the hyperlink, click the link Inspector, and deselect the option enable as a hyperlink check box.

    Otherwise, rely on the search tool in your Pages ' 08 Help menu. Search for "remove link" without quotes.

  • Legends of centered text with tails?

    Is it possible to create legends of centered text with tails?

    I know how to create a custom BMP and how to adjust the. FCM-file - but only for text captions with their corners, form tails or tailless. My client wants to pop up and infoboxes with tails centered windows and I´d you want to solve that with captive captions instead of make a PNG images for each of them...

    Otherwise I´ll create a caption of text without a tail and have to add all the tails as the images above

    For all those wondering about this thread, or who want a tail centric legends as well, it's here:

    1. That's what I had:
    2. The 'must have' were the following:
      -centered on the tail (always the same)
      -rounded corners
      -drop shadow and 1px border around the legend full
    3. So I created a legend of custom tailless text and an image for the tail:

      This way I can place the tail above the legend of text on each side it s necessary, align the two and finally to group all the items.

    Tips: The shadow of the text caption is defined in the properties, the drop shadow on the tail inside the image. This is why I made a legend squared to Captivate a copied in Photoshop ;-)

  • How does one copy text from a text document and spent in photoshop?

    How does one copy text from a text document and spent in photoshop?

    Say I have a basic document open with some a few paragrphs text

    in it. I don't know how to copy it, but how I paste in Photoshop?

    I think if there is more than one line of text, then it would be best to drag a text box, place the cursor inside the text box and paste it (Ctrl or Cmd-v)

    Or if yo want only the text (paragraph) to adapt to irregular shape, then draw this shape with the tool pen > select the text tool and click inside the shape you produced with the pen tool, and paste.

  • Why the eyedropper tool is not copy text format?

    Hi guys,.

    I'm new here and just started using InDesign CC.

    I know that with the eyedropper tool, you can choose a color and copy it somewhere else but I read it must also collect format attribute s (characters, the font size, color, etc.) and apply it to the rest of the text. However, it seems that this is not an option in my mac. Whenever I try to copy text attributes, it only takes the text color (usually black) and not the format.

    Also when I double click the eyedropper icon I get not the Options menu of the pipette, where you can choose the contour settings, fill, character, paragraph & object but just the Options menu of color theme where I can only tick ' ignores the opacity and other effects applied everything by choosing colors '.

    Do you know the guy why my eyedropper can not pick up text attributes?

    Thank you very much.

    Click and hold on the color theme tool to get the eyedropper tool.

  • Is it possible to paste a text with the style on Muse "stick style"?

    Is it possible to Copier 'style with' text from a word processing software, and stick with the style on Muse "Stick style" ?

    Unfortunately, you can't text 'with style' of external source to the Muse, the style will be lost. But you can try to create the same style of end of Muse.

    Thank you

    Sanjit

  • Siri in him sending text with the value 'NULL '.

    When I say, "Siri, text my wife, 'X', ' Siri responds correctly,"here is your message to Jill: 'X'. "" "  "Ready to send it?"  I say 'Yes' and sends the message.  As soon as I get a text from my carrier saying the recipient of the message was invalid.  100% of the time, I see that Siri has sent a text with the value NULL.

    I tried to restart my phone.  I tried to remove and re-add my contacts.  Anyone else having this problem?  Someone knows how to solve?

    If it's by the carrier, you should contact them and see what they receive in return for their side. Ive had Siri send messages for me and I have never seen this one IOS.

  • How can I copy and paste from Google "Keep"? Every time I try, the copied text is not copied to the Clipboard in Firefox, it allows to copy my clipboard 'by default'.

    I can't get the Firefox Clipboard appears when I try to copy the Dungeon of Google. Please help, thanks.

    Hi again LvScience:

    (tips from jsoulless40 (thanks js40!) to try the site office in Firefox when using the web application in Dungeon is very good, but I think you are using the right to keep the App, not web app version right?)

    Thanks for the info of the unit: 'Android OS's on a Samsung Rugby Pro 4.1.2 I do not have this tablet but I have two tablets from samsung android under 4.x

    I should have asked before:

    What exact steps where you next when you've copied and pasted into a 'newly opened document.

    My steps were (on my Samsung Tab S 10 4.4.2 running):

    1. in Firefox selected, then copied text
    2. past in app Google Dungeon
    3. successfully pasted the text in Dungeon in the 'add a quick note', also tapped the new note icon and pasted the text into a new note
  • I can't select or copy text on Firefox for Android 26.0.1 (device: Samsung Galaxy Note 2) OS: Android 4.3. Long press on the text does not work. )

    Can't select or copy text on Firefox for Android 26.0.1.
    Device: Samsung Galaxy 2 Note.
    OS: Android 4.3.
    Long press on the text does not work.

    I would ask someone to check that...

    I'm glad to hear that your problem has been resolved by using the beta version.

    If you have not already the case, please mark this thread as solved by the solution of marking.

    This will help other users experience similar problems helps to find faster and more efficiently.

    I hope that you will continue using our products and we thank you for contacting the Mozilla Support.

  • Firefox 8, cannot copy text from any website

    When I select and right click to copy text from any Web site in firefox8, I have a large white screen. I had no problem until I upgraded to 8.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • I have Apple TV gen 1. I changed my iTunes password and now I can't the Apple TV in the House. It will connect to iTunes. I type my Apple and a new password. My phone Gets a text with a verification code, but the Apple TV says wrong user

    I have Apple TV gen 1. I changed my iTunes password and now I can't the Apple TV in the House. It will connect to iTunes. I type my Apple and a new password. My phone Gets a text with a verification code, but the Apple TVsaybadusername password or.

    Your ATV1 has an old software system not updated for years.  You have 2 factor (6 digits) or authorization of step 2 (4 digits) enabled for your Apple account.  Here are the characteristics of the latter.  I disable these on your Apple account and try again.

    For Apple ID - Apple Support two-factor authentication

    Frequently asked questions about the audit in two steps for Apple ID - Apple Support

  • HP ENVY 7640: Jobs of text with images - printer cancels

    When I print a text with images document the printer stop printing and cancels the print job when it starts to print any image.

    Help

    Hey @sudiegal!

    Thanks for posting on the HP Forums!

    I would be happy to provide you with some suggestions that may fix the problem.  I see that the printer cancels jobs when you add a photo to you text document.  The first thing I suggest is to remove the printer by resetting the printing system.  After removing the printer add printer and then try printing the document again.

    To reset the printing system:

    1. click on the Apple in the top left of the computer icon

    2. click on System Preferences

    3. click on printers and Scanners

    4 press and hold 'Ctrl' on the keyboard and click with the mouse in the space below the printer

    5. click on reset the drop-down list printing system

    6. we may request for Mac ID and color wheel for a while until the printer is deleted

    To re-add the printer:

    1. click on the Apple in the top left of the computer icon

    2. click on System Preferences

    3. click on printers and Scanners

    4. click on the plus sign (+) icon in the list of printers

    5 Select your printer

    6. choose HP ENVY 7640 series in the drop-down list next to 'use' or 'print using '.

    7. click on add

    If please, after back and let me know if it works for you!

  • Receive the text with peak & have to download it?

    Front of JB when we (by 2 with DRM) would receive a text with a pic we could tap or hold the pic view you or save a picture. On the DRM from my wife, she has only the possibility to download or delete with no overview of the attachment window. I looked in the settings of text and see nothing there. Mine still works as it did or similar to when I was on ICS. Any help would be grateful

    happy to help you. Be sure to choose the best answer if this solves the problem

Maybe you are looking for

  • Sierra download on macbook

    I tried 3 times to download sierra on Macbook PRO and using OS10.9.5 with > 60 GB of free space, 8 GB of ram.  Said it will take 12 hrs.  The next day he says only: he couldn't.

  • Satellite 4080 miss SCDT BIOS Update

    Hi all I want to Flash my bios but, theres a big problem.I ve got the bios files on a diskette, unbootable, and start again. When I press F12 or left SPACEBAR following the laptop doesn't start the Bios Flash. What is the right key to start the Bios

  • Small video memory on Satellite Pro L300-165 and Windows XP

    To increase the memory on the video card?See what I results now:http://www.freeimagehosting.NET/uploads/c2e34ccdcc.gif

  • 32 Media display N9C43A the envy: how to activate Freesync

    How can I activate Freesync in this HP Envy 32 Media Display. I spent displayport 1.2 and enabled and disabled overDrive video on and outside. Is there another setting I have to turn on or off. I chatted with HP support, but they want me to pay for t

  • How can I remove and replace all THE contacts on my iPhone 6 s

    I just got a new iPhone 6s and had my contacts migrated to she an old HTC Android phone at the office of my carrier. Migration not be passed not as planned and all my contacts are screwed up. I would like to delete all contacts and replace them in th