Ignore:
Timestamp:
03/19/05 12:43:54 (15 years ago)
Author:
gogo
Message:

Applying #64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/HtmlTidy/html-tidy-logic.php

    r30 r40  
    1818                1 => array("pipe", "w") 
    1919        ); 
    20         $process = proc_open("tidy -config html-tidy-config.cfg", $descriptorspec, $pipes); 
     20        $process = proc_open("tidy -utf8 -config html-tidy-config.cfg", $descriptorspec, $pipes); 
     21 
    2122 
    2223        // Make sure the program started and we got the hooks... 
     
    5960        } 
    6061?> 
    61  
    62  
    63 <html> 
    64   <head> 
    65     <script type="text/javascript"> 
    66  
    67 function setNewHtml() { 
    68         var htRef = window.parent._editorRef.plugins['HtmlTidy']; 
    69         htRef.instance.processTidied(tidyString()); 
    70 } 
    71 function tidyString() { 
    72         var ns = '\n'; 
    73         <?=$jsMakeSrc;?> 
    74         return ns; 
    75 } 
    76  
    77     </script> 
    78   </head> 
    79  
    80   <body id="htiNewBody" onload="setNewHtml()"> 
    81   </body> 
    82 </html> 
     62var ns=""; 
     63<?=$jsMakeSrc?> 
     64editor.setHTML(ns); 
Note: See TracChangeset for help on using the changeset viewer.