Html extensions"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

Line 1: Line 1:
{{Ckfinder html extension Description|code=<pre>$config['HtmlExtensions'] = array('html', 'htm', 'xml', 'xsd', 'txt', 'js');
+
{{Ckfinder html extension Description|code=<pre>$config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js');
</pre>|code2=<pre>$config['HtmlExtensions'] = array('html', 'htm', 'xml', 'xsd', 'txt', 'js','xsl');  
+
</pre>|code2=<pre>$config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js', 'xsl');  
 
</pre>}}
 
</pre>}}

Revision as of 09:04, 11 January 2008

Sometimes when you're uploading a file it may have an html code in the first KB of its data. The CKFinder will upload the file with the html code only when the file extension is written in the following section: 
$config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js');
So for example: if you want to upload a .xsl file which has a html code in the beginning, you should add its the extension to the list.
$config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js', 'xsl'); 
This function secures your server from the attack of the Universal XSS / MIME Type detection.