Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11046
Modified Files:
serendipity_admin_plugins.inc.php
Log Message:
allow plugin config type 'text' which will not make use of the
WYSIWYG-editor, can be used for special markup which shall not transfered to
HTML.
Index: serendipity_admin_plugins.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_plugins.inc.php,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- serendipity_admin_plugins.inc.php 28 Jul 2004 19:06:54 -0000 1.40
+++ serendipity_admin_plugins.inc.php 25 Aug 2004 07:47:31 -0000 1.41
@@ -480,6 +480,7 @@
break;
case 'html':
+ case 'text':
?>
<tr>
<td colspan="2"><strong><?php echo $cname; ?></strong>
@@ -495,8 +496,11 @@
</td>
</tr>
<?php
- serendipity_emit_htmlarea_code('nugget', 'nugget');
+ if ($cbag->get('type') == 'html') {
+ serendipity_emit_htmlarea_code('nugget', 'nugget');
+ }
break;
+
case 'hidden':
?><tr><td colspan="2"><input type="hidden" name="serendipity[plugin][<?php echo $config_item; ?>]" value="<?php echo $cbag->get('value'); ?>" /></td></tr><?php
break;
|