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

Changeset 7286


Ignore:
Timestamp:
May 20, 2008, 5:46:08 PM (11 years ago)
Author:
ebihara
Message:

#2352: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

    r7277 r7286  
    3939tagList=doc.getElementsByTagName(org_tagname);}
    4040s=editorDoc.innerHTML;}
    41 var convertList=new Array('span','b','u','s','i','font');for(var i=0;i<convertList.length;i++){convertHtmlTagToDecoTag(editor.getBody(),convertList[i]);}
     41var convertList=new Array('span','font','b','u','s','i');for(var i=0;i<convertList.length;i++){convertHtmlTagToDecoTag(editor.getBody(),convertList[i]);}
    4242rep(/<\/?div>/gi,"");if(tinymce.isIE){rep(/<op/gi,"<op:");rep(/<\/op/gi,"</op:");}
    4343rep(/<br\s?\/?[^>]*>/gi,"\n\n");rep(/&nbsp;/gi," ");rep(/&quot;/gi,"\"");rep(/&lt;/gi,"<");rep(/&gt;/gi,">");rep(/&amp;/gi,"&");return s;},_textToPreview:function(s){s=tinymce.trim(s);var rule=/&lt;op:(b|u|s|i|large|small|color)( code="(#[0-9a-f]{3,6})"|)&gt;(.*?)&lt;\/op:\1&gt;/i;function rep(re,str){s=s.replace(re,str);};function convertDecoTagToHtmlTag(matches)
  • OpenPNE/branches/stable-2.12.x/public_html/js/tiny_mce/plugins/openpne/editor_plugin.js.src

    r7277 r7286  
    466466            }
    467467
    468             var convertList = new Array('span', 'b', 'u', 's', 'i', 'font');
     468            var convertList = new Array('span', 'font', 'b', 'u', 's', 'i');
    469469            for (var i = 0; i < convertList.length; i++) {
    470470                convertHtmlTagToDecoTag(editor.getBody(), convertList[i]);
Note: See TracChangeset for help on using the changeset viewer.