ProtectedTags

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.

In many situations, it is important to be able to switch to the source view in FCKeditor and add a few custom tags, needed for custom processing, or whatever. The problem is that browsers don't know how to handle non standard HTML tags, and usually break the DOM tree when finding them (specially IE).

To be able to load such tags in FCKeditor, maintaining their positions in the DOM tree, just use the "ProtectedTags" setting, listing the names of the tags you want to protect separated by a pipe (|).

Example: The following instructs FCKeditor to accept the tags <MYTAG> and <CUSTOM>.

FCKConfig.ProtectedTags = 'MYTAG|CUSTOM' ;
This page was last edited on 26 February 2008, at 19:03.