InDesign current selection to select next paragraphs of same paragraph style comes.
Hi All,
I've one doubt on the indesign javascript the current selection to select next paragraphs of same paragraph style or particular paragraphstyle till the selection to be adding.
there is a condtion if (title or en) paragarph style come stop the selection.
Like the below snapshot.
Input
output
like getPreviousPara() concept.
getPreviousPara()
I tested someone code code but I can't get the solution could you anyone help me.
found = app.selection[0];
st = found.parentStory;
pCurr = found.paragraphs[0];
ipNext = st.insertionPoints[ pCurr.insertionPoints[-1].index ];
var pNext = ipNext.paragraphs[0];
alert(pNext.contents);
Regards,
csm
