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
emmadiemmadi 

Not able to limit the Rich Text Area in visualforce

I have filed called body on object blog post of type Rich Text Area.

i am using <apex:outputField value="{!objBlogPost.Body__c}" /> in visualforce for diaplay.

If the content of the filed is more than 60 characters per line I want that to be in diffrent line beacuse of div size.

 

Problem I have if the line size is more than 60 it showing in single line breaking the div boundaries.

 

ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMN

ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTU 

above example 1st line is my div size 2 line breaking the div boundaries ideally i want some thing like this 

 

ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMN

ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMN

OPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTU

 

 

 

Thanks in advance 

emmadiemmadi

got the ans 

 

Try specifying escape='false' on output text.