i am using ckeditor and i have vary strange issue.
it remove automatically empty <span>
for example
<span class="new-class"></span>
removed automatically.
i am searching for solution for last 2 days but no success. i try to put following code in
config.js
CKEDITOR.config.allowedContent = true;
but no success.
i also add following code in html where i use ckeditor but no success.
<script>
var editor = CKEDITOR.replace( 'editor1', {
allowedContent: true,
} );
</script>
thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…