Bug #23492 » rtehtmlarea_bugfix_15622_trunk_follow_up.patch
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail) | ||
---|---|---|
* @author Oliver Hader <oh@inpublica.de>
|
||
*/
|
||
simplifyNested: function(nested) {
|
||
var i, type, level, max, simplifiedNested=[];
|
||
var i, type, level, elementId, max, simplifiedNested=[],
|
||
elementIdSuffix = {
|
||
tab: '-DIV',
|
||
inline: '_fields',
|
||
flex: '-content'
|
||
};
|
||
if (nested && nested.length) {
|
||
if (nested[0][0]=='inline') {
|
||
nested = inline.findContinuedNestedLevel(nested, nested[0][1]);
|
||
... | ... | |
for (i=0, max=nested.length; i<max; i++) {
|
||
type = nested[i][0];
|
||
level = nested[i][1];
|
||
switch (type) {
|
||
case 'tab':
|
||
simplifiedNested.push(level+'-DIV');
|
||
break;
|
||
case 'inline':
|
||
simplifiedNested.push(level+'_fields');
|
||
break;
|
||
case 'flex':
|
||
simplifiedNested.push(level+'-content');
|
||
break;
|
||
elementId = level + elementIdSuffix[type];
|
||
if (Ext.get(elementId)) {
|
||
simplifiedNested.push(elementId);
|
||
}
|
||
}
|
||
}
|