Quantcast
Channel: Adobe Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 290743

Adding content to a textframe

$
0
0

Hi all,

 

I want to add some content to a textframe which already has some text in it. If i use the following code

 

tframe.content += "appended text"

 

then the text is appended to the textframe but all the text that was previously present in the the textframe has their paragraph style  reset to the paragraph style of the new text.

 

What i need is that the paragraph style of the original text should not change and the new text takes up the paragraph style of the para in which it is added.

 

Second issue is how do i add a special character like a Em-Dash to the text that i want to place in the textframe. If i use the enum like SpecialCharacters.EM_DASH it displays a number(the value of the enum) in the frame but not the actual character.

 

Thanking all of you in anticipation of great suggestions as always.

 

Manan


Viewing all articles
Browse latest Browse all 290743


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