From 7ada3fea233b4d235235b8063921f28d8f8e77ac Mon Sep 17 00:00:00 2001 From: julmis Date: Mon, 16 Aug 2004 09:44:43 +0000 Subject: [PATCH] Don't ever try to load editor when using safari. Safari isn't supported. --- lib/editor/htmlarea.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index 98e2dd27c1..0a02569cda 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -1815,6 +1815,7 @@ HTMLArea.is_mac = (HTMLArea.agt.indexOf("mac") != -1); HTMLArea.is_mac_ie = (HTMLArea.is_ie && HTMLArea.is_mac); HTMLArea.is_win_ie = (HTMLArea.is_ie && !HTMLArea.is_mac); HTMLArea.is_gecko = (navigator.product == "Gecko"); +HTMLArea.is_safari = (HTMLArea.agt.indexOf("safari") != -1); // variable used to pass the object to the popup editor window. HTMLArea._object = null; @@ -1853,6 +1854,9 @@ HTMLArea.checkSupportedBrowser = function() { "I'll try, though, but it might not work."); } } + if(HTMLArea.is_safari) { + return false; + } return HTMLArea.is_gecko || HTMLArea.is_ie; }; -- 2.39.5