medium-editor icon indicating copy to clipboard operation
medium-editor copied to clipboard

copy paste html code - space get's removed for some words - html with anchor tags

Open ranjur opened this issue 4 years ago • 0 comments

Description

When we copy-paste the HTML content to the editor it lost's few spaces between few words.

Steps to reproduce

  1. Copy an HTML content which contains few anchors tags(First para: https://en.wikipedia.org/wiki/India)
  2. Paste it in the medium editor area (https://jsfiddle.net/8c9v6jyz/)
  3. Space lost between seventh-largest country Medium Editor extension example - JSFiddle

Expected behavior: Space should be there between all the words(If HTML contains that space)

Actual behavior: Space lost in-between few words.

Link to an example: https://jsfiddle.net/8c9v6jyz/ https://drive.google.com/file/d/1wGO_VTEcVe45TmGW-3GHWrSXqJXi9WP-/view

Versions

  • medium-editor: 5.23.3
  • browser: Google Chrome Version 73.0.3683.86 (Official Build) (64-bit)
  • OS: ubuntu 14.04 LTS

ranjur avatar Nov 11 '19 11:11 ranjur