ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 6295


Ignore:
Timestamp:
Apr 4, 2008, 2:23:20 PM (15 years ago)
Author:
ebihara
Message:

#333:ブラウザのコマンドから挿入できるfont要素のsize属性値の値を、実際の表示に近くなるよう変更

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/ebihara/prj_deco_diary/public_html/js/tiny_mce/plugins/openpne/editor_plugin.js

    r6254 r6295  
    3030            });
    3131            ed.addCommand('mceOpenPNE_op_large', function() {
    32                 tinyMCE.execCommand("Fontsize", false, 7);
     32                tinyMCE.execCommand("Fontsize", false, 5);
    3333            });
    3434            ed.addCommand('mceOpenPNE_op_small', function() {
    35                 tinyMCE.execCommand("Fontsize", false, 2);
     35                tinyMCE.execCommand("Fontsize", false, 1);
    3636            });
    3737            ed.addCommand('mceOpenPNE_op_color', function() {
     
    107107                        var color = targetObj.getAttribute('color');
    108108
    109                         if (size == '7') {
     109                        if (size == '5') {
    110110                            tagname = 'op:large';
    111                         } else if (size == '2') {
     111                        } else if (size == '1') {
    112112                            tagname = 'op:small';
    113113                        }
     
    179179                if (tagname == 'large') {
    180180                    tagname = 'font';
    181                     opt = ' size="7"';
     181                    opt = ' size="5"';
    182182                }
    183183           
    184184                if (tagname == 'small') {
    185185                    tagname = 'font';
    186                     opt = ' size="2"';
     186                    opt = ' size="1"';
    187187                }
    188188
Note: See TracChangeset for help on using the changeset viewer.