X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Foutput_xhtml.html;h=ba66a48e1a4372704c65e709292b7a75764b3d1e;hb=6e682412d5cc0dfaedb376482e585bf2989c6863;hp=c84ca0e0635d27d7d5949947669f90aa76a089f6;hpb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;p=ckeditor.git diff --git a/_samples/output_xhtml.html b/_samples/output_xhtml.html index c84ca0e..ba66a48 100644 --- a/_samples/output_xhtml.html +++ b/_samples/output_xhtml.html @@ -1,20 +1,46 @@
-
+ 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. + });+