upport 7fb6b5a
serendipity_emit_htmlarea_code() does not need to return true which can note badly as 1 in 'backend_wysiwyg' hooks
This commit is contained in:
@@ -510,7 +510,7 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) {
|
|||||||
global $serendipity;
|
global $serendipity;
|
||||||
|
|
||||||
if ($init && $spawnMulti) {
|
if ($init && $spawnMulti) {
|
||||||
return true;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($serendipity['wysiwyg']) && $serendipity['wysiwyg']) {
|
if (isset($serendipity['wysiwyg']) && $serendipity['wysiwyg']) {
|
||||||
@@ -524,7 +524,7 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) {
|
|||||||
serendipity_plugin_api::hook_event('backend_wysiwyg', $eventData);
|
serendipity_plugin_api::hook_event('backend_wysiwyg', $eventData);
|
||||||
|
|
||||||
if ($eventData['skip']) {
|
if ($eventData['skip']) {
|
||||||
return true;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file_exists($serendipity['serendipityPath'] . 'htmlarea/XinhaCore.js')) {
|
if (file_exists($serendipity['serendipityPath'] . 'htmlarea/XinhaCore.js')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user