I'm wondering how to break a link to a character style in JS. By break
link I mean removing the character style but preserving the formatting.
Given a selected textStyleRange, say, in the UI there are two ways of
doing this. One is to click "Break link to Style" in the flyout meny of
the character style palette.
but right-clicking and selecting the menu option doesn't.
So when I saw that, I said to myself aha! Probably:
myText.appliedCharacterStyle = myCharStyle
But it isn't.
They both apply None and remove all formatting.
So, anyone know how to break a link to character style without removing
formatting in JS?
Unintuitively, applying character style None leaves the formatting intact:
myText.appliedCharacterStyle = myDoc.characterStyles;
Thanks Peter. That's interesting. After Shabbos I'll have to try figure
out how to apply a character style without removing overrides as well.
It may be a two-step procedure.