Opened 7 years ago

Closed 6 years ago

#9287 closed Bug (fixed)

Duplicate width (attribute and style)

Reported by: Flavien CROCHARD Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Firefox Cc:

Description

To reproduce :

  1. Create a new table.
  2. In wysiwyg mode, resize it
  3. Right clic on the table, and enter a new width.
  4. Go to source, the table contains 2 widths (<table width="xxx" style="width: xxxpx")

Thanks in advance.

Change History (6)

comment:1 Changed 7 years ago by Jakub Ś

Keywords: Firefox added; firefox removed
Status: newconfirmed
Version: 3.6.33.0

Problem has been reproducible from CKEditor 3.0. I believe that this is because CKEditor operates on styles but Firefox resize feature operates on attributes. This may be the reason why there are two widths.

Please note that this problem occurs in CKEditor 4.0.2 as well.

Last edited 6 years ago by Jakub Ś (previous) (diff)

comment:2 Changed 6 years ago by Jakub Ś

Milestone: CKEditor 4.1

This ticket no longer occurs in CKE 4.1RC. Once we release 4.1 it can be closed.

comment:3 Changed 6 years ago by Jakub Ś

Milestone: CKEditor 4.1

#10194 was marked as duplicate.

comment:4 Changed 6 years ago by Max

I've checked this in 4.1RC here: http://ckeditor.com/ckeditor_4.1rc/samples/datafiltering.html Still have a problem in FF 19.0:

  1. Create new table (def. Width = 500)
  2. In WYSIWYG mode, resize it
  3. Right click -> Table properties: Width field is empty! (if i look in Firebug to code, i'll see something like "<table width="748" height="405" cellspacing="1" cellpadding="1" border="1" _moz_resizing="true">")
  4. Press Source - it show "<table border="1" cellpadding="1" cellspacing="1" style="height:405px; width:748px">"
  5. Press Source again -> choose Table properties: now i can see width and height

It seems to me that some transforms apply when I press Source.

comment:5 Changed 6 years ago by Jakub Ś

Yes there are some transformations as we can't change native browser behaviour. It writes values to attributes and that is it. We can only workaround this.

Particular issue with missing width value was described here: #10201.

Please note that 2 values will probably always be available in Firebug but user looking at Source and WYSIWYG mode will not be affected by these.

comment:6 Changed 6 years ago by Jakub Ś

Resolution: fixed
Status: confirmedclosed

Contrary to #10201 this TC no longer occurs in CKEditor 4.1.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy