Opened 6 years ago

Last modified 6 years ago

#11117 confirmed Bug

Widget editables - does not prevent from dropping unsuportted markup

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

Attachments (2)

widgetDropContent.png (107.3 KB) - added by Marek Lewandowski 6 years ago.
Sample result
widgetMarkupSelection.png (41.2 KB) - added by Marek Lewandowski 6 years ago.
selection

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by Marek Lewandowski

Attachment: widgetDropContent.png added

Sample result

Changed 6 years ago by Marek Lewandowski

Attachment: widgetMarkupSelection.png added

selection

comment:1 Changed 6 years ago by Marek Lewandowski

Description: modified (diff)

comment:2 Changed 6 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.3.1
Status: newconfirmed

This is a part of bigger feature which we're missing - DnD support for general content.

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