Where does "font-size: 13.333333969116211px" come from?

We use CKEditor in our application to allow users to edit specific email templates, but for some reason many of these patterns end p- and span-tags with irritating text styles:

<p style="font-size: 13.333333969116211px;">

Or with row height:

<span style="font-size: 13.333333969116211px; line-height: 1.231em;">

Our clients complain that their emails come out with strange text styles and give a very clear idea that they did not add these styles manually (which makes sense).

The strange thing is: when we save the template ourselves using the same editor, these strange styles disappear from the original HTML (in the database). Then after a while all these styles return there - presumably when clients (re) use our editor.

We decided Google that exact line, font-size: 13.333333969116211pxand - to our surprise - found 80,000 completely unrelated results . The font size value is obviously created by some kind of calculation (100 / 7.5), but I don’t know where to look.

Does anyone know where these lines come from and how we get rid of them?

+4
source share
1 answer

These ugly tags <span>and even more ugly inline styles are created by the embedded version backspace/ deletein Blink and Webkit browsers. They can also be displayed when copying and pasting content or dragging and dropping.

Almost two years ago, I reported problems with backspaceand deletehere:

, , ( , ), (, , ). , , , , , - .

CKEditor 4.4.1 4.4.2 backspace delete. , CKEditor -, , Advanced Content Filter, HTML- .

- , CKEditor 4.5.0. 2015 .

+2

All Articles