Changeset 6614

Show
Ignore:
Timestamp:
09/03/08 21:09:43 (19 months ago)
Author:
inureyes
Message:

refs #1082

Location:
branches/1.7
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/1.7/plugins/FM_Modern/editor.js

    r6413 r6614  
    8484TTModernEditor.prototype.initialize = function(textarea) { 
    8585    // 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))) 
    8787        return; 
    8888    // Set editor mode for formatters. 
     
    16031603 
    16041604    // safari 3 workaround: collect the last selection range for object insertion 
    1605     if (STD.isSafari3) { 
     1605    if (STD.isWebkit && STD.engineVersion >= 419.3) { 
    16061606        var range = this.getSelectionRange(); 
    16071607        if (range) this.lastSelectionRange = range; 
     
    16541654    // 이벤트가 발생하면 showProperty 함수에서 TTML 치환자인지 아닌지 판단해, TTML 치환자일 경우에 속성을 수정할 수 있는 창을 띄워주게 된다 
    16551655    if(this.selectedElement && !isFunctionalKeyPressed) { 
    1656         if (this.showProperty(this.selectedElement) && STD.isSafari3) { 
     1656        if (this.showProperty(this.selectedElement) && (STD.isWebkit && STD.engineVersion >= 419.3)) { 
    16571657            // safari 3 workaround: put current element in the selection 
    16581658            var range = this.contentDocument.createRange(); 
  • branches/1.7/plugins/FM_Modern/index.php

    r5396 r6614  
    2929    ob_start(); 
    3030?> 
    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; 
    3232            var editor = new TTModernEditor(); 
    3333            editor.fixPosition = <?php echo getBlogSetting('editorPropertyPositionFix', 0);?>; 
  • branches/1.7/plugins/FM_Modern/index.xml

    r5775 r6614  
    1212    <safety changeData="no" exposeData="no" accessLocal="no" accessRemote="no" accessRaw="no" /> 
    1313    <requirements> 
    14         <textcube>1.7</textcube> 
     14        <textcube>1.8</textcube> 
    1515    </requirements> 
    1616    <binding> 
  • branches/1.7/script/EAF4.js

    r6298 r6614  
    2121Standardizer.prototype.name      = "Eolin Standardizer"; 
    2222Standardizer.prototype.verion    = "1.0"; 
    23 Standardizer.prototype.copyright = "Copyright (c) 2005,2007 Needlworks / Tatter & Company. All rights reserved."; 
     23Standardizer.prototype.copyright = "Copyright (c) 2005,2008 Needlworks / Tatter & Company. All rights reserved."; 
    2424 
    2525function Standardizer(){}; 
    2626 
    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  
     27var ua = navigator.userAgent; 
     28// Microsoft Explorer 
     29Standardizer.prototype.isIE = (ua.indexOf("MSIE")>=0 && document.all); 
     30if(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 
     35Standardizer.prototype.isFirefox = (ua.indexOf("Firefox")>=0 || ua.indexOf("IceWeasel")>=0 || ua.indexOf("Minefield")>0); 
     36if(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 
     41webkitIndex = Math.max(ua.indexOf("WebKit"), ua.indexOf("Safari"),0); 
     42Standardizer.prototype.isSafari = (ua.indexOf("Safari")>=0); 
     43Standardizer.prototype.isWebkit = (webkitIndex > 0); 
     44if(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 
     49Standardizer.prototype.isOpera = (!Standardizer.prototype.isIE&&(ua.indexOf("Opera")>=0)); 
     50// Mozilla-compartible 
     51Standardizer.prototype.isMozilla = (!Standardizer.prototype.isIE && !Standardizer.prototype.isFirefox && !Standardizer.prototype.isSafari && !Standardizer.prototype.isOpera && (ua.indexOf("Mozilla")>=0)); 
    3552Standardizer.prototype.addEventListener = function(object) { 
    3653    if(!object.addEventListener)