Skip to content

Feature: Improve $wrapLeafNodesInElements's input parameter createElement #2557

@aquarius-wing

Description

@aquarius-wing

I need createElement parameter turn to (targetNode: LexicalNode) => ElementNode

Because I have some node with custom properties just like a paragraph with pinOnMap, when I want it turn to heading, the pinOnMap property is lost.

I need targetNode in createElement function's input parameters list, so I can read it and set to new node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement over existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions