Skip to content

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

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]);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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