Declaring 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.

(<pre> changed to <source> with ASP syntax coloring)
 
Line 1: Line 1:
{{Ckfinder_2.x html extension Description|code=<pre>CKFinder_Config.Add "HtmlExtensions", "html,htm,xml,js"</pre>|code2=<pre>CKFinder_Config.Add "HtmlExtensions", "html,htm,xml,js,xsl"</pre>}}
+
{{Ckfinder_2.x html extension Description|code=<source lang="asp">CKFinder_Config.Add "HtmlExtensions", "html,htm,xml,js"</source>|code2=<source lang="asp">CKFinder_Config.Add "HtmlExtensions", "html,htm,xml,js,xsl"</source>}}

Latest revision as of 13:33, 29 March 2011

Sometimes when you are uploading a file it may contain HTML code in the first kilobytes of its data. CKFinder will upload the file with the HTML code only when the file extension is added to the following configuration setting: 

CKFinder_Config.Add "HtmlExtensions", "html,htm,xml,js"

If you, for example, want to upload an .xsl file that contains HTML code at the beginning of the file, you should add this file extension to the list.

CKFinder_Config.Add "HtmlExtensions", "html,htm,xml,js,xsl"


Please note that this feature performs only a very basic set of checks to detect HTML-like data in the first 1kB of the file contents to protect users e.g. against unintentional uploading of files with HTML content and with a wrong extension.

This page was last edited on 29 March 2011, at 13:33.