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
- Create a widget plugin called "justData"
- Set its requiredContent to:
'div[data-my-attr]'
- Create a widget plugin called "dataAndClass"
- Set its requiredContent to:
'div[data-my-attr](my-class)'
- Create a widget plugin called "containerForDataAndClass"
- Add an editable field to the widget
- Set the editable's allowedContent to:
'div[!data-my-attr](!my-class)'
- 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)
Change History (3)
comment:1 Changed 8 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.5.11 → 4.5.0 |
Changed 8 years ago by
Attachment: | 16700_widgets.zip added |
---|
Bug occuring since 4.5. Attached the implemented widgets so that the person dealing with this bug doesn't have to start from scratch.