problem with web based html WYSIWYG Editor
Posted: Sat Oct 14, 2006 11:41 am
Hi there,
I have a problem with a web based html WYSIWYG Editor. this editor only works with new browsers and i want to disable it when old browsers use my website.
I call the editor with this code:
My Editor woks fine with IE and Mozilla, but not with Apple Safari. How can I disable the editor to use with Apple Safari?
I want this:
When one Safari or older browser visit this page a <textarea> replace the editor. is it posible?
Can anybody help me?
Excuse my english its quite poor.
I have a problem with a web based html WYSIWYG Editor. this editor only works with new browsers and i want to disable it when old browsers use my website.
I call the editor with this code:
Code: Select all
/*** Editor Script Wrapper ***/
var oScripts=document.getElementsByTagName("script");
var sEditorPath;
for(var i=0;i<oScripts.length;i++)
{
var sSrc=oScripts[i].src.toLowerCase();
if(sSrc.indexOf("scripts/myeditor.js")!=-1) sEditorPath=oScripts[i].src.replace(/myeditor.js/,"");
}
if(navigator.appName.indexOf('Microsoft')!=-1)
document.write("<scr"+"ipt src='"+sEditorPath+"editor.js'></scr"+"ipt>");
else
document.write("<scr"+"ipt src='"+sEditorPath+"moz/editor.js'></scr"+"ipt>");I want this:
When one Safari or older browser visit this page a <textarea> replace the editor. is it posible?
Can anybody help me?
Excuse my english its quite poor.