PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
It is currently Tue Dec 01, 2015 8:32 pm

All times are UTC - 5 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Oct 14, 2006 11:41 am 
Forum Newbie

Joined: Tue Aug 01, 2006 5:42 pm
Posts: 4
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:

Syntax: [ Download ] [ Hide ]
/*** 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/,"");


        document.write("<scr"+"ipt src='"+sEditorPath+"editor.js'></scr"+"ipt>");


        document.write("<scr"+"ipt src='"+sEditorPath+"moz/editor.js'></scr"+"ipt>");

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.

 Post subject:
PostPosted: Sat Oct 14, 2006 10:35 pm 
Forum Regular
User avatar

Joined: Mon Nov 14, 2005 5:21 pm
Posts: 878
You might want to look into TinyMCE. It works with Safari, they haven't updated their compatability chart is many months.

It works with more browsers and will default to the standard editor if an unsupported browser is detected.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group