function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SirishaMSirishaM 

Style sheets

Hi ,

I am using a yahoo text editor( similar to the blog application example in visualforce) to edit one textarea field.
But when I save and it does not show the data in the format .

For example when  I print text in italics
it prints <i> your text </i>

I know it is some style sheet problem. Does anyone know which style sheet to use to display formatted text ?

Thanks,
Sirisha
Ron HessRon Hess
when you use a rich text editor , and save the src (markups) for this, it is html markup, so you should see it stored as <i> your text </i>

if you render that src in a proper html area, it will appear formated at that point.

also , look into richText="true" attribute on inputTextArea, it's cool.
SirishaMSirishaM
Hi Ron,

While saving the data in to the Textarea(Long) field ..I used the rich text editor. But for displaying can I do it with Visualforce?

Do I need to an S control to display the saved text in proper format..

Can u please give sample code to do that in Visualforce ?

Thanks,
Sirisha
SirishaMSirishaM


I have one more problem while using the editor..some times it is giving

"Body not loaded " error

Can you please tell me where I am going wrong ?

Thanks,
Sirisha

Ron HessRon Hess
try outputing the field contents in a div or in an iframe
Ron HessRon Hess
no idea what is going on in your editor, dont' have enough information
SirishaMSirishaM
Thanks a lot !!! All your tips worked..

Sirisha
dchasmandchasman
Code:
<apex:outputText value="{!foo}" escape="false"/> 

 is the standard way to handle outputing unescaped markup.


Message Edited by dchasman on 05-15-2008 08:55 PM