Page MenuHomePhabricator

VisualEditor: Pasting into nodes with whitespace inserts ☀
Closed, ResolvedPublic


I copied part of a header from one page on se.wikimedia and pasted in an already started header on another page. After my paste the symbol ☀ was added:

(Page I copied from: )

I used Google Chrome Version 35.0.1916.153 on Ubuntu 14.04.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:33 AM
bzimport set Reference to bz69595.

Can you give more detailed steps to reproduce. Did you copy from read mode, or from VE? Where exactly did you select, and where exactly did you paste?

Nevermind, managed to reproduce.

This happens when pasting into any node with inner whitespace in it's Parsoid HTML (e.g. <h2> Foo </h2>)

gerritadmin wrote:

Change 154407 had a related patch set uploaded by Esanders:
Ignore whitespace when generating paste context

gerritadmin wrote:

Change 154407 merged by jenkins-bot:
Ignore whitespace when generating paste context