We have moved to GitHub Issues
Created by Sebastiaan Janssen 19 Aug 2012, 14:55:11 Updated by Sebastiaan Janssen 18 Jul 2013, 15:10:06
Steps to reproduce:
Cause: The Regex the find attribute names and values in umbraco.editorControls.tinymce.tinyMCEImageHelper.cleanImages(string html) for each tag matches the attribute name greedy. If the attribute value ends with an equal sign, it is treated as the attribute name. See attached screenshot from The Regex Coach.
Fix: .\components\editorControls\tinymce\tinyMCEImageHelper.cs, Line 32:
''Originally created on CodePlex by [IndR|http://www.codeplex.com/site/users/view/IndR]'' on 8/5/2012 11:37:18 PM [Codeplex ID: 30976 - Codeplex Votes: 1]
I am unable to past an image into TinyMce so I think that feature might've gone away after we upgraded to a newer version of it last year.
I can paste some data in there though so when I put this in the HTML, everything saves just fine:
Thanks for having a look at this. When I was seeing this issue I was just pasting into the HTML too. I can confirm that that this red dot example does work for me as well.
I am however seeing this issue happening consistently for a lot of images, on several Umbraco installs. Would the best course be to raise a new bug with these examples?
No need, just re-open the issue with an example that's reproducible!
The following example seems to strip all the attributes from the image tag. I am opening the html view for a rich text area and pasting this in. It shows correctly until save and publish and then the attributes are stripped out.
Thanks Fraser for the example! Fixed in changeset d88494e90ed2a096cc1cec4c43c7c5e1436acf79
Backwards Compatible: True
Fix Submitted: Inline code
Affected versions: 4.11.9, 4.11.8
Due in version: 6.1.3