Opened 12 years ago

Last modified 12 years ago

#10006 closed Bug

Strip entire inline element after removing required attr/style — at Initial Version

Reported by: Piotrek Koszuliński Owned by:
Priority: Normal Milestone: CKEditor 4.1 RC
Component: General Version:
Keywords: Drupal Cc: wim.leers@…

Description

E.g. <a name=""></a> should be removed when name attribute was filtered out.

Similar case: currently <span> is allowed because plugins like font, colorbutton allow styles which base on span elements. So when pasting e.g. <span lang="pl">, lang is filtered out, but <span> left.

In fact, span is a special case, because when it doesn't have any attrs/styles/classes it should be removed automatically. So, to simplify implementation we can make two fixes:

  1. There should be a way to mark attrs/style/class as required. Element is marked by this rule as valid (element has to be valid, otherwise it will be filtered out) only if it has this required property.
  2. After applying filter, spans without attributes should be removed.

Change History (0)

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