Also disable button in text editor when turning off editor expand. Emit event for (de)activating, on and off.