X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/256592bf803e851aa7fc953e08a6e9e58d970f8c..871bad8291b6dbc29d489d95d185458caab25158:/skins/ckeditor/_samples/output_html.html diff --git a/skins/ckeditor/_samples/output_html.html b/skins/ckeditor/_samples/output_html.html new file mode 100644 index 0000000..ad63716 --- /dev/null +++ b/skins/ckeditor/_samples/output_html.html @@ -0,0 +1,285 @@ + + + +
+
+ This sample shows how to configure CKEditor to output valid
+ HTML 4.01 code.
+ Traditional HTML elements like <b>,
+ <i>, and <font> are used in place of
+ <strong>, <em>, and CSS styles.
+
+ To add a CKEditor instance outputting legacy HTML 4.01 code, load the editor using a standard + JavaScript call, and define CKEditor features to use the HTML compliant elements and attributes. +
++ A snippet of the configuration code can be seen below; check the source of this page for + full definition: +
+CKEDITOR.replace( 'textarea_id',
+ {
+ coreStyles_bold : { element : 'b' },
+ coreStyles_italic : { element : 'i' },
+
+ fontSize_style :
+ {
+ element : 'font',
+ attributes : { 'size' : '#(size)' }
+ }
+
+ // More definitions follow.
+ });
+