Hi guys
I am rebuilding a cms, thought I would drive operations with context menus instead of the standard toolbar.
The idea this time is to make the editor slightly more cross browser compatible using midas/mshtml.
I have my index page with an iframe named edita in it, this iframe is then set with:
switch (ed_browser) {
case "IE" :
editor = edita.document;
editor.designMode = "on";
editor.contentEditable = true;
editor_write(editor_welcome_message());
editor.oncontextmenu = show_context_menu;
break;
case "MOZ" :
editor = document.getElementById("edita").contentDocument;
editor_write(editor_welcome_message());
edita.document.oncontextmenu = show_context_menu;
break;
}
The context menu works fine in IE, but ignores it in mozilla / firefox, basically my question is has anyone worked out a workaround for this? or located where the oncontextmenu event is in this case? There is no oncontextmenu for `editor` when in mozilla.
Things to remember are:
- the iframe document is being dynamically generated
Any help would be much appreciated.
I am rebuilding a cms, thought I would drive operations with context menus instead of the standard toolbar.
The idea this time is to make the editor slightly more cross browser compatible using midas/mshtml.
I have my index page with an iframe named edita in it, this iframe is then set with:
switch (ed_browser) {
case "IE" :
editor = edita.document;
editor.designMode = "on";
editor.contentEditable = true;
editor_write(editor_welcome_message());
editor.oncontextmenu = show_context_menu;
break;
case "MOZ" :
editor = document.getElementById("edita").contentDocument;
editor_write(editor_welcome_message());
edita.document.oncontextmenu = show_context_menu;
break;
}
The context menu works fine in IE, but ignores it in mozilla / firefox, basically my question is has anyone worked out a workaround for this? or located where the oncontextmenu event is in this case? There is no oncontextmenu for `editor` when in mozilla.
Things to remember are:
- the iframe document is being dynamically generated
Any help would be much appreciated.