Cause: IE7 and IE8 do not have String.prototype.trim function.
Solution:
In metatag.vertical-tabs.js:
vals.push(Drupal.t('@label: @value', {
'@label': label.trim(),
'@value': Drupal.truncate($(this).val(), 25) || Drupal.t('None')
}));
Should be:
vals.push(Drupal.t('@label: @value', {
'@label': $.trim(label),
'@value': Drupal.truncate($(this).val(), 25) || Drupal.t('None')
}));
Comments
Comment #1
Anonymous (not verified) commentedThanks for the solution - It seems this bug breaks CKEditor in IE7 and IE8, but the solution above fixed it.
Is there any reason this hasn't been added to a release yet? Anything I can do to help speed that up?
Comment #2
jtse commented#1, I had the same problem -- TinyMCE broke. I think this is getting overlooked because it's an old IE issue.
Comment #3
dave reidThanks, I fixed this with http://drupalcode.org/project/metatag.git/commit/fd0cb54
Comment #4
jtse commentedThanks Dave!