+ Start a Discussion

Is it a bug or am i doing data entry in a wrong way?



Ok, i have been dealing with this for almost 4 hours and heading no where.


I've a rich text field which holds image for each record. I am just querying and displaying the field in my VF page. I can see there is a <br/> tag attached at the end of the image automatically when i see the image source code, why?


When i do an "escape=true" in <apex:outputText> i can get to see the url which is, <img alt="User-added image" src="https://c.cs12.content.force.com/servlet/rtaImage?eid=a07V0000000MuHm&amp;feoid=00NV0000000Lk3Q&amp;refid=0EMV0000000CbaI"></img><br>


Please note there is a <br> tag attached to the end of the <img> tag. I dint face this in the past. Can some one shed some light on this issue.






I don't think this is a bug, seems like in the Rich Text Area field, after inserting the image you've  hit the 'Enter' key, thus going to next line. That's the reason for <br> after the </image>.


Try this and you'll see the difference:


In the rich text field insert the image. Don't hit the 'Enter' key on your key board.  Notice that you won't see the <br>


Now, in the rich text field insert the image and hit 'Enter' on your keyboard. You'll see the <br>


I have tried and tested this. Let me know if you want an explanation with an example.








I was fearring that this would be the reply.


I made sure, upon inserting the image i hit delete N number of times to make sure there is no space or <br> attached to the image. This is what made me to post the question in boards.




yes dear , this is bug when you hit the enter key , the tag <br> come to next line so that , your text not displaying your image on the page.


@EIE50, I couldn't replicate the problem. May be it's intermittent, or could it be browser related?

I would be interested to know if it's a confirmed bug.




It was intermittent. I was using chrome broswer. On friday evng, i had that problem, and when i checked back today i dont see that problem. I have no idea why this would have happened.