Changeset 788

Show
Ignore:
Timestamp:
2007-09-06 22:45:31 (3 years ago)
Author:
alfonsoml
Message:

Remove small HTML validator warnings

Location:
FCKeditor/trunk/_samples/html
Files:
12 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/_samples/html/sample01.html

    r705 r788  
    4949oFCKeditor.BasePath     = sBasePath ; 
    5050oFCKeditor.Height       = 300 ; 
    51 oFCKeditor.Value        = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.</p>' ; 
     51oFCKeditor.Value        = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    5252oFCKeditor.Create() ; 
    5353//--> 
  • FCKeditor/trunk/_samples/html/sample03.html

    r705 r788  
    9494                        <td> 
    9595                                <select id="cmbLanguages" onchange="ChangeLanguage(this.value);"> 
     96                                        <option>&nbsp;</option> 
    9697                                </select> 
    9798                        </td> 
     
    126127        oFCKeditor.Config["DefaultLanguage"]    = sLang ; 
    127128} 
    128 oFCKeditor.Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
     129oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    129130oFCKeditor.Create() ; 
    130131//--> 
  • FCKeditor/trunk/_samples/html/sample04.html

    r705 r788  
    8585        oFCKeditor.ToolbarSet = sToolbar ; 
    8686 
    87 oFCKeditor.Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
     87oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    8888oFCKeditor.Create() ; 
    8989//--> 
  • FCKeditor/trunk/_samples/html/sample05.html

    r705 r788  
    115115} 
    116116 
    117 oFCKeditor.Value        = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
     117oFCKeditor.Value        = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    118118oFCKeditor.Create() ; 
    119119//--> 
  • FCKeditor/trunk/_samples/html/sample06.html

    r705 r788  
    6363oFCKeditor.ToolbarSet   = 'PluginTest' ; 
    6464 
    65 oFCKeditor.Value                = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
     65oFCKeditor.Value                = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    6666oFCKeditor.Create() ; 
    6767//--> 
  • FCKeditor/trunk/_samples/html/sample07.html

    r705 r788  
    4949oFCKeditor.BasePath     = sBasePath ; 
    5050oFCKeditor.Config['FullPage'] = true ; 
    51 oFCKeditor.Value = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Full Page Test</title><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/></head><body><p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</body></html>' ; 
     51oFCKeditor.Value = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Full Page Test<\/title><meta content="text/html; charset=utf-8" http-equiv="Content-Type"><\/head><body><p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.<\/body><\/html>' ; 
    5252oFCKeditor.Create() ; 
    5353//--> 
  • FCKeditor/trunk/_samples/html/sample08.html

    r705 r788  
    3030        <script type="text/javascript" src="../../fckeditor.js"></script> 
    3131        <script type="text/javascript"> 
    32  
     32<!-- 
    3333// FCKeditor_OnComplete is a special function that is called when an editor 
    3434// instance is loaded ad available to the API. It must be named exactly in 
     
    5252        { 
    5353                // Insert the desired HTML. 
    54                 oEditor.InsertHtml( '- This is some <a href="/Test1.html">sample</a> HTML -' ) ; 
     54                oEditor.InsertHtml( '- This is some <a href="/Test1.html">sample<\/a> HTML -' ) ; 
    5555        } 
    5656        else 
     
    6464 
    6565        // Set the editor contents (replace the actual one). 
    66         oEditor.SetData( 'This is the <b>new content</b> I want in the editor.' ) ; 
     66        oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.' ) ; 
    6767} 
    6868 
     
    137137        alert( 'The "IsDirty" status has been reset' ) ; 
    138138} 
    139  
     139--> 
    140140        </script> 
    141141</head> 
     
    159159var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; 
    160160oFCKeditor.BasePath     = sBasePath ; 
    161 oFCKeditor.Value        = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
     161oFCKeditor.Value        = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    162162oFCKeditor.Create() ; 
    163163//--> 
  • FCKeditor/trunk/_samples/html/sample09.html

    r705 r788  
    7777oFCKeditor.BasePath             = sBasePath ; 
    7878oFCKeditor.ToolbarSet   = 'Basic' ; 
    79 oFCKeditor.Value                = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
     79oFCKeditor.Value                = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    8080oFCKeditor.Create() ; 
    8181//--> 
     
    9090 
    9191oFCKeditor.BasePath     = sBasePath ; 
    92 oFCKeditor.Value        = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
     92oFCKeditor.Value        = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    9393oFCKeditor.Create() ; 
    9494//--> 
  • FCKeditor/trunk/_samples/html/sample10.html

    r705 r788  
    5757oFCKeditor.Height = 100 ; 
    5858oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ; 
    59 oFCKeditor.Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
     59oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    6060oFCKeditor.Create() ; 
    6161//--> 
     
    6969oFCKeditor.Height = 100 ; 
    7070oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ; 
    71 oFCKeditor.Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
     71oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    7272oFCKeditor.Create() ; 
    7373//--> 
  • FCKeditor/trunk/_samples/html/sample11_frame.html

    r705 r788  
    4747oFCKeditor.Height = 100 ; 
    4848oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(xToolbar)' ; 
    49 oFCKeditor.Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
     49oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    5050oFCKeditor.Create() ; 
    5151//--> 
     
    5959oFCKeditor.Height = 100 ; 
    6060oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(xToolbar)' ; 
    61 oFCKeditor.Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
     61oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    6262oFCKeditor.Create() ; 
    6363//--> 
  • FCKeditor/trunk/_samples/html/sample12.html

    r729 r788  
    3030        <script type="text/javascript" src="../../fckeditor.js"></script> 
    3131        <script type="text/javascript"> 
    32  
     32<!-- 
    3333// The following function is used in this samples to reload the page, 
    3434// setting the querystring parameters for the enter mode. 
     
    4040        window.location.href = window.location.pathname + '?enter=' + sEnterMode + '&shift=' + sShiftEnterMode ; 
    4141} 
    42  
     42--> 
    4343        </script> 
    4444</head> 
     
    104104var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; 
    105105oFCKeditor.BasePath     = sBasePath ; 
    106 oFCKeditor.Value        = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ; 
     106oFCKeditor.Value        = 'This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.' ; 
    107107 
    108108// Set the configuration options for the Enter Key mode. 
  • FCKeditor/trunk/_samples/html/sample13.html

    r302 r788  
    3636        var oEditor ; 
    3737        if ( typeof( FCKeditorAPI ) != 'undefined' ) 
    38                 oEditor = FCKeditorAPI.GetInstance( '_DataFCKeditor' ) ; 
     38                oEditor = FCKeditorAPI.GetInstance( 'DataFCKeditor' ) ; 
    3939 
    4040        // Get the _Textarea and _FCKeditor DIVs. 
    41         var eTextareaDiv        = document.getElementById( '_Textarea' ) ; 
    42         var eFCKeditorDiv       = document.getElementById( '_FCKeditor' ) ; 
     41        var eTextareaDiv        = document.getElementById( 'Textarea' ) ; 
     42        var eFCKeditorDiv       = document.getElementById( 'FCKeditor' ) ; 
    4343 
    4444        // If the _Textarea DIV is visible, switch to FCKeditor. 
     
    5353                { 
    5454                        // Set the current text in the textarea to the editor. 
    55                         oEditor.SetData( document.getElementById('_DataTextarea').value ) ; 
     55                        oEditor.SetData( document.getElementById('DataTextarea').value ) ; 
    5656                } 
    5757 
     
    7070        { 
    7171                // Set the textarea value to the editor value. 
    72                 document.getElementById('_DataTextarea').value = oEditor.GetXHTML() ; 
     72                document.getElementById('DataTextarea').value = oEditor.GetXHTML() ; 
    7373 
    7474                // Switch the DIVs display. 
     
    8181{ 
    8282        // Copy the value of the current textarea, to the textarea that will be used by the editor. 
    83         document.getElementById('_DataFCKeditor').value = document.getElementById('_DataTextarea').value ; 
     83        document.getElementById('DataFCKeditor').value = document.getElementById('DataTextarea').value ; 
    8484 
    8585        // Automatically calculates the editor base path based on the _samples directory. 
     
    8989 
    9090        // Create an instance of FCKeditor (using the target textarea as the name). 
    91         var oFCKeditor = new FCKeditor( '_DataFCKeditor' ) ; 
     91        var oFCKeditor = new FCKeditor( 'DataFCKeditor' ) ; 
    9292        oFCKeditor.BasePath = sBasePath ; 
    9393        oFCKeditor.Width = '100%' ; 
     
    101101{ 
    102102        // Enable the switch button. It is disabled at startup, waiting the editor to be loaded. 
    103         document.getElementById('_BtnSwitchTextarea').disabled = false ; 
     103        document.getElementById('BtnSwitchTextarea').disabled = false ; 
    104104} 
    105105 
     
    107107{ 
    108108        // If the textarea isn't visible update the content from the editor. 
    109         if ( document.getElementById( '_Textarea' ).style.display == 'none' ) 
     109        if ( document.getElementById( 'Textarea' ).style.display == 'none' ) 
    110110        { 
    111                 var oEditor = FCKeditorAPI.GetInstance( '_DataFCKeditor' ) ; 
    112                 document.getElementById( '_DataTextarea' ).value = oEditor.GetXHTML() ; 
     111                var oEditor = FCKeditorAPI.GetInstance( 'DataFCKeditor' ) ; 
     112                document.getElementById( 'DataTextarea' ).value = oEditor.GetXHTML() ; 
    113113        } 
    114114} 
     
    127127        <hr /> 
    128128        <form action="sampleposteddata.asp" method="post" target="_blank" onsubmit="PrepareSave();"> 
    129                 <div id="_Textarea"> 
     129                <div id="Textarea"> 
    130130                        <input type="button" value="Switch to FCKeditor" onclick="Toggle()" /> 
    131131                        <br /> 
    132132                        <br /> 
    133                         <textarea id="_DataTextarea" name="Data" cols="80" rows="20" style="width: 95%">This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;FCKeditor&lt;/a&gt;.</textarea> 
     133                        <textarea id="DataTextarea" name="Data" cols="80" rows="20" style="width: 95%">This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;FCKeditor&lt;/a&gt;.</textarea> 
    134134                </div> 
    135                 <div id="_FCKeditor" style="display: none"> 
     135                <div id="FCKeditor" style="display: none"> 
    136136                        <!-- Note that the following button is disabled at startup. 
    137137                                It will be enabled once the editor is completely loaded. --> 
    138                         <input id="_BtnSwitchTextarea" type="button" disabled="disabled" value="Switch to Textarea" onclick="Toggle()" /> 
     138                        <input id="BtnSwitchTextarea" type="button" disabled="disabled" value="Switch to Textarea" onclick="Toggle()" /> 
    139139                        <br /> 
    140140                        <br /> 
    141141                        <!-- Note that the following textarea doesn't have a "name", so it will not be posted. --> 
    142                         <textarea id="_DataFCKeditor" cols="80" rows="20"></textarea> 
     142                        <textarea id="DataFCKeditor" cols="80" rows="20"></textarea> 
    143143                </div> 
    144144                <br />