globocom / megadraft

Megadraft is a Rich Text editor built on top of Facebook's Draft.JS featuring a nice default base of components and extensibility

Home Page:http://megadraft.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copied text with movableBlocks active has extra empty spaces on Chrome

lousander opened this issue · comments

Expected Behavior

Copy and Paste with movableBlocks active should behave exactly the same with it inactive.

Current Behavior

Copying text also copies extra empty spaces from the move-control component.

Steps to Reproduce on Chrome

  1. With movableBlocks active, double click to select text on a block with another text block underneath it
  2. Copy the selected text and paste it
  3. Pasted text should come with 3 empty spaces whereas on base Megadraft comes with only one empty space.

Related draft-js issue: facebookarchive/draft-js#402