Bug #18319 ยป rtehtmlarea_bugfix_7687.patch
typo3/sysext/rtehtmlarea/htmlarea/plugins/ContextMenu/context-menu.js (working copy) | ||
---|---|---|
table = null, tr = null, td = null, img = null, list = null, div = null;
|
||
|
||
for(; target; target = target.parentNode) {
|
||
tag = target.tagName;
|
||
tag = target.nodeName;
|
||
if(!tag) continue;
|
||
tag = tag.toLowerCase();
|
||
switch (tag) {
|
||
... | ... | |
btnList["CreateLink"][1],"CreateLink"]);
|
||
}
|
||
|
||
if (!/html|body/i.test(currentTarget.tagName)) {
|
||
if (/table|thead|tbody|tr|td|th|tfoot/i.test(currentTarget.tagName)) {
|
||
if (!/^(html|body)$/i.test(currentTarget.nodeName)) {
|
||
if (/^(table|thead|tbody|tr|td|th|tfoot)$/i.test(currentTarget.nodeName)) {
|
||
tmp = table;
|
||
table = null;
|
||
} else if(list) {
|