diff --git a/fckeditor.config.js b/fckeditor.config.js index f6c5efbf532543637bbfe8a4ec31c5d287ecf281..491fe2fe6951e62acd133ac174adf7ea7668c81c 100644 --- a/fckeditor.config.js +++ b/fckeditor.config.js @@ -16,6 +16,10 @@ FCKConfig.ToolbarSets["DrupalBasic"] = [ ['FontFormat','-','Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink', 'Image'] ] ; -// uncomment this line if you want to enable php code in your content -//FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code +// Protect PHP code tags () so FCKeditor will not break them when +// switching from Source to WYSIWYG. +// Uncomment this line doesn't mean the user will not be able to type PHP +// code in the source. This kind of prevention must be done in the server side +// (as does Drupal), so just leave this line as is. +FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code