123456789101112131415161718192021 |
- <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/>";
|