Home > Editor > KindEditor -> Kindeditor Demo (Modify page php code):
 

Kindeditor Demo : Modify page , php HTML Code:

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<style>
form {
margin: 0;
}
textarea {
display: block;
}
</style>
<link rel="stylesheet" href="kindeditor-4.1.10/themes/default/default.css" />
<script charset="utf-8" src="kindeditor-4.1.10/kindeditor-min.js"></script>
<script charset="utf-8" src="kindeditor-4.1.10/lang/en.js"></script>
<script>
var editor;
KindEditor.ready(function(K) {
editor = K.create('textarea[name="content"]', {
allowFileManager : true

});
});

KindEditor.ready(function(K) {
editor = K.create('textarea[name="content"]', {
langType : 'en'
});
});

</script>
</head>

<body id="firstpage">
Kindeditor Demo (Modify page php code): <br>
<br>

<?php
$text="<p>&nbsp;asdfa<strong>sdf as</strong>d asd<u> asd a</u>sdf<em> asdf </em>dsa&nbsp;</p>";
$text = htmlspecialchars( $text ) ;
?>
<form name="aaa" action="kindeditor_modify2.php" method="post">
<textarea name="content" style="width:800px;height:400px;visibility:hidden;"><?php echo $text;?></textarea>
<input type="hidden" name="do" value="up" />
<input type="submit" name="Submit" value="Modify">
</form>

<hr>
Kindeditor Demo : Modify page , php HTML Code:
<hr>

</body>
</html>

Recommend

KindEditor Editor    |    UEditor Editor    |    xhEditor Editor    |    openWYSIWYG Editor    |    jqrte Editor    |    FCKeditor Editor    |    nicEdit Editor    |    wyzz Editor