[front-end] move SCEditor bug-fix hack out of controller