Skip to content

Add replaceWith method to text node #271

Closed
@McFizh

Description

@McFizh

Would it be possible to have replaceWith method added to next nodes. Example use case:

Text node has content 'word1 word2 word3' and I would like to replace it with for example the following html:

'word1 <b>word2</b> word3'

This would be really easy to do with:

node.replaceWith('word1 <b>word2</b> word3');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions