diff options
authorontwerpwerk2006-09-11 07:31:42 (GMT)
committerontwerpwerk2006-09-11 07:31:42 (GMT)
commit41fbb2a2547727d4a77918e7764d76b5b0a12f94 (patch)
parent25f91b448c89d17569a1f6cf74404982124ab217 (diff)
Added the php source protected code according to
1 files changed, 6 insertions, 2 deletions
diff --git a/fckeditor.config.js b/fckeditor.config.js
index f6c5efb..491fe2f 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