X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_samples%2Foutput_html.html;h=5704f8c4f74976fb0b8a19551ce44becb7215521;hp=6712d7c54312ca1c3f35a34d97ad849b832d80d0;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hpb=9afde8772159bd3436f1f5b7862960307710ae5a diff --git a/_samples/output_html.html b/_samples/output_html.html index 6712d7c..5704f8c 100644 --- a/_samples/output_html.html +++ b/_samples/output_html.html @@ -1,20 +1,51 @@ - HTML compliant output - CKEditor Sample + HTML Compliant Output — CKEditor Sample -

- CKEditor Sample +

+ CKEditor Sample — Producing HTML Compliant Output

+
+

+ 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.
+	});
+
+

- This sample shows CKEditor configured to produce a legacy HTML4 document. Traditional - HTML elements like <b>, <i>, and <font> are used in place of - <strong>, <em> and CSS styles.

-


+ Editor 1: