Skip to content

[BUG] reinit with fontSize doesn't update the editor #108

@be5invis

Description

@be5invis

I was using reinit to resize the text in React and I found that it is not effective.

 // Handle prop updates (theme, toolbar, etc)
React.useEffect(() => {
    if (overtypeRef.current) {
        console.log("Updating overtype font size to", $.textSize);
        overtypeRef.current.reinit({
            fontSize: `${props.textSize}px`,
        });
    }
}, [props.textSize]);

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