indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0:
indvd00m@0: indvd00m@0:
indvd00m@0: This sample shows how to configure CKEditor to output valid
indvd00m@0: XHTML 1.1 code.
indvd00m@0: Deprecated elements (<font>, <u>) or attributes
indvd00m@0: (size, face) will be replaced with XHTML compliant code.
indvd00m@0:
indvd00m@0: To add a CKEditor instance outputting valid XHTML code, load the editor using a standard indvd00m@0: JavaScript call and define CKEditor features to use the XHTML compliant elements and styles. indvd00m@0:
indvd00m@0:indvd00m@0: A snippet of the configuration code can be seen below; check the source of this page for indvd00m@0: full definition: indvd00m@0:
indvd00m@0:
indvd00m@0: CKEDITOR.replace( 'textarea_id', {
indvd00m@0: contentsCss: 'assets/outputxhtml.css',
indvd00m@0:
indvd00m@0: coreStyles_bold: {
indvd00m@0: element: 'span',
indvd00m@0: attributes: { 'class': 'Bold' }
indvd00m@0: },
indvd00m@0: coreStyles_italic: {
indvd00m@0: element: 'span',
indvd00m@0: attributes: { 'class': 'Italic' }
indvd00m@0: },
indvd00m@0:
indvd00m@0: ...
indvd00m@0: });
indvd00m@0: