Skip to content

Add bind:innerText for contenteditable #3311

@khorpy

Description

@khorpy

There is already bind:innerHTML and bind:textContent implemented for elements with contenteditable="true". But there is also a third property that is also would nice to have: bind:innerText.

InnerText approximates the text the user would get if they highlighted the contents of the element with the cursor and then copied it to the clipboard

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerChanges relating to the compilerfeature requestgood first issueA small, encapsulated issue, ideal for a new contributor to Svelte to tackle.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions