How can I configure the CKEditor that empty tags like <img>, <hr>, <br> are not closed.
I have tried to remove "img:1" in the source. But that had the effect of creating "<br></br>".
Thats not what I want.
Even setting the docType in the cofig.js to html 4.01 strict, did not help.
thanks
I have tried to remove "img:1" in the source. But that had the effect of creating "<br></br>".
Thats not what I want.
Even setting the docType in the cofig.js to html 4.01 strict, did not help.
thanks

Re: <img> instead of <img />
CKEDITOR.on( 'instanceReady', function( ev ) { // Ends self closing tags the HTML4 way, like <br>. ev.editor.dataProcessor.writer.selfClosingEnd = '>'; });Output FormattingCKEditor Developer's Guide
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: <img> instead of <img />
sorry for my late thank you. Your advice works perfectly. Placed on the config.js - and it does the job. Great!!
webbureau
Re: <img> instead of <img />
Re: <img> instead of <img />
"Setting Configuration"
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!