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

Character Style is removed when copying and pasting text with hyperlink

Community Beginner ,
Jan 04, 2023 Jan 04, 2023

Did anybody experienced this?

I copy or cut a text that has a hyperlink with a Character style applied to it, but after I paste it in another text frame (or even simply dragging a copy of that text frame), the Character style is removed.

The hyperlink is still there, the Paragraph style is applied too, but the Character style misteriously disappears. 
Copying or dragging a copy of the text with a Character style but without a hyperlink doesn't have thsi problem. If the text frame has a Character style applied to text with and wihout hyperlink, it only removes the Character style from the hyperlinked text, but the other one is fine. 
Please help. Thank you. 
Alex

TOPICS
Type
749
Translate
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 , Jan 05, 2023 Jan 05, 2023

I see what's going on. You aren't using the default Hyperlinks character style, but a manually-applied style called Bold2. Enter that in the hyperlinks panel and the issue will stop happening.

 

~Barb

 

2023-01-05_09-30-58 (1).gif

Translate
Community Expert ,
Jan 04, 2023 Jan 04, 2023

Hyperlinks are sort of 'hyper managed' by InDesign. It likes to apply its own Character Style, called (oddly enough) Hyperlink, and it can be difficult to consistently override or change this application.

 

What I suspect is happening is that ID is "fixing" the style on paste or placement.

 

I am not sure there's any solution for this, other than re-applying your preferred style after doing the repositioning.

 

Translate
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
Community Expert ,
Jan 04, 2023 Jan 04, 2023

Hi Alex:

 

Actually, I can't replicate that behavior. What version of InDesign and what OS?

 

~Barb

 

2023-01-04_18-17-59 (1).gif

Translate
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
Community Beginner ,
Jan 04, 2023 Jan 04, 2023

Hi Barb, thank you for your answer. I do suspect that that's what probably happening, but I didn't have this behavior in any other version of the InDesign before. Usually that would happen if I had a Character style applied to the text, and then added a hyperlink on top of that Character style. Then it might reset it to the default Hyperlink style. But in this case I applied custom Character style after I had hyperlink added. 
InDesign version is 18.1.
macOS Ventura Version 13.1.
iMac Pro 2017.

Translate
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
Community Beginner ,
Jan 04, 2023 Jan 04, 2023

Sorry, I meant, thank you James for the explanation.  

Translate
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
Community Expert ,
Jan 05, 2023 Jan 05, 2023

Barb, I have seen this behavior and sometimes it's a simple matter of not using Char styles on TOC'ed entries, and sometimes it's a more persistent issue, as the OP seems to be seeing. I don't have any method to consistently replicate it and have usually just hacked at the problem until it goes away... not very useful, I know.

 

The worse form may be an aspect of document corruption, in which case the export to IDML, reopen and save as INDD "wash cycle" might fix it.

 

Translate
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
Community Expert ,
Jan 05, 2023 Jan 05, 2023

Hi Alex:

 

You don't need to actually assign the character style to hyperlink. It does it automatically. And if you already have a character style assigned to the text that you were adding a hyperlink to, it's going to replace the character style at that location. I'm still playing with the variations that you're describing and I still can't make it happen. Are you comfortable sharing a file, or a page of the file? You can replace sensitive info with placeholder text. 

 

~Barb

(MacBook Pro, Monterey 12.6, InDesign 18.1)

 

2023-01-05_08-41-13 (1).gif

 

Translate
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
Community Beginner ,
Jan 05, 2023 Jan 05, 2023

I attached InDesign file. Replaced the font with Helvetica Neue. 

Translate
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
Community Expert ,
Jan 05, 2023 Jan 05, 2023

I see what's going on. You aren't using the default Hyperlinks character style, but a manually-applied style called Bold2. Enter that in the hyperlinks panel and the issue will stop happening.

 

~Barb

 

2023-01-05_09-30-58 (1).gif

Translate
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
Community Beginner ,
Jan 05, 2023 Jan 05, 2023

Thank you! Will try and do that. Usually I don't want to automatically apply style when I add hyperlink, because in some cases I needed to use a different Character style that is not Bold, but changes color to Aqua for example, when it is on the dark background. But I guess I will have to switch the Character styles manually when I add a hyperlink.

Translate
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
Community Expert ,
Jan 05, 2023 Jan 05, 2023

I'll have to experiment, but as noted, ID is stupid-aggressive about auto-applying and managing that Hyperlink style. I know I've battled it a number of times, even using careful styles management.

 

Hyperlinks and their identifying tattoos are also at the mercy of the end reader, be it PDF, web, EPUB or whatever. Many have hard-coded overrides to interpret links Their Damned Way. 😛

 

Translate
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
Community Beginner ,
Jan 05, 2023 Jan 05, 2023
LATEST

Thank you! I just didn't realize that when I choose [Same Style] or [None] it actually stays with the hyperlinked text and automatically corrects it, if a custom Character style applied to it. Always learn something new, 🙂 

Translate
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