Skip to main content

Home > blockly > comments > CommentView > addTextChangeListener

comments.CommentView.addTextChangeListener() method

Registers a callback that listens for text changes on the comment editor.

Signature:

addTextChangeListener(listener: (oldText: string, newText: string) => void): void;

Parameters

ParameterTypeDescription
listener(oldText: string, newText: string) => void

Returns:

void