Jump to content
We've recently updated our Privacy Statement, available here ×

dynamic style


anjumprevaiz

Recommended Posts

hi buddies

 

i want to apply style duynamically on some part of the text in a textField

 

e.g

text in my TextField is "jasper reports is a great tool for reporting"

i want to do this with this text  "jasper reports is a great tool for reporting"

 

i want somethng like that

Advance thanks to All.....

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Use something like this:

"This is normal text <style isBold="true" pdfFontName="Helvetica-Bold">for the bold portion</style> and back to normal text."

Make sure that the isStyledText box is checked on the properties. If you are not using the output as a pdf you can leave off the pdfFontName.

Link to comment
Share on other sites

  • 2 years later...

Hi, I have a problem.

If I write :

 <style isBold="true">some text</style>   

it works!

But if I write:

<style hAlign="right">some text</style>

That does not work! /tools/fckeditor/editor/images/smiley/msn/confused_smile.gif

Somebody knows how I mut do this? (Right-aligned text)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...