最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - CKEDITOR - turn off html encoding - Stack Overflow

programmeradmin6浏览0评论

In my CKEDITOR, when I type following letters:

ó " ... whitespace and more

I am getting the following HTML:

ó „ …   and so on...

How can I turn this off, so that the server will receive "normal" letters?

In my CKEDITOR, when I type following letters:

ó " ... whitespace and more

I am getting the following HTML:

ó „ …   and so on...

How can I turn this off, so that the server will receive "normal" letters?

Share Improve this question asked Dec 17, 2013 at 22:09 ojekojek 10.1k22 gold badges74 silver badges115 bronze badges 3
  • You should fix your server to accept valid HTML. How do you handle &? – SLaks Commented Dec 17, 2013 at 22:25
  • @SLaks: My server handles it without a problem. I just don't want CKEDITOR to convert normal letters into encoded values. – ojek Commented Dec 17, 2013 at 23:04
  • Make sure your page encoding is UTF-8. Otherwise you'll get meta-characters inserted because ordinary encoding can't handle ASCII values beyond 127. CKEDITOR may still not do it correctly, but at least you'll have the page encoding correct. – user1329482 Commented Dec 18, 2013 at 0:03
Add a comment  | 

1 Answer 1

Reset to default 22

I managed to reduce the number of characters converted by adding this to my config file:

config.htmlEncodeOutput = false;
config.entities = false;

But whitespaces are still being converted into  ...

发布评论

评论列表(0)

  1. 暂无评论