/home/techb158/workloadmatch.com/plugins/ckeditor/samples/old
NameSizeModeActions
assets/-0755rm
dialog/-0755rm
enterkey/-0755rm
htmlwriter/-0755rm
magicline/-0755rm
toolbar/-0755rm
wysiwygarea/-0755rm
ajax.html26210644editdlrm
api.html69690644editdlrm
appendto.html22000644editdlrm
datafiltering.html469220644editdlrm
divreplace.html45260644editdlrm
index.html56490644editdlrm
inlineall.html98810644editdlrm
inlinebycode.html60660644editdlrm
inlinetextarea.html48070644editdlrm
jquery.html74080644editdlrm
readonly.html28100644editdlrm
replacebyclass.html69510644editdlrm
replacebycode.html68550644editdlrm
sample.css47370644editdlrm
sample.js16250644editdlrm
sample_posteddata.php7730644editdlrm
tabindex.html23260644editdlrm
uicolor.html25320644editdlrm
uilanguages.html43730644editdlrm
xhtmlstyle.html67930644editdlrm
Edit: /home/techb158/workloadmatch.com/plugins/ckeditor/samples/old/xhtmlstyle.html (6793B)
XHTML Compliant Output — CKEditor Sample

CKEditor Samples » Producing XHTML Compliant Output

This sample is not maintained anymore. Check out its brand new version in CKEditor SDK.

This sample shows how to configure CKEditor to output valid XHTML 1.1 code. Deprecated elements (<font>, <u>) or attributes (size, face) will be replaced with XHTML compliant code.

To add a CKEditor instance outputting valid XHTML code, load the editor using a standard JavaScript call and define CKEditor features to use the XHTML compliant elements and styles.

A snippet of the configuration code can be seen below; check the source of this page for full definition:

CKEDITOR.replace( 'textarea_id', {
	contentsCss: 'assets/outputxhtml.css',

	coreStyles_bold: {
		element: 'span',
		attributes: { 'class': 'Bold' }
	},
	coreStyles_italic: {
		element: 'span',
		attributes: { 'class': 'Italic' }
	},

	...
});