Revision 69
Added by stefan about 20 years ago
| intro.php | ||
|---|---|---|
| 39 | 39 |
} |
| 40 | 40 |
|
| 41 | 41 |
if(!isset($_GET['wysiwyg']) OR $_GET['wysiwyg'] != 'no') {
|
| 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("FullPage");
|
|
| 51 |
HTMLArea.loadPlugin("ContextMenu");
|
|
| 52 |
HTMLArea.loadPlugin("TableOperations");
|
|
| 53 |
function initEditor() {
|
|
| 54 |
|
|
| 55 |
var editor = new HTMLArea("content");
|
|
| 56 |
editor.registerPlugin(FullPage); |
|
| 57 |
editor.registerPlugin(ContextMenu); |
|
| 58 |
editor.registerPlugin(TableOperations); |
|
| 59 |
editor.generate(); |
|
| 60 |
} |
|
| 61 |
</script> |
|
| 62 |
<?php |
|
| 63 |
|
|
| 64 |
function show_wysiwyg_editor($name,$id,$content,$width,$height) {
|
|
| 65 |
echo '<textarea name="'.$name.'" id="'.$id.'" style="width: '.$width.'; height: '.$height.';">'.$content.'</textarea>'; |
|
| 66 |
} |
|
| 67 |
|
|
| 68 |
|
|
| 42 |
if (!defined('WYSIWYG_EDITOR') OR WYSIWYG_EDITOR=="none" OR !file_exists(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php')) {
|
|
| 43 |
function show_wysiwyg_editor($name,$id,$content,$width,$height) {
|
|
| 44 |
echo '<textarea name="'.$name.'" id="'.$id.'" style="width: '.$width.'; height: '.$height.';">'.$content.'</textarea>'; |
|
| 45 |
} |
|
| 69 | 46 |
} else {
|
| 70 | 47 |
$id_list=array('content');
|
| 71 | 48 |
require(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php'); |
Also available in: Unified diff
Removed support for internal HTMLArea editor.