Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Advanced Editor Error not Displaying

Quote Reply
Advanced Editor Error not Displaying
Hi. I am using GForum 1.2.3. About a week ago, the Advanced Editor just stopped working. The WYSIWYG editor is not displaying. I can see the Icons, and the smilies, but no text box. Switching to Basic Editor works fine. Has anybody come across this problem before? I've been searching the forum for a couple days now and haven't found a solution. Crazy

Bradley
Quote Reply
Re: [domanb] Advanced Editor Error not Displaying In reply to
Are you getting any javascript errors? A javascript error will usually cause the wysiwyg editor to stop working. Have you tested it in Firefox?

Adrian
Quote Reply
Re: [brewt] Advanced Editor Error not Displaying In reply to
I only see two warnings. They are
Unknown property 'scrollbar-base-color' Line 10.
Unknown property 'scrollbar-arrow-color' Line 11.

There is an error when I click on a smilie.
top.editor_iframe.addTag is not a function
javascript: top.editor_iframe.addTag(':)') Line 1


I did find this line in the html source code:
<iframe name="editor_iframe" id="editor_iframe" width="100%" scrolling='no' height="100%" onLoad="attemptInit()" src="about:blank" style="visibility: hidden"></iframe>

It looks suspicious. Does this have anything to do with it.

I've checked in both FF and IE6.
Quote Reply
Re: [domanb] Advanced Editor Error not Displaying In reply to
It looks like it's not loading the javascript. The two CSS warnings are normal and the iframe is normal as well. Did you move or change the paths? Check that the url to the editor's javascript file is correct and still exists.

Adrian
Quote Reply
Re: [brewt] Advanced Editor Error not Displaying In reply to
The default template set recently changed. I'm not sure about the exact timing, but it seems to me, the problems started around the same time that we changed the name of the default template set. Could this be a problem? It used to be just default, now it is default2007.
Quote Reply
Re: [domanb] Advanced Editor Error not Displaying In reply to
It could be related, but for gforum 1.x, it shouldn't matter. You need to view source on the editor page and make sure the path to the javascript file is valid.

Adrian
Quote Reply
Re: [brewt] Advanced Editor Error not Displaying In reply to
I actually don't see a path to a javascript file. There is plenty of javascript in the source code, but no external .js files.

Here is some of the code that I think may be important:
Code:
<script>
function attemptInit () {
try {
editor_iframe.initOuterIFrame();
}
catch (e) {
setTimeout("attemptInit()", 200);
}
}
</script>

// I put this on 2 lines so it's easier to read. It's 1 line in the actual code.
<iframe name="editor_iframe" id="editor_iframe" width="100%" scrolling='no' height="100%"
onLoad="attemptInit()" src="about:blank" style="visibility: hidden"></iframe>


<script>
var main_form = "post";
var content_obj = "post_message_html"
var image_url = "http://www.retirementhomes.com/images/forum";
var base_url = "gforum.cgi";
var extra_url = "t=search_engine";
var post_unique = "fbf65d18e87809e711a225a11514f912";
var att = {
};
var attachments = new Object();
attachments.att = att;
attachments.num = 0;

function load_param() {
// 0 1 2 3 4 5 6 7
return [base_url, extra_url, image_url, main_form, content_obj, false, post_unique, attachments];
}

function removeInline (filename, type, id) {
for (var att in attachments.att) {
if (att == filename && attachments.att[att][0] == type && attachments.att[att][1] == id) {
delete(attachments.att[filename]);
attachments.num--;
break;
}
}
}

function addInline (filename, type, id) {
var found = false;
for (var att in attachments.att) {
if (att == filename) {
found = true;
break;
}
}
if (!found) {
attachments.att[filename] = [type, id];
attachments.num++;
}
}

document.getElementById("editor_iframe").src = base_url + '?do=editor_iframe;' + extra_url;
</script>