This website contains links to software which is no longer maintained. 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.

The editor offers a way to "protect" part of the source to remain untouched while editing or changing views. Just use the "FCKConfig.ProtectedSource.Add" function in the configuration file.

Note that there currently isn't any way to "lock" displayed content in the editor. The content protected with ProtectedSource will actually be invisible during editing. It may be used instead, for example, to protect custom non standard tags or server side scripts. By default, FCKeditor uses it to protect <script> tags from activation during editing.

Example for ASP style server side code:

FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;

Example for PHP style server side code:

FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;
This page was last edited on 28 May 2008, at 16:51.