block = insert;
}
- if (self.opener.editorref) {
- self.opener.editorref.surroundHTML(block, '');
+ if (typeof(self.opener.htmlarea_editors) != 'undefined' && typeof(self.opener.htmlarea_editors[textarea] != 'undefined')) {
+ self.opener.htmlarea_editors[textarea].surroundHTML(block, '');
+ } else if (parent.self.opener.editorref) {
+ parent.self.opener.editorref.surroundHTML(block, '');
} else {
-
- self.opener.serendipity_imageSelector_addToBody(block, textarea);
+ parent.self.opener.serendipity_imageSelector_addToBody(block, textarea);
}
- self.close();
+ parent.self.close();
}
// -->
Version 1.0.1 ()
------------------------------------------------------------------------
+ * Fix problem on newer Firefox versions, where insertion of images
+ in the WYSIWYG editor did not work. It might be necessary to
+ purge your browsers cache for this to properly work. (Jay Bertrandt)
+
* Fix utf8 iconv conversion failing on some older PHP setups.
Thanks to Matthias Leisi!
FROM {$serendipity['dbPrefix']}category AS c
LEFT JOIN {$serendipity['dbPrefix']}entrycat AS ec
ON ec.categoryid = c.categoryid
- WHERE " . serendipity_db_in_sql('ec.entryid', $search_ids);
+ WHERE " . serendipity_db_in_sql('ec.entryid', $search_ids) . "
+ ORDER BY c.category_name ASC";
$search_ret = serendipity_db_query($query, false, 'assoc');
config<?php echo $jsname; ?> = editor<?php echo $jsname; ?>.config;
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; ?>', 'ImageSel', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1');
+ 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; ?>;
}
);
block = insert;
}
- if (self.opener.editorref) {
- self.opener.editorref.surroundHTML(block, '');
+ if (block == 'x' && typeof(self.opener.htmlarea_editors) != 'undefined' && typeof(self.opener.htmlarea_editors[textarea] != 'undefined')) {
+ self.opener.htmlarea_editors[textarea].surroundHTML(block, '');
+ } else if (parent.self.opener.editorref) {
+ parent.self.opener.editorref.surroundHTML(block, '');
} else {
-
- self.opener.serendipity_imageSelector_addToBody(block, textarea);
+ parent.self.opener.serendipity_imageSelector_addToBody(block, textarea);
}
- self.close();
+ parent.self.close();
}
// -->