开发者

CKEditor fails to parse style setting

开发者 https://www.devze.com 2023-02-14 02:30 出处:网络
When I save a document in CKEditor (CKEditor 3.5.2), the saved HTML is right. But when I open that HTML again for editing (putting the HTML in a textarea and then load CKEditor), CKEditor parses the s

When I save a document in CKEditor (CKEditor 3.5.2), the saved HTML is right. But when I open that HTML again for editing (putting the HTML in a textarea and then load CKEditor), CKEditor parses the style setting wrong.

If I have a code that looks like this:

<div style="font-family: arial; font-size: 11px; background: green;">Hello</div>

And then open it with CKEditor, it looks like this:

<div style="font-family: arial font-size: 11px background: green">Hello</div>

The ; has disappeared. It does not matter which style settings I use, the semicolon disappears in all cases.

It does not matter what element the style setting is in. The same problem appears in img, div, a, span... and so on.

What shall I do? I am about 100% sure it is ckeditor that is the problem. I open the HTML right from the database. But what else than ckeditor could it be?

I do not use any CMS site, j开发者_运维百科ust pure php.


might be some configuration issues.

reinstall properly because i am also using ckeditor it's works fine in all browser and support all kind of html or css tags

0

精彩评论

暂无评论...
验证码 换一张
取 消