html5 requires self-closing tags not to have a slash, eg.
instead of
.

how can i set ckeditor to do this?

i found
http://docs.ckeditor.com/#!/api/CKEDITOR.htmlWriter-property-selfClosingEnd

but i have no idea on where to go with this...

Comments

mudjunky’s picture

Issue summary: View changes

I added the following to sites/all/modules/ckeditor/ckeditor.config.js and flushed the cache.

CKEDITOR.on( 'instanceReady', function( ev ) {
  // Ends self-closing tags the HTML5 way, like <br>.
  ev.editor.dataProcessor.writer.selfClosingEnd = '>';
});