My Image Doesnt Appear in the SitefinityLabel (Cssed sfitemRichText) - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

My Image Doesnt Appear in the SitefinityLabel (Cssed sfitemRichText)

  • My Image Doesnt Appear in the SitefinityLabel (Cssed sfitemRichText)
  • Hi everyone

    I have create Dynamic content which has a LongText field for containing my richtext text, and I want to display the richtext that contains an image by my own custom .ascx widget

    I run the page that contain .ascx widget to display my richtext with my image from my library, the text formatted correctly, but the image doesnt appear properly(only alt text).

    So I checked the image source and i found the sfref="[images|OpenAccessDataProvider|tmb:small]...."
    and i decided to delete the sfref, and the image showed correctly

    But it is impossible to ask the user to delete the sfref in the HTML source each time the user create a content that use an image

    How to make the <sf:SitefinityLabel tag shows image correctly, without change the image source manually(delete sfref in the image tag) if the content has images

    I use this tag to display richtext:

    <sf:SitefinityLabel ID="lblRichText" runat="server" Text='' WrapperTagName="div" HideIfNoText="true" CssClass="sfitemRichText" data-sf-field="content" data-sf-ftype="LongText"/>

     

    Thanks