Rich Text Editor Strips Image Tag Options
ehegyi
Posted: Wednesday, February 27, 2008 4:54:38 PM
Rank: Newbie

Joined: 2/27/2008
Posts: 3
Hi,

When I insert an image into the rich text editor in Umbraco, upon save the image tag remains but the gif extension in the src attribute is removed:

eg.
<img src="/media/3141/myImage." alt="" width="294" height="50" />

Is there a setting somewhere in a config file that needs to be changed to stop this?

Thanks,

ehegyi
ehegyi
Posted: Wednesday, February 27, 2008 4:56:45 PM
Rank: Newbie

Joined: 2/27/2008
Posts: 3
P.S.

Im using Umbraco 3 Codeplex version 29463, though it fails with the latest version too.
I'm running Win Vista and have the problem in both IE7 and FF
robm
Posted: Friday, February 29, 2008 12:07:03 AM
Rank: Enthusiast

Joined: 6/22/2007
Posts: 29
Check your tidy.cfg file. Mine was missing in the download of Umbraco 3.0.3 and I had all sorts of problems with img elements being stripped out and other problem, all caused by a overly aggressive tidy stripping out things it shouldn't.
You might also disable tidy (<TidyEditorContent>False</TidyEditorContent>) in the umbracoSettings.config (config folder) and see if that makes a difference.

Cheers
Rob
ehegyi
Posted: Saturday, March 01, 2008 10:44:55 PM
Rank: Newbie

Joined: 2/27/2008
Posts: 3
Thanks but no luck setting use tidy to false. But your right it ready does strange things with the image tag, last time I published, it simply removed the src attribute from all the image tags, not the just the image gif extension.

So I'll have to use a TextArea until this gets resolved.
mgrdcm
Posted: Thursday, May 01, 2008 4:08:39 PM
Rank: Newbie

Joined: 4/15/2008
Posts: 17
Location: Indianapolis, IN
ehegyi wrote:
Thanks but no luck setting use tidy to false. But your right it ready does strange things with the image tag, last time I published, it simply removed the src attribute from all the image tags, not the just the image gif extension.

So I'll have to use a TextArea until this gets resolved.


Did you have any luck fixing this? I'm having this issue as well (with 3.0.5).

I have tidy set to false (the default), but I don't have any tidy.cfg file. Is there a source for this file?
kzrystof
Posted: Friday, May 23, 2008 9:49:22 PM
Rank: Newbie

Joined: 3/3/2008
Posts: 11
I recently had the same problem, and the solution for me was to edit the validElements section of my tinyMceConfig.config file. Find where your img tag is set, and change its 'rel' attribute 'rel=0'. Hopefully, this saves somebody else some time. Original answer here: http://www.codeplex.com/umbraco/WorkItem/View.aspx?WorkItemId=11808.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.