How to prevent CKEditor replacing spaces with  ?

后端 未结 3 1364
醉梦人生
醉梦人生 2021-02-14 20:24

I\'m facing an issue with CKEditor 4, I need to have an output without any html entity so I added config.entities = false; in my config, but some  

3条回答
  •  天命终不由人
    2021-02-14 21:19

    I needed to change the regular expression Imeus sent, in my case, I use TYPO3 and needed to edit the backend editor. This one didn't work. Maybe it can help another one that has the same problem :)

    return text.replace(/ /g, ' ');
    

提交回复
热议问题