Skip to content

Widgets are not correctly copy-pasted inside editor via Paste Dialog or native context menu #3460

Open

Description

Type of report

Bug

Provide detailed reproduction steps (if any)

  1. Open test: /tests/plugins/widget/manual/clipboardhtml
  2. Select widget and copy it (use toolbar button to do this)
  3. Paste widget in the editor content (via context menu or paste dialog)

Expected result

Widget is correctly pasted.

Actual result

Widget's content is pasted however it's not upcasted to widget form.

Other details

Issue doesn't occur with widgets like MathJax or placeholder. In such cases widget are copied properly.

It seems the core issue is custom getClipboardHtml() method in the above test. The default implementation works fine. This means custom getClipboardHtml() is not supported on iOS/Android for now.

Movie showing how test was performed: clipboardhtml2.mov.zip

  • Browser: iOS/Android
  • OS: Chrome/Safari
  • CKEditor version: 4.13.0
  • Installed CKEditor plugins: widget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    browser:androidThe issue can only be reproduced on a mobile device with Android system.The issue can only be reproduced on a mobile device with Android system.browser:iosThe issue can only be reproduced on a mobile device with iOS.The issue can only be reproduced on a mobile device with iOS.plugin:clipboardThe plugin which probably causes the issue.The plugin which probably causes the issue.plugin:widgetThe plugin which probably causes the issue.The plugin which probably causes the issue.status:confirmedAn issue confirmed by the development team.An issue confirmed by the development team.type:bugA bug.A bug.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions