Note: auto-close tags in HTML text with CKEditor

CKEditor API call to auto-close tags in HTML text:

htmlContent = new CKEDITOR.htmlDataProcessor(new CKEDITOR.editor(CKEDITOR.config, document.createElement("textarea"))).toDataFormat(htmlContent);
Advertisements