Issue Bug Closed

#63982RTE: Webkit may insert line-height style attribute on paste

Philipp Kerling 12/18/14, 19:25 updated 10/02/18, 11:48

Description

When copying some elements (I don’t know the exact conditions yet) that have a custom line-height set by CSS rules, htmlarea inserts unneeded and unwanted inline style attributes to elements.

Steps to reproduce:
  1. Add
  2. Insert a new text element
  3. Type a, ENTER, b
  4. Make sure the text is colored red, i.e. the contentCSS was correctly loaded
  5. Select all text with Ctrl+A
  6. Click the “Bulleted List” button in the toolbar
  7. Copy the text with Ctrl+C
  8. Go to the end of the text with END
  9. Type ENTER two times to generate a new paragraph
  10. Paste the text with Ctrl+V
  11. Look at the generated HTML source. It will be:
rmtoka54a16bd915c7b49c1
The style=”“ is unnecessary.

It only happens in Webkit browsers (tested in epiphany). Happens every time.

Reviews 2