fix https://github.com/daviferreira/medium-editor/issues/188
Merge with latest changes