* Added feature #7667: htmlArea RTE: Usability improvements in table operations
* Fixed bug #7671: htmlArea RTE configuration variable "Add default User TSonfig RTE configuration" not working. Thanks to Jan Persson.
+ * Fixed bug #7687: htmlArea RTE context menu may produce js error
2008-02-25 Ernesto Baschny <ernst@cron-it.de>
* Added feature #7667: htmlArea RTE: Usability improvements in table operations
* Fixed bug #7671: htmlArea RTE configuration variable "Add default User TSonfig RTE configuration" not working. Thanks to Jan Persson.
+ * Fixed bug #7687: htmlArea RTE context menu may produce js error
2008-02-20 Stanislas Rolland <stanislas.rolland@fructifor.ca>
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) {