WordPress.org

Make WordPress Core

Opened 14 years ago

Last modified 14 years ago

#5087 closed defect (bug)

WYSIWYG Insert/Edit Image button issues — at Initial Version

Reported by: bl968 Owned by:
Milestone: 2.5 Priority: high
Severity: critical Version: 2.3
Component: TinyMCE Keywords: reporter-feedback needs-patch WYSIWYG image properties
Focuses: Cc:

Description

Line wraps inserted on html code segments. No linewraps exist on image code in editors.

Internet explorer

Inserting image into post then editing with the insert/edit image wysiwyg button results in duplicated image tag and in both image tags it sets width and height to 1, unless you are setting the width and height to something else then it sets your width and height correctly but still duplicates image code. Example code below.

{{{ <img border="0" align="left" width="1" src="http://www.ablogsite/wp-content/uploads/2007/09/test1.jpg" alt="testing" height="1" />
<img border="0" align="left" width="1" src="http://www.ablogsite/wp-content/uploads/2007/09/test1.jpg" alt="testing" height="1" /> }}}

In the above example the only action I took on the insert/edit image dialog page was to set the alignment to left.

{{{ <a href="http://www.ablogsite.com/wp-content/uploads/2007/09/test.JPG"><img border="0" align="left" width="100" src="http://www.ablogsite.com/wp-content/uploads/2007/09/test.JPG" height="100" /></a>
<img border="0" align="left" width="100" src="http://www.ablogsite.com/wp-content/uploads/2007/09/test.JPG" height="100" /> }}}

Above is an example with setting alignment to left and width and height both to 100.

Confirmed in Mozilla Firefox as well

In Mozilla Firefox still duplicates the image code but does not set the image width and height fields.

{{{ <img src="http://www.ablogsite/wp-content/uploads/2007/09/test1.jpg" alt="testing" />
<img src="http://www.ablogsite/wp-content/uploads/2007/09/test1.jpg" alt="testing" align="left" /> }}}

Problem confirmed with no activated plugins.

Why Critical

I run a community blog site with many authors of varying abilities. For some the only option is the wysiwyg editor. We also use images in articles extensively. Every article has at least one image. A picture is worth a thousand words afterall.

Change History (0)

Note: See TracTickets for help on using tickets.