Attach onActiveEditorChange event listener only if Live Preview is active.