Changeset 1071
- Timestamp:
- 10/07/08 11:42:23 (2 months ago)
- Files:
-
- 1 modified
-
trunk/XinhaCore.js (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r1070 r1071 2062 2062 return false; 2063 2063 } 2064 editor._browserSpecificPlugin = editor.registerPlugin('InternetExplorer');2064 if (!this.plugins['InternetExplorer']) editor._browserSpecificPlugin = editor.registerPlugin('InternetExplorer'); 2065 2065 } 2066 2066 else if (Xinha.is_webkit) … … 2072 2072 return false; 2073 2073 } 2074 editor._browserSpecificPlugin = editor.registerPlugin('WebKit');2074 if (!this.plugins['Webkit']) editor._browserSpecificPlugin = editor.registerPlugin('WebKit'); 2075 2075 } 2076 2076 else if (Xinha.is_opera) … … 2081 2081 return false; 2082 2082 } 2083 editor._browserSpecificPlugin = editor.registerPlugin('Opera');2083 if (!this.plugins['Opera']) editor._browserSpecificPlugin = editor.registerPlugin('Opera'); 2084 2084 } 2085 2085 else if (Xinha.is_gecko) … … 2090 2090 return false; 2091 2091 } 2092 editor._browserSpecificPlugin = editor.registerPlugin('Gecko');2092 if (!this.plugins['Gecko']) editor._browserSpecificPlugin = editor.registerPlugin('Gecko'); 2093 2093 } 2094 2094 … … 2114 2114 return false; 2115 2115 } 2116 else if ( typeof ColorPicker != 'undefined' ) editor.registerPlugin('ColorPicker');2116 else if ( typeof ColorPicker != 'undefined' && !this.plugins['colorPicker']) editor.registerPlugin('ColorPicker'); 2117 2117 2118 2118 var toolbar = editor.config.toolbar; … … 2124 2124 { 2125 2125 case "popupeditor": 2126 editor.registerPlugin('FullScreen');2126 if (!this.plugins['FullScreen']) editor.registerPlugin('FullScreen'); 2127 2127 break; 2128 2128 case "insertimage": … … 2132 2132 return false; 2133 2133 } 2134 else if ( typeof InsertImage != 'undefined' ) editor.registerPlugin('InsertImage');2134 else if ( typeof InsertImage != 'undefined' && !this.plugins['InsertImage']) editor.registerPlugin('InsertImage'); 2135 2135 break; 2136 2136 case "createlink": … … 2140 2140 return false; 2141 2141 } 2142 else if ( typeof CreateLink != 'undefined' ) editor.registerPlugin('CreateLink');2142 else if ( typeof CreateLink != 'undefined' && !this.plugins['CreateLink']) editor.registerPlugin('CreateLink'); 2143 2143 break; 2144 2144 case "inserttable": … … 2148 2148 return false; 2149 2149 } 2150 else if ( typeof InsertTable != 'undefined' ) editor.registerPlugin('InsertTable');2150 else if ( typeof InsertTable != 'undefined' && !this.plugins['InsertTable']) editor.registerPlugin('InsertTable'); 2151 2151 break; 2152 2152 } … … 2161 2161 return false; 2162 2162 } 2163 editor.registerPlugin('EnterParagraphs'); 2164 } 2165 //TEMPORARY FIX FOR IE8 see #1175 2166 if (Xinha.ie_version == 8) 2167 { 2168 this.config.getHtmlMethod = 'TransformInnerHTML'; 2163 if (!this.plugins['EnterParagraphs']) editor.registerPlugin('EnterParagraphs'); 2169 2164 } 2170 2165 … … 2183 2178 return false; 2184 2179 } 2185 else editor.registerPlugin('GetHtmlImplementation');2180 else if (!this.plugins['GetHtmlImplementation']) editor.registerPlugin('GetHtmlImplementation'); 2186 2181 2187 2182 // create the editor framework, yah, table layout I know, but much easier … … 3248 3243 return false; 3249 3244 } 3250 3251 3245 var args = []; 3252 3246 for ( var i = 1; i < arguments.length; ++i ) … … 3273 3267 return false; 3274 3268 } 3269 3275 3270 var obj = new plugin(this, args); 3276 3271 if ( obj ) … … 3289 3284 else 3290 3285 { 3291 alert("Can't register plugin " + plugin.toString() + ".");3286 Xinha.debugMsg("Can't register plugin " + plugin.toString() + ".", 'warn'); 3292 3287 } 3293 3288 }; … … 5703 5698 Xinha.htmlEncode = function(str) 5704 5699 { 5700 if (!str) return ''; 5705 5701 if ( typeof str.replace == 'undefined' ) 5706 5702 {
