Resets TextBuffer state and sends event to replace a whole text on the opposite side. Used fot setting initial text too.