fix https://github.com/daviferreira/medium-editor/commit/8c610b7bca9ff1c997862d346861a7418ed5ea1b#commitcomment-6156158