Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Improve control of content onCopy #721

@sarmstrong

Description

@sarmstrong

Do you want to request a feature or report a bug?
Feature

What is the current behavior?

Currently there is no way to manipulate content before being copied to the clipboard. We are currently hacking the Editor instance to override the onCopy handler but this is not ideal.

What is the expected behavior?

Ideally, we could set the text/html that is copied to the clipboard and/or manipulate the editor state that is passed into getFragmentFromSelection(). (lib/editOnCopy.js:32)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions