[bugfix] fix AttributeError for editor.py

Change-Id: Ica55aeed03d5df308ccd15807e0173c997544033
Merge "[bugfix] fix AttributeError for editor.py"