Ticket #1627: 1627.patch
File 1627.patch, 10.9 KB (added by , 15 years ago) |
---|
-
sample01.html
43 43 // Automatically calculates the editor base path based on the _samples directory. 44 44 // This is usefull only for these samples. A real application should use something like this: 45 45 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 46 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;46 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 47 47 48 48 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; 49 49 oFCKeditor.BasePath = sBasePath ; -
sample02.html
35 35 // Automatically calculates the editor base path based on the _samples directory. 36 36 // This is usefull only for these samples. A real application should use something like this: 37 37 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 38 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;38 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 39 39 40 40 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; 41 41 oFCKeditor.BasePath = sBasePath ; -
sample03.html
78 78 79 79 function ChangeLanguage( languageCode ) 80 80 { 81 window.location.href = window.location.pathname+ "?" + languageCode ;81 document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ; 82 82 } 83 83 </script> 84 84 </head> … … 111 111 // Automatically calculates the editor base path based on the _samples directory. 112 112 // This is usefull only for these samples. A real application should use something like this: 113 113 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 114 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;114 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 115 115 116 116 var sLang ; 117 117 if ( document.location.search.length > 1 ) -
sample04.html
39 39 40 40 function ChangeLanguage( languageCode ) 41 41 { 42 window.location.href = window.location.pathname+ "?" + languageCode ;42 document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ; 43 43 } 44 44 45 45 </script> … … 71 71 // Automatically calculates the editor base path based on the _samples directory. 72 72 // This is usefull only for these samples. A real application should use something like this: 73 73 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 74 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;74 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 75 75 76 76 // Get the toolbar from the URL. 77 77 var sToolbar ; -
sample05.html
44 44 45 45 function ChangeLanguage( languageCode ) 46 46 { 47 window.location.href = window.location.pathname+ "?" + languageCode ;47 document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ; 48 48 } 49 49 50 50 </script> … … 77 77 // Automatically calculates the editor base path based on the _samples directory. 78 78 // This is usefull only for these samples. A real application should use something like this: 79 79 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 80 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;80 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 81 81 82 82 // Get the skin from the URL. 83 83 var sSkin ; -
sample06.html
51 51 // Automatically calculates the editor base path based on the _samples directory. 52 52 // This is usefull only for these samples. A real application should use something like this: 53 53 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 54 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;54 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 55 55 56 56 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; 57 57 oFCKeditor.BasePath = sBasePath ; -
sample07.html
43 43 // Automatically calculates the editor base path based on the _samples directory. 44 44 // This is usefull only for these samples. A real application should use something like this: 45 45 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 46 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;46 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 47 47 48 48 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; 49 49 oFCKeditor.BasePath = sBasePath ; -
sample08.html
154 154 // Automatically calculates the editor base path based on the _samples directory. 155 155 // This is usefull only for these samples. A real application should use something like this: 156 156 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 157 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;157 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 158 158 159 159 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; 160 160 oFCKeditor.BasePath = sBasePath ; -
sample09.html
68 68 // Automatically calculates the editor base path based on the _samples directory. 69 69 // This is usefull only for these samples. A real application should use something like this: 70 70 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 71 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;71 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 72 72 73 73 var oFCKeditor = new FCKeditor( 'FCKeditor_Basic' ) ; 74 74 -
sample10.html
50 50 // Automatically calculates the editor base path based on the _samples directory. 51 51 // This is usefull only for these samples. A real application should use something like this: 52 52 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 53 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;53 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 54 54 55 55 var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ; 56 56 oFCKeditor.BasePath = sBasePath ; -
sample11_frame.html
40 40 // Automatically calculates the editor base path based on the _samples directory. 41 41 // This is usefull only for these samples. A real application should use something like this: 42 42 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 43 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;43 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 44 44 45 45 var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ; 46 46 oFCKeditor.BasePath = sBasePath ; -
sample12.html
82 82 // Automatically calculates the editor base path based on the _samples directory. 83 83 // This is usefull only for these samples. A real application should use something like this: 84 84 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 85 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;85 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 86 86 87 87 // The following are the default configurations for the Enter and Shift+Enter modes. 88 88 var sEnterMode = 'p' ; -
sample13.html
85 85 // Automatically calculates the editor base path based on the _samples directory. 86 86 // This is usefull only for these samples. A real application should use something like this: 87 87 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 88 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;88 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 89 89 90 90 // Create an instance of FCKeditor (using the target textarea as the name). 91 91 var oFCKeditor = new FCKeditor( 'DataFCKeditor' ) ; -
sample14.html
45 45 // Automatically calculates the editor base path based on the _samples directory. 46 46 // This is usefull only for these samples. A real application should use something like this: 47 47 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 48 var sBasePath = document.location. pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;48 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; 49 49 50 50 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; 51 51 oFCKeditor.BasePath = sBasePath ;