Changeset 928
- Timestamp:
- 01/08/08 04:02:56 (5 years ago)
- Files:
-
- 1 modified
-
trunk/XinhaCore.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r921 r928 192 192 if ( Xinha.is_opera ) 193 193 { 194 alert("Sorry, Opera is not yet supported by Xinha."); 195 } 196 return Xinha.is_gecko || (Xinha.is_opera && Xinha.opera_version >= 9.1) || Xinha.ie_version >= 5.5; 194 // alert("Sorry, Opera is not yet supported by Xinha."); 195 return false; 196 } 197 return Xinha.is_gecko || (Xinha.is_opera && 0 && Xinha.opera_version >= 9.1) || Xinha.ie_version >= 5.5; 197 198 }; 198 199 /** Cache result of checking for browser support … … 2951 2952 html += Xinha.addCoreCSS(); 2952 2953 2953 if ( editor.config.pageStyle )2954 {2955 html += "<style type=\"text/css\">\n" + editor.config.pageStyle + "\n</style>";2956 }2957 2958 2954 if ( typeof editor.config.pageStyleSheets !== 'undefined' ) 2959 2955 { … … 2967 2963 } 2968 2964 } 2965 2966 if ( editor.config.pageStyle ) 2967 { 2968 html += "<style type=\"text/css\">\n" + editor.config.pageStyle + "\n</style>"; 2969 } 2970 2969 2971 html += "</head>\n"; 2970 html += "<body >\n";2972 html += "<body" + (editor.config.bodyID ? (" id=\"" + editor.config.bodyID + "\"") : '') + ">\n"; 2971 2973 html += editor.inwardHtml(editor._textArea.value); 2972 2974 html += "</body>\n"; … … 5025 5027 if ( typeof this.config.baseHref != 'undefined' && this.config.baseHref !== null ) 5026 5028 { 5027 baseRe = new RegExp( "((href|src|background)=\")(" + Xinha.escapeStringForRegExp(this.config.baseHref ) + ")", 'g' );5029 baseRe = new RegExp( "((href|src|background)=\")(" + Xinha.escapeStringForRegExp(this.config.baseHref.replace(/\/[^\/]*$/, '/')) + ")", 'g' ); 5028 5030 } 5029 5031 else … … 5999 6001 req.open('POST', url, true); 6000 6002 req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'+(Xinha._postback_send_charset ? '; charset=UTF-8' : '')); 6003 6001 6004 //alert(content); 6002 6005 req.send(content);
