Opened 9 years ago

Last modified 9 years ago

#13965 confirmed Bug

Combo boxes don't display with duplicate id's

Reported by: guinness Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Cc:

Description

Steps to reproduce

  1. Add two div sections to page with same id and contenteditable="true"
  2. Click on 1st div and select styles dropdown - works
  3. Click on 2nd div and select styles dropdown - fails

Expected result

Styles dropdown list should be shown on both

Actual result

Only first dropdown menu displays

Other details (browser, OS, CKEditor version, installed plugins)

Chrome/Edge, Windows 10, 4.5.5, Standard

Although this isn't a bug per se (duplicate id's), the editor should show a warning with an alert or console message to describe the problem as it's not obvious what the issue is.

Attachments (1)

Test.htm (517 bytes) - added by guinness 9 years ago.
Sample htm file reproducing problem

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by guinness

Attachment: Test.htm added

Sample htm file reproducing problem

comment:1 Changed 9 years ago by Jakub Ś

Status: newconfirmed
Version: 4.5.54.0

Problem can be reproduced from CKEditor 4.0.

IMHO CKEditor should inform that such instance already exists (just like in case of replace method) especially that CKEDITOR.instances.editor1 is created and available for usage.

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