Well, there has to be a siimple answer. One of my clients wanted the wysiwyg editor on a textarea in their admin. It was eays to add cm-wsiwyg to the class and viola, the editor appeared.
However, when i put two lines like
Test line 1
Test line 2
The HTML shows as two paragraphs (what is expected) but when the data is POSTED it comes into the controller as 2 newline separated lines versus the two html paragraphs.
So what's the trick to getting it to POST html code so that the editor is useful? I must be missing something.
The textara tag looks like:
{$big_comment}
But when $_REQUEST['big_comment'] is received in the controller the string is "Test line 1\nTest line 2" where it should be "
Hello, I realize this is an old thread, but I can not find the answer anywhere else. I need to use a text editor in a backend add on page and while I add the class 'cm-wysiwyg' to my textarea, nothing seems to happen. I clear the cache of course. When I try to do the same to the orders page for example, it works fine but not in my custom addon page. I believe its a js file not being included but I honestly dont know. Here is my page code for reference.