Changeset 428
- Timestamp:
- 11/28/05 03:54:34 (7 years ago)
- Location:
- branches/opera
- Files:
-
- 5 modified
- 1 copied
-
. (copied) (copied from trunk)
-
htmlarea.js (modified) (11 diffs)
-
plugins/ImageManager/Classes/GD.php (modified) (2 diffs)
-
plugins/ImageManager/Classes/IM.php (modified) (1 diff)
-
plugins/ImageManager/Classes/NetPBM.php (modified) (1 diff)
-
popups/blank.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/opera/htmlarea.js
r421 r428 72 72 HTMLArea.is_win_ie = (HTMLArea.is_ie && !HTMLArea.is_mac); 73 73 HTMLArea.is_gecko = (navigator.product == "Gecko"); 74 HTMLArea.is_designMode = (typeof document.designMode != 'undefined'); 74 75 75 76 // Creates a new HTMLArea object. Tries to replace the textarea with the given … … 275 276 276 277 // CharSet of the iframe, default is the charset of the document 277 this.charSet = HTMLArea.is_gecko? document.characterSet : document.charset;278 this.charSet = (typeof document.characterSet != 'undefined') ? document.characterSet : document.charset; 278 279 279 280 // URL-s … … 1389 1390 // Add an event to initialize the iframe once loaded. 1390 1391 editor._iframeLoadDone = false; 1392 1393 // Opera doesn't work with the event on the iframe, we have the blank page that gets 1394 // loaded tell us when ready. 1395 if(this._iframe.contentWindow && this._iframe.contentWindow.xinhaReadyToRoll) 1396 { 1397 editor._iframeLoadDone = true; 1398 editor.initIframe(); 1399 return; 1400 } 1401 1391 1402 HTMLArea._addEvent 1392 1403 ( … … 1403 1414 } 1404 1415 ); 1405 1416 1406 1417 }; 1407 1418 … … 1764 1775 HTMLArea.prototype.editorIsActivated = function() { 1765 1776 try { 1766 if (HTMLArea.is_ gecko) return (this._doc.designMode == 'on');1777 if (HTMLArea.is_designMode) return (this._doc.designMode == 'on'); 1767 1778 else return (this._doc.body.contentEditable); 1768 1779 } catch (e) … … 1783 1794 } 1784 1795 1785 if (HTMLArea.is_ gecko&& this._doc.designMode != 'on')1796 if (HTMLArea.is_designMode && this._doc.designMode != 'on') 1786 1797 { 1787 1798 try … … 1819 1830 this.disableToolbar(); 1820 1831 1821 if (HTMLArea.is_ gecko&& this._doc.designMode != 'off')1832 if (HTMLArea.is_designMode && this._doc.designMode != 'off') 1822 1833 { 1823 1834 try {this._doc.designMode = 'off';} catch (e) {} … … 1841 1852 1842 1853 HTMLArea.prototype.initIframe = function() 1843 { 1854 { 1844 1855 this.disableToolbar(); 1845 1856 var doc = null; … … 1857 1868 doc = this._doc; 1858 1869 if (!doc) { // try later 1859 if ( HTMLArea.is_gecko) {1870 if (0 && HTMLArea.is_gecko) { 1860 1871 setTimeout(function() { editor.initIframe()}, 50); 1861 1872 return false; … … 1868 1879 { // try later 1869 1880 setTimeout(function() { editor.initIframe()}, 50); 1881 return false; 1870 1882 } 1871 1883 … … 4362 4374 } 4363 4375 } 4364 return HTMLArea.is_gecko || HTMLArea.is_ie; 4376 4377 return HTMLArea.is_ie || HTMLArea.is_designMode; 4365 4378 }; 4366 4379 -
branches/opera/plugins/ImageManager/Classes/GD.php
r43 r428 333 333 * better result. 334 334 * 335 * @param $new_x intnew width336 * @param $new_y intnew height335 * @param int $new_x new width 336 * @param int $new_y new height 337 337 * 338 338 * @return true on success or pear error … … 438 438 * Save the image file 439 439 * 440 * @param $filename stringthe name of the file to write to441 * @param $quality intoutput DPI, default is 85442 * @param $types stringdefine the output format, default440 * @param string $filename the name of the file to write to 441 * @param int $quality output DPI, default is 85 442 * @param string $types define the output format, default 443 443 * is the current used format 444 444 * -
branches/opera/plugins/ImageManager/Classes/IM.php
r174 r428 183 183 * Save the image file 184 184 * 185 * @param $filename stringthe name of the file to write to186 * @param $quality qualityimage dpi, default=75187 * @param $type string(JPG,PNG...)185 * @param string $filename the name of the file to write to 186 * @param quality $quality image dpi, default=75 187 * @param string $type (JPG,PNG...) 188 188 * 189 189 * @return none -
branches/opera/plugins/ImageManager/Classes/NetPBM.php
r43 r428 206 206 * Save the image file 207 207 * 208 * @param $filename stringthe name of the file to write to208 * @param string $filename the name of the file to write to 209 209 * @param string $type (jpeg,png...); 210 210 * @param int $quality 75 -
branches/opera/popups/blank.html
r20 r428 1 1 <html> 2 <body onload="window.xinhaReadyToRoll = true;"> 3 </body> 2 4 </html>
