Hi there,
I have a problem with a web based html WYSIWYG Editor. this editor only works with IE and Mozilla browsers and i want to disable it when Safari users goes to my website
Into my phpscript, I call the editor with this code:
How can I replace the editor with a text area when safari users visit this website? Is there any posibility to do it?
Thanks.
Excuse my english.
I have a problem with a web based html WYSIWYG Editor. this editor only works with IE and Mozilla browsers and i want to disable it when Safari users goes to my website
Into my phpscript, I call the editor with this code:
/*** Editor Script Wrapper ***/
var oScripts=document.getElementsByTagName("script");
var sEditorPath;
for(var i=0;i<oScripts.length;i++)
{
var sSrc=oScripts.src.toLowerCase();
if(sSrc.indexOf("scripts/myeditor.js")!=-1) sEditorPath=oScripts.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>");
How can I replace the editor with a text area when safari users visit this website? Is there any posibility to do it?
Thanks.
Excuse my english.