Copy link to clipboard
Copied
Hi experts,
How to clear paragraph style linking in my selected text?
thanks
John
try:
app.selection[0].applyParagraphStyle(app.activeDocument.paragraphStyles[0],false);
(with some text selected. Or replace app.selection[0] with any text object)
applyParagraphStyle allows you to specify whether you want to clear overrides or not. The default is true but by using false you end up with [No paragraph style] applied but without changing the typographic properties.
Copy link to clipboard
Copied
Could you be more specific?
Copy link to clipboard
Copied
Hi,
If my selected text applied to paragraph style = "XXXXX". I need a script to cancel the text linking to paragraph style.
after run the text will applied to none of paragraph style.
thanks
John
Copy link to clipboard
Copied
Try app.selection.appliedParagraphStyle =
app.activeDocument.paragraphStyles[0];
Copy link to clipboard
Copied
Thank you so much,
but after run, it change the font size and font style.
can it keep all and just cancel paragraph style linking.
John
Copy link to clipboard
Copied
try:
app.selection[0].applyParagraphStyle(app.activeDocument.paragraphStyles[0],false);
(with some text selected. Or replace app.selection[0] with any text object)
applyParagraphStyle allows you to specify whether you want to clear overrides or not. The default is true but by using false you end up with [No paragraph style] applied but without changing the typographic properties.
Copy link to clipboard
Copied
great, thank you all guys
thank so much.
John
Find more inspiration, events, and resources on the new Adobe Community
Explore Now