From 37c0f25618093a48e396cd7c73a5a471b8960696 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Fri, 22 Jul 2005 11:55:23 +0000 Subject: [PATCH] Backport Multi-HTMLTextare-Plugin-Config gotcha. --- docs/NEWS | 3 +++ include/admin/plugins.inc.php | 20 ++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/docs/NEWS b/docs/NEWS index 48ae142..841c602 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -169,6 +169,9 @@ Version 0.8.3 () XML_RPC to 1.3.3 Fixing several bugs and vulnerabilities. (nohn) + * Allow plugins to contain more than one HTML nuggets which can be + WYSIWYGized. (garvinhicking) + * Fix editing a draft article to be properly displayed as draft in PostgreSQL setups. Thanks to Penny Leach! (garvinhicking) diff --git a/include/admin/plugins.inc.php b/include/admin/plugins.inc.php index 9d0b981..663968e 100644 --- a/include/admin/plugins.inc.php +++ b/include/admin/plugins.inc.php @@ -301,7 +301,10 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) {
introspect_config_item($config_item, $cbag); @@ -469,13 +472,14 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) { get('type') == 'html') { - serendipity_emit_htmlarea_code('nugget', 'nugget'); + $htmlnugget[] = $elcount; + serendipity_emit_htmlarea_code('nugget' . $elcount, 'nugget' . $elcount); } break; @@ -500,6 +504,18 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) {
example() ?>
+ 0) { +?> + -- 2.39.5
- +