Ticket #3220: 3220.patch

File 3220.patch, 3.9 KB (added by Wiktor Walc, 15 years ago)
  • _source/includes/samplesprocessor.js

     
    101101                }
    102102
    103103                /**
     104                 * FIXME: #3220
     105                 * xml:space="preserve" is somehow being added to the script tag.
     106                 */
     107                var scripts = newDocument.getElementsByTagName( 'script' );
     108                for ( var i = 0 ; i < scripts.getLength() ; i++ )
     109                {
     110                        scripts.item( i ).removeAttribute( "xml:space" );
     111                }
     112
     113                /**
    104114                 * FIXME: No matter how do we set the OutputKeys.METHOD in
    105115                 * CKRELEASER.xml.saveXml there is always something wrong. Setting
    106116                 * "text" removes all tags. Setting "html" adds uppercased Meta tag,
  • test/_assets/samples/ajax.correct.txt

     
    1010<!-- CKReleaser %REMOVE_LINE%
    1111        <script type="text/javascript" src="../ckeditor.js"></script>
    1212CKReleaser %REMOVE_LINE% -->
    13         <script src="../ckeditor_source.js" type="text/javascript" xml:space="preserve"></script> <!-- CKReleaser %REMOVE_LINE% -->
     13        <script src="../ckeditor_source.js" type="text/javascript"></script> <!-- CKReleaser %REMOVE_LINE% -->
    1414<!--
    1515        ## Uncomment this if loading the "basic" version.
    1616
     
    2525        //]]>
    2626        </script>
    2727-->
    28         <script src="sample.js" type="text/javascript" xml:space="preserve"></script>
     28        <script src="sample.js" type="text/javascript"></script>
    2929        <link href="sample.css" rel="stylesheet" type="text/css"/>
    30        
    3130        <script id="headscript" type="text/javascript">
    3231        //<![CDATA[
    3332
     
    9291             pages. -->
    9392        <fieldset title="Output">
    9493                <legend>Output</legend>
    95                
    9694                <p>
    9795                        <input onclick="createEditor();" type="button" value="Create Editor"/>
    9896                        <input onclick="removeEditor();" type="button" value="Remove Editor"/>
     
    103101                        <p>Edited Contents:</p>
    104102                        <div id="editorcontents"/>
    105103                </div>
    106        
    107104        </fieldset>
    108105        <!-- This <fieldset> contains the output readable code that illustrates
    109106             how to use the editor, having the results shown in this sample. -->
    110107        <fieldset title="Code">
    111108                <legend>Code</legend>
    112                
    113109                <pre/>
    114        
    115110        </fieldset>
    116111        <div id="footer">
    117112                <hr/>
  • test/_assets/samples/divreplace.correct.txt

     
    1010<!-- CKReleaser %REMOVE_LINE%
    1111        <script type="text/javascript" src="../ckeditor.js"></script>
    1212CKReleaser %REMOVE_LINE% -->
    13         <script src="../ckeditor_source.js" type="text/javascript" xml:space="preserve"></script> <!-- CKReleaser %REMOVE_LINE% -->
     13        <script src="../ckeditor_source.js" type="text/javascript"></script> <!-- CKReleaser %REMOVE_LINE% -->
    1414<!--
    1515        ## Uncomment this if loading the "basic" version.
    1616
     
    2525        //]]>
    2626        </script>
    2727-->
    28         <script src="sample.js" type="text/javascript" xml:space="preserve"></script>
     28        <script src="sample.js" type="text/javascript"></script>
    2929        <link href="sample.css" rel="stylesheet" type="text/css"/>
    3030        <style id="styles" type="text/css">
    3131
     
    103103             pages. -->
    104104        <fieldset title="Output">
    105105                <legend>Output</legend>
    106                
    107106                <p>
    108107                        Double-click on any of the following DIVs to transform them into editor instances.</p>
    109108                <div>
     
    144143                                eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
    145144                        </p>
    146145                </div>
    147        
    148146        </fieldset>
    149147        <!-- This <fieldset> contains the output readable code that illustrates
    150148             how to use the editor, having the results shown in this sample. -->
    151149        <fieldset title="Code">
    152150                <legend>Code</legend>
    153                
    154151                <pre/>
    155        
    156152        </fieldset>
    157153        <div id="footer">
    158154                <hr/>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy