Bug #21992 » rtehtmlarea_bugfix_13301_trunk.patch
typo3/sysext/rtehtmlarea/htmlarea/plugins/TextStyle/text-style.js (copie de travail) | ||
---|---|---|
parent = statusBarSelection;
|
||
}
|
||
}
|
||
if (!selectionEmpty && !fullNodeSelected) {
|
||
// The selection is not empty, nor full element
|
||
if (!selectionEmpty && !fullNodeSelected || (!selectionEmpty && fullNodeSelected && parent && HTMLArea.isBlockElement(parent))) {
|
||
// The selection is not empty, nor full element, or the selection is full block element
|
||
if (className !== "none") {
|
||
// Add span element with class attribute
|
||
var newElement = editor._doc.createElement("span");
|