text的判断应该放到上面：
```
text = text or @editor.formatter.clearHtml(...)
```