Opened 4 years ago

Last modified 4 years ago

#14455 confirmed New Feature

Control id attribute when pasting html to editor.

Reported by: kkrzton Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc: Marek Lewandowski

Description

When pasting html to editor, it may contain some elements with id attributes. Pasting such content may result in invalid html with more than one element with identical id values.

While pasting, pasted and existing (in editor) content should be checked for identical ids. Such conflicts should be solved. There are few possibilities:

  1. Remove id attributes from pasted content.
  2. Remove id attributes from content in editor.
  3. Rename id attributes in pasted content (may be tricky in some cases).
  4. Rename id attributes in editor content (may be tricky in some cases).
  5. Do nothing, so the user should be aware that he can generate invalid html.

I think solutions 1 and 3 seems most reasonable.

Change History (1)

comment:1 Changed 4 years ago by kkrzton

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