Opened 11 years ago

Last modified 11 years ago

#9178 confirmed Bug

Setting the selected option in Selection Field doesn't work properly.

Reported by: Larry Hinderks Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:


To reproduce

  1. Go to the CkEditor demo page
  2. Clear all content from the page
  3. Click on the Selection Field icon to add a select list
  4. Place the cursor in the "Text" field, type "aaa" and click on the "Add" button
  5. Place the cursor in the "Text" field again, type "bbb" and click on the "Add" button
  6. Click on the "bbb" field just added which is below the "aaa" field
  7. Click Set As Selected Value to make "bbb" the selected value.
  8. Go to source mode and notice the that selected="selected" is set on both the "aaa" and "bbb" options (see html below)
	<select><option selected="selected" value="">aaa</option><option selected="selected" value="">bbb</option></select></p>

I would expect that setting the "bbb" field would remove the selected="selected" tag on the "aaa" entry and place it on the "bbb" entry since the "Allow Multiple Selections" check box has not been checked.

Change History (2)

comment:1 Changed 11 years ago by Larry Hinderks

I forgot to say that this occurs in CkEditor 3.6.4 and IE9.

comment:2 Changed 11 years ago by Jakub Ś

Status: newconfirmed
Version: 3.0

Seems that issue has been reproducible in all browsers from CKEditor 3.0.

Once you use "Set as selected value" button all options get selected="selected" attribute.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy