Opened 6 years ago

Last modified 6 years ago

#10766 confirmed Bug

[Webkit] Irresistible content when pasting into entirely selected editable

Reported by: Olek Nowodziński Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 4.0
Keywords: Cc:

Description

  1. Open replacebycode
  2. Set the following HTML:
    <p>Hello world!</p>
    <p style="text-align:right"><a href="#">Wooo! I&#39;m so sticky!</a></p>
    
  3. Select the paragraph:
    <p>[Hello world!]</p>
    
  4. C-c
  5. C-a
  6. C-v
  7. Switch to Source and back to WYSIWYG.

Note there's an unwanted paragraph aligned to the right at the end of editable:

<p>Hello world!</p>
<p style="text-align:right">&nbsp;</p>

Now remove the link from the original content and repeat all the steps. Use the following startup data:

<p>Hello world!</p>
<p style="text-align:right">Yay! I&#39;m not so sticky anymore!</p>

Result is just perfect:

<p>Hello world!</p>

Attachments (1)

10766.html (662 bytes) - added by Olek Nowodziński 6 years ago.
The sample.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 6 years ago by Olek Nowodziński

Version: 4.0

Changed 6 years ago by Olek Nowodziński

Attachment: 10766.html added

The sample.

comment:2 Changed 6 years ago by Piotrek Koszuliński

Status: newconfirmed
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy