1
0

Skip toggle_extended if wysiwyg editor is used.

With a wysiwyg editor, collapsing the extended entry editor does
not work, so we'll just skip it in that case.
This commit is contained in:
Matthias Mees
2013-06-27 12:39:23 +02:00
parent 5e40d76375
commit adcb2f3e87

View File

@ -361,7 +361,7 @@ window.log = function f(){ log.history = log.history || []; log.history.push(arg
// Toggle extended entry editor
serendipity.toggle_extended = function(setCookie) {
if ($('#toggle_extended').length == 0) {
if ($('#toggle_extended').length == 0 && $('#tools_extended').length != 0) {
// this function got called on load of the editor
var toggleButton = '#toggle_extended';
$('textarea[name="serendipity[extended]"]').parent().prepend('<a id="toggle_extended" class="button_link" href="#serendipity[extended]"><span class="icon-plus"></span><span class="visuallyhidden"> {$CONST.TOGGLE_ALL}</span></a>');