경로 수정 작업 중
This commit is contained in:
@ -1,33 +0,0 @@
|
||||
<?
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
|
||||
function cheditor1($id, $content)
|
||||
{
|
||||
return "<textarea id='ps_{$id}' style='display:none;'>{$content}</textarea>";
|
||||
}
|
||||
|
||||
function cheditor2($form, $id, $width='100%', $height='250')
|
||||
{
|
||||
global $g4;
|
||||
|
||||
return "
|
||||
<input type='hidden' name='{$id}' id='{$id}'>
|
||||
<script>
|
||||
var ed_{$id} = new cheditor('ed_{$id}');
|
||||
ed_{$id}.editorPath = '{$g4[editor_path]}';
|
||||
ed_{$id}.width = '{$width}';
|
||||
ed_{$id}.height = '{$height}';
|
||||
ed_{$id}.pasteContent = true;
|
||||
ed_{$id}.pasteContentForm = 'ps_{$id}';
|
||||
ed_{$id}.formName = '{$form}';
|
||||
ed_{$id}.run();
|
||||
</script>";
|
||||
}
|
||||
|
||||
function cheditor3($id)
|
||||
{
|
||||
//return "document.getElementById('{$id}').value = ed_{$id}.outputHTML();";
|
||||
// body 태그 안의 내용만 반환 (백경동 님)
|
||||
return "document.getElementById('{$id}').value = ed_{$id}.outputBodyHTML();";
|
||||
}
|
||||
?>
|
||||
@ -1,56 +0,0 @@
|
||||
<?
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
|
||||
if ($g4['is_cheditor5'])
|
||||
{
|
||||
$g4['cheditor4'] = "cheditor5";
|
||||
$g4['cheditor4_path'] = $g4['path'] . "/" . $g4['cheditor4'];
|
||||
|
||||
function cheditor1($id, $width='100%', $height='250')
|
||||
{
|
||||
global $g4;
|
||||
|
||||
return "
|
||||
<script type='text/javascript'>
|
||||
var ed_{$id} = new cheditor('ed_{$id}');
|
||||
ed_{$id}.config.editorHeight = '{$height}';
|
||||
ed_{$id}.config.editorWidth = '{$width}';
|
||||
ed_{$id}.inputForm = 'tx_{$id}';
|
||||
</script>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
function cheditor1($id, $width='100%', $height='250')
|
||||
{
|
||||
global $g4;
|
||||
|
||||
return "
|
||||
<script type='text/javascript'>
|
||||
var ed_{$id} = new cheditor('ed_{$id}');
|
||||
ed_{$id}.config.editorHeight = '{$height}';
|
||||
ed_{$id}.config.editorWidth = '{$width}';
|
||||
ed_{$id}.config.imgReSize = false;
|
||||
ed_{$id}.config.fullHTMLSource = false;
|
||||
ed_{$id}.config.editorPath = '{$g4[cheditor4_path]}';
|
||||
ed_{$id}.inputForm = 'tx_{$id}';
|
||||
</script>";
|
||||
}
|
||||
}
|
||||
|
||||
function cheditor2($id, $content='')
|
||||
{
|
||||
global $g4;
|
||||
|
||||
return "
|
||||
<textarea name='{$id}' id='tx_{$id}' style='display:none;'>{$content}</textarea>
|
||||
<script type='text/javascript'>
|
||||
ed_{$id}.run();
|
||||
</script>";
|
||||
}
|
||||
|
||||
function cheditor3($id)
|
||||
{
|
||||
return "document.getElementById('tx_{$id}').value = ed_{$id}.outputBodyHTML();";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user