Ticket #3559: 3559.patch

File 3559.patch, 1.8 KB (added by Wiktor Walc, 16 years ago)
  • _source/includes/samplesprocessor.js

     
    3434
    3535        function processXmlFile( sourceLocation, targetLocation )
    3636        {
     37                var fileContent = CKRELEASER.io.readFile( sourceLocation );
     38                CKRELEASER.io.saveFile( targetLocation, fileContent.replace( /\\/g, '\\\\' ) );
     39
    3740                var newDocument = templateDocument.cloneNode( true );
    38                 var document = CKRELEASER.xml.loadDocument( sourceLocation );
     41                var document = CKRELEASER.xml.loadDocument( targetLocation );
    3942                var result = template;
    4043                var node = {
    4144                        code :null,
  • test/_assets/samples/ajax.correct.txt

     
    2929        <link href="sample.css" rel="stylesheet" type="text/css"/>
    3030        <script id="headscript" type="text/javascript">
    3131        //<![CDATA[
    32 
     32document.write( '<script type="text/javascript" src="../dummy.js"><\/script>' );
     33document.write( '<script type="text/javascript" src="../dummy2.js"><\/script>' );
    3334var editor;
    3435
    3536function createEditor()
  • test/_assets/samples/ajax.html

     
    99        <script type="text/javascript" src="sample.js"></script>
    1010        <script id="headscript" type="text/javascript">
    1111        //<![CDATA[
    12 
     12document.write( '<script type="text/javascript" src="../dummy.js"><\/script>' );
     13document.write( '<script type="text/javascript" src="../dummy2.js"><\/script>' );
    1314var editor;
    1415
    1516function createEditor()
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy