- whitespaceProcessor.js (there are two of these, so make sure you’re modifying the one for the touch ui - /etc/clientlibs/granite/coralui/optional/rte/js/core/
- HTMLSerializer.js
In WhitespaceProcessor in tagname look at DEFAULT_REMOVAL_RULES and remove the ones that shouldn’t be removed, also change keepChildren to “true” (this should keep it from removing the other nodes)
In HTMLSerializer change the serializeTextNode method to return the value without the replace.
I have followed above steps to make work but no luck . Currently I am working on 6.2
Thanks in advance