material-design-for-wordpress icon indicating copy to clipboard operation
material-design-for-wordpress copied to clipboard

Inline icon backspace

Open PatelUtkarsh opened this issue 4 years ago • 0 comments

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

  1. Insert inline icon via formatting tool.
  2. Try to remove icon via backspace.
  3. 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.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry

PatelUtkarsh avatar Sep 02 '21 11:09 PatelUtkarsh