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

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

It looks like you're using wysiwyg.module, not fckeditor.module. Is that true?

sysspoof’s picture

yes that is true.

Jorrit’s picture

Then you should file a bug with them, not with us. You can try fckeditor.module instead of wysiwyg.module.

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)