1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/yunxi59-luohu

В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
kindeditor.php 1.5 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
邓云溪 Отправлено 21.05.2018 06:02 82b8225
<?php
require_once(dirname(__FILE__)."/"."global.php");
print <<<EOT
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="/images/global.css">
<title></title>
</head>
<body leftmargin="0" topmargin="0">
<script type="text/javascript" src="$webdb[www_url]/ewebeditor/KindEditor.js"></script>
<input type="hidden" name="content" id="content">
<script type="text/javascript">
var editor = new KindEditor("editor");
editor.hiddenName = "content";
editor.skinPath = "$webdb[www_url]/ewebeditor/skins/default/";
editor.iconPath = "$webdb[www_url]/images/default/faceicon/";
editor.imageAttachPath = "upload_files";
editor.imageUploadCgi = "$webdb[www_url]/do/upfile_eweb.php";
editor.cssPath = "$webdb[www_url]/ewebeditor/common.css";
editor.editorWidth = "100%";
editor.parentID = "$_GET[id]";
function get_height(){
h=0;
if(parent.document.getElementById("eWebEditor1")!=null){
h=(parent.document.getElementById("eWebEditor1").height-60);
}
if(h<10){
h=100;
}
return (h+'px');
}
function show_edit(){
editor.editorHeight =get_height();
editor.show();
}
setcode();
show_edit();
function setcode(){
document.getElementById('content').value=parent.document.getElementById('$_GET[id]').value;
}
document.onmousemove=editor.code;
function set_input(){
editor.code();
setTimeout("set_input()",30);
}
set_input();
</script>
</body>
</html>
EOT;
?>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/yunxi59-luohu.git
git@api.gitlife.ru:oschina-mirror/yunxi59-luohu.git
oschina-mirror
yunxi59-luohu
yunxi59-luohu
master