Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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],
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>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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],
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:
is working on a reply...