* Fix WYSIWYG media insertion when being called on pages with

multiple HTML portions/nuggets, and also the staticpage plugin
      (garvinhicking)
This commit is contained in:
Garvin Hicking 2008-11-05 12:03:29 +00:00
parent 58117f3b77
commit 17a1e5534a
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,10 @@
Version 1.4 ()
------------------------------------------------------------------------
* Fix WYSIWYG media insertion when being called on pages with
multiple HTML portions/nuggets, and also the staticpage plugin
(garvinhicking)
* Prefix possibly missing http:// of commenting authors URLs
in recent comments sidebar plugin and admin interface.
(garvinhicking)

View File

@ -608,7 +608,8 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) {
config<?php echo $jsname; ?>.registerButton('image_selector', '<?PHP echo MANAGE_IMAGES; ?>', '<?php echo $serendipity['serendipityHTTPPath']; ?>htmlarea/images/ed_s9yimage.gif', false,
function(editor, id) {
window.open('<?php echo $serendipity['serendipityHTTPPath']; ?>serendipity_admin_image_selector.php?serendipity[textarea]=<?php echo $jsname . ($spawnMulti ? "' + editor._textArea.id + '" : ''); ?>', 'ImageSel', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1');
editorref = editor<?php echo $jsname; ?>;
// editorref = editor<?php echo $jsname; ?>;
editorref = editor;
}
);
config<?php echo $jsname; ?>.toolbar.push([ "image_selector"]);