Hi
I use FCKEditor 2.6.4.1 and Syntax Highligter - 6.x-1.12. Together they work successfully on FF3 but not in IE7 and Safari 4.0.1. The Editor is not shown - a plain text field is available to insert data into the body. When I disable the Syntax Highligther Module it works smooth on every browser.
The IE7 js error:
Line 196:
Char: 5
Error: Object doesn't support this property or methor
Code: 0
URL: the_url
The Safari 4.0.1 error:
195
wysiwyg.js:195TypeError: Result of expression 'classes[i].substr' [undefined] is not a function.
Code:
Drupal.wysiwyg.getParams = function(element, params) {
var classes = element.className.split(' ');
var params = params || {};
for (var i in classes) {
if (classes[i].substr(0, 8) == 'wysiwyg-') {
var parts = classes[i].split('-');
var value = parts.slice(2).join('-');
params[parts[1]] = value;
}
}
// Convert format id into string.
The site really needs Syntaxhighlighting - else it doesn't make really sense to use it...
I hope for your input
Thank you in advance!
Comments
Comment #1
daniel.gimeno commentedSame problem here. Someone has resolved this problem? This is breaking all javascript at my website.
I think the problem is due to Wysiwyg. I've read that the solution is disable the syntaxhiligjting but i have not installed!! What can I do? install it and disable it???
Thanks, Daniel.
Comment #2
daniel.gimeno commentedThis solved the prorblem. http://drupal.org/node/593008
Comment #3
twodDuplicate of #593008: Third-party scripts breaking Wysiwyg.