Opened 11 years ago

Last modified 9 years ago

#11343 confirmed Bug

Drag&drop: inline widgets disappear when forcePasteAsPlainText is set

Reported by: Wiktor Walc Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc: joel.peltonen@…

Description (last modified by Wiktor Walc)

Reported through support channel.

Not sure if related to #11219.

When config.forcePasteAsPlainText is set, dragging&dropping inline widget results in widget being lost. Either drag&drop should be automatically disabled when config.forcePasteAsPlainText is set or widgets should not be lost in this very specific case.

A sample with inline widget is attached, drag & drop the widget and see that it is lost.

Attachments (1)

replacebycode.html (2.0 KB) - added by Wiktor Walc 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by Wiktor Walc

Attachment: replacebycode.html added

comment:1 Changed 11 years ago by Wiktor Walc

Description: modified (diff)

comment:2 Changed 11 years ago by Wiktor Walc

Description: modified (diff)

comment:3 Changed 11 years ago by Piotrek Koszuliński

Status: newconfirmed

The paste "way" is (or rather will be) the single entry point for inserted content, so the same rules applies. So forcePasteAsPlainText has to apply to widgets too. In this case reasonable solution would be to hide drag handler if forcePasteAsPlainText is on.

On the other hand this option is obsolete, since ACF is a much better filter, so every solution or lack of it is odd.

comment:4 Changed 11 years ago by Joel

Cc: joel.peltonen@… added

Add CC

comment:5 Changed 9 years ago by Jakub Ś

#12789 was marked as duplicate. That issue however has proposed Fix. If user doesn't provide pull request it would be worth to check it out.

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