ckeditor / ckeditor5-demos

Source codes for demos available at https://ckeditor.com/ckeditor-5/demo/
42 stars 61 forks source link

Is there a way to prevent adding 'span' into 'p' element when changing font or size #28

Open pascalf22 opened 1 year ago

pascalf22 commented 1 year ago

Hi,

First of all, i really love CKEditor ! I have a question, is there a way to prevent inserting 'span' into 'p' elements ?,when formatting font,

I'm asking it because a SEO point of view, i think it is not a good idea or it's not the best practice to have a HTML source code like this :

<p>
    <span style="font-family:'Lucida Sans Unicode', 'Lucida Grande', sans-serif;">Test 1</span>
</p>
<p>
    <span style="font-family:'Lucida Sans Unicode', 'Lucida Grande', sans-serif;font-size:22px;">Line 1</span>
</p>
<p>
    <span style="font-family:Tahoma, Geneva, sans-serif;font-size:20px;">Line 2</span>
</p>

Thanks for your help ! Have a great day Pascal