PHP:
var myStory = selection[0].parentStory;
for (myCounter = 0; myCounter < myStory.paragraphs.length; myCounter++) {
lnCount = myStory.paragraphs[myCounter].lines.length;
if (lnCount > 1) {
var myTextLine = myStory.paragraphs[myCounter].lines[lnCount];
myCharCount = myTextLine.characters.length;
alert(myCharCount);
}
}
Что не так?