forked from fex-team/ueditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetContent.php
More file actions
executable file
·21 lines (19 loc) · 882 Bytes
/
Copy pathgetContent.php
File metadata and controls
executable file
·21 lines (19 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script src="../uparse.js" type="text/javascript"></script>
<script>
uParse('.content',{
'highlightJsUrl':'../third-party/SyntaxHighlighter/shCore.js',
'highlightCssUrl':'../third-party/SyntaxHighlighter/shCoreDefault.css'
})
</script>
<?php
//获取数据
error_reporting(E_ERROR|E_WARNING);
$content = htmlspecialchars(stripslashes($_POST['myEditor']));
$content1 = htmlspecialchars(stripslashes($_POST['myEditor1']));
//存入数据库或者其他操作
//显示
echo "第1个编辑器的值";
echo "<div class='content'>".htmlspecialchars_decode($content)."</div>";
echo "<br/>第2个编辑器的值<br/>";
echo "<textarea class='content' style='width:500px;height:300px;'>".htmlspecialchars_decode($content1)."</textarea><br/>";