Allow javascript inside XINHA WYSIWYG textarea

This commit is contained in:
Garvin Hicking 2009-01-26 13:09:56 +00:00
parent c6042989a3
commit 0fc38b105b
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,8 @@
Version 1.5 ()
------------------------------------------------------------------------
* Allow javascript inside Xinha WYSIWYG textarea (garvinhicking)
* Allow anonymized submission to Typepad/Akismet to attribute
possible federal laws for data protection (garvinhicking)
(RFE #2517320)

View File

@ -690,7 +690,9 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) {
}
}
?>
<?php if ($xinha) { ?>config<?php echo $jsname; ?>.pageStyle = '<?php echo $csscode; ?>';
<?php if ($xinha) { ?>
config<?php echo $jsname; ?>.pageStyle = '<?php echo $csscode; ?>';
config<?php echo $jsname; ?>.stripScripts = false;
<?php } else { ?>config<?php echo $jsname; ?>.cssFile = '<?php echo $csscode; ?>';
<?php } ?>