Project

General

Profile

« Previous | Next » 

Revision 69

Added by stefan about 19 years ago

Removed support for internal HTMLArea editor.

View differences:

modify_post.php
39 39
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_news_posts WHERE post_id = '$post_id'");
40 40
$fetch_content = $query_content->fetchRow();
41 41

  
42
if (!defined('WYSIWYG_EDITOR') OR WYSIWYG_EDITOR=="htmlarea" OR !file_exists(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php')) {
43
?>
44
<script type="text/javascript">
45
_editor_url = "<?php echo WB_URL; ?>/include/htmlarea/";
46
_editor_lang = "en";
47
</script>
48
<script type="text/javascript" src="<?php echo WB_URL; ?>/include/htmlarea/htmlarea.js"></script>
49
<script type="text/javascript">
50
HTMLArea.loadPlugin("ContextMenu");
51
HTMLArea.loadPlugin("TableOperations");
52
function initEditor() {
53
	var editor = new HTMLArea("short");
54
	editor.registerPlugin(ContextMenu);
55
	editor.config.pageStyle = "body { <?php echo $admin->strip_slashes_dummy(WYSIWYG_STYLE); ?> }";
56
	editor.generate();
57
	var editor = new HTMLArea("long");
58
	editor.registerPlugin(ContextMenu);
59
	editor.registerPlugin(TableOperations);
60
	editor.config.pageStyle = "body { <?php echo $admin->strip_slashes_dummy(WYSIWYG_STYLE); ?> }";
61
	editor.generate();
62
}
63
</script>
64
<?php
42
if (!defined('WYSIWYG_EDITOR') OR WYSIWYG_EDITOR=="none" OR !file_exists(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php')) {
65 43
	function show_wysiwyg_editor($name,$id,$content,$width,$height) {
66 44
		echo '<textarea name="'.$name.'" id="'.$id.'" style="width: '.$width.'; height: '.$height.';">'.$content.'</textarea>';
67 45
	}

Also available in: Unified diff