Project

General

Profile

« Previous | Next » 

Revision 1161

Added by Dietmar over 14 years ago

new update FCKeditor to Version 2.6.5 Modulversion 2.9.1

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
------------------------------------- 2.8.1 -------------------------------------
14
10-Oct-2009 Dietmar Woellbrink
15
!	Update FCKeditor to Version 2.6.5 Modulversion 2.9.1
14 16
09-Oct-2009 Dietmar Woellbrink
15 17
!	Update FCKeditor to Version 2.6.5 Modulversion 2.9.1
16 18
09-Oct-2009 Dietmar Woellbrink
branches/2.8.x/wb/modules/fckeditor/class.cssparser.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
/*
27
 * Class to parse css information.
28
 *
29
 * See the readme file : http://www.phpclasses.org/browse/file/4685.html
30
 *
31
 * $Id$
32
 *
33
 * @author http://www.phpclasses.org/browse/package/1289.html
34
 * @package PhpGedView
35
 * @subpackage Charts
36
 *
37
 * added function GetXML to the cssparser class (Christian Sommer, 2007)
38
 *
39
 */
40

  
41
class cssparser {
42
	var $css;
43
	var $html;
44
  
45
	function cssparser($html = true) {
46
		// Register "destructor"
47
		register_shutdown_function(array(&$this, "finalize"));
48
		$this->html = ($html != false);
49
		$this->Clear();
50
	}
51
  
52
	function finalize() {
53
		unset($this->css);
54
	}
55
  
56
	function Clear() {
57
		unset($this->css);
58
		$this->css = array();
59
		if($this->html) {
60
			$this->Add("ADDRESS", "");
61
			$this->Add("APPLET", "");
62
			$this->Add("AREA", "");
63
			$this->Add("A", "");
64
			$this->Add("A:visited", "");
65
			$this->Add("BASE", "");
66
			$this->Add("BASEFONT", "");
67
			$this->Add("BIG", "");
68
			$this->Add("BLOCKQUOTE", "");
69
			$this->Add("BODY", "");
70
			$this->Add("BR", "");
71
			$this->Add("B", "");
72
			$this->Add("CAPTION", "");
73
			$this->Add("CENTER", "");
74
			$this->Add("CITE", "");
75
			$this->Add("CODE", "");
76
			$this->Add("DD", "");
77
			$this->Add("DFN", "");
78
			$this->Add("DIR", "");
79
			$this->Add("DIV", "");
80
			$this->Add("DL", "");
81
			$this->Add("DT", "");
82
			$this->Add("EM", "");
83
			$this->Add("FONT", "");
84
			$this->Add("FORM", "");
85
			$this->Add("H1", "");
86
			$this->Add("H2", "");
87
			$this->Add("H3", "");
88
			$this->Add("H4", "");
89
			$this->Add("H5", "");
90
			$this->Add("H6", "");
91
			$this->Add("HEAD", "");
92
			$this->Add("HR", "");
93
			$this->Add("HTML", "");
94
			$this->Add("IMG", "");
95
			$this->Add("INPUT", "");
96
			$this->Add("ISINDEX", "");
97
			$this->Add("I", "");
98
			$this->Add("KBD", "");
99
			$this->Add("LINK", "");
100
			$this->Add("LI", "");
101
			$this->Add("MAP", "");
102
			$this->Add("MENU", "");
103
			$this->Add("META", "");
104
			$this->Add("OL", "");
105
			$this->Add("OPTION", "");
106
			$this->Add("PARAM", "");
107
			$this->Add("PRE", "");
108
			$this->Add("P", "");
109
			$this->Add("SAMP", "");
110
			$this->Add("SCRIPT", "");
111
			$this->Add("SELECT", "");
112
			$this->Add("SMALL", "");
113
			$this->Add("STRIKE", "");
114
			$this->Add("STRONG", "");
115
			$this->Add("STYLE", "");
116
			$this->Add("SUB", "");
117
			$this->Add("SUP", "");
118
			$this->Add("TABLE", "");
119
			$this->Add("TD", "");
120
			$this->Add("TEXTAREA", "");
121
			$this->Add("TH", "");
122
			$this->Add("TITLE", "");
123
			$this->Add("TR", "");
124
			$this->Add("TT", "");
125
			$this->Add("UL", "");
126
			$this->Add("U", "");
127
			$this->Add("VAR", "");
128
		}
129
	}
130
  
131
	function SetHTML($html) {
132
		$this->html = ($html != false);
133
	}
134
  
135
	function Add($key, $codestr) {
136
		$key = strtolower($key);
137
		//    $codestr = strtolower($codestr);
138
		if(!isset($this->css[$key])) {
139
			$this->css[$key] = array();
140
		}
141
		$codes = explode(";",$codestr);
142
		if(count($codes) > 0) {
143
			foreach($codes as $code) {
144
				$code = trim($code);
145
				@list($codekey, $codevalue) = explode(":",$code);
146
				if(strlen($codekey) > 0) {
147
					$this->css[$key][trim($codekey)] = trim($codevalue);
148
				}
149
			}
150
		}
151
	}
152
  
153
	function Get($key, $property) {
154
		$key = strtolower($key);
155
		//    $property = strtolower($property);
156
		@list($tag, $subtag) = explode(":",$key);
157
		@list($tag, $class) = explode(".",$tag);
158
		@list($tag, $id) = explode("#",$tag);
159
		$result = "";
160
		foreach($this->css as $_tag => $value) {
161
			@list($_tag, $_subtag) = explode(":",$_tag);
162
			@list($_tag, $_class) = explode(".",$_tag);
163
			@list($_tag, $_id) = explode("#",$_tag);
164
            $tagmatch = (strcmp($tag, $_tag) == 0) | (strlen($_tag) == 0);
165
			$subtagmatch = (strcmp($subtag, $_subtag) == 0) | (strlen($_subtag) == 0);
166
			$classmatch = (strcmp($class, $_class) == 0) | (strlen($_class) == 0);
167
			$idmatch = (strcmp($id, $_id) == 0);
168
            if($tagmatch & $subtagmatch & $classmatch & $idmatch) {
169
				$temp = $_tag;
170
				if((strlen($temp) > 0) & (strlen($_class) > 0)) {
171
					$temp .= ".".$_class;
172
				}
173
				elseif(strlen($temp) == 0) {
174
					$temp = ".".$_class;
175
				}
176
				if((strlen($temp) > 0) & (strlen($_subtag) > 0)) {
177
					$temp .= ":".$_subtag;
178
				}
179
				elseif(strlen($temp) == 0) {
180
					$temp = ":".$_subtag;
181
				}
182
				if(isset($this->css[$temp][$property])) {
183
					$result = $this->css[$temp][$property];
184
				}
185
			}
186
		}
187
		return $result;
188
	}
189
  
190
	function GetSection($key) {
191
		$key = strtolower($key);
192
        @list($tag, $subtag) = explode(":",$key);
193
		@list($tag, $class) = explode(".",$tag);
194
		@list($tag, $id) = explode("#",$tag);
195
		$result = array();
196
		foreach($this->css as $_tag => $value) {
197
			@list($_tag, $_subtag) = explode(":",$_tag);
198
			@list($_tag, $_class) = explode(".",$_tag);
199
			@list($_tag, $_id) = explode("#",$_tag);
200
			$tagmatch = (strcmp($tag, $_tag) == 0) | (strlen($_tag) == 0);
201
			$subtagmatch = (strcmp($subtag, $_subtag) == 0) | (strlen($_subtag) == 0);
202
			$classmatch = (strcmp($class, $_class) == 0) | (strlen($_class) == 0);
203
			$idmatch = (strcmp($id, $_id) == 0);
204
			if($tagmatch & $subtagmatch & $classmatch & $idmatch) {
205
				$temp = $_tag;
206
				if((strlen($temp) > 0) & (strlen($_class) > 0)) {
207
					$temp .= ".".$_class;
208
				}
209
				elseif(strlen($temp) == 0) {
210
					$temp = ".".$_class;
211
				}
212
				if((strlen($temp) > 0) & (strlen($_subtag) > 0)) {
213
					$temp .= ":".$_subtag;
214
				}
215
				elseif(strlen($temp) == 0) {
216
					$temp = ":".$_subtag;
217
				}	
218
				foreach($this->css[$temp] as $property => $value) {
219
					$result[$property] = $value;
220
				}
221
			}
222
		}
223
		return $result;
224
	}
225
  
226
	function ParseStr($str) {
227
		$this->Clear();
228
		// Remove comments
229
		$str = preg_replace("/\/\*(.*)?\*\//Usi", "", $str);
230
		// Parse this damn csscode
231
		$parts = explode("}",$str);
232
		if(count($parts) > 0) {
233
			foreach($parts as $part) {
234
				@list($keystr,$codestr) = explode("{",$part);
235
				$keys = explode(",",trim($keystr));
236
				if(count($keys) > 0) {
237
					foreach($keys as $key) {
238
						if(strlen($key) > 0) {
239
							$key = str_replace("\n", "", $key);
240
							$key = str_replace("\\", "", $key);
241
							$this->Add($key, trim($codestr));
242
						}
243
					}
244
				}
245
			}
246
		}
247
		//
248
		return (count($this->css) > 0);
249
	}
250
  
251
	function Parse($filename) {
252
		$this->Clear();
253
		if(file_exists($filename)) {
254
			return $this->ParseStr(file_get_contents($filename));
255
		}
256
		else {
257
			return false;
258
		}
259
	}
260
	
261
	function GetCSS() {
262
		$result = "";
263
		foreach($this->css as $key => $values) {
264
			$result .= $key." {\n";
265
			foreach($values as $key => $value) {
266
				$result .= "  $key: $value;\n";
267
			}
268
			$result .= "}\n\n";
269
		}
270
		return $result;
271
	}
272

  
273
	function GetXML() {
274
		// Construction of "fckstyles.xml" for FCKeditor
275
		$styles = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"."\n";
276
		$styles .= '<Styles>'."\n";
277
		foreach ($this->css as $key => $value) {
278
			// skip all CSS that are a combination of CSS
279
			// skip CSS that are binded on an EVENT
280
			if (strpos($key, " ") === false && strpos($key, ":") === false) {
281
				$pieces = explode(".", $key, 2);
282
				if (strcmp($pieces[0], "") != 0) {
283
					continue;
284
				} else {
285
					$style_elem = "span";
286
				}
287
				if (strcmp($pieces[1], "") != 0) {
288
					$style_class_name = $pieces[1];
289
				} else {
290
					$style_class_name = $pieces[0];
291
				}
292
				$styles .= '<Style name="'.$style_class_name.'" element="'.$style_elem.'"';
293
				if (strcmp($style_class_name, $style_elem) != 0) {
294
					$styles .= '>'."\n".'<Attribute name="class" value="'.$style_class_name.'" />'."\n".'</Style>'."\n";
295
				} else {
296
					$styles .= '/>'."\n";
297
				}
298
			}
299
		}
300
		$styles .= '</Styles>'."\n";
301
		return trim($styles);
302
	}
303
}
1
<?php

2

  
3
// $Id$

4

  
5
/*

6

  
7
 Website Baker Project <http://www.websitebaker.org/>

8
 Copyright (C) 2004-2009, Ryan Djurovich

9

  
10
 Website Baker is free software; you can redistribute it and/or modify

11
 it under the terms of the GNU General Public License as published by

12
 the Free Software Foundation; either version 2 of the License, or

13
 (at your option) any later version.

14

  
15
 Website Baker is distributed in the hope that it will be useful,

16
 but WITHOUT ANY WARRANTY; without even the implied warranty of

17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

18
 GNU General Public License for more details.

19

  
20
 You should have received a copy of the GNU General Public License

21
 along with Website Baker; if not, write to the Free Software

22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

23

  
24
*/

25

  
26
/*

27
 * Class to parse css information.

28
 *

29
 * See the readme file : http://www.phpclasses.org/browse/file/4685.html

30
 *

31
 * $Id$

32
 *

33
 * @author http://www.phpclasses.org/browse/package/1289.html

34
 * @package PhpGedView

35
 * @subpackage Charts

36
 *

37
 * added function GetXML to the cssparser class (Christian Sommer, 2007)

38
 *

39
 */

40

  
41
class cssparser {

42
	var $css;

43
	var $html;

44
  
45
	function cssparser($html = true) {

46
		// Register "destructor"

47
		register_shutdown_function(array(&$this, "finalize"));

48
		$this->html = ($html != false);

49
		$this->Clear();

50
	}

51
  
52
	function finalize() {

53
		unset($this->css);

54
	}

55
  
56
	function Clear() {

57
		unset($this->css);

58
		$this->css = array();

59
		if($this->html) {

60
			$this->Add("ADDRESS", "");

61
			$this->Add("APPLET", "");

62
			$this->Add("AREA", "");

63
			$this->Add("A", "");

64
			$this->Add("A:visited", "");

65
			$this->Add("BASE", "");

66
			$this->Add("BASEFONT", "");

67
			$this->Add("BIG", "");

68
			$this->Add("BLOCKQUOTE", "");

69
			$this->Add("BODY", "");

70
			$this->Add("BR", "");

71
			$this->Add("B", "");

72
			$this->Add("CAPTION", "");

73
			$this->Add("CENTER", "");

74
			$this->Add("CITE", "");

75
			$this->Add("CODE", "");

76
			$this->Add("DD", "");

77
			$this->Add("DFN", "");

78
			$this->Add("DIR", "");

79
			$this->Add("DIV", "");

80
			$this->Add("DL", "");

81
			$this->Add("DT", "");

82
			$this->Add("EM", "");

83
			$this->Add("FONT", "");

84
			$this->Add("FORM", "");

85
			$this->Add("H1", "");

86
			$this->Add("H2", "");

87
			$this->Add("H3", "");

88
			$this->Add("H4", "");

89
			$this->Add("H5", "");

90
			$this->Add("H6", "");

91
			$this->Add("HEAD", "");

92
			$this->Add("HR", "");

93
			$this->Add("HTML", "");

94
			$this->Add("IMG", "");

95
			$this->Add("INPUT", "");

96
			$this->Add("ISINDEX", "");

97
			$this->Add("I", "");

98
			$this->Add("KBD", "");

99
			$this->Add("LINK", "");

100
			$this->Add("LI", "");

101
			$this->Add("MAP", "");

102
			$this->Add("MENU", "");

103
			$this->Add("META", "");

104
			$this->Add("OL", "");

105
			$this->Add("OPTION", "");

106
			$this->Add("PARAM", "");

107
			$this->Add("PRE", "");

108
			$this->Add("P", "");

109
			$this->Add("SAMP", "");

110
			$this->Add("SCRIPT", "");

111
			$this->Add("SELECT", "");

112
			$this->Add("SMALL", "");

113
			$this->Add("STRIKE", "");

114
			$this->Add("STRONG", "");

115
			$this->Add("STYLE", "");

116
			$this->Add("SUB", "");

117
			$this->Add("SUP", "");

118
			$this->Add("TABLE", "");

119
			$this->Add("TD", "");

120
			$this->Add("TEXTAREA", "");

121
			$this->Add("TH", "");

122
			$this->Add("TITLE", "");

123
			$this->Add("TR", "");

124
			$this->Add("TT", "");

125
			$this->Add("UL", "");

126
			$this->Add("U", "");

127
			$this->Add("VAR", "");

128
		}

129
	}

130
  
131
	function SetHTML($html) {

132
		$this->html = ($html != false);

133
	}

134
  
135
	function Add($key, $codestr) {

136
		$key = strtolower($key);

137
		//    $codestr = strtolower($codestr);

138
		if(!isset($this->css[$key])) {

139
			$this->css[$key] = array();

140
		}

141
		$codes = explode(";",$codestr);

142
		if(count($codes) > 0) {

143
			foreach($codes as $code) {

144
				$code = trim($code);

145
				@list($codekey, $codevalue) = explode(":",$code);

146
				if(strlen($codekey) > 0) {

147
					$this->css[$key][trim($codekey)] = trim($codevalue);

148
				}

149
			}

150
		}

151
	}

152
  
153
	function Get($key, $property) {

154
		$key = strtolower($key);

155
		//    $property = strtolower($property);

156
		@list($tag, $subtag) = explode(":",$key);

157
		@list($tag, $class) = explode(".",$tag);

158
		@list($tag, $id) = explode("#",$tag);

159
		$result = "";

160
		foreach($this->css as $_tag => $value) {

161
			@list($_tag, $_subtag) = explode(":",$_tag);

162
			@list($_tag, $_class) = explode(".",$_tag);

163
			@list($_tag, $_id) = explode("#",$_tag);

164
            $tagmatch = (strcmp($tag, $_tag) == 0) | (strlen($_tag) == 0);

165
			$subtagmatch = (strcmp($subtag, $_subtag) == 0) | (strlen($_subtag) == 0);

166
			$classmatch = (strcmp($class, $_class) == 0) | (strlen($_class) == 0);

167
			$idmatch = (strcmp($id, $_id) == 0);

168
            if($tagmatch & $subtagmatch & $classmatch & $idmatch) {

169
				$temp = $_tag;

170
				if((strlen($temp) > 0) & (strlen($_class) > 0)) {

171
					$temp .= ".".$_class;

172
				}

173
				elseif(strlen($temp) == 0) {

174
					$temp = ".".$_class;

175
				}

176
				if((strlen($temp) > 0) & (strlen($_subtag) > 0)) {

177
					$temp .= ":".$_subtag;

178
				}

179
				elseif(strlen($temp) == 0) {

180
					$temp = ":".$_subtag;

181
				}

182
				if(isset($this->css[$temp][$property])) {

183
					$result = $this->css[$temp][$property];

184
				}

185
			}

186
		}

187
		return $result;

188
	}

189
  
190
	function GetSection($key) {

191
		$key = strtolower($key);

192
        @list($tag, $subtag) = explode(":",$key);

193
		@list($tag, $class) = explode(".",$tag);

194
		@list($tag, $id) = explode("#",$tag);

195
		$result = array();

196
		foreach($this->css as $_tag => $value) {

197
			@list($_tag, $_subtag) = explode(":",$_tag);

198
			@list($_tag, $_class) = explode(".",$_tag);

199
			@list($_tag, $_id) = explode("#",$_tag);

200
			$tagmatch = (strcmp($tag, $_tag) == 0) | (strlen($_tag) == 0);

201
			$subtagmatch = (strcmp($subtag, $_subtag) == 0) | (strlen($_subtag) == 0);

202
			$classmatch = (strcmp($class, $_class) == 0) | (strlen($_class) == 0);

203
			$idmatch = (strcmp($id, $_id) == 0);

204
			if($tagmatch & $subtagmatch & $classmatch & $idmatch) {

205
				$temp = $_tag;

206
				if((strlen($temp) > 0) & (strlen($_class) > 0)) {

207
					$temp .= ".".$_class;

208
				}

209
				elseif(strlen($temp) == 0) {

210
					$temp = ".".$_class;

211
				}

212
				if((strlen($temp) > 0) & (strlen($_subtag) > 0)) {

213
					$temp .= ":".$_subtag;

214
				}

215
				elseif(strlen($temp) == 0) {

216
					$temp = ":".$_subtag;

217
				}	

218
				foreach($this->css[$temp] as $property => $value) {

219
					$result[$property] = $value;

220
				}

221
			}

222
		}

223
		return $result;

224
	}

225
  
226
	function ParseStr($str) {

227
		$this->Clear();

228
		// Remove comments

229
		$str = preg_replace("/\/\*(.*)?\*\//Usi", "", $str);

230
		// Parse this damn csscode

231
		$parts = explode("}",$str);

232
		if(count($parts) > 0) {

233
			foreach($parts as $part) {

234
				@list($keystr,$codestr) = explode("{",$part);

235
				$keys = explode(",",trim($keystr));

236
				if(count($keys) > 0) {

237
					foreach($keys as $key) {

238
						if(strlen($key) > 0) {

239
							$key = str_replace("\n", "", $key);

240
							$key = str_replace("\\", "", $key);

241
							$this->Add($key, trim($codestr));

242
						}

243
					}

244
				}

245
			}

246
		}

247
		//

248
		return (count($this->css) > 0);

249
	}

250
  
251
	function Parse($filename) {

252
		$this->Clear();

253
		if(file_exists($filename)) {

254
			return $this->ParseStr(file_get_contents($filename));

255
		}

256
		else {

257
			return false;

258
		}

259
	}

260
	
261
	function GetCSS() {

262
		$result = "";

263
		foreach($this->css as $key => $values) {

264
			$result .= $key." {\n";

265
			foreach($values as $key => $value) {

266
				$result .= "  $key: $value;\n";

267
			}

268
			$result .= "}\n\n";

269
		}

270
		return $result;

271
	}

272

  
273
	function GetXML() {

274
		// Construction of "fckstyles.xml" for FCKeditor

275
		$styles = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"."\n";

276
		$styles .= '<Styles>'."\n";

277
		foreach ($this->css as $key => $value) {

278
			// skip all CSS that are a combination of CSS

279
			// skip CSS that are binded on an EVENT

280
			if (strpos($key, " ") === false && strpos($key, ":") === false) {

281
				$pieces = explode(".", $key, 2);

282
				if (strcmp($pieces[0], "") != 0) {

283
					continue;

284
				} else {

285
					$style_elem = "span";

286
				}

287
				if (strcmp($pieces[1], "") != 0) {

288
					$style_class_name = $pieces[1];

289
				} else {

290
					$style_class_name = $pieces[0];

291
				}

292
				$styles .= '<Style name="'.$style_class_name.'" element="'.$style_elem.'"';

293
				if (strcmp($style_class_name, $style_elem) != 0) {

294
					$styles .= '>'."\n".'<Attribute name="class" value="'.$style_class_name.'" />'."\n".'</Style>'."\n";

295
				} else {

296
					$styles .= '/>'."\n";

297
				}

298
			}

299
		}

300
		$styles .= '</Styles>'."\n";

301
		return trim($styles);

302
	}

303
}

304 304
?>
branches/2.8.x/wb/modules/fckeditor/uninstall.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
// Must include code to stop this file being access directly
27
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
28

  
29
// Delete the editor directory
30
rm_full_dir(WB_PATH.'/modules/fckeditor/fckeditor');
31

  
1
<?php

2

  
3
// $Id$

4

  
5
/*

6

  
7
 Website Baker Project <http://www.websitebaker.org/>

8
 Copyright (C) 2004-2009, Ryan Djurovich

9

  
10
 Website Baker is free software; you can redistribute it and/or modify

11
 it under the terms of the GNU General Public License as published by

12
 the Free Software Foundation; either version 2 of the License, or

13
 (at your option) any later version.

14

  
15
 Website Baker is distributed in the hope that it will be useful,

16
 but WITHOUT ANY WARRANTY; without even the implied warranty of

17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

18
 GNU General Public License for more details.

19

  
20
 You should have received a copy of the GNU General Public License

21
 along with Website Baker; if not, write to the Free Software

22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

23

  
24
*/

25

  
26
// Must include code to stop this file being access directly

27
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }

28

  
29
// Delete the editor directory

30
rm_full_dir(WB_PATH.'/modules/fckeditor/fckeditor');

31

  
32 32
?>
branches/2.8.x/wb/modules/fckeditor/css_to_xml.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
require_once('../../config.php');
27

  
28
if(isset($_GET['template_name'])) {
29
	$temp_name = $_GET['template_name'];
30
	// check if specified template exists
31
	if(file_exists(WB_PATH .'/templates/' .$temp_name)) {
32
		// parse the editor.css and write XML output
33
		require_once(WB_PATH .'/modules/fckeditor/class.cssparser.php');
34
		$cssparser = new cssparser();
35
		$cssparser->Parse(WB_PATH .'/templates/' .$temp_name .'/editor.css');
36
		header('Content-type: text/xml'); 
37
		echo $cssparser->GetXML();
38
	}
39
}
1
<?php

2

  
3
// $Id$

4

  
5
/*

6

  
7
 Website Baker Project <http://www.websitebaker.org/>

8
 Copyright (C) 2004-2009, Ryan Djurovich

9

  
10
 Website Baker is free software; you can redistribute it and/or modify

11
 it under the terms of the GNU General Public License as published by

12
 the Free Software Foundation; either version 2 of the License, or

13
 (at your option) any later version.

14

  
15
 Website Baker is distributed in the hope that it will be useful,

16
 but WITHOUT ANY WARRANTY; without even the implied warranty of

17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

18
 GNU General Public License for more details.

19

  
20
 You should have received a copy of the GNU General Public License

21
 along with Website Baker; if not, write to the Free Software

22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

23

  
24
*/

25

  
26
require_once('../../config.php');

27

  
28
if(isset($_GET['template_name'])) {

29
	$temp_name = $_GET['template_name'];

30
	// check if specified template exists

31
	if(file_exists(WB_PATH .'/templates/' .$temp_name)) {

32
		// parse the editor.css and write XML output

33
		require_once(WB_PATH .'/modules/fckeditor/class.cssparser.php');

34
		$cssparser = new cssparser();

35
		$cssparser->Parse(WB_PATH .'/templates/' .$temp_name .'/editor.css');

36
		header('Content-type: text/xml'); 

37
		echo $cssparser->GetXML();

38
	}

39
}

40 40
?>
branches/2.8.x/wb/modules/fckeditor/info.php
22 22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23 23

  
24 24
 -----------------------------------------------------------------------------------------------------------
25
  FCKEditor module for Website Baker v2.6.x
25
  FCKEditor module for Website Baker v2.8.x
26 26
  Authors: P. Widlund, S. Braunewell, M. Gallas (ruebenwurzel), Wouldlouper, C. Sommer (doc)
27 27
	Started to track applied changes in info.php from 27.03.2007 onwards (cs)
28 28
 -----------------------------------------------------------------------------------------------------------
29
	v2.9.1 (Luishahne Sep 28, 2009)
30
		+	change to new FCKeditor version 2.6.5
29 31
	v2.89 (Aldus, Luishahne Sep 16, 2009)
30 32
		+	fix pagetree order in WB-Link
31 33
        +   fix not shown ok button in WB-Link
......
123 125
*/
124 126

  
125 127
$module_directory		= 'fckeditor';
126
$module_name			= 'FCKeditor';
128
$module_name			= 'FCKeditor 2.6.5 WB Version 2.9.1';
127 129
$module_function		= 'WYSIWYG';
128
$module_version			= '2.9';
130
$module_version			= '2.9.1';
129 131
$module_platform		= '2.7';
130
$module_author 			= 'Christian Sommer, P. Widlund, S. Braunewell, M. Gallas, Wouldlouper';
132
$module_author 			= 'Christian Sommer, P. Widlund, S. Braunewell, M. Gallas, Wouldlouper, Aldus, Luisehahne';
131 133
$module_license 		= 'GNU General Public License';
132
$module_description 	= 'This module allows you to edit the contents of a page using <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.4</a>.';
134
$module_description 	= 'This module allows you to edit the contents of a page using <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.5</a>.';
133 135

  
134 136
?>
branches/2.8.x/wb/modules/fckeditor/languages/NL.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
 -----------------------------------------------------------------------------------------
25
  DUTCH LANGUAGE FILE FOR THE FCKEDITOR MODULE
26
 -----------------------------------------------------------------------------------------
27
*/
28

  
29
// Nederlandstalige beschrijving van de module
30
$module_description 	= 'Met deze <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.4</a> module kunt u de inhoud van een pagina wijzigen.';
31

  
1
<?php

2

  
3
// $Id$

4

  
5
/*

6

  
7
 Website Baker Project <http://www.websitebaker.org/>

8
 Copyright (C) 2004-2009, Ryan Djurovich

9

  
10
 Website Baker is free software; you can redistribute it and/or modify

11
 it under the terms of the GNU General Public License as published by

12
 the Free Software Foundation; either version 2 of the License, or

13
 (at your option) any later version.

14

  
15
 Website Baker is distributed in the hope that it will be useful,

16
 but WITHOUT ANY WARRANTY; without even the implied warranty of

17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

18
 GNU General Public License for more details.

19

  
20
 You should have received a copy of the GNU General Public License

21
 along with Website Baker; if not, write to the Free Software

22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

23

  
24
 -----------------------------------------------------------------------------------------

25
  DUTCH LANGUAGE FILE FOR THE FCKEDITOR MODULE

26
 -----------------------------------------------------------------------------------------

27
*/

28

  
29
// Nederlandstalige beschrijving van de module

30
$module_description 	= 'Met deze <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.5</a> module kunt u de inhoud van een pagina wijzigen.';

31

  
32 32
?>
branches/2.8.x/wb/modules/fckeditor/languages/NO.php
27 27
*/
28 28

  
29 29
//Module Description
30
$module_description 	= 'Med denne modulen kan du redigere innholdet p&aring; sidene dine ved &aring; benytte redigeringsverkt&oslash;yet <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.4</a>.';
30
$module_description 	= 'Med denne modulen kan du redigere innholdet p&aring; sidene dine ved &aring; benytte redigeringsverkt&oslash;yet <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.5</a>.';
31 31

  
32 32
?>
branches/2.8.x/wb/modules/fckeditor/languages/DA.php
27 27
*/
28 28

  
29 29
// Dansk modulbeskrivelse
30
$module_description 	= 'Dette modul muligg&oslash;r redigering af sideindhold ved hj&aelig;lp af  <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.4</a>.';
30
$module_description 	= 'Dette modul muligg&oslash;r redigering af sideindhold ved hj&aelig;lp af  <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.5</a>.';
31 31

  
32 32
?>
branches/2.8.x/wb/modules/fckeditor/languages/FR.php
27 27
 -----------------------------------------------------------------------------------------
28 28
*/
29 29
//Module Description
30
$module_description = 'Ce module permet de modifier le contenu de la page avec <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.4</a>.';
30
$module_description = 'Ce module permet de modifier le contenu de la page avec <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.5</a>.';
31 31

  
32 32
?>
branches/2.8.x/wb/modules/fckeditor/languages/index.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
header("Location: ../../../index.php");
27

  
1
<?php

2

  
3
// $Id$

4

  
5
/*

6

  
7
 Website Baker Project <http://www.websitebaker.org/>

8
 Copyright (C) 2004-2009, Ryan Djurovich

9

  
10
 Website Baker is free software; you can redistribute it and/or modify

11
 it under the terms of the GNU General Public License as published by

12
 the Free Software Foundation; either version 2 of the License, or

13
 (at your option) any later version.

14

  
15
 Website Baker is distributed in the hope that it will be useful,

16
 but WITHOUT ANY WARRANTY; without even the implied warranty of

17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

18
 GNU General Public License for more details.

19

  
20
 You should have received a copy of the GNU General Public License

21
 along with Website Baker; if not, write to the Free Software

22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

23

  
24
*/

25

  
26
header('Location: ../index.php');

27

  
28 28
?>
branches/2.8.x/wb/modules/fckeditor/languages/DE.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
 -----------------------------------------------------------------------------------------
25
  DEUTSCHE SPRACHDATEI FUER DAS MODUL: FCKEDITOR
26
 -----------------------------------------------------------------------------------------
27
*/
28

  
29
// Deutsche Modulbeschreibung
30
$module_description 	= 'Dieses Modul erlaubt das bearbeiten von Seiteninhalten mit dem <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.4</a>.';
31

  
1
<?php

2

  
3
// $Id$

4

  
5
/*

6

  
7
 Website Baker Project <http://www.websitebaker.org/>

8
 Copyright (C) 2004-2009, Ryan Djurovich

9

  
10
 Website Baker is free software; you can redistribute it and/or modify

11
 it under the terms of the GNU General Public License as published by

12
 the Free Software Foundation; either version 2 of the License, or

13
 (at your option) any later version.

14

  
15
 Website Baker is distributed in the hope that it will be useful,

16
 but WITHOUT ANY WARRANTY; without even the implied warranty of

17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

18
 GNU General Public License for more details.

19

  
20
 You should have received a copy of the GNU General Public License

21
 along with Website Baker; if not, write to the Free Software

22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

23

  
24
 -----------------------------------------------------------------------------------------

25
  DEUTSCHE SPRACHDATEI FUER DAS MODUL: FCKEDITOR

26
 -----------------------------------------------------------------------------------------

27
*/

28

  
29
// Deutsche Modulbeschreibung

30
$module_description 	= 'Dieses Modul erlaubt das bearbeiten von Seiteninhalten mit dem <a href="http://www.fckeditor.net/" target="_blank">FCKeditor v2.6.5</a>.';

31

  
32 32
?>
branches/2.8.x/wb/modules/fckeditor/include.php
35 35
	// require_once('../../config.php');
36 36
	require_once(WB_PATH. '/framework/class.database.php');
37 37

  
38
	// work out default editor.css file for FCKEditor
38
	// work out default editor.css file for CKeditor
39 39
	if(file_exists(WB_PATH .'/templates/' .DEFAULT_TEMPLATE .'/editor.css')) {
40 40
		$fck_template_dir = DEFAULT_TEMPLATE;
41 41
	} else {
......
47 47
		$pageid = (int) $_GET["page_id"];
48 48

  
49 49
		// obtain template folder of current page from the database
50
		if(!isset($admin)) { 
51
			$database = new database(); 
50
		if(!isset($admin)) {
51
			$database = new database();
52 52
		}
53
		$query_page = "SELECT template FROM " .TABLE_PREFIX ."pages WHERE page_id =$pageid"; 
53
		$query_page = "SELECT template FROM " .TABLE_PREFIX ."pages WHERE page_id =$pageid";
54 54
		$pagetpl = $database->get_one($query_page);   // if empty, default template is used
55 55

  
56 56
		// check if a specific template is defined for current page
......
65 65
}
66 66

  
67 67
function show_wysiwyg_editor($name, $id, $content, $width, $height) {
68
	// create new FCKEditor instance
68
	// create new CKeditor instance
69 69
	require_once(WB_PATH.'/modules/fckeditor/fckeditor/fckeditor.php');
70 70
	$oFCKeditor = new FCKeditor($name);
71 71

  
......
99 99

  
100 100
	// custom templates can be defined via /wb_config/wb_fcktemplates.xml
101 101
	if(file_exists(WB_PATH .'/modules/fckeditor/wb_config/wb_fcktemplates.xml')) {
102
		$oFCKeditor->Config['TemplatesXmlPath'] = WB_URL.'/modules/fckeditor/wb_config/wb_fcktemplates.xml';
102
		$oFCKeditor->Config['TemplatesXmlPath'] = WB_URL.'/modules/FCKeditor/wb_config/wb_fcktemplates.xml';
103 103
	}
104 104

  
105 105
  // set required file connectors (overwrite settings which may be made in fckconfig.js or my_fckconfig.js)
branches/2.8.x/wb/modules/fckeditor/fckeditor/fckpackager.xml
146 146
		<File path="editor/_source/classes/fcktoolbarfontscombo.js" />
147 147
		<File path="editor/_source/classes/fcktoolbarfontsizecombo.js" />
148 148
		<File path="editor/_source/classes/fcktoolbarpanelbutton.js" />
149
		<File path="editor/_source/internals/fckscayt.js" />
149 150
		<File path="editor/_source/internals/fcktoolbaritems.js" />
150 151
		<File path="editor/_source/classes/fcktoolbar.js" />
151 152
		<File path="editor/_source/classes/fcktoolbarbreak_ie.js" />
......
242 243
		<File path="editor/_source/classes/fcktoolbarfontscombo.js" />
243 244
		<File path="editor/_source/classes/fcktoolbarfontsizecombo.js" />
244 245
		<File path="editor/_source/classes/fcktoolbarpanelbutton.js" />
246
		<File path="editor/_source/internals/fckscayt.js" />
245 247
		<File path="editor/_source/internals/fcktoolbaritems.js" />
246 248
		<File path="editor/_source/classes/fcktoolbar.js" />
247 249
		<File path="editor/_source/classes/fcktoolbarbreak_gecko.js" />
branches/2.8.x/wb/modules/fckeditor/fckeditor/_whatsnew.html
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<!--
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
5
 *
6
 * == BEGIN LICENSE ==
7
 *
8
 * Licensed under the terms of any of the following licenses at your
9
 * choice:
10
 *
11
 *  - GNU General Public License Version 2 or later (the "GPL")
12
 *    http://www.gnu.org/licenses/gpl.html
13
 *
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
 *    http://www.gnu.org/licenses/lgpl.html
16
 *
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
19
 *
20
 * == END LICENSE ==
21
-->
22
<html xmlns="http://www.w3.org/1999/xhtml">
23
<head>
24
	<title>FCKeditor ChangeLog - What's New?</title>
25
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
26
	<style type="text/css">
27
		body { font-family: arial, verdana, sans-serif }
28
		p { margin-left: 20px }
29
		h1 { border-bottom: solid 1px gray; padding-bottom: 20px }
30
	</style>
31
</head>
32
<body>
33
	<h1>
34
		FCKeditor ChangeLog - What's New?</h1>
35
	<h3>
36
		Version 2.6.5</h3>
37
	<p>
38
		New Features and Improvements:</p>
39
	<ul>
40
		<li>Introduced the Spell Check As You Type (SCAYT) spell checking option.</li>
41
	</ul>
42
	<p>
43
		Fixed Bugs:</p>
44
	<ul>
45
		<li><strong>Security release, upgrade is highly recommended</strong> (fixed security issues in ASP and ColdFusion scripts).
46
			</li>
47
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2856">#2856</a>] Fixed
48
			problem with inches in paste dialog.</li>
49
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3120">#3120</a>]
50
			# (pound sign) is not correctly escaped in file urls.</li>
51
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2915">#2915</a>]
52
			About plugin shows misleading user language.</li>
53
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2821">#2821</a>] Configuration
54
			items that used floating point numbers were parsed as integers.</li>
55
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2604">#2064</a>] The asp
56
			connector didn't work correctly in windows 2000 servers.</li>
57
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3429">#3429</a>] Fixed
58
			problem in IE8 with XHTML doctype. Thanks to duncansimey.</li>
59
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3446">#3446</a>] Fixed self-closed
60
 			&lt;option&gt; in the table cell dialog.</li>
61
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3181">#3181</a>] Node selection
62
			could raise an error in IE8.</li>
63
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2156">#2156</a>]
64
			After calling GetData() the style removal operations didn't work in IE. Thanks to
65
			Compendium Blogware.</li>
66
	  <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3427">#3427</a>] Improved
67
 			compatibility of Document properties dialog with Eclipse.</li>
68
		<li>Language file updates for the following languages:
69
			<ul>
70
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2908">#2908</a>] Czech </li>
71
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2849">#2849</a>] Lithuanian</li>
72
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3636">#3636</a>] Polish</li>
73
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3741">#3741</a>] Korean</li>
74
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2861">#2861</a>] Slovenian</li>
75
			</ul>
76
		</li>
77
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3439">#3439</a>] IgnoreEmptyParagraphValue
78
			had no effect if ProcessHTMLEntities is false.</li>
79
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3880">#3880</a>] Fixed some minor
80
			logical and typing mistakes in fckdomrange_ie.js.</li>
81
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2689">#2689</a>] If a
82
			custom connector tried to use the "url" attribute for files it was always reencoded.</li>
83
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1537">#1537</a>] Fixed extra
84
			&lt;p&gt; tag added before pasted contents from Paste From Word dialog.</li>
85
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2874">#2874</a>] Fixed wrong position
86
			of caption tag in tables with table headers.</li>
87
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3818">#3818</a>] Fixed layout error
88
			in text and background color popups when more colors button is disabled.</li>
89
 		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3481">#3481</a>] Fixed an issue in
90
 			WebKit where paste actions inside table cells may leak outside of the table cell.</li>
91
 		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3677">#3677</a>] Fixed JavaScript
92
 			error when trying to create link for images inside floating div containers.</li>
93
 		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3925">#3925</a>] Removed obsolete
94
 			parentWindow reference from FCKDialog.OpenDialog().</li>
95
 		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2936">#2936</a>] Added protection
96
			in the PHP upload if the destination folder is placed at the root and doesn't exit.</li>
97
 		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/4357">#4357</a>] Avoid problem in
98
			the paste dialog if IIS is set to process HTML files as Asp.</li>
99
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2201">#2201</a>] Fixed a crash in IE
100
 			in an object is selected (with handles) on unload of the editor.</li>
101
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3053">#3053</a>] Fixed problems with
102
			the height of the content area in Safari and Chrome.</li>
103
	</ul>
104
	<p>
105
		<a href="_whatsnew_history.html">See previous versions history</a></p>
106
</body>
107
</html>
branches/2.8.x/wb/modules/fckeditor/fckeditor/_whatsnew_history.html
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<!--
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
5
 *
6
 * == BEGIN LICENSE ==
7
 *
8
 * Licensed under the terms of any of the following licenses at your
9
 * choice:
10
 *
11
 *  - GNU General Public License Version 2 or later (the "GPL")
12
 *    http://www.gnu.org/licenses/gpl.html
13
 *
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
 *    http://www.gnu.org/licenses/lgpl.html
16
 *
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
19
 *
20
 * == END LICENSE ==
21
-->
22
<html xmlns="http://www.w3.org/1999/xhtml">
23
<head>
24
	<title>FCKeditor ChangeLog - What's New?</title>
25
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
26
	<style type="text/css">
27
		body { font-family: arial, verdana, sans-serif }
28
		p { margin-left: 20px }
29
		h1 { border-bottom: solid 1px gray; padding-bottom: 20px }
30
	</style>
31
</head>
32
<body>
33
	<h1>
34
		FCKeditor ChangeLog - What's New?</h1>
35
	<h3>
36
		Version 2.6.4.1</h3>
37
	<p>
38
		Fixed Bugs:</p>
39
	<ul>
40
		<li><strong>Security release, upgrade is highly recommended.</strong></li>
41
	</ul>
42
	<h3>
43
		Version 2.6.4</h3>
44
	<p>
45
		Fixed Bugs:</p>
46
	<ul>
47
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2777">#2777</a>] Merging
48
			cells between table header and body is no longer possible.</li>
49
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2815">#2815</a>] Fixed
50
			WSC issues at slow connection speed. Added SSL support.</li>
51
		<li>Language file updates for the following languages:
52
			<ul>
53
				<li>Chinese (Traditional)</li>
54
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2846">#2846</a>] French</li>
55
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2801">#2801</a>] Hebrew</li>
56
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2824">#2824</a>] Russian</li>
57
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2811">#2811</a>] Turkish</li>
58
			</ul>
59
		</li>
60
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2757">#2757</a>] Fixed
61
			a minor bug which causes selection positions to be improperly restored during undos
62
			and redos.</li>
63
	</ul>
64
	<h3>
65
		Version 2.6.4 Beta</h3>
66
	<p>
67
		New Features and Improvements:</p>
68
	<ul>
69
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2685">#2685</a>] Integration
70
			with "WebSpellChecker", a <strong>zero installation and free spell checker</strong>
71
			provided by SpellChecker.net. This is now the default spell checker in the editor
72
			(requires internet connection). All previous spell checking solutions are still
73
			available.</li>
74
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2430">#2430</a>] In the
75
			table dialog it's possible to create header cells in the first row (included in
76
			a thead element) or the first column of the table. </li>
77
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/822">#822</a>] The table
78
			cell dialog allows switching between normal data cells or header cells (TD vs. TH).
79
		</li>
80
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2515">#2515</a>] New language
81
			file for Icelandic.</li>
82
	</ul>
83
	<p>
84
		Fixed Bugs:</p>
85
	<ul>
86
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2381">#2381</a>] Protected
87
			the editor from duplicate iframes</li>
88
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1752">#1752</a>] Fixed
89
			the issue with tablecommands plugin and undefined tagName.</li>
90
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2333">#2333</a>] The &amp;gt;
91
			character inside text wasn't encoded in Opera and Safari.</li>
92
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2467">#2467</a>] Fixed
93
			JavaScript error with the fit window command in source mode.</li>
94
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2472">#2472</a>] Splitting
95
			a TH will create a two TH, not a TH and a TD.</li>
96
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1891">#1891</a>] Removed
97
			unnecessary name attributes in dialogs. </li>
98
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/798">#798</a>, <a target="_blank"
99
			href="http://dev.fckeditor.net/ticket/2495">#2495</a>] If an image was placed inside
100
			a container with dimensions or floating it wasn't possible to edit its properties
101
			from the toolbar or context menu.</li>
102
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1982">#1982</a>] Submenus
103
			in IE7 now are shown properly.</li>
104
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2496">#2496</a>] Using
105
			the Paste dialogs in IE might insert the content at the start of the editor.</li>
106
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2349">#2496</a>] Fixed
107
			RTL dialog layout in Internet Explorer.</li>
108
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2488">#2488</a>] Fixed
109
			the issue where email links in IE would take the browser to a new page in addition
110
			to calling up the email client.</li>
111
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2519">#2519</a>] Fixed
112
			race condition at registering the FCKeditorAPI object in multiple editor scenarios.</li>
113
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2525">#2525</a>] Fixed
114
			JavaScript error in Google Chrome when StartupShowBlocks is set to true.</li>
115
		<li>Language file updates for the following languages:
116
			<ul>
117
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2440">#2440</a>] Dutch</li>
118
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2451">#2451</a>] Basque</li>
119
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2451">#2650</a>] Danish</li>
120
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2208">#2535</a>] German
121
				</li>
122
			</ul>
123
		</li>
124
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2531">#2531</a>] The ENTER
125
			key will properly scroll to the cursor position when breaking long paragraphs.</li>
126
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2573">#2573</a>] The type
127
			name in configurations for the ASP connector are now case sensitive.</li>
128
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2503">#2503</a>] DL, DT
129
			and DD where missing the formatting in the generated HTML.</li>
130
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2516">#2516</a>] Replaced
131
			the extension AddItem of Array with the standard "push" method.</li>
132
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2486">#2486</a>] Vertically
133
			splitting cell with colspan &gt; 1 breaks table layout.</li>
134
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2597">#2597</a>] Fixed
135
			the issue where dropping contents from outside of the editor doesn't work in Safari.</li>
136
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2412">#2412</a>] Fixed
137
			the issue where FCK.InsertHtml() is no longer removing selected contents after content
138
			insertion in Firefox.</li>
139
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2407">#2407</a>] Fixed
140
			the issue where the Div container command and the blockquote command would break
141
			lists.</li>
142
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2469">#2469</a>] Fixed
143
			a minor issue where FCK.SetData() may cause the editor to become unresponsive to
144
			the first click after being defocused.</li>
145
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2611">#2611</a>] Fixed
146
			an extra slash on quickupload of the asp connector.</li>
147
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2616">#2616</a>] Fixed
148
			another situation where new elements were inserted at the beginning of the content
149
			in IE.</li>
150
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2634">#2634</a>] Fixed
151
			two obsolete references to Array::AddItem() instances still in the code.</li>
152
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2679">#2679</a>] Fixed
153
			infinite loop problems with FCKDomRangeIterator class which causes some commands
154
			to hang when applied to certain document structures.</li>
155
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2649">#2649</a>] Fixed
156
			a JavaScript error in IE when user tries to search with the "Match whole word" option
157
			enabled and the matched word is at exactly the end of document.</li>
158
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2603">#2603</a>] Changed
159
			the <a href="http://docs.fckeditor.net/EMailProtection">EMailProtection</a> to "none"
160
			for better compatibility.</li>
161
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2612">#2612</a>] The 'ForcePasteAsPlainText'
162
			configuration option didn't work correctly in Safari and Chrome.</li>
163
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2696">#2696</a>] Fixed
164
			non-working autogrow plugin.</li>
165
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2753">#2753</a>] Fixed
166
			occasional exceptions in the dragersizetable plugin with IE.</li>
167
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2653">#2653</a>] and [<a
168
			target="_blank" href="http://dev.fckeditor.net/ticket/2733">#2733</a>] Enable undo
169
			of changes to tables and table cells.</li>
170
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1865">#1865</a>] The context
171
			menu is now working properly over the last row in a table with thead. Thanks to
172
			Koen Willems.</li>
173
	</ul>
174
	<h3>
175
		Version 2.6.3</h3>
176
	<p>
177
		Fixed Bugs:</p>
178
	<ul>
179
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2412">#2412</a>] FCK.InsertHtml()
180
			is now properly removing selected contents after content insertion in Firefox.</li>
181
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2420">#2420</a>] Spelling
182
			mistake corrections made by the spell checking dialog are now undoable. </li>
183
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2411">#2411</a>] Insert
184
			anchor was not working for non-empty selections.</li>
185
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2426">#2426</a>] It was
186
			impossible to switch between editor areas with a single click.</li>
187
		<li>Language file updates for the following languages:
188
			<ul>
189
				<li>Canadian French</li>
190
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2402">#2402</a>] Catalan
191
				</li>
192
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2400">#2400</a>] Chinese
193
					(Simplified and Traditional)</li>
194
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2401">#2401</a>] Croatian</li>
195
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2422">#2422</a>] Czech</li>
196
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2417">#2417</a>] Dutch</li>
197
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2428">#2428</a>] French</li>
198
				<li>German</li>
199
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2427">#2427</a>] Hebrew</li>
200
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2410">#2410</a>] Hindi</li>
201
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2405">#2405</a>] Japanese</li>
202
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2409">#2409</a>] Norwegian
203
					and Norwegian Bokmål</li>
204
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2429">#2429</a>] Spanish</li>
205
				<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2406">#2406</a>] Vietnamese</li>
206
			</ul>
207
		</li>
208
	</ul>
209
	<p>
210
		This version has been sponsored by <a href="http://www.dataillusion.com/fs/">Data Illusion
211
			survey software solutions</a>.</p>
212
	<h3>
213
		Version 2.6.3 Beta</h3>
214
	<p>
215
		New Features and Improvements:</p>
216
	<ul>
217
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/439">#439</a>] Added a
218
			new <strong>context menu option for opening links</strong> in the editor.</li>
219
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2220">#2220</a>] <strong>
220
			Email links</strong> from the Link dialog <strong>are now encoded</strong> by default
221
			to prevent being harvested by spammers. (Kudos to asuter for proposing the patch)
222
		</li>
223
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2234">#2234</a>] Added
224
			the ability to create, modify and remove <strong>DIV containers</strong>. </li>
225
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2247">#2247</a>] The <strong>
226
			SHIFT+SPACE</strong> keystroke will now <strong>produce a &amp;nbsp;</strong> character.
227
		</li>
228
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2252">#2252</a>] It's
229
			now possible to enable the browsers default menu using the configuration file (FCKConfig.BrowserContextMenu
230
			option). </li>
231
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2032">#2032</a>] Added
232
			HTML samples for legacy HTML and Flash HTML. </li>
233
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/234">#234</a>] Introduced
234
			the "PreventSubmitHandler" setting, which makes it possible to instruct the editor
235
			to not handle the hidden field update on form submit events.</li>
236
	</ul>
237
	<p>
238
		Fixed Bugs:</p>
239
	<ul>
240
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2319">#2319</a>] On Opera
241
			and Firefox 3, the entire page was scrolling on SHIFT+ENTER, or when EnterMode='br'.</li>
242
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2321">#2321</a>] On Firefox
243
			3, the entire page was scrolling when inserting block elements with the FCK.InsertElement
244
			function, used by the Table and Horizontal Rule buttons.. </li>
245
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/692">#692</a>] Added some
246
			hints in editor/css/fck_editorarea.css on how to handle style items that would break
247
			the style combo. </li>
248
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2263">#2263</a>] Fixed
249
			a JavaScript error in IE which occurs when there are placeholder elements in the
250
			document and the user has pressed the Source button.</li>
251
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2314">#2314</a>] Corrected
252
			mixed up Chinese translations for the blockquote command.</li>
253
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2323">#2323</a>] Fixed
254
			the issue where the show blocks command loses the current selection from the view
255
			area when editing a long document.</li>
256
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2322">#2322</a>] Fixed
257
			the issue where the fit window command loses the current selection and scroll position
258
			in the editing area.</li>
259
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1917">#1917</a>] Fixed
260
			the issue where the merge down command for tables cells does not work in IE for
261
			more than two cells.</li>
262
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2320">#2320</a>] Fixed
263
			the issue where the Find/Replace dialog scrolls the entire page.</li>
264
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1645">#1645</a>] Added
265
			warning message about Firefox 3's strict origin policy.</li>
266
		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2272">#2272</a>] Improved
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff