material-design-for-wordpress
material-design-for-wordpress copied to clipboard
Inline icon backspace
Bug Description
When clearing icon with backspace: It adds additional whitespace in editor.
We are using formatting tool api, when hitting backspace it removes icon char one at a time causing extra whitespace.
Example:
https://user-images.githubusercontent.com/5015489/131833552-4ed9e55e-cc59-46ef-93e6-9fa6692a8c18.mp4
Expected Behaviour
Steps to reproduce
- Insert inline icon via formatting tool.
- Try to remove icon via backspace.
- See additional whitespace.
Screenshots
Additional context
- WordPress version:
- Plugin version:
- Gutenberg plugin version (if applicable):
- PHP version:
- OS:
- Browser: [e.g. chrome, safari]
- Device: [e.g. iPhone6]
Do not alter or remove anything below. The following sections will be managed by moderators only.