Remove else:

```
        if (startChar !== -1 && HTMLUtils.getTagAttributes(this.editor, this.editor.getCursorPos()).length === 0) {
            return query;
        }

        return null;
```