2
I have the following code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<link href="editor.css" type="text/css" rel="stylesheet"/>
<script src="editor.js"></script>
</head>
<body>
<div id="txtEditor"></div>
<script type="text/javascript">
$(document).ready( function() {
$("#txtEditor").Editor();
});
</script>
</body>
</html>
My question is how can I capture the information that is passed by the text editor on "DIV = txtEditor"
to a textarea so that PHP can capture the data and send by post method to the database?
I am currently using the editor Tinymce. It is used by large companies and fully configurable, not to mention easy to implement, just create a <textarea> performing the bind with your template and initialize the plugin
<script>tinymce.init({selector:'textarea'});</script>
– João Manolo
João. How exactly this bind works, with this plugin Responsive WYSIWYG (text editor)r?
– Hitch Leonardo
Well, I’m a Java developer, but the principle is the same. you have the name attribute in which you link to popular or save the information
– João Manolo