I
I
Ilya2014-01-31 10:34:44
PHP
Ilya, 2014-01-31 10:34:44

How to get text from wysiwyg editor?

I am by no means an expert in Web programming.
I am using the bootstrap-wysihtml5 editor . I can't figure out how to get the generated text from it in php. Can you suggest or suggest an easier way.
I'm trying to get it, but it doesn't work.
$commentPr = $('.textarea').wysihtml5();
Error text:

Parse error: syntax error, unexpected '(', expecting T_VARIABLE or '$' in C:\www\new_tasks.php on line 25

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AxisPod, 2014-01-31
@Zerpico

Of course it's cool to use jquery syntax in PHP.
Specify a name for the textarea (name attribute). And then $_GET['name'] or $_POST['name'].

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question