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:
```php
{$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 “
Did you ever figure this one out Tony? Just been reviewing the code structure for SEO purposes on a 2.2.4 site and noticed all content entered using the WYSIWYG editor is coming out like so:
```php
This if the first paragraph and tells a little story.
This is the second paragraph.
```
Disable WYSIWYG editor and that becomes:
```php
This if the first paragraph and tells a little story.
This is the second paragraph.
```
So now stuck with
tags within
tags if I want to use the WYSIWYG editor. Wouldn't mind so much if it was tags but not the same declaration tags within itself.
Looks like somenone cut/pasted html when editior was active.
Take it out, edit it and then paste it back in without any formatting.
[/quote]
That's what I thought, so that's what I tried and succeeded using Firefox.
Incidentally I've discovered this only seems to happen when Internet Explorer 9 is used, although I would have thought the parsing has nothing to do with the browser, perhaps not though.
Now if only some of computer illiterate ones can be trained to point and click using another browser…might just be easier to find and force a fix in CS-Cart!
I am using cm-wysiwyg to create html editor. my problem is getting value in field to display html content but not displaying front end content in field. Please slove this issue.
I am using cm-wysiwyg to create html editor. my problem is getting value in field to display html content but not displaying front end content in field. Please slove this issue.
code:-
{__("content")}:
Regards
mahesh,
maheshbondada@gmail.com.
Is it saved to the database correctly? If yes, you should get value from the database and display it in the following manner:
After saving value from the database. The getting database values in table on the same page and selected row getting values in same form using msg_id through javascript.
So the entered text is displayed correctly after the page is reloaded. But if you switch WYSIWYG editor to the HTML mode, you see empty text area. Am I right?
So the entered text is displayed correctly after the page is reloaded. But if you switch WYSIWYG editor to the HTML mode, you see empty text area. Am I right?
But do note that wssiwyg editor support was only added to the customer side of things in (I think) V4.3.5 (could have been a release or two earlier but it used to be restricted to the admin area only without changing the core js code.)
I have a problem sending email function. All values are getting correctly, but email content is displayed to html tags in the mails. How to display without html tags to sending content in mails.