Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
510 views
in Plugins by

i have a javascript error on my default answer2questions installation on http://howpedia.de 

Can someone tell me where this line is produced? I already looked up into the plugin code, but i did not find the location by now. 

Error: qa_wysiwyg_editor_config is not defined.

<SCRIPT TYPE="text/javascript"><!--

if (qa_wysiwyg_editor_config)
qa_wysiwyg_editor_config.skin="kama";
//--></SCRIPT>
 
 
Q2A version: 1.5.4

1 Answer

–1 vote
by

Boy, replace your code with mine:

<SCRIPT TYPE="text/javascript"><!--

if (typeof(qa_wysiwyg_editor_config) != "undefined"){

if (qa_wysiwyg_editor_config)
qa_wysiwyg_editor_config.skin="kama";
}
//--></SCRIPT>
by
thx booyy, i know how to fix, but i was looking for
"Can someone tell me where this line is produced?"

i found the line ... it is at the theme php file on the snow folder .. ;)
by
You are right :-D
by
how can I replace this with your code?

    <SCRIPT TYPE="text/javascript"><!--',
    'if (qa_wysiwyg_editor_config)', 'qa_wysiwyg_editor_config.skin="kama";',
    '//--></SCRIPT>
...