Opened 10 years ago

Last modified 10 years ago

#11117 confirmed Bug

Widget editables - does not prevent from dropping unsuportted markup — at Version 1

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

Description (last modified by Marek Lewandowski)

Widget editables - does not prevent from dropping unsuportted markup

since: 4.3 until major

Currently you are able to drop fancy html markup inside content editable. That allows you to put headers, quotes etc. It's caused by browsers builtin drag'n'drop support.

  1. open any image2 sample (/samples/plugins/image2/image2.html)
  2. make following selection
    [Broadcasting and quotes
    
    Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:
    
    One small step for [a] man, one giant leap for mankind.]
    

like on that image

  1. drag it into image widgets content editable

Expected result:
Dragging should be either blocked or stripped.

Current result:
All the markup is placed within editable.

Related issues:
#11115 - Widgets are not filtered by ACF when pasting

Change History (3)

Changed 10 years ago by Marek Lewandowski

Attachment: widgetDropContent.png added

Sample result

Changed 10 years ago by Marek Lewandowski

Attachment: widgetMarkupSelection.png added

selection

comment:1 Changed 10 years ago by Marek Lewandowski

Description: modified (diff)
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