Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

[JS] CS6-> How to insert character at first location in text style range

$
0
0

Hi

 

I have a string of text which has an anchored text frame at the first character location in a Text Style Range.

The way I normally update text is to insert text around any anchors, and that works, but I can't seem to get it to work if the anchor is located at the first character.

 

Example, where [a] is the location of the anchored object (the special character):

[a]My text

new text:

Pretext[a]My updated text

 

If this is impossible, then is it possible to move the anchor?

 

Any ideas? Thanks


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>