Skip to content

Is there a way to get font size and font color information for a selected node? #5701

Discussion options

You must be logged in to vote

Self Answer

const editor = useEditor({
  onFocus({ editor }) {
    console.log(editor?.getAttributes("textStyle"));
  },
  onSelectionUpdate({ editor }) {
    console.log(editor?.getAttributes("textStyle"));
  },
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ryuhangyeong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant