Answer the question
In order to leave comments, you need to log in
How to connect a WYSIWYG editor to a MySQL database?
There is a separate add_news.php file, where you need to insert editors and connect them to the MySQL database. So that when you click on the button to add all the data that is filled in the "WYSIWYG" editor, everything is transferred to the MySQL database.
PS I'm not asking you to do all this for me, I'm asking you to show an example of how it's all done. I can't think of an architecture.
Answer the question
In order to leave comments, you need to log in
Why to the base then??? For example: TinyMCE connects to textarea, you just need to paste
<script src="//tinymce.cachefly.net/4.2/tinymce.min.js"></script>
<script>tinymce.init({selector:'textarea'});</script>.
If you need without reloading the page, then use AJAX.<!DOCTYPE html>
<html>
<head>
<script src="//tinymce.cachefly.net/4.2/tinymce.min.js"></script>
<script>tinymce.init({selector:'textarea'});</script>
</head>
<body>
<form method="POST" action="add_news.php">
<textarea name="<ИМЯ ДЛЯ ИДЕНТИФИКАЦИИ POST>"><textarea>
<input type="submit">
</form>
</body>
</html>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question