How to prevent CKEditor replacing spaces with  ?

ckeditor

Solution

These entities:

// Base HTML entities.
var htmlbase = 'nbsp,gt,lt,amp';

Are an exception. To get rid of them you can set `basicEntities: false`. But as docs mention this is an insecure setting. So if you only want to remove ` `, then I should just use regexp on output data (e.g. by adding listener for #getData) or, if you want to be more precise, add your own rule to `htmlFilter` just like `entities` plugin does here.

Problem

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 ` ` appear when - an inline tag is inserted: the space before is replaced with ` ` - text is pasted: every space is replaced with ` ` even with `config.forcePasteAsPlainText = true;` You can check that on any demo by typing test test eg. Do you know how I can prevent this behaviour? Thanks!

Original source

Related problems