Project

General

Profile

Bug #22850 » rtehtmlarea_bugfix_14677_trunk.patch

Administrator Admin, 2010-06-09 18:05

View differences:

typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockElements/block-elements.js (copie de travail)
break;
default :
break;
}
} else {
// The selection is not contained in any block
switch (button.itemId) {
case 'FormatBlock':
this.updateDropDown(button);
break;
case 'Outdent' :
button.setDisabled(true);
break;
case 'Indent' :
break;
case 'InsertParagraphBefore' :
case 'InsertParagraphAfter' :
button.setDisabled(true);
break;
case 'Blockquote' :
button.setInactive(true);
break;
case 'JustifyLeft' :
case 'JustifyCenter' :
case 'JustifyRight' :
case 'JustifyFull' :
button.setInactive(true);
button.setDisabled(true);
break;
case 'InsertOrderedList':
case 'InsertUnorderedList':
button.setInactive(true);
break;
default :
break;
}
}
}
},
typo3/sysext/rtehtmlarea/htmlarea/plugins/DefinitionList/definition-list.js (copie de travail)
&& !(endBlocks.start != endBlocks.end && /^(p|h[1-6])$/i.test(endBlocks.start.nodeName)));
break;
}
} else {
switch (button.itemId) {
case 'Outdent':
this.base(button, mode, selectionEmpty, ancestors);
break;
}
}
}
}
typo3/sysext/rtehtmlarea/htmlarea/plugins/Language/language.js (copie de travail)
if (parent) {
var direction = (button.itemId === 'RightToLeft') ? 'rtl' : 'ltr';
button.setInactive(parent.dir != direction && parent.style.direction != direction);
button.setDisabled(/^body$/i.test(parent.nodeName));
} else {
button.setDisabled(true);
}
break;
case 'ShowLanguageMarks':
(1-1/2)