X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/256592bf803e851aa7fc953e08a6e9e58d970f8c..871bad8291b6dbc29d489d95d185458caab25158:/skins/ckeditor/_samples/output_xhtml.html diff --git a/skins/ckeditor/_samples/output_xhtml.html b/skins/ckeditor/_samples/output_xhtml.html new file mode 100644 index 0000000..2fcd5b2 --- /dev/null +++ b/skins/ckeditor/_samples/output_xhtml.html @@ -0,0 +1,177 @@ + + + +
+
+ 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/output_xhtml.css',
+
+ coreStyles_bold : { element : 'span', attributes : {'class': 'Bold'} },
+ coreStyles_italic : { element : 'span', attributes : {'class': 'Italic'} },
+
+ // More definitions follow.
+ });
+