wysiwyg editor

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 “

Test line 1

Test line 2

”.

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 name='tbirnseth' timestamp='1360209163' post='154642']

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!

HI,

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.

HI,

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:

{$variable_with_content}

Is it saved to the database correctly? If yes, you should get value from the database and display it in the following manner:

{$variable_with_content}

This code is not working. my problem is same. I have assigned input value is "hello". The data is stored these type "

hello

" in database.But, Getting value also same html type.

How do you get saved value from the database?

How do you get saved value from the database?

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.

I am afraid, we are not able to help you without code review

I am afraid, we are not able to help you without code review

{include file="views/profiles/components/profiles_scripts.tpl"}

{assign var=“users_names” value=fn_get_users_names()}
{assign var=“messagelist” value=fn_get_push_messagelist()}
{assign var=“retrieve” value=fn_get_push_retrieve()}

{capture name=“mainbox”}

{include file="common/subheader.tpl" title=_("Select an option")}
Select option Group Individual
{include file="common/subheader.tpl" title=_("Enter Your Notification Message")} {if $users_names}
              {foreach from=$users_names item="names"}  
            
       
          
              {/foreach}

{/if}

{_("Title")}:
{__("content")}:
{$content}

{include file=“common/subheader.tpl” title=_(“Select the User’s List”)}

{if $users_names}

{_("Emails")}:
      {foreach from=$users_names item="names"}
    • {$names.email}
    • {/foreach}

    {/if}

    {_("Title")}:
    {__("Content")}:
    {literal}

    {/literal}

    {include file=“common/subheader.tpl” title=_(“Previous Sended Data”)}

    {foreach from=$messagelist item="messages"}
    
    
            	    {$messages.msg_id}
    {$messages.Title}
    {$messages.content}
    
    
    {/foreach}
    
    Msg_Id Title Content

    {/capture}

    {include file=“common/mainbox.tpl” title=‘Compose’ content=$smarty.capture.mainbox}

    So the textarea is empty or it contains text without html tags?

    So the textarea is empty or it contains text without html tags?

    textarea is empty after clicking html tag button to display html format.

    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?

    Yaa! its right. How to fix it

    It is required to examine issue on your server. We constantly use WYSIWYG editors in our projects and have never faced such issue

    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.)

    Hi,

    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.

    Regards,

    naga mahesh bondada,

    maheshbondada2@gmail.com.

    Are you sending your own templates? If so, use the 'nofilter' attribute of your smarty tags. I.e.

    {$my_body nofilter}

    Are you sending your own templates? If so, use the 'nofilter' attribute of your smarty tags. I.e

    {$my_body nofilter}

    yes,i am sending my own templates. your idea is worked. Thank u so much for helping me.