Changeset 6614
- Timestamp:
- 09/03/08 21:09:43 (19 months ago)
- Location:
- branches/1.7
- Files:
-
- 4 modified
-
plugins/FM_Modern/editor.js (modified) (3 diffs)
-
plugins/FM_Modern/index.php (modified) (1 diff)
-
plugins/FM_Modern/index.xml (modified) (1 diff)
-
script/EAF4.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/plugins/FM_Modern/editor.js
r6413 r6614 84 84 TTModernEditor.prototype.initialize = function(textarea) { 85 85 // execCommand가 사용가능한 경우에만 위지윅을 쓸 수 있다. (지금은 Internet Explorer, Firefox, Safari 3만 지원한다) 86 if(typeof(document.execCommand) == "undefined" || !(STD.isIE || STD.isFirefox || STD.isSafari3))86 if(typeof(document.execCommand) == "undefined" || !(STD.isIE || STD.isFirefox || (STD.isWebkit && STD.engineVersion >= 419.3))) 87 87 return; 88 88 // Set editor mode for formatters. … … 1603 1603 1604 1604 // safari 3 workaround: collect the last selection range for object insertion 1605 if (STD.is Safari3) {1605 if (STD.isWebkit && STD.engineVersion >= 419.3) { 1606 1606 var range = this.getSelectionRange(); 1607 1607 if (range) this.lastSelectionRange = range; … … 1654 1654 // 이벤트가 발생하면 showProperty 함수에서 TTML 치환자인지 아닌지 판단해, TTML 치환자일 경우에 속성을 수정할 수 있는 창을 띄워주게 된다 1655 1655 if(this.selectedElement && !isFunctionalKeyPressed) { 1656 if (this.showProperty(this.selectedElement) && STD.isSafari3) {1656 if (this.showProperty(this.selectedElement) && (STD.isWebkit && STD.engineVersion >= 419.3)) { 1657 1657 // safari 3 workaround: put current element in the selection 1658 1658 var range = this.contentDocument.createRange(); -
branches/1.7/plugins/FM_Modern/index.php
r5396 r6614 29 29 ob_start(); 30 30 ?> 31 if (typeof(document.execCommand) == "undefined" || !(STD.isIE || STD.isFirefox || STD.isSafari3)) return null;31 if (typeof(document.execCommand) == "undefined" || !(STD.isIE || STD.isFirefox || (STD.isWebkit && STD.engineVersion >= 419.3)) return null; 32 32 var editor = new TTModernEditor(); 33 33 editor.fixPosition = <?php echo getBlogSetting('editorPropertyPositionFix', 0);?>; -
branches/1.7/plugins/FM_Modern/index.xml
r5775 r6614 12 12 <safety changeData="no" exposeData="no" accessLocal="no" accessRemote="no" accessRaw="no" /> 13 13 <requirements> 14 <textcube>1. 7</textcube>14 <textcube>1.8</textcube> 15 15 </requirements> 16 16 <binding> -
branches/1.7/script/EAF4.js
r6298 r6614 21 21 Standardizer.prototype.name = "Eolin Standardizer"; 22 22 Standardizer.prototype.verion = "1.0"; 23 Standardizer.prototype.copyright = "Copyright (c) 2005,200 7Needlworks / Tatter & Company. All rights reserved.";23 Standardizer.prototype.copyright = "Copyright (c) 2005,2008 Needlworks / Tatter & Company. All rights reserved."; 24 24 25 25 function Standardizer(){}; 26 26 27 Standardizer.prototype.isIE = (navigator.userAgent.indexOf("MSIE")>=0 && document.all); 28 Standardizer.prototype.isIE6 = (navigator.userAgent.indexOf("MSIE 6.")>=0 && document.all); 29 Standardizer.prototype.isFirefox = (navigator.userAgent.indexOf("Firefox")>=0 || navigator.userAgent.indexOf("IceWeasel")>=0); 30 Standardizer.prototype.isSafari = (navigator.userAgent.indexOf("Safari")>=0); 31 Standardizer.prototype.isSafari3 = (navigator.userAgent.indexOf("Safari")>=0 && navigator.userAgent.indexOf("Version/3")>0); 32 Standardizer.prototype.isOpera = (!Standardizer.prototype.isIE&&(navigator.userAgent.indexOf("Opera")>=0)); 33 Standardizer.prototype.isMozilla = (!Standardizer.prototype.isIE && !Standardizer.prototype.isFirefox && !Standardizer.prototype.isSafari && !Standardizer.prototype.isOpera && (navigator.userAgent.indexOf("Mozilla")>=0)); 34 27 var ua = navigator.userAgent; 28 // Microsoft Explorer 29 Standardizer.prototype.isIE = (ua.indexOf("MSIE")>=0 && document.all); 30 if(Standardizer.prototype.isIE) { 31 Standardizer.prototype.browserVersion = parseFloat(ua.substr(Math.max(ua.indexOf("MSIE"),0)+4,4)); 32 Standardizer.prototype.engineVersion = Standardizer.prototype.browserVersion; 33 } 34 // Mozilla Firefox 35 Standardizer.prototype.isFirefox = (ua.indexOf("Firefox")>=0 || ua.indexOf("IceWeasel")>=0 || ua.indexOf("Minefield")>0); 36 if(Standardizer.prototype.isFirefox) { 37 Standardizer.prototype.browserVersion = parseFloat(ua.substr(ua.indexOf("Firefox/")+8,10)); 38 Standardizer.prototype.engineVersion = parseFloat(ua.substr(Math.max(ua.indexOf("rv:"),0)+3,7)); 39 } 40 // Webkit / safari 41 webkitIndex = Math.max(ua.indexOf("WebKit"), ua.indexOf("Safari"),0); 42 Standardizer.prototype.isSafari = (ua.indexOf("Safari")>=0); 43 Standardizer.prototype.isWebkit = (webkitIndex > 0); 44 if(Standardizer.prototype.isWebkit) { 45 Standardizer.prototype.browserVersion = parseFloat(ua.split("Version/")[1]) || ( ( parseFloat(ua.substr(webkitIndex+7)) >= 419.3 ) ? 3 : 2 ) || 2; 46 Standardizer.prototype.engineVersion = parseFloat(ua.substr(webkitIndex+7)); 47 } 48 // Opera 49 Standardizer.prototype.isOpera = (!Standardizer.prototype.isIE&&(ua.indexOf("Opera")>=0)); 50 // Mozilla-compartible 51 Standardizer.prototype.isMozilla = (!Standardizer.prototype.isIE && !Standardizer.prototype.isFirefox && !Standardizer.prototype.isSafari && !Standardizer.prototype.isOpera && (ua.indexOf("Mozilla")>=0)); 35 52 Standardizer.prototype.addEventListener = function(object) { 36 53 if(!object.addEventListener)
