wikismartEdit: runs only if browser is Firefox or IE8
authorColas Nahaboo <colas@nahaboo.net>
Wed, 15 Apr 2009 00:55:43 +0200
changeset 160f19fc9d63ae
parent 15 1ca049c452a6
child 17 834a42b5102c
wikismartEdit: runs only if browser is Firefox or IE8
TODO.txt
pub/System/SmartEditContrib/wikismartEngine.js
     1.1 --- a/TODO.txt	Wed Apr 15 00:32:45 2009 +0200
     1.2 +++ b/TODO.txt	Wed Apr 15 00:55:43 2009 +0200
     1.3 @@ -4,7 +4,9 @@
     1.4        * default icons/strings be multiline. end with \
     1.5     * add all the colors of the WYSIWYG editor (use same html dialog?)
     1.6     * test on IE6 IE7 IE8 opera chrome safari...
     1.7 -   * variable listing "good" browsers
     1.8 +   * variable listing "good" browsers: 
     1.9 +      * MSIE 8.0
    1.10 +      * Firefox
    1.11     * variable to be disabled per user
    1.12  MAYBE?
    1.13     * on demand loading of icons, strings?
     2.1 --- a/pub/System/SmartEditContrib/wikismartEngine.js	Wed Apr 15 00:32:45 2009 +0200
     2.2 +++ b/pub/System/SmartEditContrib/wikismartEngine.js	Wed Apr 15 00:55:43 2009 +0200
     2.3 @@ -69,8 +69,8 @@
     2.4  
     2.5  function wikismartEdit(textareaid){
     2.6  	wikismartTextareaId = textareaid;
     2.7 -	// If browser is Firefox or IE (Opera and Mac browsers are disabled)
     2.8 -	if (is_firefox || ((navigator.userAgent.toLowerCase()).indexOf("opera") == -1)){
     2.9 +	// Works only on If browser is Firefox or IE 8
    2.10 +	if (is_firefox || ((navigator.userAgent).indexOf("MSIE 8.") != -1)){
    2.11  	// Special CSS style for Internet Explorer
    2.12  	if(!is_firefox && ((navigator.userAgent.toLowerCase()).indexOf("opera") == -1)){
    2.13  		smartEditorIECssClass = "IE";