#63982RTE: Webkit may insert line-height style attribute on paste
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:- Add
- Insert a new text element
- Type a, ENTER, b
- Make sure the text is colored red, i.e. the contentCSS was correctly loaded
- Select all text with Ctrl+A
- Click the “Bulleted List” button in the toolbar
- Copy the text with Ctrl+C
- Go to the end of the text with END
- Type ENTER two times to generate a new paragraph
- Paste the text with Ctrl+V
- 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.