Skip to content

strange code copy behavior #393

@nnaydenow

Description

@nnaydenow

My editor has file which has following html code as source.

<!-- playground-hide -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sample</title>
</head>

<body>
    <!-- playground-hide-end -->
    <button>Some visible content>
    <!-- playground-hide -->
    <script type="module" src="main.js"></script>
</body>

</html>
<!-- playground-hide-end -->

If I do cmd + a, then cmd+v the whole page content is pasted even if only the <button>Some visible content> is the only displayed content inside the editor.

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