Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pascalf22 opened this issue Aug 31, 2023 · 0 comments

Comments

@pascalf22
Copy link

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

@pascalf22 pascalf22 changed the title Can we prevent adding span into 'p' element when changing font or size Is there a way to prevent adding 'span' into 'p' element when changing font or size Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant