Opened 8 years ago

Last modified 8 years ago

#16700 confirmed Bug

Widget editables allowedContent does not filter correctly

Reported by: Kristiaan Van den Eynde Owned by:
Priority: Normal Milestone:
Component: UI : Toolbar Version: 4.5.0
Keywords: Cc:

Description

Steps to reproduce

  1. Create a widget plugin called "justData"
  2. Set its requiredContent to:

'div[data-my-attr]'

  1. Create a widget plugin called "dataAndClass"
  2. Set its requiredContent to:

'div[data-my-attr](my-class)'

  1. Create a widget plugin called "containerForDataAndClass"
  2. Add an editable field to the widget
  3. Set the editable's allowedContent to:

'div[!data-my-attr](!my-class)'

  1. In the actual editor, create a "containerForDataAndClass"

Expected result

I can only add a widget of type "dataAndClass" in the container

Actual result

I can add both a widget of type "dataAndClass" and "justData" in the container. When switching to source view and back, the "justData" widget code is removed, however, as it does not match the allowedContent for the editable.

In summary

I can use a button that I should not be able to use inside of the editable ("justData")

Attachments (1)

16700_widgets.zip (3.8 KB) - added by Tade0 8 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 8 years ago by Tade0

Status: newconfirmed
Version: 4.5.114.5.0

Changed 8 years ago by Tade0

Attachment: 16700_widgets.zip added

comment:2 Changed 8 years ago by Tade0

Bug occuring since 4.5. Attached the implemented widgets so that the person dealing with this bug doesn't have to start from scratch.

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