Skip to main content
Mark Cuban 님이 #Salesforce Developer에 질문했습니다
I have a custom field "FieldOne" of type Rich Text Area on Custom Object and I am setting the value for this field in apex as below :

 

<p style="word-wrap:break-word;">aLongAnnoyingContinuousWordWithNoSpacesInBetweenThemIReallyWantToWrapThisUsingCSSWordWrapStylePropertyButItDoesnotWorkAndSimplyDisplaysAsOneContinuousLine</p>

But on the detail page of the Object, It just displays as a long continuous text and user has to scroll to the right to see the complete text.

When I inspected this element on the page using FireBug it shows that style attribute is empty for the <p> element..

Why is salesforce stripping the word-wrap property from the style attribute? or am I doing something wrong?

 
답변 1개
0/9000