Project

General

Profile

« Previous | Next » 

Revision 238

Added by stefan about 19 years ago

Fixed inconsistent line ending styles

View differences:

include.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2005, 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
$WB_DIRECTORY = substr(WB_PATH, strlen($_SERVER['DOCUMENT_ROOT'])).'/media/';
27

  
28
?>
29

  
30
<script type="text/javascript">
31
  _editor_url = "<?php echo WB_URL;?>/modules/htmlarea/htmlarea/";
32
  _editor_lang = "en";
33
</script>
34

  
35
<script type="text/javascript" src="<?php echo WB_URL;?>/modules/htmlarea/htmlarea/htmlarea.js"></script>
36
<script type="text/javascript">
37
	HTMLArea.loadPlugin("ContextMenu");
38
	HTMLArea.loadPlugin("TableOperations");
39
	window.onload = function() {
40
<?php
41
	foreach($id_list AS $textarea_id)
42
	{
43
		echo 'var editor = new HTMLArea("'.$textarea_id.'"); '
44
		.'editor.registerPlugin(ContextMenu);'
45
		.'editor.registerPlugin(TableOperations);'
46
		.'editor.config.pageStyle = "body { '.stripslashes(WYSIWYG_STYLE).' }";'
47
		.'editor.generate();';
48
	}
49
?>
50
}
51
</script>
52

  
53
<?php
54
	function show_wysiwyg_editor($name,$id,$content,$width,$height) {
55
		echo '<textarea name="'.$name.'" id="'.$id.'" style="width: '.$width.'; height: '.$height.';">'.$content.'</textarea>';
56
	}
57
?>
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2005, 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
$WB_DIRECTORY = substr(WB_PATH, strlen($_SERVER['DOCUMENT_ROOT'])).'/media/';
27

  
28
?>
29

  
30
<script type="text/javascript">
31
  _editor_url = "<?php echo WB_URL;?>/modules/htmlarea/htmlarea/";
32
  _editor_lang = "en";
33
</script>
34

  
35
<script type="text/javascript" src="<?php echo WB_URL;?>/modules/htmlarea/htmlarea/htmlarea.js"></script>
36
<script type="text/javascript">
37
	HTMLArea.loadPlugin("ContextMenu");
38
	HTMLArea.loadPlugin("TableOperations");
39
	window.onload = function() {
40
<?php
41
	foreach($id_list AS $textarea_id)
42
	{
43
		echo 'var editor = new HTMLArea("'.$textarea_id.'"); '
44
		.'editor.registerPlugin(ContextMenu);'
45
		.'editor.registerPlugin(TableOperations);'
46
		.'editor.config.pageStyle = "body { '.stripslashes(WYSIWYG_STYLE).' }";'
47
		.'editor.generate();';
48
	}
49
?>
50
}
51
</script>
52

  
53
<?php
54
	function show_wysiwyg_editor($name,$id,$content,$width,$height) {
55
		echo '<textarea name="'.$name.'" id="'.$id.'" style="width: '.$width.'; height: '.$height.';">'.$content.'</textarea>';
56
	}
57
?>

Also available in: Unified diff