projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b0b6810
)
Use new getHtmlTextFromRequest() in blocks plugin.
author
Alain Peyrat
<aljeux@free.fr>
Tue, 29 Nov 2011 21:24:26 +0000
(21:24 +0000)
committer
Alain Peyrat
<aljeux@free.fr>
Tue, 29 Nov 2011 21:24:26 +0000
(21:24 +0000)
src/plugins/blocks/www/index.php
patch
|
blob
|
history
diff --git
a/src/plugins/blocks/www/index.php
b/src/plugins/blocks/www/index.php
index 4e4dff045a46cf78432178a5b609b850d805db15..400a57f992ff5f78ae3ff0cdb33d695b00f0573b 100644
(file)
--- a/
src/plugins/blocks/www/index.php
+++ b/
src/plugins/blocks/www/index.php
@@
-159,7
+159,7
@@
$type = getStringFromRequest('type');
$id = getStringFromRequest('id');
$pluginname = getStringFromRequest('pluginname');
$name = getStringFromRequest('name');
$id = getStringFromRequest('id');
$pluginname = getStringFromRequest('pluginname');
$name = getStringFromRequest('name');
-$body = get
String
FromRequest('body');
+$body = get
HtmlText
FromRequest('body');
$activate = getArrayFromRequest('activate');
$blocks_text = array(
$activate = getArrayFromRequest('activate');
$blocks_text = array(
@@
-347,12
+347,9
@@
if (!$type) {
$params['width'] = "800";
$params['height'] = "500";
$params['group'] = $id;
$params['width'] = "800";
$params['height'] = "500";
$params['group'] = $id;
- plugin_hook("text_editor",$params);
- if (!$GLOBALS['editor_was_set_up']) {
- //if we don't have any plugin for text editor, display a simple textarea edit box
- echo '<textarea name="body" rows="20" cols="80">' . $body . '</textarea>';
- }
- unset($GLOBALS['editor_was_set_up']);
+ $params['content'] = '<textarea name="body" rows="20" cols="80">'.$body.'</textarea>';
+ plugin_hook_by_reference("text_editor", $params);
+ echo $params['content'];
print "<br /><input type=\"submit\" value=\"" .
_("Save") .
print "<br /><input type=\"submit\" value=\"" .
_("Save") .