Problem/Motivation

Hello, i can't save if i use "style" with ckeditor 5.

I have one error "didn't find my markup".

Steps to reproduce

Add a "style" into ckeditor like :

span.ckeditor-mise-en-avant|Mise en avant

Comments

Asterovim created an issue. See original summary.

asterovim’s picture

Issue summary: View changes
alpha2zee’s picture

Assigned: Unassigned » alpha2zee

The htmLawed module's default setting is probably the cause of this issue (see documentation). This prevents use of the 'style' attribute.

alpha2zee’s picture

Try removing 'style' from the 'deny_attribute' parameter of htmLawed setting.

asterovim’s picture

Try removing 'style' from the 'deny_attribute' parameter of htmLawed setting.

Thanks you but it's didn't work.

https://i.postimg.cc/NF6Mxd9s/image.png

https://i.postimg.cc/7Yj79WW4/image.png

https://i.postimg.cc/KzbDNH4j/image.png

https://i.postimg.cc/zGRw1rg3/image.png

alpha2zee’s picture

OK. So, after removing 'style' from 'deny_attribute', you are still not able to use CKEditor's style. But, without using CKEditor, can you input HTML text with 'style'? E.g., some text like <span style='color: black'>test</span>. Can you check? What I am saying is: Is the issue in CKEditor and not htmLawed?

alpha2zee’s picture

Status: Active » Closed (works as designed)