Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Poornima Nayar 6 posts 26 karma points
    May 23, 2012 @ 16:15
    Poornima Nayar
    0

    Editor stripping off onload

    Hi, I have enabled onload on img and restarted the app pool, but still onload get stripped off the html code. Any idea? Here is my TinyMCE valid elements for img

     

    img[id|dir|lang|longdesc|usemap|style|class|src|onmouseover|onmouseout|onLoad|onclick|border|alt=|title|hspace|vspace|width|height|align|umbracoorgwidth|umbracoorgheight|onresize|onresizestart|onresizeend|rel],

  • Seth Niemuth 275 posts 397 karma points
    May 23, 2012 @ 17:04
    Seth Niemuth
    0

    In config\UmbracoSettings.config you need to specify the allowed attributes for images as well. It is near the top of the config in this section:

     

     <imaging>
          <!-- what file extension that should cause umbraco to create thumbnails -->
          <imageFileTypes>jpeg,jpg,gif,bmp,png,tiff,tif</imageFileTypes>
          <!-- what attributes that are allowed in the editor on an img tag -->
          <allowedAttributes>alt,border,class,style,align,id,name,onclick,usemap</allowedAttributes>
        </imaging>
Please Sign in or register to post replies

Write your reply to:

Draft