Changeset 788
- Timestamp:
- 2007-09-06 22:45:31 (3 years ago)
- Location:
- FCKeditor/trunk/_samples/html
- Files:
-
- 12 modified
-
sample01.html (modified) (1 diff)
-
sample03.html (modified) (2 diffs)
-
sample04.html (modified) (1 diff)
-
sample05.html (modified) (1 diff)
-
sample06.html (modified) (1 diff)
-
sample07.html (modified) (1 diff)
-
sample08.html (modified) (5 diffs)
-
sample09.html (modified) (2 diffs)
-
sample10.html (modified) (2 diffs)
-
sample11_frame.html (modified) (2 diffs)
-
sample12.html (modified) (3 diffs)
-
sample13.html (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/_samples/html/sample01.html
r705 r788 49 49 oFCKeditor.BasePath = sBasePath ; 50 50 oFCKeditor.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>' ;51 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 52 52 oFCKeditor.Create() ; 53 53 //--> -
FCKeditor/trunk/_samples/html/sample03.html
r705 r788 94 94 <td> 95 95 <select id="cmbLanguages" onchange="ChangeLanguage(this.value);"> 96 <option> </option> 96 97 </select> 97 98 </td> … … 126 127 oFCKeditor.Config["DefaultLanguage"] = sLang ; 127 128 } 128 oFCKeditor.Value = '<p>This is some <strong>sample text< /strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;129 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 129 130 oFCKeditor.Create() ; 130 131 //--> -
FCKeditor/trunk/_samples/html/sample04.html
r705 r788 85 85 oFCKeditor.ToolbarSet = sToolbar ; 86 86 87 oFCKeditor.Value = '<p>This is some <strong>sample text< /strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;87 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 88 88 oFCKeditor.Create() ; 89 89 //--> -
FCKeditor/trunk/_samples/html/sample05.html
r705 r788 115 115 } 116 116 117 oFCKeditor.Value = '<p>This is some <strong>sample text< /strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;117 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 118 118 oFCKeditor.Create() ; 119 119 //--> -
FCKeditor/trunk/_samples/html/sample06.html
r705 r788 63 63 oFCKeditor.ToolbarSet = 'PluginTest' ; 64 64 65 oFCKeditor.Value = '<p>This is some <strong>sample text< /strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;65 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 66 66 oFCKeditor.Create() ; 67 67 //--> -
FCKeditor/trunk/_samples/html/sample07.html
r705 r788 49 49 oFCKeditor.BasePath = sBasePath ; 50 50 oFCKeditor.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>' ;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>' ; 52 52 oFCKeditor.Create() ; 53 53 //--> -
FCKeditor/trunk/_samples/html/sample08.html
r705 r788 30 30 <script type="text/javascript" src="../../fckeditor.js"></script> 31 31 <script type="text/javascript"> 32 32 <!-- 33 33 // FCKeditor_OnComplete is a special function that is called when an editor 34 34 // instance is loaded ad available to the API. It must be named exactly in … … 52 52 { 53 53 // 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 -' ) ; 55 55 } 56 56 else … … 64 64 65 65 // 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.' ) ; 67 67 } 68 68 … … 137 137 alert( 'The "IsDirty" status has been reset' ) ; 138 138 } 139 139 --> 140 140 </script> 141 141 </head> … … 159 159 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; 160 160 oFCKeditor.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>' ;161 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 162 162 oFCKeditor.Create() ; 163 163 //--> -
FCKeditor/trunk/_samples/html/sample09.html
r705 r788 77 77 oFCKeditor.BasePath = sBasePath ; 78 78 oFCKeditor.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>' ;79 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 80 80 oFCKeditor.Create() ; 81 81 //--> … … 90 90 91 91 oFCKeditor.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>' ;92 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 93 93 oFCKeditor.Create() ; 94 94 //--> -
FCKeditor/trunk/_samples/html/sample10.html
r705 r788 57 57 oFCKeditor.Height = 100 ; 58 58 oFCKeditor.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>' ;59 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 60 60 oFCKeditor.Create() ; 61 61 //--> … … 69 69 oFCKeditor.Height = 100 ; 70 70 oFCKeditor.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>' ;71 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 72 72 oFCKeditor.Create() ; 73 73 //--> -
FCKeditor/trunk/_samples/html/sample11_frame.html
r705 r788 47 47 oFCKeditor.Height = 100 ; 48 48 oFCKeditor.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>' ;49 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 50 50 oFCKeditor.Create() ; 51 51 //--> … … 59 59 oFCKeditor.Height = 100 ; 60 60 oFCKeditor.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>' ;61 oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 62 62 oFCKeditor.Create() ; 63 63 //--> -
FCKeditor/trunk/_samples/html/sample12.html
r729 r788 30 30 <script type="text/javascript" src="../../fckeditor.js"></script> 31 31 <script type="text/javascript"> 32 32 <!-- 33 33 // The following function is used in this samples to reload the page, 34 34 // setting the querystring parameters for the enter mode. … … 40 40 window.location.href = window.location.pathname + '?enter=' + sEnterMode + '&shift=' + sShiftEnterMode ; 41 41 } 42 42 --> 43 43 </script> 44 44 </head> … … 104 104 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; 105 105 oFCKeditor.BasePath = sBasePath ; 106 oFCKeditor.Value = 'This is some <strong>sample text< /strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;106 oFCKeditor.Value = 'This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.' ; 107 107 108 108 // Set the configuration options for the Enter Key mode. -
FCKeditor/trunk/_samples/html/sample13.html
r302 r788 36 36 var oEditor ; 37 37 if ( typeof( FCKeditorAPI ) != 'undefined' ) 38 oEditor = FCKeditorAPI.GetInstance( ' _DataFCKeditor' ) ;38 oEditor = FCKeditorAPI.GetInstance( 'DataFCKeditor' ) ; 39 39 40 40 // 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' ) ; 43 43 44 44 // If the _Textarea DIV is visible, switch to FCKeditor. … … 53 53 { 54 54 // Set the current text in the textarea to the editor. 55 oEditor.SetData( document.getElementById(' _DataTextarea').value ) ;55 oEditor.SetData( document.getElementById('DataTextarea').value ) ; 56 56 } 57 57 … … 70 70 { 71 71 // Set the textarea value to the editor value. 72 document.getElementById(' _DataTextarea').value = oEditor.GetXHTML() ;72 document.getElementById('DataTextarea').value = oEditor.GetXHTML() ; 73 73 74 74 // Switch the DIVs display. … … 81 81 { 82 82 // 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 ; 84 84 85 85 // Automatically calculates the editor base path based on the _samples directory. … … 89 89 90 90 // Create an instance of FCKeditor (using the target textarea as the name). 91 var oFCKeditor = new FCKeditor( ' _DataFCKeditor' ) ;91 var oFCKeditor = new FCKeditor( 'DataFCKeditor' ) ; 92 92 oFCKeditor.BasePath = sBasePath ; 93 93 oFCKeditor.Width = '100%' ; … … 101 101 { 102 102 // 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 ; 104 104 } 105 105 … … 107 107 { 108 108 // 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' ) 110 110 { 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() ; 113 113 } 114 114 } … … 127 127 <hr /> 128 128 <form action="sampleposteddata.asp" method="post" target="_blank" onsubmit="PrepareSave();"> 129 <div id=" _Textarea">129 <div id="Textarea"> 130 130 <input type="button" value="Switch to FCKeditor" onclick="Toggle()" /> 131 131 <br /> 132 132 <br /> 133 <textarea id=" _DataTextarea" name="Data" cols="80" rows="20" style="width: 95%">This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</textarea>133 <textarea id="DataTextarea" name="Data" cols="80" rows="20" style="width: 95%">This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</textarea> 134 134 </div> 135 <div id=" _FCKeditor" style="display: none">135 <div id="FCKeditor" style="display: none"> 136 136 <!-- Note that the following button is disabled at startup. 137 137 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()" /> 139 139 <br /> 140 140 <br /> 141 141 <!-- 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> 143 143 </div> 144 144 <br />