Project

General

Profile

Bug #22092 ยป rtehtmlarea_bugfix_13480_typo3_4-3_v2.patch

Administrator Admin, 2010-02-19 17:48

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea-gecko.js (copie de travail)
var midText = leftText.splitText(midStart);
var midEnd = midText.data.search(/[^a-zA-Z0-9\._\-\/\&\?=:@]/);
if (midEnd != -1) var endText = midText.splitText(midEnd);
autoWrap(midText, 'a').href = (m[1] ? m[1] : 'http://') + m[2];
autoWrap(midText, 'a').href = (m[1] ? m[1] : 'http://') + m[3];
break;
}
}
......
var textNode = s.anchorNode;
var fn = function() {
var m = textNode.data.match(HTMLArea.RE_url);
a.href = (m[1] ? m[1] : 'http://') + m[2];
a.href = (m[1] ? m[1] : 'http://') + m[3];
a._updateAnchTimeout = setTimeout(fn, 250);
}
a._updateAnchTimeout = setTimeout(fn, 250);
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail)
HTMLArea.Reg_body = new RegExp("<\/?(body)[^>]*>", "gi");
HTMLArea.reservedClassNames = /htmlarea/;
HTMLArea.RE_email = /([0-9a-z]+([a-z0-9_-]*[0-9a-z])*){1}(\.[0-9a-z]+([a-z0-9_-]*[0-9a-z])*)*@([0-9a-z]+([a-z0-9_-]*[0-9a-z])*\.)+[a-z]{2,9}/i;
HTMLArea.RE_url = /(https?:\/\/)?(([a-z0-9_]+:[a-z0-9_]+@)?[a-z0-9_-]{2,}(\.[a-z0-9_-]{2,})+\.[a-z]{2,5}(:[0-9]+)?(\/\S+)*)/i;
HTMLArea.RE_url = /(([^:/?#]+):\/\/)?(([a-z0-9_]+:[a-z0-9_]+@)?[a-z0-9_-]{2,}(\.[a-z0-9_-]{2,})+\.[a-z]{2,5}(:[0-9]+)?(\/\S+)*)/i;
/*
* Editor configuration object constructor
    (1-1/1)