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

Changeset 9146


Ignore:
Timestamp:
Nov 14, 2008, 11:55:14 AM (14 years ago)
Author:
akamine
Message:

#3133 editor_pluginのfontタグの処理を修正

Location:
OpenPNE/branches/stable-2.12.x/public_html/js/tiny_mce/plugins/openpne
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.12.x/public_html/js/tiny_mce/plugins/openpne/editor_plugin.js

    r7465 r9146  
    3737tagList=doc.getElementsByTagName(org_tagname);continue;}
    3838if(size=='5'){tagname='op:large';}else if(size=='1'){tagname='op:small';}
    39 if(color){tagname='op:color';args={code:color};}}else if(org_tagname=='span'){if(targetObj.style.fontWeight=='bold'){tagname='op:b';}else if(targetObj.style.textDecoration=='underline'){tagname='op:u';}else if(targetObj.style.textDecoration=='line-through'){tagname='op:s';}else if(targetObj.style.fontStyle=='italic'){tagname='op:i';}else if(targetObj.style.color){var color=tinyMCE.activeEditor.dom.toHex(targetObj.style.color);tagname='op:color';args={code:color};}else if(targetObj.style.fontSize=='x-large'){tagname='op:large';}else if(targetObj.style.fontSize=='x-small'){tagname='op:small';}else{editor.dom.remove(targetObj,true);continue;}}else{tagname='op:'+org_tagname;}
     39if(color){tagname='op:color';args={code:color};}
     40if(tagname==org_tagname){editor.dom.remove(targetObj,true);tagList=doc.getElementsByTagName(org_tagname);continue;}}else if(org_tagname=='span'){if(targetObj.style.fontWeight=='bold'){tagname='op:b';}else if(targetObj.style.textDecoration=='underline'){tagname='op:u';}else if(targetObj.style.textDecoration=='line-through'){tagname='op:s';}else if(targetObj.style.fontStyle=='italic'){tagname='op:i';}else if(targetObj.style.color){var color=tinyMCE.activeEditor.dom.toHex(targetObj.style.color);tagname='op:color';args={code:color};}else if(targetObj.style.fontSize=='x-large'){tagname='op:large';}else if(targetObj.style.fontSize=='x-small'){tagname='op:small';}else{editor.dom.remove(targetObj,true);continue;}}else{tagname='op:'+org_tagname;}
    4041if(tinymce.isIE){tagname=tagname.replace("op:","op");}
    4142var newObj=editor.dom.create(tagname);editor.dom.setAttribs(newObj,args);if(tinymce.isIE){newObj.innerHTML=targetObj.innerHTML;targetObj.parentNode.replaceChild(newObj,targetObj);}else{editor.dom.replace(newObj,targetObj,true);}
  • OpenPNE/branches/stable-2.12.x/public_html/js/tiny_mce/plugins/openpne/editor_plugin.js.src

    r7465 r9146  
    451451                                code: color
    452452                            };
     453                        }
     454
     455                        if (tagname == org_tagname) {
     456                            editor.dom.remove(targetObj, true);
     457                            tagList = doc.getElementsByTagName(org_tagname);
     458                            continue;
    453459                        }
    454460                    } else if (org_tagname == 'span') {  // for safari
Note: See TracChangeset for help on using the changeset viewer.